Lines Matching refs:vq
148 static void virtscsi_vq_done(struct virtqueue *vq, void (*fn)(void *buf)) in virtscsi_vq_done() argument
150 struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); in virtscsi_vq_done()
159 virtqueue_disable_cb(vq); in virtscsi_vq_done()
160 while ((buf = virtqueue_get_buf(vq, &len)) != NULL) in virtscsi_vq_done()
162 } while (!virtqueue_enable_cb(vq)); in virtscsi_vq_done()
167 static void virtscsi_req_done(struct virtqueue *vq) in virtscsi_req_done() argument
169 virtscsi_vq_done(vq, virtscsi_complete_cmd); in virtscsi_req_done()
182 static void virtscsi_ctrl_done(struct virtqueue *vq) in virtscsi_ctrl_done() argument
184 virtscsi_vq_done(vq, virtscsi_complete_free); in virtscsi_ctrl_done()
187 static void virtscsi_event_done(struct virtqueue *vq) in virtscsi_event_done() argument
189 virtscsi_vq_done(vq, virtscsi_complete_free); in virtscsi_event_done()
253 static int virtscsi_kick_cmd(struct virtio_scsi *vscsi, struct virtqueue *vq, in virtscsi_kick_cmd() argument
265 ret = virtqueue_add_buf(vq, vscsi->sg, out_num, in_num, cmd, gfp); in virtscsi_kick_cmd()
267 virtqueue_kick(vq); in virtscsi_kick_cmd()