Lines Matching full:vec
70 struct cpupri_vec *vec = &cp->pri_to_cpu[idx]; in __cpupri_find() local
73 if (!atomic_read(&(vec)->count)) in __cpupri_find()
99 if (cpumask_any_and(&p->cpus_mask, vec->mask) >= nr_cpu_ids) in __cpupri_find()
103 cpumask_and(lowest_mask, &p->cpus_mask, vec->mask); in __cpupri_find()
110 * second reads of vec->mask. If we hit this in __cpupri_find()
230 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; in cpupri_set() local
232 cpumask_set_cpu(cpu, vec->mask); in cpupri_set()
239 atomic_inc(&(vec)->count); in cpupri_set()
243 struct cpupri_vec *vec = &cp->pri_to_cpu[oldpri]; in cpupri_set() local
246 * Because the order of modification of the vec->count in cpupri_set()
255 * the new priority vec. in cpupri_set()
264 atomic_dec(&(vec)->count); in cpupri_set()
266 cpumask_clear_cpu(cpu, vec->mask); in cpupri_set()
283 struct cpupri_vec *vec = &cp->pri_to_cpu[i]; in cpupri_init() local
285 atomic_set(&vec->count, 0); in cpupri_init()
286 if (!zalloc_cpumask_var(&vec->mask, GFP_KERNEL)) in cpupri_init()