Lines Matching refs:pcpu
54 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()
56 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu()
67 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash()
277 pd->cpu = cpumask_next_wrap(cpu, pd->cpumask.pcpu, -1, false); in padata_find_next()
434 cpumask_copy(attrs->cpumask, pinst->cpumask.pcpu); in padata_setup_cpumasks()
559 for_each_cpu(cpu, pd->cpumask.pcpu) { in padata_init_reorder_list()
585 if (!alloc_cpumask_var(&pd->cpumask.pcpu, GFP_KERNEL)) in padata_alloc_pd()
590 cpumask_and(pd->cpumask.pcpu, pinst->cpumask.pcpu, cpu_online_mask); in padata_alloc_pd()
598 pd->cpu = cpumask_first(pd->cpumask.pcpu); in padata_alloc_pd()
604 free_cpumask_var(pd->cpumask.pcpu); in padata_alloc_pd()
617 free_cpumask_var(pd->cpumask.pcpu); in padata_free_pd()
709 cpumask_copy(pinst->cpumask.pcpu, pcpumask); in __padata_set_cpumasks()
745 parallel_mask = pinst->cpumask.pcpu; in padata_set_cpumask()
771 if (padata_validate_cpumask(pinst, pinst->cpumask.pcpu) && in __padata_add_cpu()
784 if (!padata_validate_cpumask(pinst, pinst->cpumask.pcpu) || in __padata_remove_cpu()
796 return cpumask_test_cpu(cpu, pinst->cpumask.pcpu) || in pinst_has_cpu()
843 free_cpumask_var(pinst->cpumask.pcpu); in __padata_free()
878 cpumask = pinst->cpumask.pcpu; in show_cpumask()
1002 if (!alloc_cpumask_var(&pinst->cpumask.pcpu, GFP_KERNEL)) in padata_alloc()
1005 free_cpumask_var(pinst->cpumask.pcpu); in padata_alloc()
1011 cpumask_copy(pinst->cpumask.pcpu, cpu_possible_mask); in padata_alloc()
1034 free_cpumask_var(pinst->cpumask.pcpu); in padata_alloc()