Lines Matching refs:iov
137 vfno = RING_TO_VFNO(i, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler()
138 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
149 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler()
160 vfno = RING_TO_VFNO(i + 64, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler()
161 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
173 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler()
184 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init()
186 if (!ndev->iov.vfdev) in nitrox_mbox_init()
189 for (i = 0; i < ndev->iov.num_vfs; i++) { in nitrox_mbox_init()
190 vfdev = ndev->iov.vfdev + i; in nitrox_mbox_init()
195 ndev->iov.pf2vf_wq = alloc_workqueue("nitrox_pf2vf", 0, 0); in nitrox_mbox_init()
196 if (!ndev->iov.pf2vf_wq) { in nitrox_mbox_init()
197 kfree(ndev->iov.vfdev); in nitrox_mbox_init()
198 ndev->iov.vfdev = NULL; in nitrox_mbox_init()
212 if (ndev->iov.pf2vf_wq) in nitrox_mbox_cleanup()
213 destroy_workqueue(ndev->iov.pf2vf_wq); in nitrox_mbox_cleanup()
215 kfree(ndev->iov.vfdev); in nitrox_mbox_cleanup()
216 ndev->iov.pf2vf_wq = NULL; in nitrox_mbox_cleanup()
217 ndev->iov.vfdev = NULL; in nitrox_mbox_cleanup()