Lines Matching refs:hw_thread_mask
963 static void find_hw_thread_mask(uint hw_thread_no, cpumask_var_t hw_thread_mask, in find_hw_thread_mask() argument
971 cpumask_copy(hw_thread_mask, &affinity->proc.mask); in find_hw_thread_mask()
974 possible = cpumask_weight(hw_thread_mask); in find_hw_thread_mask()
975 curr_cpu = cpumask_first(hw_thread_mask); in find_hw_thread_mask()
979 curr_cpu = cpumask_next(curr_cpu, hw_thread_mask); in find_hw_thread_mask()
982 cpumask_clear_cpu(curr_cpu, hw_thread_mask); in find_hw_thread_mask()
983 curr_cpu = cpumask_next(curr_cpu, hw_thread_mask); in find_hw_thread_mask()
987 cpumask_shift_left(hw_thread_mask, hw_thread_mask, in find_hw_thread_mask()
998 cpumask_var_t diff, hw_thread_mask, available_mask, intrs_mask; in hfi1_get_proc_affinity() local
1050 ret = zalloc_cpumask_var(&hw_thread_mask, GFP_KERNEL); in hfi1_get_proc_affinity()
1084 cpumask_copy(hw_thread_mask, &set->mask); in hfi1_get_proc_affinity()
1092 find_hw_thread_mask(i, hw_thread_mask, affinity); in hfi1_get_proc_affinity()
1102 cpumask_andnot(diff, hw_thread_mask, &set->used); in hfi1_get_proc_affinity()
1108 cpumask_pr_args(hw_thread_mask)); in hfi1_get_proc_affinity()
1115 cpumask_and(available_mask, hw_thread_mask, node_mask); in hfi1_get_proc_affinity()
1142 cpumask_andnot(available_mask, hw_thread_mask, &set->used); in hfi1_get_proc_affinity()
1173 free_cpumask_var(hw_thread_mask); in hfi1_get_proc_affinity()