Lines Matching refs:sgl

76 static uint32_t ocs_scsi_count_sgls(ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl, uint32_t sgl_co…
296 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t wire_len, uint32_t first_burst,
656 ocs_scsi_count_sgls(ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl, uint32_t sgl_count) in ocs_scsi_count_sgls() argument
683 ocs_scsi_build_sgls(ocs_hw_t *hw, ocs_hw_io_t *hio, ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl,… in ocs_scsi_build_sgls() argument
727 if ((sgl[i].len % blocksize) != 0) { in ocs_scsi_build_sgls()
729 i, sgl[i].len); in ocs_scsi_build_sgls()
736 ocs_assert(sgl[i].addr, -1); in ocs_scsi_build_sgls()
737 ocs_assert(sgl[i].len, -1); in ocs_scsi_build_sgls()
745 rc = ocs_hw_io_add_dif_sge(hw, hio, sgl[i].dif_addr); in ocs_scsi_build_sgls()
750 blockcount = sgl[i].len / blocksize; in ocs_scsi_build_sgls()
759 rc = ocs_hw_io_add_sge(hw, hio, sgl[i].addr, sgl[i].len); in ocs_scsi_build_sgls()
768 ocs_assert(sgl[i].addr, -1); in ocs_scsi_build_sgls()
769 ocs_assert(sgl[i].len, -1); in ocs_scsi_build_sgls()
772 rc = ocs_hw_io_add_sge(hw, hio, sgl[i].addr, sgl[i].len); in ocs_scsi_build_sgls()
916 n_sge = (hio->sgl == &hio->def_sgl ? hio->n_sge : hio->def_sgl_count); in ocs_log_sgl()
929 hio->sgl == hio->ovfl_sgl) { in ocs_log_sgl()
1285 total_count = ocs_scsi_count_sgls(&io->hw_dif, io->sgl, io->sgl_count); in ocs_scsi_io_dispatch_hw_io()
1309 rc = ocs_scsi_build_sgls(&ocs->hw, io->hio, &io->hw_dif, io->sgl, io->sgl_count, io->hio_type); in ocs_scsi_io_dispatch_hw_io()
1457 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t xwire_len, in ocs_scsi_xfer_data() argument
1482 if (sgl && (sgl != io->sgl)) { in ocs_scsi_xfer_data()
1484 ocs_memcpy(io->sgl, sgl, sgl_count*sizeof(*io->sgl)); in ocs_scsi_xfer_data()
1493 ocs_assert(sgl, -1); in ocs_scsi_xfer_data()
1545 ocs_scsi_sgl_t *sgl_ptr = &io->sgl[sgl_count-1]; in ocs_scsi_xfer_data()
1572 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t len, in ocs_scsi_send_rd_data() argument
1575 return ocs_scsi_xfer_data(io, flags, dif_info, sgl, sgl_count, len, OCS_HW_IO_TARGET_READ, in ocs_scsi_send_rd_data()
1582 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t len, in ocs_scsi_recv_wr_data() argument
1585 return ocs_scsi_xfer_data(io, flags, dif_info, sgl, sgl_count, len, OCS_HW_IO_TARGET_WRITE, in ocs_scsi_recv_wr_data()
1715 io->sgl[0].addr = io->rspbuf.phys; in ocs_scsi_send_resp()
1716 io->sgl[0].dif_addr = 0; in ocs_scsi_send_resp()
1717 io->sgl[0].len = io->wire_len; in ocs_scsi_send_resp()
1813 io->sgl[0].addr = io->rspbuf.phys; in ocs_scsi_send_tmf_resp()
1814 io->sgl[0].dif_addr = 0; in ocs_scsi_send_tmf_resp()
1815 io->sgl[0].len = io->wire_len; in ocs_scsi_send_tmf_resp()
2266 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t wire_len, in ocs_scsi_send_rd_io() argument
2271 …rc = ocs_scsi_send_io(OCS_HW_IO_INITIATOR_READ, node, io, lun, 0, cdb, cdb_len, dif_info, sgl, sgl… in ocs_scsi_send_rd_io()
2305 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t wire_len, in ocs_scsi_send_wr_io() argument
2310 …rc = ocs_scsi_send_io(OCS_HW_IO_INITIATOR_WRITE, node, io, lun, 0, cdb, cdb_len, dif_info, sgl, sg… in ocs_scsi_send_wr_io()
2346 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t wire_len, uint32_t first_burst, in ocs_scsi_send_wr_io_first_burst() argument
2351 …rc = ocs_scsi_send_io(OCS_HW_IO_INITIATOR_WRITE, node, io, lun, 0, cdb, cdb_len, dif_info, sgl, sg… in ocs_scsi_send_wr_io_first_burst()
2415 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t len, ocs_scsi_rsp_io_cb_t cb, void *arg) in ocs_scsi_send_tmf() argument
2448 sgl, sgl_count, len, 0, cb, arg, 0); in ocs_scsi_send_tmf()
2484 ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t wire_len, uint32_t first_burst, in ocs_scsi_send_io() argument
2503 if (sgl != io->sgl) { in ocs_scsi_send_io()
2505 ocs_memcpy(io->sgl, sgl, sizeof(*io->sgl) * sgl_count); in ocs_scsi_send_io()