| /linux/lib/ |
| H A D | cpumask.c | 30 *mask = kmalloc_node(cpumask_size(), flags, node); in alloc_cpumask_var_node() 54 *mask = memblock_alloc_or_panic(cpumask_size(), SMP_CACHE_BYTES); in alloc_bootmem_cpumask_var() 75 memblock_free(mask, cpumask_size()); in free_bootmem_cpumask_var()
|
| /linux/kernel/ |
| H A D | compat.c | 115 if (len < cpumask_size()) in compat_get_user_cpu_mask() 116 memset(new_mask, 0, cpumask_size()); in compat_get_user_cpu_mask() 117 else if (len > cpumask_size()) in compat_get_user_cpu_mask() 118 len = cpumask_size(); in compat_get_user_cpu_mask() 160 unsigned int retlen = min(len, cpumask_size()); in COMPAT_SYSCALL_DEFINE3()
|
| H A D | fork.c | 3011 mm_size = sizeof(struct mm_struct) + cpumask_size() + mm_cid_size(); in mm_cache_init()
|
| /linux/kernel/sched/ |
| H A D | isolation.c | 126 trial = kmalloc(cpumask_size(), GFP_KERNEL); in housekeeping_update() 181 struct cpumask *omask, *nmask = kmalloc(cpumask_size(), GFP_KERNEL); in housekeeping_init() 192 memblock_free(omask, cpumask_size()); in housekeeping_init() 199 struct cpumask *mask = memblock_alloc_or_panic(cpumask_size(), SMP_CACHE_BYTES); in housekeeping_setup_type()
|
| H A D | syscalls.c | 1240 if (len < cpumask_size()) in get_user_cpu_mask() 1242 else if (len > cpumask_size()) in get_user_cpu_mask() 1243 len = cpumask_size(); in get_user_cpu_mask() 1317 unsigned int retlen = min(len, cpumask_size()); in SYSCALL_DEFINE3()
|
| H A D | topology.c | 958 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in build_group_from_child_sched_domain() 1451 entry = kzalloc(sizeof(*entry) + cpumask_size(), GFP_KERNEL); in asym_cpu_capacity_update_data() 2077 struct cpumask *mask = kzalloc(cpumask_size(), GFP_KERNEL); in sched_init_numa() 2393 sd = kzalloc_node(sizeof(struct sched_domain) + cpumask_size(), in __sdt_alloc() 2407 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in __sdt_alloc() 2416 sgc = kzalloc_node(sizeof(struct sched_group_capacity) + cpumask_size(), in __sdt_alloc()
|
| H A D | sched.h | 2819 int size = max_t(int, cpumask_size(), sizeof(struct rcu_head)); in alloc_user_cpus_ptr()
|
| /linux/arch/riscv/kernel/ |
| H A D | sys_hwprobe.c | 399 if (cpusetsize > cpumask_size()) in hwprobe_get_values() 400 cpusetsize = cpumask_size(); in hwprobe_get_values() 450 if (cpusetsize > cpumask_size()) in hwprobe_get_cpus() 451 cpusetsize = cpumask_size(); in hwprobe_get_cpus()
|
| /linux/drivers/cpuidle/ |
| H A D | cpuidle-big_little.c | 147 cpumask = kzalloc(cpumask_size(), GFP_KERNEL); in bl_idle_driver_init()
|
| /linux/include/linux/ |
| H A D | mm_types.h | 1527 bitmap += cpumask_size(); in mm_cpus_allowed() 1537 cid_bitmap += cpumask_size(); in mm_cidmask() 1562 return cpumask_size() + bitmap_size(num_possible_cpus()); in mm_cid_size()
|
| H A D | cpumask.h | 1018 static __always_inline unsigned int cpumask_size(void) in cpumask_size() function
|
| /linux/drivers/powercap/ |
| H A D | idle_inject.c | 336 ii_dev = kzalloc(sizeof(*ii_dev) + cpumask_size(), GFP_KERNEL); in idle_inject_register_full()
|
| /linux/io_uring/ |
| H A D | register.c | 325 if (len > cpumask_size()) in io_register_iowq_aff() 326 len = cpumask_size(); in io_register_iowq_aff()
|
| /linux/net/core/ |
| H A D | sysctl_net_core.c | 114 mask = kzalloc(cpumask_size(), GFP_KERNEL); in rps_default_mask_sysctl()
|
| /linux/kernel/power/ |
| H A D | energy_model.c | 436 pd = kzalloc(sizeof(*pd) + cpumask_size(), GFP_KERNEL); in em_create_pd()
|
| /linux/net/openvswitch/ |
| H A D | flow_table.c | 1195 + cpumask_size(), in ovs_flow_init()
|
| /linux/arch/s390/kernel/ |
| H A D | perf_cpum_cf.c | 1623 len = min_t(u64, start.cpumask_len, cpumask_size()); in cfset_ioctl_start()
|
| /linux/drivers/soc/ti/ |
| H A D | knav_qmss_queue.c | 1248 cpumask_size(), GFP_KERNEL); in knav_setup_queue_range()
|
| /linux/kernel/trace/ |
| H A D | trace_events_filter.c | 1882 pred->mask = kzalloc(cpumask_size(), GFP_KERNEL); in parse_pred()
|
| /linux/drivers/block/ |
| H A D | ublk_drv.c | 4497 retlen = min_t(unsigned short, header->len, cpumask_size()); in ublk_ctrl_get_queue_affinity()
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| H A D | mvpp2_main.c | 4715 qv->mask = kzalloc(cpumask_size(), GFP_KERNEL); in mvpp2_irqs_init()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_init.c | 12694 tmp = kzalloc(cpumask_size(), GFP_KERNEL); in lpfc_cpuhp_get_eq()
|