Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 7146) sorted by relevance

12345678910>>...286

/linux-6.6.21/include/linux/
Dfind.h21 extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long size);
22 unsigned long __find_nth_bit(const unsigned long *addr, unsigned long size, unsigned long n);
24 unsigned long size, unsigned long n);
26 unsigned long size, unsigned long n);
28 const unsigned long *addr3, unsigned long size,
31 const unsigned long *addr2, unsigned long size);
32 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size);
33 extern unsigned long _find_last_bit(const unsigned long *addr, unsigned long size);
36 unsigned long _find_first_zero_bit_le(const unsigned long *addr, unsigned long size);
38 long size, unsigned long offset);
[all …]
Dslab.h189 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
193 unsigned int size, unsigned int align,
443 static __always_inline unsigned int __kmalloc_index(size_t size, in __kmalloc_index() argument
446 if (!size) in __kmalloc_index()
449 if (size <= KMALLOC_MIN_SIZE) in __kmalloc_index()
452 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in __kmalloc_index()
454 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in __kmalloc_index()
456 if (size <= 8) return 3; in __kmalloc_index()
457 if (size <= 16) return 4; in __kmalloc_index()
458 if (size <= 32) return 5; in __kmalloc_index()
[all …]
/linux-6.6.21/tools/include/linux/
Dfind.h17 extern unsigned long _find_first_bit(const unsigned long *addr, unsigned long size);
19 const unsigned long *addr2, unsigned long size);
20 extern unsigned long _find_first_zero_bit(const unsigned long *addr, unsigned long size);
33 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit() argument
36 if (small_const_nbits(size)) { in find_next_bit()
39 if (unlikely(offset >= size)) in find_next_bit()
40 return size; in find_next_bit()
42 val = *addr & GENMASK(size - 1, offset); in find_next_bit()
43 return val ? __ffs(val) : size; in find_next_bit()
46 return _find_next_bit(addr, size, offset); in find_next_bit()
[all …]
/linux-6.6.21/drivers/net/dsa/sja1105/
Dsja1105_static_config.c97 const size_t size = SJA1105ET_SIZE_AVB_PARAMS_ENTRY; in sja1105et_avb_params_entry_packing() local
100 sja1105_packing(buf, &entry->destmeta, 95, 48, size, op); in sja1105et_avb_params_entry_packing()
101 sja1105_packing(buf, &entry->srcmeta, 47, 0, size, op); in sja1105et_avb_params_entry_packing()
102 return size; in sja1105et_avb_params_entry_packing()
108 const size_t size = SJA1105PQRS_SIZE_AVB_PARAMS_ENTRY; in sja1105pqrs_avb_params_entry_packing() local
111 sja1105_packing(buf, &entry->cas_master, 126, 126, size, op); in sja1105pqrs_avb_params_entry_packing()
112 sja1105_packing(buf, &entry->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing()
113 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing()
114 return size; in sja1105pqrs_avb_params_entry_packing()
120 const size_t size = SJA1105ET_SIZE_GENERAL_PARAMS_ENTRY; in sja1105et_general_params_entry_packing() local
[all …]
Dsja1105_dynamic_config.c202 const int size = SJA1105_SIZE_DYN_CMD; in sja1105et_vl_lookup_cmd_packing() local
204 sja1105_packing(buf, &cmd->valid, 31, 31, size, op); in sja1105et_vl_lookup_cmd_packing()
205 sja1105_packing(buf, &cmd->errors, 30, 30, size, op); in sja1105et_vl_lookup_cmd_packing()
206 sja1105_packing(buf, &cmd->rdwrset, 29, 29, size, op); in sja1105et_vl_lookup_cmd_packing()
207 sja1105_packing(buf, &cmd->index, 9, 0, size, op); in sja1105et_vl_lookup_cmd_packing()
216 const int size = SJA1105_SIZE_DYN_CMD; in sja1105pqrs_vl_lookup_cmd_packing() local
218 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
219 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
220 sja1105_packing(p, &cmd->rdwrset, 29, 29, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
221 sja1105_packing(p, &cmd->index, 9, 0, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
[all …]
/linux-6.6.21/scripts/coccinelle/api/
Dkvmalloc.cocci24 expression E, E1, size;
33 * if (size cmp E1 || ...)@p {
37 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
41 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
47 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
49 when != size = E1
53 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
59 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...);
61 when != size = E1
65 * x = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...)
[all …]
/linux-6.6.21/tools/testing/memblock/tests/
Dalloc_nid_api.c30 static inline void *run_memblock_alloc_nid(phys_addr_t size, in run_memblock_alloc_nid() argument
42 return memblock_alloc_exact_nid_raw(size, align, min_addr, in run_memblock_alloc_nid()
45 return memblock_alloc_try_nid_raw(size, align, min_addr, in run_memblock_alloc_nid()
47 return memblock_alloc_try_nid(size, align, min_addr, max_addr, nid); in run_memblock_alloc_nid()
68 phys_addr_t size = SZ_128; in alloc_nid_top_down_simple_check() local
79 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_simple_check()
82 rgn_end = rgn->base + rgn->size; in alloc_nid_top_down_simple_check()
85 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_simple_check()
87 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_simple_check()
88 ASSERT_EQ(rgn->base, max_addr - size); in alloc_nid_top_down_simple_check()
[all …]
Dbasic_api.c49 .size = SZ_4M in memblock_add_simple_check()
55 memblock_add(r.base, r.size); in memblock_add_simple_check()
58 ASSERT_EQ(rgn->size, r.size); in memblock_add_simple_check()
61 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_simple_check()
82 .size = SZ_16M in memblock_add_node_simple_check()
88 memblock_add_node(r.base, r.size, 1, MEMBLOCK_HOTPLUG); in memblock_add_node_simple_check()
91 ASSERT_EQ(rgn->size, r.size); in memblock_add_node_simple_check()
98 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_node_simple_check()
126 .size = SZ_8K in memblock_add_disjoint_check()
130 .size = SZ_8K in memblock_add_disjoint_check()
[all …]
Dalloc_exact_nid_api.c33 phys_addr_t size; in alloc_exact_nid_top_down_numa_simple_check() local
40 ASSERT_LE(SZ_4, req_node->size); in alloc_exact_nid_top_down_numa_simple_check()
41 size = req_node->size / SZ_4; in alloc_exact_nid_top_down_numa_simple_check()
45 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_simple_check()
50 ASSERT_MEM_NE(allocated_ptr, 0, size); in alloc_exact_nid_top_down_numa_simple_check()
52 ASSERT_EQ(new_rgn->size, size); in alloc_exact_nid_top_down_numa_simple_check()
53 ASSERT_EQ(new_rgn->base, region_end(req_node) - size); in alloc_exact_nid_top_down_numa_simple_check()
57 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_simple_check()
86 phys_addr_t size; in alloc_exact_nid_top_down_numa_part_reserved_check() local
93 ASSERT_LE(SZ_8, req_node->size); in alloc_exact_nid_top_down_numa_part_reserved_check()
[all …]
/linux-6.6.21/drivers/staging/media/atomisp/pci/
Dia_css_isp_configs.c28 unsigned int size = 0; in ia_css_configure_iterator() local
35 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
36 if (!size) in ia_css_configure_iterator()
43 config_dmem, size); in ia_css_configure_iterator()
51 unsigned int size = 0; in ia_css_configure_copy_output() local
58 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
59 if (!size) in ia_css_configure_copy_output()
66 config_dmem, size); in ia_css_configure_copy_output()
76 unsigned int size = 0; in ia_css_configure_crop() local
83 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
/linux-6.6.21/tools/perf/util/
Dtrace-event-read.c28 static int __do_read(int fd, void *buf, int size) in __do_read() argument
30 int rsize = size; in __do_read()
32 while (size) { in __do_read()
33 int ret = read(fd, buf, size); in __do_read()
47 size -= ret; in __do_read()
54 static int do_read(void *data, int size) in do_read() argument
58 r = __do_read(input_fd, data, size); in do_read()
61 size, r); in do_read()
71 static void skip(int size) in skip() argument
76 while (size) { in skip()
[all …]
/linux-6.6.21/lib/
Dtest_user_copy.c42 static bool is_zeroed(void *from, size_t size) in is_zeroed() argument
44 return memchr_inv(from, 0x0, size) == NULL; in is_zeroed()
47 static int test_check_nonzero_user(char *kmem, char __user *umem, size_t size) in test_check_nonzero_user() argument
52 if (test(size < 2 * PAGE_SIZE, "buffer too small")) in test_check_nonzero_user()
61 size = 1024; in test_check_nonzero_user()
62 start = PAGE_SIZE - (size / 2); in test_check_nonzero_user()
67 zero_start = size / 4; in test_check_nonzero_user()
68 zero_end = size - zero_start; in test_check_nonzero_user()
81 memset(kmem, 0x0, size); in test_check_nonzero_user()
84 for (i = zero_end; i < size; i += 2) in test_check_nonzero_user()
[all …]
Dtest_meminit.c29 static int __init count_nonzero_bytes(void *ptr, size_t size) in count_nonzero_bytes() argument
34 for (i = 0; i < size; i++) in count_nonzero_bytes()
41 static void __init fill_with_garbage_skip(void *ptr, int size, size_t skip) in fill_with_garbage_skip() argument
46 WARN_ON(skip > size); in fill_with_garbage_skip()
47 size -= skip; in fill_with_garbage_skip()
49 while (size >= sizeof(*p)) { in fill_with_garbage_skip()
52 size -= sizeof(*p); in fill_with_garbage_skip()
54 if (size) in fill_with_garbage_skip()
55 memset(&p[i], GARBAGE_BYTE, size); in fill_with_garbage_skip()
58 static void __init fill_with_garbage(void *ptr, size_t size) in fill_with_garbage() argument
[all …]
/linux-6.6.21/arch/arm/boot/dts/aspeed/
Daspeed-bmc-facebook-cmm.dts334 #size-cells = <0>;
341 #size-cells = <0>;
347 #size-cells = <0>;
353 #size-cells = <0>;
358 #size-cells = <0>;
363 #size-cells = <0>;
368 #size-cells = <0>;
373 #size-cells = <0>;
378 #size-cells = <0>;
383 #size-cells = <0>;
[all …]
Daspeed-bmc-facebook-fuji.dts219 data-size = <16>;
239 #size-cells = <0>;
245 #size-cells = <0>;
252 #size-cells = <0>;
259 #size-cells = <0>;
265 #size-cells = <0>;
271 #size-cells = <0>;
277 #size-cells = <0>;
283 #size-cells = <0>;
289 #size-cells = <0>;
[all …]
Daspeed-bmc-facebook-minipack.dts249 #size-cells = <1>;
299 #size-cells = <1>;
350 #size-cells = <0>;
356 #size-cells = <0>;
362 #size-cells = <0>;
368 #size-cells = <0>;
374 #size-cells = <0>;
380 #size-cells = <0>;
386 #size-cells = <0>;
392 #size-cells = <0>;
[all …]
/linux-6.6.21/drivers/mtd/tests/
Dmtd_nandecctest.c48 size_t size) in single_bit_error_data() argument
50 unsigned int offset = get_random_u32_below(size * BITS_PER_BYTE); in single_bit_error_data()
52 memcpy(error_data, correct_data, size); in single_bit_error_data()
57 size_t size) in double_bit_error_data() argument
61 offset[0] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data()
63 offset[1] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data()
66 memcpy(error_data, correct_data, size); in double_bit_error_data()
72 static unsigned int random_ecc_bit(size_t size) in random_ecc_bit() argument
76 if (size == 256) { in random_ecc_bit()
89 size_t size) in single_bit_error_ecc() argument
[all …]
/linux-6.6.21/mm/kasan/
Dgeneric.c56 unsigned long size) in memory_is_poisoned_2_4_8() argument
64 if (unlikely((((unsigned long)addr + size - 1) & KASAN_GRANULE_MASK) < size - 1)) in memory_is_poisoned_2_4_8()
65 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
67 return memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
82 size_t size) in bytes_is_nonzero() argument
84 while (size) { in bytes_is_nonzero()
88 size--; in bytes_is_nonzero()
123 static __always_inline bool memory_is_poisoned_n(const void *addr, size_t size) in memory_is_poisoned_n() argument
128 kasan_mem_to_shadow(addr + size - 1) + 1); in memory_is_poisoned_n()
131 const void *last_byte = addr + size - 1; in memory_is_poisoned_n()
[all …]
/linux-6.6.21/lib/crypto/mpi/
Dmpih-mul.c21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument
23 if ((size) < KARATSUBA_THRESHOLD) \
24 mul_n_basecase(prodp, up, vp, size); \
26 mul_n(prodp, up, vp, size, tspace); \
29 #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ argument
31 if ((size) < KARATSUBA_THRESHOLD) \
32 mpih_sqr_n_basecase(prodp, up, size); \
34 mpih_sqr_n(prodp, up, size, tspace); \
55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase() argument
66 MPN_COPY(prodp, up, size); in mul_n_basecase()
[all …]
/linux-6.6.21/tools/testing/selftests/mm/
Dmap_fixed_noreplace.c24 static unsigned long find_base_addr(unsigned long size) in find_base_addr() argument
30 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr()
36 if (munmap(addr, size) != 0) { in find_base_addr()
46 unsigned long flags, addr, size, page_size; in main() local
52 size = 5 * page_size; in main()
53 base_addr = find_base_addr(size); in main()
64 size = 5 * page_size; in main()
65 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
67 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
85 size = 3 * page_size; in main()
[all …]
/linux-6.6.21/drivers/usb/common/
Ddebug.c15 __u16 wLength, char *str, size_t size) in usb_decode_get_status() argument
19 snprintf(str, size, "Get Device Status(Length = %d)", wLength); in usb_decode_get_status()
22 snprintf(str, size, in usb_decode_get_status()
27 snprintf(str, size, "Get Endpoint Status(ep%d%s)", in usb_decode_get_status()
74 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument
78 snprintf(str, size, "%s Device Feature(%s%s)", in usb_decode_set_clear_feature()
85 snprintf(str, size, "%s Interface Feature(%s)", in usb_decode_set_clear_feature()
91 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)", in usb_decode_set_clear_feature()
100 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument
102 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address()
[all …]
/linux-6.6.21/arch/x86/lib/
Dusercopy_64.c28 static void clean_cache_range(void *addr, size_t size) in clean_cache_range() argument
32 void *vend = addr + size; in clean_cache_range()
40 void arch_wb_cache_pmem(void *addr, size_t size) in arch_wb_cache_pmem() argument
42 clean_cache_range(addr, size); in arch_wb_cache_pmem()
46 long __copy_user_flushcache(void *dst, const void __user *src, unsigned size) in __copy_user_flushcache() argument
52 rc = __copy_user_nocache(dst, src, size); in __copy_user_flushcache()
63 if (size < 8) { in __copy_user_flushcache()
64 if (!IS_ALIGNED(dest, 4) || size != 4) in __copy_user_flushcache()
65 clean_cache_range(dst, size); in __copy_user_flushcache()
73 if (size > flushed && !IS_ALIGNED(size - flushed, 8)) in __copy_user_flushcache()
[all …]
/linux-6.6.21/tools/perf/trace/beauty/
Dbeauty.h30 size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, bool sho…
31 size_t strarray__scnprintf_suffix(struct strarray *sa, char *bf, size_t size, const char *intfmt, b…
32 size_t strarray__scnprintf_flags(struct strarray *sa, char *bf, size_t size, bool show_prefix, unsi…
34 bool strarray__strtoul(struct strarray *sa, char *bf, size_t size, u64 *ret);
35 bool strarray__strtoul_flags(struct strarray *sa, char *bf, size_t size, u64 *ret);
57 size_t strarrays__scnprintf(struct strarrays *sas, char *bf, size_t size, const char *intfmt, bool …
59 bool strarrays__strtoul(struct strarrays *sas, char *bf, size_t size, u64 *ret);
61 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size);
84 int size; member
111 int size; member
[all …]
/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_mm_test.c100 static bool assert_continuous(struct kunit *test, const struct drm_mm *mm, u64 size) in assert_continuous() argument
118 if (node->size != size) { in assert_continuous()
120 n, size, node->size); in assert_continuous()
130 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
140 KUNIT_FAIL(test, "lookup failed for node %llx + %llx\n", addr, size); in assert_continuous()
144 addr += size; in assert_continuous()
163 u64 size, u64 alignment, unsigned long color) in assert_node() argument
172 if (node->size != size) { in assert_node()
174 node->size, size); in assert_node()
196 const unsigned int size = 4096; in drm_test_mm_init() local
[all …]
/linux-6.6.21/drivers/usb/gadget/udc/cdns2/
Dcdns2-debug.h14 static inline const char *cdns2_decode_usb_irq(char *str, size_t size, in cdns2_decode_usb_irq() argument
19 ret = snprintf(str, size, "usbirq: 0x%02x - ", usb_irq); in cdns2_decode_usb_irq()
22 ret += snprintf(str + ret, size - ret, "SOF "); in cdns2_decode_usb_irq()
24 ret += snprintf(str + ret, size - ret, "SUTOK "); in cdns2_decode_usb_irq()
26 ret += snprintf(str + ret, size - ret, "SETUP "); in cdns2_decode_usb_irq()
28 ret += snprintf(str + ret, size - ret, "Suspend "); in cdns2_decode_usb_irq()
30 ret += snprintf(str + ret, size - ret, "Reset "); in cdns2_decode_usb_irq()
32 ret += snprintf(str + ret, size - ret, "HS "); in cdns2_decode_usb_irq()
34 ret += snprintf(str + ret, size - ret, "LPM "); in cdns2_decode_usb_irq()
36 ret += snprintf(str + ret, size - ret, ", EXT: 0x%02x - ", ext_irq); in cdns2_decode_usb_irq()
[all …]

12345678910>>...286