Home
last modified time | relevance | path

Searched refs:nas (Results 1 – 6 of 6) sorted by relevance

/drivers/vdpa/vdpa_sim/
Dvdpa_sim.c120 for (i = 0; i < vdpasim->dev_attr.nas; i++) in vdpasim_do_reset()
283 dev_attr->ngroups, dev_attr->nas, in vdpasim_create()
311 vdpasim->iommu = kmalloc_array(vdpasim->dev_attr.nas, in vdpasim_create()
316 for (i = 0; i < vdpasim->dev_attr.nas; i++) in vdpasim_create()
604 if (asid >= vdpasim->dev_attr.nas) in vdpasim_set_group_asid()
630 if (asid >= vdpasim->dev_attr.nas) in vdpasim_set_map()
661 if (asid >= vdpasim->dev_attr.nas) in vdpasim_dma_map()
677 if (asid >= vdpasim->dev_attr.nas) in vdpasim_dma_unmap()
705 for (i = 0; i < vdpasim->dev_attr.nas; i++) in vdpasim_free()
Dvdpa_sim.h45 u32 nas; member
Dvdpa_sim_net.c254 dev_attr.nas = VDPASIM_NET_AS_NUM; in vdpasim_net_dev_add()
Dvdpa_sim_blk.c380 dev_attr.nas = VDPASIM_BLK_AS_NUM; in vdpasim_blk_dev_add()
/drivers/vhost/
Dvdpa.c109 if (asid >= v->vdpa->nas) in vhost_vdpa_alloc_as()
555 if (s.num >= vdpa->nas) in vhost_vdpa_vring_ioctl()
677 if (copy_to_user(argp, &v->vdpa->nas, sizeof(v->vdpa->nas))) in vhost_vdpa_unlocked_ioctl()
1196 for (asid = 0; asid < v->vdpa->nas; asid++) { in vhost_vdpa_cleanup()
1378 (vdpa->ngroups > 1 || vdpa->nas > 1)) in vhost_vdpa_probe()
/drivers/vdpa/
Dvdpa.c154 unsigned int ngroups, unsigned int nas, in __vdpa_alloc_device() argument
188 vdev->nas = nas; in __vdpa_alloc_device()