Lines Matching full:sg
997 vtscsi_sg_append_scsi_buf(struct vtscsi_softc *sc, struct sglist *sg, in vtscsi_sg_append_scsi_buf() argument
1009 error = sglist_append(sg, csio->data_ptr, csio->dxfer_len); in vtscsi_sg_append_scsi_buf()
1012 error = sglist_append_phys(sg, in vtscsi_sg_append_scsi_buf()
1018 error = sglist_append(sg, in vtscsi_sg_append_scsi_buf()
1025 error = sglist_append_phys(sg, in vtscsi_sg_append_scsi_buf()
1030 error = sglist_append_bio(sg, (struct bio *) csio->data_ptr); in vtscsi_sg_append_scsi_buf()
1044 struct sglist *sg; in vtscsi_fill_scsi_cmd_sglist() local
1051 sg = sc->vtscsi_sglist; in vtscsi_fill_scsi_cmd_sglist()
1057 sglist_reset(sg); in vtscsi_fill_scsi_cmd_sglist()
1059 sglist_append(sg, cmd_req, sizeof(struct virtio_scsi_cmd_req)); in vtscsi_fill_scsi_cmd_sglist()
1061 error = vtscsi_sg_append_scsi_buf(sc, sg, csio); in vtscsi_fill_scsi_cmd_sglist()
1063 if (error || sg->sg_nseg == sg->sg_maxseg) in vtscsi_fill_scsi_cmd_sglist()
1067 *readable = sg->sg_nseg; in vtscsi_fill_scsi_cmd_sglist()
1069 sglist_append(sg, cmd_resp, sizeof(struct virtio_scsi_cmd_resp)); in vtscsi_fill_scsi_cmd_sglist()
1071 error = vtscsi_sg_append_scsi_buf(sc, sg, csio); in vtscsi_fill_scsi_cmd_sglist()
1076 *writable = sg->sg_nseg - *readable; in vtscsi_fill_scsi_cmd_sglist()
1091 error, req, ccbh, sg->sg_nseg, sg->sg_maxseg); in vtscsi_fill_scsi_cmd_sglist()
1099 struct sglist *sg; in vtscsi_execute_scsi_cmd() local
1107 sg = sc->vtscsi_sglist; in vtscsi_execute_scsi_cmd()
1123 error = virtqueue_enqueue(vq, req, sg, readable, writable); in vtscsi_execute_scsi_cmd()
1215 struct sglist *sg; in vtscsi_abort_timedout_scsi_cmd() local
1222 sg = sc->vtscsi_sglist; in vtscsi_abort_timedout_scsi_cmd()
1237 sglist_reset(sg); in vtscsi_abort_timedout_scsi_cmd()
1238 sglist_append(sg, tmf_req, sizeof(struct virtio_scsi_ctrl_tmf_req)); in vtscsi_abort_timedout_scsi_cmd()
1239 sglist_append(sg, tmf_resp, sizeof(struct virtio_scsi_ctrl_tmf_resp)); in vtscsi_abort_timedout_scsi_cmd()
1245 error = vtscsi_execute_ctrl_req(sc, req, sg, 1, 1, in vtscsi_abort_timedout_scsi_cmd()
1430 struct sglist *sg, int readable, int writable, int flag) in vtscsi_execute_ctrl_req() argument
1439 error = virtqueue_enqueue(vq, req, sg, readable, writable); in vtscsi_execute_ctrl_req()
1490 struct sglist *sg; in vtscsi_execute_abort_task_cmd() local
1499 sg = sc->vtscsi_sglist; in vtscsi_execute_abort_task_cmd()
1527 sglist_reset(sg); in vtscsi_execute_abort_task_cmd()
1528 sglist_append(sg, tmf_req, sizeof(struct virtio_scsi_ctrl_tmf_req)); in vtscsi_execute_abort_task_cmd()
1529 sglist_append(sg, tmf_resp, sizeof(struct virtio_scsi_ctrl_tmf_resp)); in vtscsi_execute_abort_task_cmd()
1534 error = vtscsi_execute_ctrl_req(sc, req, sg, 1, 1, in vtscsi_execute_abort_task_cmd()
1574 struct sglist *sg; in vtscsi_execute_reset_dev_cmd() local
1582 sg = sc->vtscsi_sglist; in vtscsi_execute_reset_dev_cmd()
1595 sglist_reset(sg); in vtscsi_execute_reset_dev_cmd()
1596 sglist_append(sg, tmf_req, sizeof(struct virtio_scsi_ctrl_tmf_req)); in vtscsi_execute_reset_dev_cmd()
1597 sglist_append(sg, tmf_resp, sizeof(struct virtio_scsi_ctrl_tmf_resp)); in vtscsi_execute_reset_dev_cmd()
1602 error = vtscsi_execute_ctrl_req(sc, req, sg, 1, 1, in vtscsi_execute_reset_dev_cmd()
1821 struct sglist *sg; in vtscsi_enqueue_event_buf() local
1825 sg = sc->vtscsi_sglist; in vtscsi_enqueue_event_buf()
1831 sglist_reset(sg); in vtscsi_enqueue_event_buf()
1832 error = sglist_append(sg, event, size); in vtscsi_enqueue_event_buf()
1836 error = virtqueue_enqueue(vq, event, sg, 0, sg->sg_nseg); in vtscsi_enqueue_event_buf()