Lines Matching refs:efct

10 #define enable_tsend_auto_resp(efct)	1
11 #define enable_treceive_auto_resp(efct) 0
16 efc_log_debug(io->efct, "[%s]" SCSI_IOFMT fmt, \
20 #define EFCT_LOG_ENABLE_SCSI_TRACE(efct) \
21 (((efct) != NULL) ? (((efct)->logmask & (1U << 2)) != 0) : 0)
25 if (EFCT_LOG_ENABLE_SCSI_TRACE(io->efct)) \
32 struct efct *efct;
37 efct = node->efct;
39 xport = efct->xport;
41 io = efct_io_pool_io_alloc(efct->xport->io_pool);
43 efc_log_err(efct, "IO alloc Failed\n");
53 io->efct = efct;
78 struct efct *efct = io->efct;
85 efc_log_err(efct, "IO already freed.\n");
95 efct_io_pool_io_free(efct->xport->io_pool, io);
112 struct efct *efct;
116 if (!io || !io->efct) {
123 efct = io->efct;
128 efct_scsi_check_pending(efct);
197 efct_scsi_check_pending(efct);
207 struct efct *efct = hw->os;
212 efc_log_err(efct, "efct_hw_io_init_sges failed: %d\n", rc);
220 efc_log_err(efct, "add sge failed cnt=%d rc=%d\n",
273 struct efct *efct = io->efct;
302 rc = efct_scsi_build_sgls(&efct->hw, io->hio,
307 if (EFCT_LOG_ENABLE_SCSI_TRACE(efct))
319 rc = efct_hw_io_send(&io->efct->hw, io->hio_type, io->hio,
363 rc = efct_hw_io_abort(&io->efct->hw, hio_to_abort,
389 efct_scsi_dispatch_pending(struct efct *efct)
391 struct efct_xport *xport = efct->xport;
413 hio = efct_hw_io_alloc(&efct->hw);
448 if (efct_hw_async_call(&efct->hw,
450 efc_log_debug(efct, "call hw async failed\n");
458 efct_scsi_check_pending(struct efct *efct)
460 struct efct_xport *xport = efct->xport;
473 while (efct_scsi_dispatch_pending(efct))
506 if (efct_hw_async_call(&efct->hw,
508 efc_log_debug(efct, "hw async failed\n");
520 struct efct *efct = io->efct;
521 struct efct_xport *xport = efct->xport;
558 efct_scsi_check_pending(efct);
567 hio = efct_hw_io_alloc(&io->efct->hw);
587 struct efct *efct = io->efct;
588 struct efct_xport *xport = efct->xport;
608 efct_scsi_check_pending(efct);
623 struct efct *efct;
628 efct = io->efct;
696 if (efct->xport) {
697 struct efct_xport *xport = efct->xport;
717 enable_tsend_auto_resp(io->efct), cb, arg);
727 enable_treceive_auto_resp(io->efct), cb, arg);
735 struct efct *efct;
744 efct = io->efct;
780 efc_log_err(efct, "NULL response buffer\n");
814 efc_log_err(efct, "Sense exceeds max size.\n");
841 struct efct *efct;
844 efct = io->efct;
865 efct_scsi_check_pending(efct);
875 struct efct *efct = node->efct;
904 rc = efct_hw_bls_send(efct, FC_RCTL_BA_ACC, bls,
923 struct efct *efct = node->efct;
947 rc = efct_hw_bls_send(efct, FC_RCTL_BA_RJT, bls, efct_bls_send_rjt_cb,
950 efc_log_err(efct, "efct_scsi_io_dispatch() failed: %d\n", rc);
1042 struct efct *efct;
1047 efct = io->efct;
1090 efct_io_pool_io_free(efct->xport->io_pool, io);
1092 efct_scsi_check_pending(efct);
1099 struct efct *efct;
1104 efct = io->efct;
1105 xport = efct->xport;
1119 abort_io = efct_io_pool_io_alloc(efct->xport->io_pool);
1150 efc_log_debug(io->efct, "completion for non-busy io tag 0x%x\n",