Lines Matching refs:hio

72 static int32_t ocs_scsi_abort_io_cb(struct ocs_hw_io_s *hio, ocs_remote_node_t *rnode, uint32_t len…
85 static int32_t ocs_scsi_io_dispatch_hw_io(ocs_io_t *io, ocs_hw_io_t *hio);
198 if (io->hio != NULL) { in ocs_scsi_io_alloc()
316 ocs_target_io_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length, in ocs_target_io_cb() 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
691 ocs_assert(hio, -1); in ocs_scsi_build_sgls()
694 rc = ocs_hw_io_init_sges(hw, hio, type); in ocs_scsi_build_sgls()
704 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif); in ocs_scsi_build_sgls()
741 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif); in ocs_scsi_build_sgls()
745 rc = ocs_hw_io_add_dif_sge(hw, hio, sgl[i].dif_addr); 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()
772 rc = ocs_hw_io_add_sge(hw, hio, sgl[i].addr, sgl[i].len); in ocs_scsi_build_sgls()
907 ocs_hw_io_t *hio = io->hio; in ocs_log_sgl() local
914 ocs_addr32_hi(hio->def_sgl.phys), in ocs_log_sgl()
915 ocs_addr32_lo(hio->def_sgl.phys)); in ocs_log_sgl()
916 n_sge = (hio->sgl == &hio->def_sgl ? hio->n_sge : hio->def_sgl_count); in ocs_log_sgl()
917 for (i = 0, data = hio->def_sgl.virt; i < n_sge; i++, data++) { in ocs_log_sgl()
928 if (hio->ovfl_sgl != NULL && in ocs_log_sgl()
929 hio->sgl == hio->ovfl_sgl) { in ocs_log_sgl()
931 ocs_addr32_hi(hio->ovfl_sgl->phys), in ocs_log_sgl()
932 ocs_addr32_lo(hio->ovfl_sgl->phys)); in ocs_log_sgl()
933 for (i = 0, data = hio->ovfl_sgl->virt; i < hio->n_sge; i++, data++) { in ocs_log_sgl()
970 cb(io->hio, NULL, 0, SLI4_FC_WCQE_STATUS_DISPATCH_ERROR, 0, io); in ocs_scsi_check_pending_async_cb()
993 ocs_hw_io_t *hio; in ocs_scsi_check_pending() local
1008 hio = NULL; in ocs_scsi_check_pending()
1012 hio = NULL; in ocs_scsi_check_pending()
1014 hio = ocs_hw_io_alloc(&ocs->hw); in ocs_scsi_check_pending()
1015 if (hio == NULL) { in ocs_scsi_check_pending()
1023 hio->eq = io->hw_priv; in ocs_scsi_check_pending()
1038 if (hio == NULL) { in ocs_scsi_check_pending()
1041 status = ocs_scsi_io_dispatch_hw_io(io, hio); in ocs_scsi_check_pending()
1068 if (io->io_to_abort->hio != NULL) { in ocs_scsi_check_pending()
1120 ocs_hw_io_t *hio; in ocs_scsi_io_dispatch() local
1132 if (io->hio != NULL) { in ocs_scsi_io_dispatch()
1133 return ocs_scsi_io_dispatch_hw_io(io, io->hio); in ocs_scsi_io_dispatch()
1166 hio = ocs_hw_io_alloc(&io->ocs->hw); in ocs_scsi_io_dispatch()
1167 if (hio == NULL) { in ocs_scsi_io_dispatch()
1179 return ocs_scsi_io_dispatch_hw_io(io, hio); in ocs_scsi_io_dispatch()
1243 ocs_scsi_io_dispatch_hw_io(ocs_io_t *io, ocs_hw_io_t *hio) in ocs_scsi_io_dispatch_hw_io() argument
1249 io->hio = hio; in ocs_scsi_io_dispatch_hw_io()
1251 io->tgt_task_tag = hio->indicator; in ocs_scsi_io_dispatch_hw_io()
1253 io->init_task_tag = hio->indicator; in ocs_scsi_io_dispatch_hw_io()
1255 io->hw_tag = hio->reqtag; in ocs_scsi_io_dispatch_hw_io()
1257 hio->eq = io->hw_priv; in ocs_scsi_io_dispatch_hw_io()
1262 hio->wq_steering = OCS_HW_WQ_STEERING_CLASS; in ocs_scsi_io_dispatch_hw_io()
1265 hio->wq_steering = OCS_HW_WQ_STEERING_REQUEST; in ocs_scsi_io_dispatch_hw_io()
1268 hio->wq_steering = OCS_HW_WQ_STEERING_CPU; in ocs_scsi_io_dispatch_hw_io()
1299 rc = ocs_hw_io_register_sgl(&ocs->hw, io->hio, &io->ovfl_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()
1323 …rc = ocs_hw_io_send(&io->ocs->hw, io->hio_type, io->hio, io->wire_len, &io->iparam, &io->node->rno… in ocs_scsi_io_dispatch_hw_io()
1329 rc = ocs_hw_srrs_send(&ocs->hw, io->hio_type, io->hio, in ocs_scsi_io_dispatch_hw_io()
1336 rc = ocs_hw_srrs_send(&ocs->hw, io->hio_type, io->hio, in ocs_scsi_io_dispatch_hw_io()
1345 rc = ocs_hw_srrs_send(&ocs->hw, io->hio_type, io->hio, in ocs_scsi_io_dispatch_hw_io()
1377 hio_to_abort = io->io_to_abort->hio; in ocs_scsi_io_dispatch_no_hw_io()
1392 ((ocs_hw_done_t)io->hw_cb)(io->hio, NULL, 0, SLI4_FC_WCQE_STATUS_SUCCESS, 0, io); in ocs_scsi_io_dispatch_no_hw_io()
1407 ((ocs_hw_done_t)io->hw_cb)(io->hio, NULL, 0, status, 0, io); in ocs_scsi_io_dispatch_no_hw_io()
1846 ocs_target_abort_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length, int32_t status, ui… in ocs_target_abort_cb() argument
1953 ocs_assert(abort_io->hio == NULL, -1); in ocs_scsi_tgt_abort_io()
1992 ocs_target_bls_resp_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length, int32_t status,… in ocs_target_bls_resp_cb() argument
2119 ocs_initiator_io_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length, in ocs_initiator_io_cb() argument
2665 ocs_scsi_abort_io_cb(struct ocs_hw_io_s *hio, ocs_remote_node_t *rnode, uint32_t len, int32_t statu… in ocs_scsi_abort_io_cb() argument