Lines Matching refs:oct_vdpa
40 struct octep_vdpa *oct_vdpa; in vdpa_to_octep_hw() local
42 oct_vdpa = container_of(vdpa_dev, struct octep_vdpa, vdpa); in vdpa_to_octep_hw()
44 return oct_vdpa->oct_hw; in vdpa_to_octep_hw()
471 struct octep_vdpa *oct_vdpa; in octep_vdpa_dev_add() local
475 oct_vdpa = vdpa_alloc_device(struct octep_vdpa, vdpa, &pdev->dev, &octep_vdpa_ops, 1, 1, in octep_vdpa_dev_add()
477 if (IS_ERR(oct_vdpa)) { in octep_vdpa_dev_add()
479 return PTR_ERR(oct_vdpa); in octep_vdpa_dev_add()
482 oct_vdpa->pdev = pdev; in octep_vdpa_dev_add()
483 oct_vdpa->vdpa.dma_dev = &pdev->dev; in octep_vdpa_dev_add()
484 oct_vdpa->vdpa.mdev = mdev; in octep_vdpa_dev_add()
485 oct_vdpa->oct_hw = oct_hw; in octep_vdpa_dev_add()
486 vdpa_dev = &oct_vdpa->vdpa; in octep_vdpa_dev_add()
515 ret = _vdpa_register_device(&oct_vdpa->vdpa, oct_hw->nr_vring); in octep_vdpa_dev_add()
523 put_device(&oct_vdpa->vdpa.dev); in octep_vdpa_dev_add()