Home
last modified time | relevance | path

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

12345678910>>...257

/kernel/linux/linux-5.10/include/linux/
Dslab.h147 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
151 unsigned int size, unsigned int align,
346 static __always_inline unsigned int kmalloc_index(size_t size) in kmalloc_index() argument
348 if (!size) in kmalloc_index()
351 if (size <= KMALLOC_MIN_SIZE) in kmalloc_index()
354 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in kmalloc_index()
356 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in kmalloc_index()
358 if (size <= 8) return 3; in kmalloc_index()
359 if (size <= 16) return 4; in kmalloc_index()
360 if (size <= 32) return 5; in kmalloc_index()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2401_system/hive/
Dia_css_isp_configs.c36 unsigned int size = 0; in ia_css_configure_iterator() local
39 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
42 if (size) { in ia_css_configure_iterator()
45 config_dmem, size); in ia_css_configure_iterator()
64 unsigned int size = 0; in ia_css_configure_copy_output() local
67 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
70 if (size) { in ia_css_configure_copy_output()
73 config_dmem, size); in ia_css_configure_copy_output()
92 unsigned int size = 0; in ia_css_configure_crop() local
95 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
Dia_css_isp_states.c33 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.aa.size; in ia_css_initialize_aa_state() local
36 if (size) in ia_css_initialize_aa_state()
38 0, size); in ia_css_initialize_aa_state()
54 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() local
58 if (size) { in ia_css_initialize_cnr_state()
61 size); in ia_css_initialize_cnr_state()
78 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size; in ia_css_initialize_cnr2_state() local
82 if (size) { in ia_css_initialize_cnr2_state()
85 size); in ia_css_initialize_cnr2_state()
102 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.dp.size; in ia_css_initialize_dp_state() local
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2400_system/hive/
Dia_css_isp_configs.c36 unsigned int size = 0; in ia_css_configure_iterator() local
39 size = binary->info->mem_offsets.offsets.config->dmem.iterator.size; in ia_css_configure_iterator()
42 if (size) { in ia_css_configure_iterator()
45 config_dmem, size); in ia_css_configure_iterator()
64 unsigned int size = 0; in ia_css_configure_copy_output() local
67 size = binary->info->mem_offsets.offsets.config->dmem.copy_output.size; in ia_css_configure_copy_output()
70 if (size) { in ia_css_configure_copy_output()
73 config_dmem, size); in ia_css_configure_copy_output()
92 unsigned int size = 0; in ia_css_configure_crop() local
95 size = binary->info->mem_offsets.offsets.config->dmem.crop.size; in ia_css_configure_crop()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dtrace-event-read.c26 static int __do_read(int fd, void *buf, int size) in __do_read() argument
28 int rsize = size; in __do_read()
30 while (size) { in __do_read()
31 int ret = read(fd, buf, size); in __do_read()
45 size -= ret; in __do_read()
52 static int do_read(void *data, int size) in do_read() argument
56 r = __do_read(input_fd, data, size); in do_read()
59 size, r); in do_read()
69 static void skip(int size) in skip() argument
74 while (size) { in skip()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dmtd_nandecctest.c48 size_t size) in single_bit_error_data() argument
50 unsigned int offset = prandom_u32() % (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] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
63 offset[1] = prandom_u32() % (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 …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
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 …]
/kernel/linux/linux-5.10/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.c175 const int size = SJA1105_SIZE_DYN_CMD; in sja1105et_vl_lookup_cmd_packing() local
177 sja1105_packing(buf, &cmd->valid, 31, 31, size, op); in sja1105et_vl_lookup_cmd_packing()
178 sja1105_packing(buf, &cmd->errors, 30, 30, size, op); in sja1105et_vl_lookup_cmd_packing()
179 sja1105_packing(buf, &cmd->rdwrset, 29, 29, size, op); in sja1105et_vl_lookup_cmd_packing()
180 sja1105_packing(buf, &cmd->index, 9, 0, size, op); in sja1105et_vl_lookup_cmd_packing()
189 const int size = SJA1105_SIZE_DYN_CMD; in sja1105pqrs_vl_lookup_cmd_packing() local
191 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
192 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
193 sja1105_packing(p, &cmd->rdwrset, 29, 29, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
194 sja1105_packing(p, &cmd->index, 9, 0, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
[all …]
/kernel/linux/linux-5.10/mm/kasan/
Dgeneric.c62 unsigned long size) in memory_is_poisoned_2_4_8() argument
70 if (unlikely(((addr + size - 1) & KASAN_SHADOW_MASK) < size - 1)) in memory_is_poisoned_2_4_8()
71 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
73 return memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
88 size_t size) in bytes_is_nonzero() argument
90 while (size) { in bytes_is_nonzero()
94 size--; in bytes_is_nonzero()
130 size_t size) in memory_is_poisoned_n() argument
135 kasan_mem_to_shadow((void *)addr + size - 1) + 1); in memory_is_poisoned_n()
138 unsigned long last_byte = addr + size - 1; in memory_is_poisoned_n()
[all …]
/kernel/linux/linux-5.10/arch/x86/lib/
Dusercopy_64.c17 unsigned long __clear_user(void __user *addr, unsigned long size) in __clear_user() argument
44 : [size8] "=&c"(size), [dst] "=&D" (__d0) in __clear_user()
45 : [size1] "r"(size & 7), "[size8]" (size / 8), "[dst]"(addr)); in __clear_user()
47 return size; in __clear_user()
69 static void clean_cache_range(void *addr, size_t size) in clean_cache_range() argument
73 void *vend = addr + size; in clean_cache_range()
81 void arch_wb_cache_pmem(void *addr, size_t size) in arch_wb_cache_pmem() argument
83 clean_cache_range(addr, size); in arch_wb_cache_pmem()
87 long __copy_user_flushcache(void *dst, const void __user *src, unsigned size) in __copy_user_flushcache() argument
90 long rc = __copy_user_nocache(dst, src, size, 0); in __copy_user_flushcache()
[all …]
/kernel/linux/linux-5.10/lib/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dmap_fixed_noreplace.c28 static unsigned long find_base_addr(unsigned long size) in find_base_addr() argument
34 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr()
40 if (munmap(addr, size) != 0) { in find_base_addr()
50 unsigned long flags, addr, size, page_size; in main() local
56 size = 5 * page_size; in main()
57 base_addr = find_base_addr(size); in main()
68 size = 5 * page_size; in main()
69 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
71 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
89 size = 3 * page_size; in main()
[all …]
/kernel/liteos_a/lib/libscrew/src/
Dlos_cir_buf.c38 UINT32 size; in LOS_CirBufUsedSize() local
42 size = cirbufCB->size - cirbufCB->remain; in LOS_CirBufUsedSize()
45 return size; in LOS_CirBufUsedSize()
55 STATIC UINT32 OsCirBufWriteLinear(CirBuf *cirbufCB, const CHAR *buf, UINT32 size) in OsCirBufWriteLinear() argument
60 cpSize = (cirbufCB->remain < size) ? cirbufCB->remain : size; in OsCirBufWriteLinear()
77 STATIC UINT32 OsCirBufWriteLoop(CirBuf *cirbufCB, const CHAR *buf, UINT32 size) in OsCirBufWriteLoop() argument
82 right = cirbufCB->size - cirbufCB->endIdx; in OsCirBufWriteLoop()
83 cpSize = (right < size) ? right : size; in OsCirBufWriteLoop()
92 if (cirbufCB->endIdx == cirbufCB->size) { in OsCirBufWriteLoop()
96 if (cpSize == size) { in OsCirBufWriteLoop()
[all …]
/kernel/linux/linux-5.10/drivers/usb/common/
Ddebug.c14 __u16 wLength, char *str, size_t size) in usb_decode_get_status() argument
18 snprintf(str, size, "Get Device Status(Length = %d)", wLength); in usb_decode_get_status()
21 snprintf(str, size, in usb_decode_get_status()
26 snprintf(str, size, "Get Endpoint Status(ep%d%s)", in usb_decode_get_status()
73 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument
77 snprintf(str, size, "%s Device Feature(%s%s)", in usb_decode_set_clear_feature()
84 snprintf(str, size, "%s Interface Feature(%s)", in usb_decode_set_clear_feature()
90 snprintf(str, size, "%s Endpoint Feature(%s ep%d%s)", in usb_decode_set_clear_feature()
99 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument
101 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_fru_eeprom.c67 int ret, size; in amdgpu_fru_read_eeprom() local
86 size = buff[2] - I2C_PRODUCT_INFO_OFFSET; in amdgpu_fru_read_eeprom()
90 msg.len = I2C_PRODUCT_INFO_ADDR_SIZE + size; in amdgpu_fru_read_eeprom()
98 return size; in amdgpu_fru_read_eeprom()
104 int addrptr, size; in amdgpu_fru_get_product_info() local
129 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info()
130 if (size < 1) { in amdgpu_fru_get_product_info()
131 DRM_ERROR("Failed to read FRU Manufacturer, ret:%d", size); in amdgpu_fru_get_product_info()
138 addrptr += size + 1; in amdgpu_fru_get_product_info()
139 size = amdgpu_fru_read_eeprom(adev, addrptr, buff); in amdgpu_fru_get_product_info()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/
Dtest-drm_mm.c107 static bool assert_continuous(const struct drm_mm *mm, u64 size) in assert_continuous() argument
125 if (node->size != size) { in assert_continuous()
127 n, size, node->size); in assert_continuous()
137 drm_mm_for_each_node_in_range(check, mm, addr, addr + size) { in assert_continuous()
147 addr, size); in assert_continuous()
151 addr += size; in assert_continuous()
170 u64 size, u64 alignment, unsigned long color) in assert_node() argument
179 if (node->size != size) { in assert_node()
181 node->size, size); in assert_node()
206 const unsigned int size = 4096; in igt_init() local
[all …]
/kernel/linux/linux-5.10/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);
83 int size; member
110 int size; member
[all …]
/kernel/linux/linux-5.10/kernel/
Dstacktrace.c46 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries, in stack_trace_snprint() argument
54 for (i = 0; i < nr_entries && size; i++) { in stack_trace_snprint()
55 generated = snprintf(buf, size, "%*c%pS\n", 1 + spaces, ' ', in stack_trace_snprint()
59 if (generated >= size) { in stack_trace_snprint()
60 buf += size; in stack_trace_snprint()
61 size = 0; in stack_trace_snprint()
64 size -= generated; in stack_trace_snprint()
76 unsigned int size; member
85 if (c->len >= c->size) in stack_trace_consume_entry()
93 return c->len < c->size; in stack_trace_consume_entry()
[all …]
/kernel/liteos_m/kal/posix/src/
Dmalloc.c38 void *__wrap__calloc_r(struct _reent *reent, size_t nitems, size_t size) in __wrap__calloc_r() argument
40 void *calloc(size_t nitems, size_t size) in __wrap__calloc_r()
49 if ((nitems == 0) || (size == 0) || (nitems > (UINT32_MAX / size))) { in __wrap__calloc_r()
53 real_size = (size_t)(nitems * size); in __wrap__calloc_r()
87 void *__wrap__malloc_r(struct _reent *reent, size_t size) in __wrap__malloc_r() argument
89 void *malloc(size_t size) in __wrap__malloc_r()
95 if (size == 0) { in __wrap__malloc_r()
99 return LOS_MemAlloc(OS_SYS_MEM_ADDR, size); in __wrap__malloc_r()
102 void *zalloc(size_t size) in zalloc() argument
106 if (size == 0) { in zalloc()
[all …]
/kernel/liteos_m/testsuites/sample/kernel/mem/
DIt_los_mem_036.c43 UINT32 size; in TestCase() local
53 size = 1 << sizeadd; in TestCase()
54 for (p0 = LOS_MemAlloc(g_memPool, size), f0 = p0; p0 != NULL; i++) { in TestCase()
58 size = 1 << sizeadd; in TestCase()
59 p0 = LOS_MemAlloc(g_memPool, size); in TestCase()
62 if (MemGetFreeSize(g_memPool) >= (size + LOS_DLNK_NODE_HEAD_SIZE)) { in TestCase()
67 size = 1 << sizeadd; in TestCase()
70 f0 = (void *)((char *)f0 + ((UINT32)size + LOS_DLNK_NODE_HEAD_SIZE)); in TestCase()
76 size = 1 << sizeadd; in TestCase()
87 size = 1 << sizeadd; in TestCase()
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/amazon/
Dalpine-v3.dtsi17 #size-cells = <2>;
21 #size-cells = <0>;
28 d-cache-size = <0x8000>;
29 d-cache-line-size = <64>;
31 i-cache-size = <0xc000>;
32 i-cache-line-size = <64>;
42 d-cache-size = <0x8000>;
43 d-cache-line-size = <64>;
45 i-cache-size = <0xc000>;
46 i-cache-line-size = <64>;
[all …]

12345678910>>...257