/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ras.c | 191 size_t size, loff_t *pos) in amdgpu_ras_debugfs_read() 217 s = min_t(u64, s, size); in amdgpu_ras_debugfs_read() 248 const char __user *buf, size_t size, in amdgpu_ras_debugfs_ctrl_parse_data() 251 ssize_t s = min_t(u64, 64, size); in amdgpu_ras_debugfs_ctrl_parse_data() 264 *pos = size; in amdgpu_ras_debugfs_ctrl_parse_data() 326 if (size < sizeof(*data)) in amdgpu_ras_debugfs_ctrl_parse_data() 458 size_t size, loff_t *pos) in amdgpu_ras_debugfs_ctrl_write() 467 return size; in amdgpu_ras_debugfs_ctrl_write() 470 ret = amdgpu_ras_debugfs_ctrl_parse_data(f, buf, size, pos, &data); in amdgpu_ras_debugfs_ctrl_write() 477 return size; in amdgpu_ras_debugfs_ctrl_write() 190 amdgpu_ras_debugfs_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_ras_debugfs_read() argument 247 amdgpu_ras_debugfs_ctrl_parse_data(struct file *f, const char __user *buf, size_t size, loff_t *pos, struct ras_debug_if *data) amdgpu_ras_debugfs_ctrl_parse_data() argument 456 amdgpu_ras_debugfs_ctrl_write(struct file *f, const char __user *buf, size_t size, loff_t *pos) amdgpu_ras_debugfs_ctrl_write() argument 544 amdgpu_ras_debugfs_eeprom_write(struct file *f, const char __user *buf, size_t size, loff_t *pos) amdgpu_ras_debugfs_eeprom_write() argument [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | hashtab.c | 104 u32 elem_size; /* size of each element in bytes */ 334 u32 size = round_up(htab->map.value_size, 8); in prealloc_init() local 337 pptr = bpf_map_alloc_percpu(&htab->map, size, 8, in prealloc_init() 501 /* hash table size must be power of 2; roundup_pow_of_two() can overflow in htab_map_alloc() 552 * hash map size is 10k, which means that a system with 64 cpus will fill in htab_map_alloc() 958 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value() local 963 off += size; in pcpu_copy_value() 1002 u32 size = htab->map.value_size; in alloc_htab_elem() local 1063 size = round_up(size, in alloc_htab_elem() 1691 u32 batch, max_count, size, bucket_size, map_id; __htab_map_lookup_and_delete_batch() local 2357 u32 size; bpf_percpu_hash_copy() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | disp.c | 77 const s32 *oclass, u8 head, void *data, u32 size, in nv50_chan_create() 93 oclass[0], data, size, in nv50_chan_create() 189 nv50_dmac_wait(struct nvif_push *push, u32 size) in nv50_dmac_wait() argument 194 if (WARN_ON(size > dmac->max)) in nv50_dmac_wait() 198 if (dmac->cur + size >= dmac->max) { in nv50_dmac_wait() 209 if ((free = nv50_dmac_free(dmac)) >= size) in nv50_dmac_wait() 229 const s32 *oclass, u8 head, void *data, u32 size, s64 syncbuf, in nv50_dmac_create() 274 ret = nv50_chan_create(device, disp, oclass, head, data, size, in nv50_dmac_create() 342 * same size as the native one (e.g. different in nv50_outp_atomic_check_view() 783 int ret, size; in nv50_hdmi_enable() local 76 nv50_chan_create(struct nvif_device *device, struct nvif_object *disp, const s32 *oclass, u8 head, void *data, u32 size, struct nv50_chan *chan) nv50_chan_create() argument 228 nv50_dmac_create(struct nvif_device *device, struct nvif_object *disp, const s32 *oclass, u8 head, void *data, u32 size, s64 syncbuf, struct nv50_dmac *dmac) nv50_dmac_create() argument [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | devinet.c | 1271 int inet_gifconf(struct net_device *dev, char __user *buf, int len, int size) in inet_gifconf() argument 1278 if (WARN_ON(size > sizeof(struct ifreq))) in inet_gifconf() 1286 done += size; in inet_gifconf() 1289 if (len < size) in inet_gifconf() 1298 if (copy_to_user(buf + done, &ifr, size)) { in inet_gifconf() 1302 len -= size; in inet_gifconf() 1303 done += size; in inet_gifconf() 2047 int size = NLMSG_ALIGN(sizeof(struct netconfmsg)) in inet_netconf_msgsize_devconf() local 2055 size += nla_total_size(4); in inet_netconf_msgsize_devconf() 2057 size in inet_netconf_msgsize_devconf() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | mlpenc.c | 54 int data_check_present; ///< Set if the substream contains extra info to check the size of VLC blocks. 483 size_t size; in mlp_encode_init() local 576 size = avctx->frame_size * ctx->max_restart_interval; in mlp_encode_init() 577 ctx->lpc_sample_buffer = av_calloc(size, sizeof(*ctx->lpc_sample_buffer)); in mlp_encode_init() 581 size = ctx->one_sample_buffer_size * ctx->max_restart_interval; in mlp_encode_init() 582 ctx->major_scratch_buffer = av_calloc(size, sizeof(*ctx->major_scratch_buffer)); in mlp_encode_init() 586 ctx->major_inout_buffer = av_calloc(size, sizeof(*ctx->major_inout_buffer)); in mlp_encode_init() 643 size = ctx->max_restart_interval; in mlp_encode_init() 644 ctx->max_output_bits = av_calloc(size, sizeof(*ctx->max_output_bits)); in mlp_encode_init() 648 size in mlp_encode_init() [all...] |
H A D | adpcm.c | 224 // padded to zero where table size is less then 16 594 static inline int16_t adpcm_sbpro_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int size, int shift) in adpcm_sbpro_expand_nibble() argument 598 sign = nibble & (1<<(size-1)); in adpcm_sbpro_expand_nibble() 599 delta = nibble & ((1<<(size-1))-1); in adpcm_sbpro_expand_nibble() 606 if (delta >= (2*size - 3) && c->step < 3) in adpcm_sbpro_expand_nibble() 767 int size = buf_size*8; in adpcm_swf_decode() local 770 init_get_bits(&gb, buf, size); in adpcm_swf_decode() 778 while (get_bits_count(&gb) <= size - 22 * channels) { in adpcm_swf_decode() 784 for (count = 0; get_bits_count(&gb) <= size - nb_bits * channels && count < 4095; count++) { in adpcm_swf_decode() 1029 bytestream2_skip(gb, 4); // channel size in get_nb_samples() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
H A D | ULocaleTest.java | 1034 ULocale.getAvailableLocalesByType(ULocale.AvailableType.DEFAULT).size()); in TestGetAvailableByType() 1042 assertTrue("getAvailable() legacy/alias should return nonempty", legacyLocales.size() > 0); in TestGetAvailableByType() 1660 ULocale[] desiredArray = desiredSet.toArray(new ULocale[desiredSet.size()]); in TestAcceptLanguage2() 4331 if (keys.size() != nExtensions) { in TestExtension() 4333 + keys.size() + ", expected=" + nExtensions in TestExtension() 4393 if (attributes.size() != expectedAttributes.size()) { in TestUnicodeLocaleExtension() 4395 + attributes.size() + ", expected=" + expectedAttributes.size() in TestUnicodeLocaleExtension() 4405 if (keys.size() ! in TestUnicodeLocaleExtension() [all...] |
/third_party/node/lib/internal/util/ |
H A D | inspect.js | 693 function getPrefix(constructor, tag, fallback, size = '') { 696 return `[${fallback}${size}: null prototype] [${tag}] `; 698 return `[${fallback}${size}: null prototype] `; 702 return `${constructor}${size} [${tag}] `; 704 return `${constructor}${size} `; 833 index = ctx.circular.size + 1; 894 const size = SetPrototypeGetSize(value); 895 const prefix = getPrefix(constructor, tag, 'Set', `(${size})`); 900 if (size === 0 && keys.length === 0 && protoProps === undefined) 904 const size [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | srchtest.cpp | 279 matchlength = search->size[count]; in assertEqualWithStringSearch() 322 matchlength = search->size[count]; in assertEqualWithStringSearch() 388 matchlength = search->size[count]; in assertEqualWithStringSearch() 440 matchlength = search->size[count]; in assertEqualWithStringSearch() 1192 /* enormous pattern size to see if this crashes */ in TestPattern() 1200 errln("Error setting pattern with size 512, %s", u_errorName(status)); in TestPattern() 1314 int32_t matchlength = search.size[count]; in TestGetSetOffset() 1444 int32_t matchlength = search.size[count]; in TestGetMatch() 1503 int size = 0; in TestSetMatch() local 1504 while (search.offset[size] ! in TestSetMatch() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
H A D | IRTranslator.cpp | 169 for (unsigned i = 0; i < SplitTys.size(); ++i) in allocateVRegs() 208 assert(SplitTys.size() == 1 && "unexpectedly split LLT"); in getOrCreateVRegs() 293 // Creation of a virtual register needs to have a size. in translateBinaryOp() 878 assert(Regs.size() == 1 && "swifterror should be single pointer"); in translateLoad() 886 Regs.size() == 1 ? LI.getMetadata(LLVMContext::MD_range) : nullptr; in translateLoad() 887 for (unsigned i = 0; i < Regs.size(); ++i) { in translateLoad() 922 assert(Vals.size() == 1 && "swifterror should be single pointer"); in translateStore() 930 for (unsigned i = 0; i < Vals.size(); ++i) { in translateStore() 980 for (unsigned i = 0; i < DstRegs.size(); ++i) in translateExtractValue() 996 for (unsigned i = 0; i < DstRegs.size(); in translateInsertValue() [all...] |
/third_party/skia/third_party/externals/libpng/contrib/libtests/ |
H A D | pngstest.c | 86 make_random_bytes(png_uint_32* seed, void* pv, size_t size) in make_random_bytes() argument 95 for (i=0; i<size; ++i) in make_random_bytes() 668 size_t size = PNG_IMAGE_BUFFER_SIZE(image->image, image->stride); in allocbuffer() local 670 if (size+32 > image->bufsize) in allocbuffer() 673 image->buffer = voidcast(png_bytep, malloc(size+32)); in allocbuffer() 679 (unsigned long)size); in allocbuffer() 682 image->bufsize = size+32; in allocbuffer() 686 memset(image->buffer+16, BUFFER_INIT8, size); in allocbuffer() 687 image->allocsize = size; in allocbuffer() 785 * images must have been checked for a size matc 3238 png_alloc_size_t size; write_one_file() local [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fLayoutBindingTests.cpp | 1070 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() 1074 gl.genTextures((glw::GLsizei)m_textures.size(), &m_textures[0]); in init() 1076 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() 1087 for (int i = 0; i < (int)m_textures.size(); ++i) in deinit() 1393 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() 1399 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in init() 1408 for (int texNdx = 0; texNdx < (int)m_textures.size(); ++texNdx) in deinit() 1703 gl.genBuffers((glw::GLsizei)m_buffers.size(), &m_buffers[0]); in init() 1705 for (int bufNdx = 0; bufNdx < (int)m_buffers.size(); ++bufNdx) in init() 1711 for (int bufNdx = 0; bufNdx < (int)m_buffers.size(); in init() [all...] |
/third_party/vulkan-headers/include/vulkan/ |
H A D | vulkan_structs.hpp | 778 , geometryCount( static_cast<uint32_t>( !geometries_.empty() ? geometries_.size() : pGeometries_.size() ) ) 863 geometryCount = static_cast<uint32_t>( geometries_.size() ); 881 geometryCount = static_cast<uint32_t>( pGeometries_.size() ); 1311 , size( size_ ) 1361 size = size_; 1403 return std::tie( sType, pNext, createFlags, buffer, offset, size, type, deviceAddress ); 1416 ( size == rhs.size ) && ( type == rhs.type ) && ( deviceAddress == rhs.deviceAddress ); 1432 VULKAN_HPP_NAMESPACE::DeviceSize size member 8593 uint32_t size = {}; global() member 8955 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 10076 uint32_t size = {}; global() member 11778 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 11925 , size( size_ ) size() function 12005 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 12023 , size( size_ ) size() function 12115 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 12621 , size( size_ ) size() function 12749 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 12785 , size( size_ ) size() function 12930 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 15728 , size( size_ ) size() function 15811 size_t size = {}; global() member 16355 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 18734 , size( size_ ) size() function 18817 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 26103 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 30178 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 34010 , size( size_ ) size() function 34087 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 44022 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member 45736 , size( size_ ) size() function 45801 VULKAN_HPP_NAMESPACE::DeviceSize size = {}; global() member [all...] |
/kernel/linux/linux-5.10/drivers/iommu/amd/ |
H A D | iommu.c | 939 size_t size, u16 domid, int pde) in build_inv_iommu_pages() 944 pages = iommu_num_pages(address, size, PAGE_SIZE); in build_inv_iommu_pages() 963 if (s) /* size bit - we flush more than one 4kb page */ in build_inv_iommu_pages() 970 u64 address, size_t size) in build_inv_iotlb_pages() 975 pages = iommu_num_pages(address, size, PAGE_SIZE); in build_inv_iotlb_pages() 1001 u64 address, bool size) in build_inv_iommu_pasid() 1013 if (size) in build_inv_iommu_pasid() 1019 int qdep, u64 address, bool size) in build_inv_iotlb_pasid() 1033 if (size) in build_inv_iotlb_pasid() 1250 u64 address, size_t size) in device_flush_iotlb() 938 build_inv_iommu_pages(struct iommu_cmd *cmd, u64 address, size_t size, u16 domid, int pde) build_inv_iommu_pages() argument 969 build_inv_iotlb_pages(struct iommu_cmd *cmd, u16 devid, int qdep, u64 address, size_t size) build_inv_iotlb_pages() argument 1000 build_inv_iommu_pasid(struct iommu_cmd *cmd, u16 domid, u32 pasid, u64 address, bool size) build_inv_iommu_pasid() argument 1018 build_inv_iotlb_pasid(struct iommu_cmd *cmd, u16 devid, u32 pasid, int qdep, u64 address, bool size) build_inv_iotlb_pasid() argument 1249 device_flush_iotlb(struct iommu_dev_data *dev_data, u64 address, size_t size) device_flush_iotlb() argument 1308 __domain_flush_pages(struct protection_domain *domain, u64 address, size_t size, int pde) __domain_flush_pages() argument 1339 domain_flush_pages(struct protection_domain *domain, u64 address, size_t size) domain_flush_pages() argument 1368 domain_flush_np_cache(struct protection_domain *domain, dma_addr_t iova, size_t size) domain_flush_np_cache() argument 2879 __flush_pasid(struct protection_domain *domain, u32 pasid, u64 address, bool size) __flush_pasid() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 354 #define myri10ge_pio_copy(to,from,size) __iowrite64_copy(to,from,size/8) 571 static int myri10ge_load_hotplug_firmware(struct myri10ge_priv *mgp, u32 * size) in myri10ge_load_hotplug_firmware() argument 589 /* check size */ in myri10ge_load_hotplug_firmware() 591 if (fw->size >= mgp->sram_size - MYRI10GE_FW_OFFSET || in myri10ge_load_hotplug_firmware() 592 fw->size < MCP_HEADER_PTR_OFFSET + 4) { in myri10ge_load_hotplug_firmware() 593 dev_err(dev, "Firmware size invalid:%d\n", (int)fw->size); in myri10ge_load_hotplug_firmware() 600 if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > fw->size) { in myri10ge_load_hotplug_firmware() 611 crc = crc32(~0, fw->data, fw->size); in myri10ge_load_hotplug_firmware() 714 u32 dma_low, dma_high, size; myri10ge_load_firmware() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth.c | 685 /* Set hardware annotation size */ in dpaa2_eth_enable_tx_tstamp() 2156 * larger than maximum size supported in hardware in dpaa2_eth_set_rx_mfl() 2204 /* Reserve extra headroom for XDP header size changes */ in dpaa2_eth_update_rx_buffer_headroom() 2238 /* While in xdp mode, enforce a maximum Rx frame size based on MTU. in dpaa2_eth_setup_xdp() 2470 netdev_err(net_dev, "burst size cannot be greater than %d\n", in dpaa2_eth_setup_tbf() 2923 /* We need to ensure that the buffer size seen by WRIOP is a multiple in dpaa2_eth_set_buffer_layout() 3449 .size = 6, 3454 .size = 6, 3463 .size = 2, 3470 .size 3600 int i, size = 0; dpaa2_eth_cls_key_size() local 3633 int i, size; dpaa2_eth_cls_trim_rule() local [all...] |
/kernel/linux/linux-5.10/net/wireless/ |
H A D | reg.c | 661 static bool valid_rule(const u8 *data, unsigned int size, u16 rule_ptr) in valid_rule() argument 665 if ((u8 *)rule + sizeof(rule->len) > data + size) in valid_rule() 675 if (wmm_ptr + sizeof(struct fwdb_wmm_rule) > size) in valid_rule() 686 static bool valid_country(const u8 *data, unsigned int size, in valid_country() argument 695 if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size) in valid_country() 700 (coll->n_rules * 2) > data + size) in valid_country() 712 if (!valid_rule(data, size, rule_ptr)) in valid_country() 730 * than 256 bytes in size. in load_keys_from_buffer() 792 static bool regdb_has_valid_signature(const u8 *data, unsigned int size) in regdb_has_valid_signature() argument 800 result = verify_pkcs7_signature(data, size, si in regdb_has_valid_signature() 820 regdb_has_valid_signature(const u8 *data, unsigned int size) regdb_has_valid_signature() argument 830 valid_regdb(const u8 *data, unsigned int size) valid_regdb() argument [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | free-space-cache.c | 354 io_ctl->size = PAGE_SIZE; in io_ctl_map_page() 424 io_ctl->size -= sizeof(u64) + (sizeof(u32) * io_ctl->num_pages); in io_ctl_set_generation() 427 io_ctl->size -= sizeof(u64) * 2; in io_ctl_set_generation() 444 io_ctl->size -= sizeof(u64) + in io_ctl_check_generation() 448 io_ctl->size -= sizeof(u64) * 2; in io_ctl_check_generation() 530 io_ctl->size -= sizeof(struct btrfs_free_space_entry); in io_ctl_add_entry() 532 if (io_ctl->size >= sizeof(struct btrfs_free_space_entry)) in io_ctl_add_entry() 603 io_ctl->size -= sizeof(struct btrfs_free_space_entry); in io_ctl_read_entry() 605 if (io_ctl->size >= sizeof(struct btrfs_free_space_entry)) in io_ctl_read_entry() 1520 * want a section that has at least bytes size an 1686 u64 size = block_group->length; recalculate_thresholds() local 1897 u64 size = *bytes; find_free_space() local 2532 btrfs_add_free_space(struct btrfs_block_group *block_group, u64 bytenr, u64 size) btrfs_add_free_space() argument 2550 btrfs_add_free_space_async_trimmed(struct btrfs_block_group *block_group, u64 bytenr, u64 size) btrfs_add_free_space_async_trimmed() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 355 #define myri10ge_pio_copy(to,from,size) __iowrite64_copy(to,from,size/8) 571 static int myri10ge_load_hotplug_firmware(struct myri10ge_priv *mgp, u32 * size) in myri10ge_load_hotplug_firmware() argument 589 /* check size */ in myri10ge_load_hotplug_firmware() 591 if (fw->size >= mgp->sram_size - MYRI10GE_FW_OFFSET || in myri10ge_load_hotplug_firmware() 592 fw->size < MCP_HEADER_PTR_OFFSET + 4) { in myri10ge_load_hotplug_firmware() 593 dev_err(dev, "Firmware size invalid:%d\n", (int)fw->size); in myri10ge_load_hotplug_firmware() 600 if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > fw->size) { in myri10ge_load_hotplug_firmware() 611 crc = crc32(~0, fw->data, fw->size); in myri10ge_load_hotplug_firmware() 714 u32 dma_low, dma_high, size; myri10ge_load_firmware() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/ |
H A D | wmi.c | 167 u16 size; in ath6kl_wmi_dix_2_dot3() local 172 size = sizeof(struct ath6kl_llc_snap_hdr) + sizeof(struct wmi_data_hdr); in ath6kl_wmi_dix_2_dot3() 173 if (skb_headroom(skb) < size) in ath6kl_wmi_dix_2_dot3() 483 u16 size; in ath6kl_wmi_tx_complete_event_rx() local 491 size = sizeof(struct wmi_tx_complete_event) + in ath6kl_wmi_tx_complete_event_rx() 493 msg_v1 = (struct tx_complete_msg_v1 *)(datap + size); in ath6kl_wmi_tx_complete_event_rx() 710 static inline struct sk_buff *ath6kl_wmi_get_new_buf(u32 size) in ath6kl_wmi_get_new_buf() argument 714 skb = ath6kl_buf_alloc(size); in ath6kl_wmi_get_new_buf() 718 skb_put(skb, size); in ath6kl_wmi_get_new_buf() 719 if (size) in ath6kl_wmi_get_new_buf() 1355 ath6kl_wmi_get_upper_threshold(s16 rssi, struct sq_threshold_params *sq_thresh, u32 size) ath6kl_wmi_get_upper_threshold() argument 1373 ath6kl_wmi_get_lower_threshold(s16 rssi, struct sq_threshold_params *sq_thresh, u32 size) ath6kl_wmi_get_lower_threshold() argument 2946 u16 size; ath6kl_wmi_add_wow_pattern_cmd() local [all...] |
/kernel/linux/linux-6.6/net/wireless/ |
H A D | reg.c | 681 static bool valid_rule(const u8 *data, unsigned int size, u16 rule_ptr) in valid_rule() argument 685 if ((u8 *)rule + sizeof(rule->len) > data + size) in valid_rule() 695 if (wmm_ptr + sizeof(struct fwdb_wmm_rule) > size) in valid_rule() 706 static bool valid_country(const u8 *data, unsigned int size, in valid_country() argument 715 if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size) in valid_country() 720 (coll->n_rules * 2) > data + size) in valid_country() 732 if (!valid_rule(data, size, rule_ptr)) in valid_country() 774 static bool regdb_has_valid_signature(const u8 *data, unsigned int size) in regdb_has_valid_signature() argument 782 result = verify_pkcs7_signature(data, size, sig->data, sig->size, in regdb_has_valid_signature() 802 regdb_has_valid_signature(const u8 *data, unsigned int size) regdb_has_valid_signature() argument 812 valid_regdb(const u8 *data, unsigned int size) valid_regdb() argument [all...] |
/kernel/linux/linux-6.6/security/smack/ |
H A D | smack_lsm.c | 1282 * @size: size of the value 1291 const void *value, size_t size, int flags) in smack_inode_setxattr() 1316 size != TRANS_TRUE_SIZE || in smack_inode_setxattr() 1320 rc = cap_inode_setxattr(dentry, name, value, size, flags); in smack_inode_setxattr() 1326 skp = size ? smk_import_entry(value, size) : NULL; in smack_inode_setxattr() 1350 * @size: attribute size 1357 const void *value, size_t size, in in smack_inode_post_setxattr() 1289 smack_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags) smack_inode_setxattr() argument 1356 smack_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) smack_inode_post_setxattr() argument 2845 smack_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags) smack_inode_setsecurity() argument 3677 smack_setprocattr(const char *name, void *value, size_t size) smack_setprocattr() argument 3823 smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size) smack_socket_sendmsg() argument [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | mmap.c | 167 * @len: The size of increase. 1683 * - is at least the desired size. 1934 unsigned long size, unsigned long grow) in acct_stack_growth() 1944 if (size > rlimit(RLIMIT_STACK)) in acct_stack_growth() 1953 vma->vm_end - size; in acct_stack_growth() 1954 if (is_hugepage_only_range(vma->vm_mm, new_start, size)) in acct_stack_growth() 2027 unsigned long size, grow; in expand_upwards() local 2029 size = address - vma->vm_start; in expand_upwards() 2033 if (vma->vm_pgoff + (size >> PAGE_SHIFT) >= vma->vm_pgoff) { in expand_upwards() 2034 error = acct_stack_growth(vma, size, gro in expand_upwards() 1933 acct_stack_growth(struct vm_area_struct *vma, unsigned long size, unsigned long grow) acct_stack_growth() argument 2120 unsigned long size, grow; expand_downwards() local [all...] |
/third_party/backends/backend/ |
H A D | artec.c | 146 SANE_Word setwindow_cmd_size; /* Set-Window command size */ 147 SANE_Word max_read_size; /* Max Read size in bytes */ 370 size_t size, max_size = 0; in max_string_size() local 375 size = strlen (strings[i]) + 1; in max_string_size() 376 if (size > max_size) in max_string_size() 377 max_size = size; in max_string_size() 1288 write_6[8] = s->hw->setwindow_cmd_size; /* total size of command */ in artec_set_scan_window() 1815 DBG (50, " Buffer size : %s\n", info); in artec_get_cap_data() 1939 size_t size; in attach() local 1963 size in attach() [all...] |
H A D | pieusb_specific.c | 634 scanner->opt[i].size = sizeof (SANE_Word); in sanei_pieusb_init_options() 658 scanner->opt[OPT_MODE].size = max_string_size ((SANE_String_Const const *) scanner->device->scan_mode_list); in sanei_pieusb_init_options() 669 scanner->opt[OPT_BIT_DEPTH].size = sizeof (SANE_Word); in sanei_pieusb_init_options() 688 scanner->opt[OPT_HALFTONE_PATTERN].size = max_string_size ((SANE_String_Const const *) scanner->device->halftone_list); in sanei_pieusb_init_options() 730 scanner->opt[OPT_CALIBRATION_MODE].size = max_string_size ((SANE_String_Const const *) scanner->device->calibration_mode_list); in sanei_pieusb_init_options() 740 scanner->opt[OPT_GAIN_ADJUST].size = max_string_size ((SANE_String_Const const *) scanner->device->gain_adjust_list); in sanei_pieusb_init_options() 849 scanner->opt[OPT_SMOOTH_IMAGE].size = sizeof (SANE_Word); in sanei_pieusb_init_options() 879 scanner->opt[OPT_CROP_IMAGE].size = max_string_size ((SANE_String_Const const *)(void*) scanner->device->crop_sw_list); in sanei_pieusb_init_options() 918 scanner->opt[OPT_LIGHT].size = sizeof(SANE_Word); in sanei_pieusb_init_options() 927 scanner->opt[OPT_DOUBLE_TIMES].size in sanei_pieusb_init_options() 1180 size_t size, max_size = 0; max_string_size() local 2050 SANE_Int size; sanei_pieusb_get_shading_data() local [all...] |