Lines Matching refs:scsim
283 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_scsi_cmd() local
284 uint32_t size = CSIO_SCSI_CMD_WR_SZ_16(scsim->proto_cmd_len); in csio_scsi_cmd()
508 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_scsi_read() local
510 CSIO_SCSI_DATA_WRSZ(req, read, size, scsim->proto_cmd_len); in csio_scsi_read()
545 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_scsi_write() local
547 CSIO_SCSI_DATA_WRSZ(req, write, size, scsim->proto_cmd_len); in csio_scsi_write()
577 csio_setup_ddp(struct csio_scsim *scsim, struct csio_ioreq *req) in csio_setup_ddp() argument
623 CSIO_INC_STATS(scsim, n_unaligned); in csio_setup_ddp()
637 dma_buf = csio_get_scsi_ddp(scsim); in csio_setup_ddp()
638 if (dma_buf == NULL || i > scsim->max_sge) { in csio_setup_ddp()
657 csio_put_scsi_ddp_list(scsim, &req->gen_list, i); in csio_setup_ddp()
730 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_scsis_uninit() local
740 csio_setup_ddp(scsim, req); in csio_scsis_uninit()
748 list_add_tail(&req->sm.sm_list, &scsim->active_q); in csio_scsis_uninit()
750 CSIO_INC_STATS(scsim, n_active); in csio_scsis_uninit()
768 list_add_tail(&req->sm.sm_list, &scsim->active_q); in csio_scsis_uninit()
770 CSIO_INC_STATS(scsim, n_tm_active); in csio_scsis_uninit()
1221 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_abrt_cls() local
1225 CSIO_INC_STATS(scsim, n_abrt_race_comp); in csio_abrt_cls()
1234 CSIO_INC_STATS(scsim, n_abrt_busy_error); in csio_abrt_cls()
1236 CSIO_INC_STATS(scsim, n_cls_busy_error); in csio_abrt_cls()
1800 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_queuecommand() local
1821 CSIO_INC_STATS(scsim, n_rn_nr_error); in csio_queuecommand()
1827 CSIO_INC_STATS(scsim, n_hw_nr_error); in csio_queuecommand()
1834 CSIO_INC_STATS(scsim, n_dmamap_error); in csio_queuecommand()
1839 if (unlikely(nsge > scsim->max_sge)) { in csio_queuecommand()
1842 " SGEs: %d, Max SGEs: %d\n", nsge, scsim->max_sge); in csio_queuecommand()
1843 CSIO_INC_STATS(scsim, n_unsupp_sge_error); in csio_queuecommand()
1848 ioreq = csio_get_scsi_ioreq_lock(hw, scsim); in csio_queuecommand()
1851 scsim->stats.n_active); in csio_queuecommand()
1852 CSIO_INC_STATS(scsim, n_no_req_error); in csio_queuecommand()
1891 CSIO_INC_STATS(scsim, n_busy_error); in csio_queuecommand()
1898 csio_put_scsi_ioreq_lock(hw, scsim, ioreq); in csio_queuecommand()
1941 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_eh_abort_handler() local
1965 CSIO_INC_STATS(scsim, n_abrt_race_comp); in csio_eh_abort_handler()
1984 CSIO_INC_STATS(scsim, n_abrt_busy_error); in csio_eh_abort_handler()
1986 CSIO_INC_STATS(scsim, n_cls_busy_error); in csio_eh_abort_handler()
1999 CSIO_INC_STATS(scsim, n_abrt_timedout); in csio_eh_abort_handler()
2090 struct csio_scsim *scsim = csio_hw_to_scsim(hw); in csio_eh_lun_reset_handler() local
2135 ioreq = csio_get_scsi_ioreq_lock(hw, scsim); in csio_eh_lun_reset_handler()
2139 scsim->stats.n_active); in csio_eh_lun_reset_handler()
2218 csio_scsi_gather_active_ios(scsim, &sld, &local_q); in csio_eh_lun_reset_handler()
2220 retval = csio_scsi_abort_io_q(scsim, &local_q, 30000); in csio_eh_lun_reset_handler()
2230 list_splice_tail_init(&local_q, &scsim->active_q); in csio_eh_lun_reset_handler()
2243 csio_put_scsi_ioreq_lock(hw, scsim, ioreq); in csio_eh_lun_reset_handler()