Home
last modified time | relevance | path

Searched refs:cpumask_size (Results 1 – 17 of 17) sorted by relevance

/linux/kernel/
H A Dcompat.c115 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 Dsmp.c846 kmalloc(cpumask_size(), GFP_KERNEL); in smp_task_ipi_mask_alloc()
1111 if (IS_ENABLED(CONFIG_PREEMPTION) && cpumask_size() <= sizeof(unsigned long)) in setup_nr_cpu_ids()
H A Dfork.c3140 mm_size = sizeof(struct mm_struct) + cpumask_size() + mm_cid_size(); in proc_caches_init()
/linux/arch/riscv/kernel/
H A Dsys_hwprobe.c400 if (cpusetsize > cpumask_size()) in hwprobe_get_values()
401 cpusetsize = cpumask_size(); in hwprobe_get_values()
451 if (cpusetsize > cpumask_size()) in hwprobe_get_cpus()
452 cpusetsize = cpumask_size(); in hwprobe_get_cpus()
/linux/kernel/sched/
H A Dsyscalls.c1246 if (len < cpumask_size()) in get_user_cpu_mask()
1248 else if (len > cpumask_size()) in get_user_cpu_mask()
1249 len = cpumask_size(); in get_user_cpu_mask()
1323 unsigned int retlen = min(len, cpumask_size()); in SYSCALL_DEFINE3()
H A Dtopology.c1248 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in build_group_from_child_sched_domain()
1739 entry = kzalloc(sizeof(*entry) + cpumask_size(), GFP_KERNEL); in asym_cpu_capacity_update_data()
2377 struct cpumask *mask = kzalloc(cpumask_size(), GFP_KERNEL); in sched_init_numa()
2688 sd = kzalloc_node(sizeof(struct sched_domain) + cpumask_size(), in __sdt_alloc()
2695 sg = kzalloc_node(sizeof(struct sched_group) + cpumask_size(), in __sdt_alloc()
2704 sgc = kzalloc_node(sizeof(struct sched_group_capacity) + cpumask_size(), in __sdt_alloc()
H A Dsched.h2930 int size = max_t(int, cpumask_size(), sizeof(struct rcu_head)); in alloc_user_cpus_ptr()
/linux/include/linux/
H A Dmm_types.h1575 bitmap += cpumask_size(); in mm_cpus_allowed()
1585 cid_bitmap += cpumask_size(); in mm_cidmask()
1610 return cpumask_size() + bitmap_size(num_possible_cpus()); in mm_cid_size()
H A Dcpumask.h1019 static __always_inline unsigned int cpumask_size(void) in cpumask_size() function
/linux/io_uring/
H A Dregister.c325 if (len > cpumask_size()) in io_register_iowq_aff()
326 len = cpumask_size(); in io_register_iowq_aff()
/linux/kernel/power/
H A Denergy_model.c436 pd = kzalloc(sizeof(*pd) + cpumask_size(), GFP_KERNEL); in em_create_pd()
/linux/net/core/
H A Dsysctl_net_core.c114 mask = kzalloc(cpumask_size(), GFP_KERNEL); in rps_default_mask_sysctl()
/linux/net/openvswitch/
H A Dflow_table.c1197 + cpumask_size(), in ovs_flow_init()
/linux/kernel/trace/
H A Dtrace_events_filter.c1882 pred->mask = kzalloc(cpumask_size(), GFP_KERNEL); in parse_pred()
/linux/drivers/block/
H A Dublk_drv.c4643 retlen = min_t(unsigned short, header->len, cpumask_size()); in ublk_ctrl_get_queue_affinity()
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c4730 qv->mask = kzalloc(cpumask_size(), GFP_KERNEL); in mvpp2_irqs_init()
/linux/drivers/scsi/lpfc/
H A Dlpfc_init.c12711 tmp = kzalloc(cpumask_size(), GFP_KERNEL); in lpfc_cpuhp_get_eq()