Searched refs:available_mask (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | affinity.c | 1000 cpumask_var_t diff, hw_thread_mask, available_mask, intrs_mask; in hfi1_get_proc_affinity() local 1055 ret = zalloc_cpumask_var(&available_mask, GFP_KERNEL); in hfi1_get_proc_affinity() 1117 cpumask_and(available_mask, hw_thread_mask, node_mask); in hfi1_get_proc_affinity() 1118 cpumask_andnot(available_mask, available_mask, &set->used); in hfi1_get_proc_affinity() 1120 cpumask_pr_args(available_mask)); in hfi1_get_proc_affinity() 1138 cpumask_andnot(diff, available_mask, intrs_mask); in hfi1_get_proc_affinity() 1140 cpumask_copy(available_mask, diff); in hfi1_get_proc_affinity() 1143 if (cpumask_empty(available_mask)) { in hfi1_get_proc_affinity() 1144 cpumask_andnot(available_mask, hw_thread_mask, &set->used); in hfi1_get_proc_affinity() 1146 cpumask_andnot(available_mask, available_mask, node_mask); in hfi1_get_proc_affinity() [all …]
|
/linux-6.1.9/drivers/hv/ |
D | channel_mgmt.c | 735 cpumask_var_t available_mask; in init_vp_index() local 742 !alloc_cpumask_var(&available_mask, GFP_KERNEL) || in init_vp_index() 772 cpumask_xor(available_mask, allocated_mask, cpumask_of_node(numa_node)); in init_vp_index() 773 cpumask_and(available_mask, available_mask, hk_mask); in init_vp_index() 775 if (cpumask_empty(available_mask)) { in init_vp_index() 784 target_cpu = cpumask_first(available_mask); in init_vp_index() 794 free_cpumask_var(available_mask); in init_vp_index()
|