Lines Matching full:masks
309 struct cpumask *masks = NULL; in create_affinity_masks() local
322 masks = kcalloc(nvecs, sizeof(*masks), GFP_KERNEL); in create_affinity_masks()
323 if (!masks) in create_affinity_masks()
328 cpumask_setall(&masks[curvec]); in create_affinity_masks()
336 kfree(masks); in create_affinity_masks()
341 cpumask_copy(&masks[curvec + j], &result[j]); in create_affinity_masks()
354 cpumask_setall(&masks[curvec]); in create_affinity_masks()
356 return masks; in create_affinity_masks()
368 struct cpumask *masks; in virtio_vdpa_find_vqs() local
374 masks = create_affinity_masks(nvqs, desc ? desc : &default_affd); in virtio_vdpa_find_vqs()
375 if (!masks) in virtio_vdpa_find_vqs()
395 ops->set_vq_affinity(vdpa, i, &masks[i]); in virtio_vdpa_find_vqs()
402 kfree(masks); in virtio_vdpa_find_vqs()
409 kfree(masks); in virtio_vdpa_find_vqs()