• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/ocs_fc/

Lines Matching refs:hio

76 static int32_t ocs_scsi_abort_io_cb(struct ocs_hw_io_s *hio, ocs_remote_node_t *rnode, uint32_t len, int32_t status,
89 static int32_t ocs_scsi_io_dispatch_hw_io(ocs_io_t *io, ocs_hw_io_t *hio);
202 if (io->hio != NULL) {
203 ocs_log_err(node->ocs, "assertion failed: io->hio is not NULL\n");
308 * @param hio Pointer to the HW IO structure.
319 ocs_target_io_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length,
686 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, uint32_t sgl_count, ocs_hw_io_type_e type)
694 ocs_assert(hio, -1);
697 rc = ocs_hw_io_init_sges(hw, hio, type);
707 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif);
744 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif);
748 rc = ocs_hw_io_add_dif_sge(hw, hio, sgl[i].dif_addr);
762 rc = ocs_hw_io_add_sge(hw, hio, sgl[i].addr, sgl[i].len);
775 rc = ocs_hw_io_add_sge(hw, hio, sgl[i].addr, sgl[i].len);
910 ocs_hw_io_t *hio = io->hio;
917 ocs_addr32_hi(hio->def_sgl.phys),
918 ocs_addr32_lo(hio->def_sgl.phys));
919 n_sge = (hio->sgl == &hio->def_sgl ? hio->n_sge : hio->def_sgl_count);
920 for (i = 0, data = hio->def_sgl.virt; i < n_sge; i++, data++) {
931 if (hio->ovfl_sgl != NULL &&
932 hio->sgl == hio->ovfl_sgl) {
934 ocs_addr32_hi(hio->ovfl_sgl->phys),
935 ocs_addr32_lo(hio->ovfl_sgl->phys));
936 for (i = 0, data = hio->ovfl_sgl->virt; i < hio->n_sge; i++, data++) {
973 cb(io->hio, NULL, 0, SLI4_FC_WCQE_STATUS_DISPATCH_ERROR, 0, io);
996 ocs_hw_io_t *hio;
1011 hio = NULL;
1015 hio = NULL;
1017 hio = ocs_hw_io_alloc(&ocs->hw);
1018 if (hio == NULL) {
1026 hio->eq = io->hw_priv;
1041 if (hio == NULL) {
1044 status = ocs_scsi_io_dispatch_hw_io(io, hio);
1071 if (io->io_to_abort->hio != NULL) {
1123 ocs_hw_io_t *hio;
1135 if (io->hio != NULL) {
1136 return ocs_scsi_io_dispatch_hw_io(io, io->hio);
1169 hio = ocs_hw_io_alloc(&io->ocs->hw);
1170 if (hio == NULL) {
1182 return ocs_scsi_io_dispatch_hw_io(io, hio);
1239 * @param hio Pointer to HW IO structure from which IO will be
1246 ocs_scsi_io_dispatch_hw_io(ocs_io_t *io, ocs_hw_io_t *hio)
1252 io->hio = hio;
1254 io->tgt_task_tag = hio->indicator;
1256 io->init_task_tag = hio->indicator;
1258 io->hw_tag = hio->reqtag;
1260 hio->eq = io->hw_priv;
1265 hio->wq_steering = OCS_HW_WQ_STEERING_CLASS;
1268 hio->wq_steering = OCS_HW_WQ_STEERING_REQUEST;
1271 hio->wq_steering = OCS_HW_WQ_STEERING_CPU;
1302 rc = ocs_hw_io_register_sgl(&ocs->hw, io->hio, &io->ovfl_sgl, count);
1312 rc = ocs_scsi_build_sgls(&ocs->hw, io->hio, &io->hw_dif, io->sgl, io->sgl_count, io->hio_type);
1326 rc = ocs_hw_io_send(&io->ocs->hw, io->hio_type, io->hio, io->wire_len, &io->iparam, &io->node->rnode,
1332 rc = ocs_hw_srrs_send(&ocs->hw, io->hio_type, io->hio,
1339 rc = ocs_hw_srrs_send(&ocs->hw, io->hio_type, io->hio,
1348 rc = ocs_hw_srrs_send(&ocs->hw, io->hio_type, io->hio,
1380 hio_to_abort = io->io_to_abort->hio;
1395 ((ocs_hw_done_t)io->hw_cb)(io->hio, NULL, 0, SLI4_FC_WCQE_STATUS_SUCCESS, 0, io);
1410 ((ocs_hw_done_t)io->hw_cb)(io->hio, NULL, 0, status, 0, io);
1838 * @param hio HW IO context.
1849 ocs_target_abort_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length, int32_t status, uint32_t ext_status, void *app)
1956 ocs_assert(abort_io->hio == NULL, -1);
1984 * @param hio HW IO context.
1995 ocs_target_bls_resp_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length, int32_t status, uint32_t ext_status, void *app)
2111 * @param hio HW IO context.
2122 ocs_initiator_io_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length,
2653 * @param hio HW IO context.
2664 ocs_scsi_abort_io_cb(struct ocs_hw_io_s *hio, ocs_remote_node_t *rnode, uint32_t len, int32_t status,