Lines Matching refs:scsim

259 	struct csio_scsim *scsim = csio_hw_to_scsim(hw);
260 uint32_t size = CSIO_SCSI_CMD_WR_SZ_16(scsim->proto_cmd_len);
484 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
486 CSIO_SCSI_DATA_WRSZ(req, read, size, scsim->proto_cmd_len);
521 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
523 CSIO_SCSI_DATA_WRSZ(req, write, size, scsim->proto_cmd_len);
553 csio_setup_ddp(struct csio_scsim *scsim, struct csio_ioreq *req)
599 CSIO_INC_STATS(scsim, n_unaligned);
613 dma_buf = csio_get_scsi_ddp(scsim);
614 if (dma_buf == NULL || i > scsim->max_sge) {
633 csio_put_scsi_ddp_list(scsim, &req->gen_list, i);
706 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
716 csio_setup_ddp(scsim, req);
724 list_add_tail(&req->sm.sm_list, &scsim->active_q);
726 CSIO_INC_STATS(scsim, n_active);
744 list_add_tail(&req->sm.sm_list, &scsim->active_q);
746 CSIO_INC_STATS(scsim, n_tm_active);
1197 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
1201 CSIO_INC_STATS(scsim, n_abrt_race_comp);
1210 CSIO_INC_STATS(scsim, n_abrt_busy_error);
1212 CSIO_INC_STATS(scsim, n_cls_busy_error);
1779 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
1794 CSIO_INC_STATS(scsim, n_rn_nr_error);
1800 CSIO_INC_STATS(scsim, n_hw_nr_error);
1807 CSIO_INC_STATS(scsim, n_dmamap_error);
1812 if (unlikely(nsge > scsim->max_sge)) {
1815 " SGEs: %d, Max SGEs: %d\n", nsge, scsim->max_sge);
1816 CSIO_INC_STATS(scsim, n_unsupp_sge_error);
1821 ioreq = csio_get_scsi_ioreq_lock(hw, scsim);
1824 scsim->stats.n_active);
1825 CSIO_INC_STATS(scsim, n_no_req_error);
1864 CSIO_INC_STATS(scsim, n_busy_error);
1871 csio_put_scsi_ioreq_lock(hw, scsim, ioreq);
1914 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
1938 CSIO_INC_STATS(scsim, n_abrt_race_comp);
1958 CSIO_INC_STATS(scsim, n_abrt_busy_error);
1960 CSIO_INC_STATS(scsim, n_cls_busy_error);
1971 CSIO_INC_STATS(scsim, n_abrt_timedout);
2062 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
2107 ioreq = csio_get_scsi_ioreq_lock(hw, scsim);
2111 scsim->stats.n_active);
2190 csio_scsi_gather_active_ios(scsim, &sld, &local_q);
2192 retval = csio_scsi_abort_io_q(scsim, &local_q, 30000);
2202 list_splice_tail_init(&local_q, &scsim->active_q);
2215 csio_put_scsi_ioreq_lock(hw, scsim, ioreq);