Lines Matching refs:vfdev

32 	struct nitrox_vfdev *vfdev;  member
55 struct nitrox_vfdev *vfdev) in pf2vf_send_response() argument
59 msg.value = vfdev->msg.value; in pf2vf_send_response()
61 switch (vfdev->msg.opcode) { in pf2vf_send_response()
66 vfdev->nr_queues = vfdev->msg.data; in pf2vf_send_response()
67 atomic_set(&vfdev->state, __NDEV_READY); in pf2vf_send_response()
71 msg.id.vfid = vfdev->vfno; in pf2vf_send_response()
74 vfdev->nr_queues = 0; in pf2vf_send_response()
75 atomic_set(&vfdev->state, __NDEV_NOT_READY); in pf2vf_send_response()
94 pf2vf_write_mbox(ndev, msg.value, vfdev->ring); in pf2vf_send_response()
96 vfdev->msg.value = 0; in pf2vf_send_response()
97 atomic64_inc(&vfdev->mbx_resp); in pf2vf_send_response()
104 struct nitrox_vfdev *vfdev = pf2vf_resp->vfdev; in pf2vf_resp_handler() local
107 switch (vfdev->msg.type) { in pf2vf_resp_handler()
110 pf2vf_send_response(ndev, vfdev); in pf2vf_resp_handler()
122 struct nitrox_vfdev *vfdev; in nitrox_pf2vf_mbox_handler() local
134 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
135 vfdev->ring = i; in nitrox_pf2vf_mbox_handler()
137 vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring); in nitrox_pf2vf_mbox_handler()
142 pfwork->vfdev = vfdev; in nitrox_pf2vf_mbox_handler()
156 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler()
157 vfdev->ring = (i + 64); in nitrox_pf2vf_mbox_handler()
159 vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring); in nitrox_pf2vf_mbox_handler()
165 pfwork->vfdev = vfdev; in nitrox_pf2vf_mbox_handler()
176 struct nitrox_vfdev *vfdev; in nitrox_mbox_init() local
179 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init()
181 if (!ndev->iov.vfdev) in nitrox_mbox_init()
185 vfdev = ndev->iov.vfdev + i; in nitrox_mbox_init()
186 vfdev->vfno = i; in nitrox_mbox_init()
192 kfree(ndev->iov.vfdev); in nitrox_mbox_init()
209 kfree(ndev->iov.vfdev); in nitrox_mbox_cleanup()
211 ndev->iov.vfdev = NULL; in nitrox_mbox_cleanup()