Home
last modified time | relevance | path

Searched refs:KMALLOC_MAX_SIZE (Results 1 – 25 of 29) sorted by relevance

12

/OK3568_Linux_fs/kernel/mm/kasan/
H A Dcommon.c167 if (*size > KMALLOC_MAX_SIZE) { in __kasan_cache_create()
197 if (*size > KMALLOC_MAX_SIZE) { in __kasan_cache_create()
206 if (optimal_size > KMALLOC_MAX_SIZE) in __kasan_cache_create()
207 optimal_size = KMALLOC_MAX_SIZE; in __kasan_cache_create()
/OK3568_Linux_fs/kernel/lib/
H A Dargv_split.c67 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbpf_local_storage.h95 (KMALLOC_MAX_SIZE - MAX_BPF_STACK - \
H A Dslab.h289 #define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_MAX) macro
H A Dptr_ring.h469 if (size > KMALLOC_MAX_SIZE / sizeof(void *)) in __ptr_ring_init_queue_alloc()
/OK3568_Linux_fs/kernel/tools/virtio/ringtest/
H A Dptr_ring.c20 #define KMALLOC_MAX_SIZE SIZE_MAX macro
/OK3568_Linux_fs/kernel/net/qrtr/
H A Dtun.c96 if (len > KMALLOC_MAX_SIZE) in qrtr_tun_write_iter()
/OK3568_Linux_fs/kernel/block/partitions/
H A Defi.c426 if (pt_size > KMALLOC_MAX_SIZE) { in is_gpt_valid()
428 (unsigned long long)pt_size, KMALLOC_MAX_SIZE); in is_gpt_valid()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dqueue_stack_maps.c58 if (attr->value_size > KMALLOC_MAX_SIZE) in queue_stack_map_alloc_check()
H A Dlpm_trie.c529 #define LPM_VAL_SIZE_MAX (KMALLOC_MAX_SIZE - LPM_DATA_SIZE_MAX - \
H A Darraymap.c72 if (attr->value_size > KMALLOC_MAX_SIZE) in array_map_alloc_check()
H A Dhashtab.c399 if (attr->value_size >= KMALLOC_MAX_SIZE - in htab_map_alloc_check()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/selftests/
H A Di915_gem_gtt.c241 if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32)) in lowlevel_hole()
242 hole_size = KMALLOC_MAX_SIZE / sizeof(u32); in lowlevel_hole()
749 if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32)) in drunk_hole()
750 hole_size = KMALLOC_MAX_SIZE / sizeof(u32); in drunk_hole()
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-switch.c255 …{1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number o… in switch_ctr()
H A Ddm-bufio.c409 if (c->block_size <= KMALLOC_MAX_SIZE && in alloc_buffer_data()
1771 if (block_size <= KMALLOC_MAX_SIZE && in dm_bufio_client_create()
/OK3568_Linux_fs/kernel/net/rds/
H A Dmessage.c288 if (extra_len > KMALLOC_MAX_SIZE - sizeof(struct rds_message)) in rds_message_alloc()
/OK3568_Linux_fs/kernel/mm/
H A Dslab_common.c93 if (!name || in_interrupt() || size > KMALLOC_MAX_SIZE) { in kmem_cache_sanity_check()
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/resctrl/
H A Dpseudo_lock.c356 if (plr->size > KMALLOC_MAX_SIZE) { in pseudo_lock_region_alloc()
/OK3568_Linux_fs/kernel/kernel/
H A Drelay.c166 if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t *)) in relay_create_buf()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dinet_diag.c232 #define MAX_DUMP_ALLOC_SIZE (KMALLOC_MAX_SIZE - SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
/OK3568_Linux_fs/u-boot/drivers/mtd/
H A Dmtdcore.c1728 *size = min_t(size_t, *size, KMALLOC_MAX_SIZE); in mtd_kmalloc_up_to()
/OK3568_Linux_fs/kernel/fs/proc/
H A Dproc_sysctl.c572 if (count >= KMALLOC_MAX_SIZE) in proc_sys_call_handler()
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dmtdcore.c2135 *size = min_t(size_t, *size, KMALLOC_MAX_SIZE); in mtd_kmalloc_up_to()
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Ducma.c1390 if (unlikely(cmd.optlen > KMALLOC_MAX_SIZE)) in ucma_set_option()
/OK3568_Linux_fs/kernel/fs/gfs2/
H A Ddir.c1327 if (size < KMALLOC_MAX_SIZE) in gfs2_alloc_sort_buffer()

12