Home
last modified time | relevance | path

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

12345678910>>...246

/linux-5.3.11/include/linux/
H A Dslab.h352 if (!size) in kmalloc_index()
355 if (size <= KMALLOC_MIN_SIZE) in kmalloc_index()
358 if (KMALLOC_MIN_SIZE <= 32 && size > 64 && size <= 96) in kmalloc_index()
360 if (KMALLOC_MIN_SIZE <= 64 && size > 128 && size <= 192) in kmalloc_index()
422 return __kmalloc(size, flags); in __kmalloc_node()
442 int node, size_t size) in kmem_cache_alloc_node_trace() argument
450 gfp_t flags, size_t size) in kmem_cache_alloc_trace() argument
461 int node, size_t size) in kmem_cache_alloc_node_trace() argument
547 index = kmalloc_index(size); in kmalloc()
554 flags, size); in kmalloc()
[all …]
H A Dvmalloc.h42 unsigned long size; member
83 extern void *vmalloc(unsigned long size);
84 extern void *vzalloc(unsigned long size);
85 extern void *vmalloc_user(unsigned long size);
88 extern void *vmalloc_exec(unsigned long size);
89 extern void *vmalloc_32(unsigned long size);
101 return __vmalloc_node_flags(size, node, flags); in __vmalloc_node_flags_caller()
117 unsigned long size);
131 return area->size - PAGE_SIZE; in get_vm_area_size()
133 return area->size; in get_vm_area_size()
[all …]
/linux-5.3.11/mm/kasan/
H A Dgeneric.c63 unsigned long size) in memory_is_poisoned_2_4_8() argument
71 if (unlikely(((addr + size - 1) & KASAN_SHADOW_MASK) < size - 1)) in memory_is_poisoned_2_4_8()
89 size_t size) in bytes_is_nonzero() argument
91 while (size) { in bytes_is_nonzero()
95 size--; in bytes_is_nonzero()
131 size_t size) in memory_is_poisoned_n() argument
152 switch (size) { in memory_is_poisoned()
170 size_t size, bool write, in check_memory_region_inline() argument
173 if (unlikely(size == 0)) in check_memory_region_inline()
221 for (i = 0; i < size; i++) in __asan_register_globals()
[all …]
/linux-5.3.11/tools/perf/util/
H A Dtrace-event-read.c32 while (size) { in __do_read()
47 size -= ret; in __do_read()
61 size, r); in do_read()
76 while (size) { in skip()
77 r = size > BUFSIZ ? BUFSIZ : size; in skip()
79 size -= r; in skip()
105 int size = 0; in read_string() local
150 if (!size) in read_proc_kallsyms()
175 if (!size) in read_ftrace_printk()
241 skip(size); in read_header_files()
[all …]
/linux-5.3.11/drivers/mtd/tests/
H A Dmtd_nandecctest.c48 size_t size) in single_bit_error_data() argument
57 size_t size) in double_bit_error_data() argument
76 if (size == 256) { in random_ecc_bit()
89 size_t size) in single_bit_error_ecc() argument
98 size_t size) in double_bit_error_ecc() argument
102 offset[0] = random_ecc_bit(size); in double_bit_error_ecc()
104 offset[1] = random_ecc_bit(size); in double_bit_error_ecc()
238 error_data, size, false); in dump_data_ecc()
244 correct_data, size, false); in dump_data_ecc()
276 correct_data, size); in nand_ecc_test_run()
[all …]
/linux-5.3.11/lib/
H A Dtest_meminit.c46 WARN_ON(skip > size); in fill_with_garbage_skip()
47 size -= skip; in fill_with_garbage_skip()
52 size -= sizeof(*p); in fill_with_garbage_skip()
54 if (size) in fill_with_garbage_skip()
119 buf = vmalloc(size); in do_vmalloc_size()
123 buf = vmalloc(size); in do_vmalloc_size()
135 int i, size; in test_kvmalloc() local
138 size = 1 << i; in test_kvmalloc()
311 size = 8 << i; in test_kmemcache()
331 int i, size; in test_rcu_persistent() local
[all …]
H A Dtest_kasan.c30 size_t size = 123; in kmalloc_oob_right() local
39 ptr[size] = 'x'; in kmalloc_oob_right()
46 size_t size = 15; in kmalloc_oob_left() local
71 ptr[size] = 0; in kmalloc_node_oob_right()
91 ptr[size] = 0; in kmalloc_pagealloc_oob_right()
141 ptr[size] = 0; in kmalloc_large_oob_right()
205 size_t size = 8; in kmalloc_oob_memset_2() local
221 size_t size = 8; in kmalloc_oob_memset_4() local
238 size_t size = 8; in kmalloc_oob_memset_8() local
345 size, 0, in kmem_cache_oob()
[all …]
/linux-5.3.11/drivers/net/dsa/sja1105/
H A Dsja1105_static_config.c102 return size; in sja1105et_avb_params_entry_packing()
113 return size; in sja1105pqrs_avb_params_entry_packing()
142 return size; in sja1105et_general_params_entry_packing()
177 return size; in sja1105pqrs_general_params_entry_packing()
192 return size; in sja1105_l2_forwarding_params_entry_packing()
208 return size; in sja1105_l2_forwarding_entry_packing()
224 return size; in sja1105et_l2_lookup_params_entry_packing()
247 return size; in sja1105pqrs_l2_lookup_params_entry_packing()
261 return size; in sja1105et_l2_lookup_entry_packing()
289 return size; in sja1105pqrs_l2_lookup_entry_packing()
[all …]
/linux-5.3.11/drivers/misc/mic/scif/
H A Dscif_rb.c16 #define scif_rb_ring_cnt(head, tail, size) CIRC_CNT(head, tail, size) argument
17 #define scif_rb_ring_space(head, tail, size) CIRC_SPACE(head, tail, size) argument
31 rb->size = (1 << size); in scif_rb_init()
44 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb()
62 if (header + size >= rb->rb_base + rb->size) { in memcpy_fromrb()
115 (rb->current_write_offset + size) & (rb->size - 1); in scif_rb_write()
157 if (scif_rb_count(rb, size) >= size) in scif_rb_get()
179 (rb->current_read_offset + size) & (rb->size - 1); in scif_rb_get_next()
181 read_size = size; in scif_rb_get_next()
228 rb->size) < size) { in scif_rb_count()
[all …]
/linux-5.3.11/drivers/usb/dwc3/
H A Ddebug.h207 snprintf(str, size, "Reset [%s]", in dwc3_gadget_event_string()
243 snprintf(str, size, "UNKNOWN"); in dwc3_gadget_event_string()
250 size_t size) in dwc3_decode_get_status() argument
269 __u16 i, char *str, size_t size) in dwc3_decode_set_clear_feature() argument
404 size_t size) in dwc3_decode_get_configuration() argument
415 size_t size) in dwc3_decode_get_intf() argument
426 size_t size) in dwc3_decode_synch_frame() argument
451 size); in dwc3_decode_ctrl()
456 wIndex, str, size); in dwc3_decode_ctrl()
464 wIndex, wLength, str, size); in dwc3_decode_ctrl()
[all …]
/linux-5.3.11/lib/mpi/
H A Dmpih-mul.c73 prodp[size] = cy; in mul_n_basecase()
87 prodp[size] = cy; in mul_n_basecase()
98 if (size & 1) { in mul_n()
167 tspace + size); in mul_n()
171 cy = mpihelp_add_n(prodp + size, prodp + size, in mul_n()
178 size); in mul_n()
182 size); in mul_n()
203 mpihelp_add_1(prodp + size, prodp + size, size, 1); in mul_n()
247 if (size & 1) { in mpih_sqr_n()
293 cy = mpihelp_add_n(prodp + size, prodp + size, in mpih_sqr_n()
[all …]
/linux-5.3.11/drivers/gpu/drm/selftests/
H A Dtest-drm_mm.c237 tmp.size = size; in igt_init()
303 node->size = size; in set_node()
339 B(-size, size), in check_reserve_boundaries()
340 B(-size, -size), in check_reserve_boundaries()
341 B(-size, 2*size), in check_reserve_boundaries()
343 B(size, -size), in check_reserve_boundaries()
344 B(count*size, size), in check_reserve_boundaries()
345 B(count*size, -size), in check_reserve_boundaries()
405 nodes[n].size = size; in __igt_reserve()
1644 for (size = 1; size <= 64; size <<= 1) { in igt_topdown()
[all …]
/linux-5.3.11/arch/x86/lib/
H A Dusercopy_64.c44 : [size1] "r"(size & 7), "[size8]" (size / 8), "[dst]"(addr)); in __clear_user()
46 return size; in __clear_user()
120 if (size < 8) { in __copy_user_flushcache()
130 if (size > flushed && !IS_ALIGNED(size - flushed, 8)) in __copy_user_flushcache()
150 size -= len; in __memcpy_flushcache()
151 if (!size) in __memcpy_flushcache()
169 size -= 32; in __memcpy_flushcache()
173 while (size >= 8) { in __memcpy_flushcache()
180 size -= 8; in __memcpy_flushcache()
191 size -= 4; in __memcpy_flushcache()
[all …]
/linux-5.3.11/kernel/
H A Dstacktrace.c60 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
86 if (c->len >= c->size) in stack_trace_consume_entry()
119 .size = size, in stack_trace_save()
143 .size = size, in stack_trace_save_tsk()
170 .size = size, in stack_trace_save_regs()
197 .size = size, in stack_trace_save_tsk_reliable()
227 .size = size, in stack_trace_save_user()
[all …]
/linux-5.3.11/tools/testing/selftests/vm/
H A Dmap_fixed_noreplace.c33 unsigned long flags, addr, size, page_size; in main() local
43 size = 5 * page_size; in main()
64 size = 3 * page_size; in main()
84 size = 5 * page_size; in main()
105 size = page_size; in main()
125 size = 2 * page_size; in main()
145 size = 2 * page_size; in main()
165 size = page_size; in main()
185 size = page_size; in main()
196 size = 5 * page_size; in main()
[all …]
/linux-5.3.11/drivers/uwb/
H A Dest.c343 ssize_t size; in uwb_est_get_size() local
347 size = -ENOENT; in uwb_est_get_size()
354 size = -ENOENT; in uwb_est_get_size()
364 size = entry->size; in uwb_est_get_size()
383 size = entry->size; in uwb_est_get_size()
392 return size; in uwb_est_get_size()
418 ssize_t size; in uwb_est_find_size() local
425 size = -ENOSPC; in uwb_est_find_size()
436 if (size != -ENOENT) in uwb_est_find_size()
445 size = -ENOENT; in uwb_est_find_size()
[all …]
/linux-5.3.11/fs/hfs/
H A Dtrans.c55 size = 1; in hfs_mac2asc()
57 src += size; in hfs_mac2asc()
58 srclen -= size; in hfs_mac2asc()
66 if (size < 0) { in hfs_mac2asc()
70 size = 1; in hfs_mac2asc()
72 dst += size; in hfs_mac2asc()
73 dstlen -= size; in hfs_mac2asc()
116 size = 1; in hfs_asc2mac()
118 src += size; in hfs_asc2mac()
128 size = 1; in hfs_asc2mac()
[all …]
/linux-5.3.11/tools/perf/trace/beauty/
H A Dbeauty.h54 size_t pid__scnprintf_fd(struct trace *trace, pid_t pid, int fd, char *bf, size_t size);
76 int size; member
99 int size; member
117 size_t syscall_arg__scnprintf_fd(char *bf, size_t size, struct syscall_arg *arg);
120 size_t syscall_arg__scnprintf_hex(char *bf, size_t size, struct syscall_arg *arg);
123 size_t syscall_arg__scnprintf_ptr(char *bf, size_t size, struct syscall_arg *arg);
126 size_t syscall_arg__scnprintf_int(char *bf, size_t size, struct syscall_arg *arg);
129 size_t syscall_arg__scnprintf_long(char *bf, size_t size, struct syscall_arg *arg);
132 size_t syscall_arg__scnprintf_pid(char *bf, size_t size, struct syscall_arg *arg);
144 size_t syscall_arg__scnprintf_flock(char *bf, size_t size, struct syscall_arg *arg);
[all …]
H A Dioctl.c44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd()
55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd()
66 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); in ioctl__scnprintf_sndrv_pcm_cmd()
77 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_sndrv_ctl_cmd()
88 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_kvm_cmd()
99 return scnprintf(bf, size, "VHOST_%s", s->entries[nr]); in ioctl__scnprintf_vhost_virtio_cmd()
101 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAF, nr, dir); in ioctl__scnprintf_vhost_virtio_cmd()
112 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_perf_cmd()
123 return scnprintf(bf, size, "(%c, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_usbdevfs_cmd()
136 size_t (*scnprintf)(int nr, int dir, char *bf, size_t size); in ioctl__scnprintf_cmd()
[all …]
/linux-5.3.11/arch/parisc/kernel/
H A Dpci-dma.c85 end = vaddr + size; in map_pte_uncached()
112 end = vaddr + size; in map_pmd_uncached()
150 unsigned long size) in unmap_uncached_pte() argument
165 end = vaddr + size; in unmap_uncached_pte()
186 unsigned long size) in unmap_uncached_pmd() argument
201 end = vaddr + size; in unmap_uncached_pmd()
237 u##size *res_ptr = (u##size *)&(pcxl_res_map[pcxl_res_hint & ~((size >> 3) - 1)]); \
238 u##size *res_end = (u##size *)&pcxl_res_map[pcxl_res_size]; \
255 size, pages_needed, mask); in pcxl_alloc_range()
293 …u##size *res_ptr = (u##size *)&(pcxl_res_map[(idx) + (((size >> 3) - 1) & (~((size >> 3) - 1)))]);…
[all …]
/linux-5.3.11/sound/pcmcia/pdaudiocf/
H A Dpdaudiocf_irq.c43 while (size-- > 0) { in pdacf_transfer_mono16()
53 while (size-- > 0) { in pdacf_transfer_mono32()
261 size = wdp - rdp; in pdacf_threaded_irq()
262 if (size < 0) in pdacf_threaded_irq()
263 size += 0x10000; in pdacf_threaded_irq()
264 if (size == 0) in pdacf_threaded_irq()
265 size = 0x10000; in pdacf_threaded_irq()
267 if (size > 64) in pdacf_threaded_irq()
268 size -= 32; in pdacf_threaded_irq()
295 cont = size; in pdacf_threaded_irq()
[all …]
/linux-5.3.11/fs/fuse/
H A Dxattr.c26 inarg.size = size; in fuse_setxattr()
35 args.in.args[2].size = size; in fuse_setxattr()
50 size_t size) in fuse_getxattr() argument
62 inarg.size = size; in fuse_getxattr()
72 if (size) { in fuse_getxattr()
74 args.out.args[0].size = size; in fuse_getxattr()
81 if (!ret && !size) in fuse_getxattr()
94 while (size) { in fuse_verify_xattr_list()
123 inarg.size = size; in fuse_listxattr()
131 if (size) { in fuse_listxattr()
[all …]
/linux-5.3.11/sound/pci/ctxfi/
H A Dctvmem.c35 size = CT_PAGE_ALIGN(size); in get_vm_block()
36 if (size > vm->size) { in get_vm_block()
45 if (entry->size >= size) in get_vm_block()
51 if (entry->size == size) { in get_vm_block()
54 vm->size -= size; in get_vm_block()
64 block->size = size; in get_vm_block()
67 entry->size -= size; in get_vm_block()
68 vm->size -= size; in get_vm_block()
84 vm->size += block->size; in put_vm_block()
148 block->size = size; in ct_vm_map()
[all …]
/linux-5.3.11/arch/openrisc/include/asm/
H A Duaccess.h51 #define __range_ok(addr, size) (size <= get_fs() && addr <= (get_fs()-size)) argument
56 #define access_ok(addr, size) \ argument
93 #define __put_user_nocheck(x, ptr, size) \ argument
104 if (access_ok(__pu_addr, size)) \
112 switch (size) { \
177 if (access_ok(__gu_addr, size)) \
188 switch (size) { \
254 clear_user(void *addr, unsigned long size) in clear_user() argument
256 if (likely(access_ok(addr, size))) in clear_user()
257 size = __clear_user(addr, size); in clear_user()
[all …]
/linux-5.3.11/arch/powerpc/lib/
H A Drheap.c162 size = blkn->size; in attach_free_block()
215 before->size += size; in attach_free_block()
222 after->size += size; in attach_free_block()
227 before->size += size + after->size; in attach_free_block()
360 blk->size = size; in rh_attach_region()
420 blk->size -= size; in rh_detach_region()
474 if (blk->size == size) { in rh_alloc_align()
493 newblk->size = size; in rh_alloc_align()
582 blk->size -= size; in rh_alloc_fixed()
634 size = blk->size; in rh_free()
[all …]

Completed in 1075 milliseconds

12345678910>>...246