Lines Matching refs:iov
133 vfno = RING_TO_VFNO(i, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler()
134 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
145 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler()
155 vfno = RING_TO_VFNO(i + 64, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler()
156 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
168 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler()
179 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init()
181 if (!ndev->iov.vfdev) in nitrox_mbox_init()
184 for (i = 0; i < ndev->iov.num_vfs; i++) { in nitrox_mbox_init()
185 vfdev = ndev->iov.vfdev + i; in nitrox_mbox_init()
190 ndev->iov.pf2vf_wq = alloc_workqueue("nitrox_pf2vf", 0, 0); in nitrox_mbox_init()
191 if (!ndev->iov.pf2vf_wq) { in nitrox_mbox_init()
192 kfree(ndev->iov.vfdev); in nitrox_mbox_init()
206 if (ndev->iov.pf2vf_wq) in nitrox_mbox_cleanup()
207 destroy_workqueue(ndev->iov.pf2vf_wq); in nitrox_mbox_cleanup()
209 kfree(ndev->iov.vfdev); in nitrox_mbox_cleanup()
210 ndev->iov.pf2vf_wq = NULL; in nitrox_mbox_cleanup()
211 ndev->iov.vfdev = NULL; in nitrox_mbox_cleanup()