Lines Matching full:masks
306 struct cpumask *masks = NULL; in create_affinity_masks() local
319 masks = kcalloc(nvecs, sizeof(*masks), GFP_KERNEL); in create_affinity_masks()
320 if (!masks) in create_affinity_masks()
325 cpumask_setall(&masks[curvec]); in create_affinity_masks()
333 kfree(masks); in create_affinity_masks()
338 cpumask_copy(&masks[curvec + j], &result[j]); in create_affinity_masks()
351 cpumask_setall(&masks[curvec]); in create_affinity_masks()
353 return masks; in create_affinity_masks()
367 struct cpumask *masks; in virtio_vdpa_find_vqs() local
373 masks = create_affinity_masks(nvqs, desc ? desc : &default_affd); in virtio_vdpa_find_vqs()
374 if (!masks) in virtio_vdpa_find_vqs()
393 ops->set_vq_affinity(vdpa, i, &masks[i]); in virtio_vdpa_find_vqs()
400 kfree(masks); in virtio_vdpa_find_vqs()
407 kfree(masks); in virtio_vdpa_find_vqs()