Home
last modified time | relevance | path

Searched defs:size (Results 1 – 25 of 68) sorted by relevance

123

/lib/
Dtest_kasan.c33 size_t size = 123; in kmalloc_oob_right() local
49 size_t size = 15; in kmalloc_oob_left() local
65 size_t size = 4096; in kmalloc_node_oob_right() local
82 size_t size = KMALLOC_MAX_CACHE_SIZE + 10; in kmalloc_pagealloc_oob_right() local
101 size_t size = KMALLOC_MAX_CACHE_SIZE + 10; in kmalloc_pagealloc_uaf() local
117 size_t size = KMALLOC_MAX_CACHE_SIZE + 10; in kmalloc_pagealloc_invalid_free() local
133 size_t size = KMALLOC_MAX_CACHE_SIZE - 256; in kmalloc_large_oob_right() local
208 size_t size = 8; in kmalloc_oob_memset_2() local
224 size_t size = 8; in kmalloc_oob_memset_4() local
241 size_t size = 8; in kmalloc_oob_memset_8() local
[all …]
Dfind_bit.c67 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, in find_next_bit()
76 unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, in find_next_zero_bit()
86 const unsigned long *addr2, unsigned long size, in find_next_and_bit()
98 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) in find_first_bit()
116 unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size) in find_first_zero_bit()
131 unsigned long find_last_bit(const unsigned long *addr, unsigned long size) in find_last_bit()
200 long size, unsigned long offset) in find_next_zero_bit_le()
209 long size, unsigned long offset) in find_next_bit_le()
Dtest_meminit.c29 static int __init count_nonzero_bytes(void *ptr, size_t size) in count_nonzero_bytes()
41 static void __init fill_with_garbage_skip(void *ptr, int size, size_t skip) in fill_with_garbage_skip()
58 static void __init fill_with_garbage(void *ptr, size_t size) in fill_with_garbage()
67 size_t size = PAGE_SIZE << order; in do_alloc_pages_order() local
98 static int __init do_kmalloc_size(size_t size, int *total_failures) in do_kmalloc_size()
115 static int __init do_vmalloc_size(size_t size, int *total_failures) in do_vmalloc_size()
135 int i, size; in test_kvmalloc() local
166 static bool __init check_buf(void *buf, int size, bool want_ctor, in check_buf()
192 static int __init do_kmem_cache_size(size_t size, bool want_ctor, in do_kmem_cache_size()
253 static int __init do_kmem_cache_rcu_persistent(int size, int *total_failures) in do_kmem_cache_rcu_persistent()
[all …]
Ddecompress_unxz.c157 #define kmalloc(size, flags) malloc(size) argument
159 #define vmalloc(size) malloc(size) argument
177 static bool memeq(const void *a, const void *b, size_t size) in memeq()
192 static void memzero(void *buf, size_t size) in memzero()
204 void *memmove(void *dest, const void *src, size_t size) in memmove()
252 long (*fill)(void *dest, unsigned long size), in unxz()
Dsort.c33 static bool is_aligned(const void *base, size_t size, unsigned char align) in is_aligned()
135 static void do_swap(void *a, void *b, size_t size, swap_func_t swap_func) in do_swap()
178 static size_t parent(size_t i, unsigned int lsbit, size_t size) in parent()
204 void sort_r(void *base, size_t num, size_t size, in sort_r()
206 void (*swap_func)(void *, void *, int size), in sort_r()
271 void sort(void *base, size_t num, size_t size, in sort()
273 void (*swap_func)(void *, void *, int size)) in sort()
Dgenalloc.c87 const int size = start + nr; in bitmap_set_ll() local
122 const int size = start + nr; in bitmap_clear_ll() local
183 size_t size, int nid, void *owner) in gen_pool_add_owner()
275 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, in gen_pool_alloc_algo_owner()
339 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_alloc()
360 void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_algo()
393 void *gen_pool_dma_alloc_align(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_align()
417 void *gen_pool_dma_zalloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_zalloc()
438 void *gen_pool_dma_zalloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_zalloc_algo()
464 void *gen_pool_dma_zalloc_align(struct gen_pool *pool, size_t size, in gen_pool_dma_zalloc_align()
[all …]
Dtest_user_copy.c42 static bool is_zeroed(void *from, size_t size) in is_zeroed()
47 static int test_check_nonzero_user(char *kmem, char __user *umem, size_t size) in test_check_nonzero_user()
106 size_t size) in test_copy_struct_from_user()
222 #define test_legit(size, check) \ in test_user_copy_init() argument
287 #define test_illegal(size, check) \ in test_user_copy_init() argument
Dtest_static_keys.c55 static void invert_keys(struct test_key *keys, int size) in invert_keys()
68 static int verify_keys(struct test_key *keys, int size, bool invert) in verify_keys()
112 int size; in test_key_func() local
Ddevres.c26 resource_size_t size, in __devm_ioremap()
65 resource_size_t size) in devm_ioremap()
81 resource_size_t size) in devm_ioremap_nocache()
96 resource_size_t size) in devm_ioremap_wc()
137 resource_size_t size; in devm_ioremap_resource() local
188 resource_size_t *size) in devm_of_iomap()
Drhashtable.c66 static void nested_table_free(union nested_table *ntbl, unsigned int size) in nested_table_free()
87 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free() local
144 size_t size; in nested_bucket_table_alloc() local
171 size_t size; in bucket_table_alloc() local
344 unsigned int size) in rhashtable_rehash_alloc()
382 unsigned int size = 0; in rhashtable_shrink() local
435 unsigned int size; in rhashtable_insert_rehash() local
1012 size_t size; in rhashtable_init() local
1172 unsigned int size = tbl->size >> tbl->nest; in __rht_bucket_nested() local
1213 unsigned int size = tbl->size >> tbl->nest; in rht_bucket_nested_insert() local
Dstackdepot.c62 u32 size; /* Number of frames in the stack */ member
99 static struct stack_record *depot_alloc_stack(unsigned long *entries, int size, in depot_alloc_stack()
150 static inline u32 hash_stack(unsigned long *entries, unsigned int size) in hash_stack()
174 unsigned long *entries, int size, in find_stack()
Dkfifo.c24 int __kfifo_alloc(struct __kfifo *fifo, unsigned int size, in __kfifo_alloc()
67 unsigned int size, size_t esize) in __kfifo_init()
92 unsigned int size = fifo->mask + 1; in kfifo_copy_in() local
131 unsigned int size = fifo->mask + 1; in kfifo_copy_out() local
179 unsigned int size = fifo->mask + 1; in kfifo_copy_from_user() local
241 unsigned int size = fifo->mask + 1; in kfifo_copy_to_user() local
337 unsigned int size = fifo->mask + 1; in setup_sgl() local
Diommu-helper.c9 unsigned long iommu_area_alloc(unsigned long *map, unsigned long size, in iommu_area_alloc()
Dbsearch.c31 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch()
Dsg_pool.c11 size_t size; member
147 int size = sgp->size * sizeof(struct scatterlist); in sg_pool_init() local
/lib/zstd/
Dzstd_common.c28 #define stack_push(stack, size) \ argument
51 void *ZSTD_stackAllocAll(void *opaque, size_t *size) in ZSTD_stackAllocAll()
58 void *ZSTD_stackAlloc(void *opaque, size_t size) in ZSTD_stackAlloc()
69 void *ZSTD_malloc(size_t size, ZSTD_customMem customMem) { return customMem.customAlloc(customMem.o… in ZSTD_malloc()
Dhuf.h78 #define HUF_BLOCKBOUND(size) (size + (size >> 8) + 8) /* only true if incompressible pre-filtere… argument
79 #define HUF_COMPRESSBOUND(size) (HUF_CTABLEBOUND + HUF_BLOCKBOUND(size)) /* Macro version, useful f… argument
/lib/mpi/
Dmpih-mul.c21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument
29 #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ argument
55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase()
96 mpi_size_t size, mpi_ptr_t tspace) in mul_n()
207 void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size) in mpih_sqr_n_basecase()
245 mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace) in mpih_sqr_n()
Dmpih-cmp.c25 int mpihelp_cmp(mpi_ptr_t op1_ptr, mpi_ptr_t op2_ptr, mpi_size_t size) in mpihelp_cmp()
Dgeneric_mpih-sub1.c21 mpi_ptr_t s2_ptr, mpi_size_t size) in mpihelp_sub_n()
Dgeneric_mpih-add1.c22 mpi_ptr_t s2_ptr, mpi_size_t size) in mpihelp_add_n()
/lib/xz/
Dxz_dec_bcj.c60 size_t size; member
88 static size_t bcj_x86(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_x86()
160 static size_t bcj_powerpc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_powerpc()
181 static size_t bcj_ia64(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_ia64()
265 static size_t bcj_arm(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_arm()
288 static size_t bcj_armthumb(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_armthumb()
316 static size_t bcj_sparc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_sparc()
346 uint8_t *buf, size_t *pos, size_t size) in bcj_apply()
Dxz_private.h40 # define memeq(a, b, size) (memcmp(a, b, size) == 0) argument
41 # define memzero(buf, size) memset(buf, 0, size) argument
Dxz_crc32.c49 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc) in xz_crc32()
/lib/livepatch/
Dtest_klp_shadow_vars.c71 static void *shadow_alloc(void *obj, unsigned long id, size_t size, in shadow_alloc()
83 static void *shadow_get_or_alloc(void *obj, unsigned long id, size_t size, in shadow_get_or_alloc()
131 size_t size = sizeof(int *); in test_klp_shadow_vars_init() local

123