Home
last modified time | relevance | path

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

12

/Linux-v6.6/mm/kasan/
Dgeneric.c391 if (*size > KMALLOC_MAX_SIZE) { in kasan_cache_create()
415 if (*size > KMALLOC_MAX_SIZE) { in kasan_cache_create()
424 if (optimal_size > KMALLOC_MAX_SIZE) in kasan_cache_create()
425 optimal_size = KMALLOC_MAX_SIZE; in kasan_cache_create()
/Linux-v6.6/lib/
Dargv_split.c67 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
/Linux-v6.6/include/linux/
Dbpf_local_storage.h104 (KMALLOC_MAX_SIZE - MAX_BPF_STACK - \
Dslab.h325 #define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_MAX) macro
Dptr_ring.h469 if (size > KMALLOC_MAX_SIZE / sizeof(void *)) in __ptr_ring_init_queue_alloc()
/Linux-v6.6/tools/virtio/ringtest/
Dptr_ring.c20 #define KMALLOC_MAX_SIZE SIZE_MAX macro
/Linux-v6.6/net/qrtr/
Dtun.c96 if (len > KMALLOC_MAX_SIZE) in qrtr_tun_write_iter()
/Linux-v6.6/block/partitions/
Defi.c424 if (pt_size > KMALLOC_MAX_SIZE) { in is_gpt_valid()
426 (unsigned long long)pt_size, KMALLOC_MAX_SIZE); in is_gpt_valid()
/Linux-v6.6/kernel/bpf/
Dqueue_stack_maps.c55 if (attr->value_size > KMALLOC_MAX_SIZE) in queue_stack_map_alloc_check()
Dlpm_trie.c532 #define LPM_VAL_SIZE_MAX (KMALLOC_MAX_SIZE - LPM_DATA_SIZE_MAX - \
Dhashtab.c450 if ((u64)attr->key_size + attr->value_size >= KMALLOC_MAX_SIZE - in htab_map_alloc_check()
/Linux-v6.6/drivers/gpu/drm/i915/selftests/
Di915_gem_gtt.c267 if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32)) in lowlevel_hole()
268 hole_size = KMALLOC_MAX_SIZE / sizeof(u32); in lowlevel_hole()
816 if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32)) in drunk_hole()
817 hole_size = KMALLOC_MAX_SIZE / sizeof(u32); in drunk_hole()
/Linux-v6.6/drivers/md/
Ddm-switch.c256 …{1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number o… in switch_ctr()
Ddm-bufio.c1151 if (c->block_size <= KMALLOC_MAX_SIZE && in alloc_buffer_data()
2457 if (block_size <= KMALLOC_MAX_SIZE && in dm_bufio_client_create()
/Linux-v6.6/net/rds/
Dmessage.c288 if (extra_len > KMALLOC_MAX_SIZE - sizeof(struct rds_message)) in rds_message_alloc()
/Linux-v6.6/mm/
Dslab_common.c94 if (!name || in_interrupt() || size > KMALLOC_MAX_SIZE) { in kmem_cache_sanity_check()
757 if (size && size <= KMALLOC_MAX_SIZE) in kmalloc_size_roundup()
/Linux-v6.6/arch/x86/kernel/cpu/resctrl/
Dpseudo_lock.c374 if (plr->size > KMALLOC_MAX_SIZE) { in pseudo_lock_region_alloc()
/Linux-v6.6/kernel/
Drelay.c151 if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t)) in relay_create_buf()
/Linux-v6.6/net/ipv4/
Dinet_diag.c232 #define MAX_DUMP_ALLOC_SIZE (KMALLOC_MAX_SIZE - SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
/Linux-v6.6/fs/proc/
Dproc_sysctl.c581 if (count >= KMALLOC_MAX_SIZE) in proc_sys_call_handler()
/Linux-v6.6/drivers/tty/vt/
Dvt.c1093 vc->vc_screenbuf_size > KMALLOC_MAX_SIZE || !vc->vc_screenbuf_size) in vc_allocate()
1191 if (new_screen_size > KMALLOC_MAX_SIZE || !new_screen_size) in vc_do_resize()
/Linux-v6.6/drivers/infiniband/core/
Ducma.c1390 if (unlikely(cmd.optlen > KMALLOC_MAX_SIZE)) in ucma_set_option()
/Linux-v6.6/fs/gfs2/
Ddir.c1325 if (size < KMALLOC_MAX_SIZE) in gfs2_alloc_sort_buffer()
/Linux-v6.6/drivers/mtd/
Dmtdcore.c2438 *size = min_t(size_t, *size, KMALLOC_MAX_SIZE); in mtd_kmalloc_up_to()
/Linux-v6.6/drivers/misc/vmw_vmci/
Dvmci_queue_pair.c542 if (queue_size + queue_page_size > KMALLOC_MAX_SIZE) in qp_host_alloc_queue()

12