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);
1783 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
1798 CSIO_INC_STATS(scsim, n_rn_nr_error);
1804 CSIO_INC_STATS(scsim, n_hw_nr_error);
1811 CSIO_INC_STATS(scsim, n_dmamap_error);
1816 if (unlikely(nsge > scsim->max_sge)) {
1819 " SGEs: %d, Max SGEs: %d\n", nsge, scsim->max_sge);
1820 CSIO_INC_STATS(scsim, n_unsupp_sge_error);
1825 ioreq = csio_get_scsi_ioreq_lock(hw, scsim);
1828 scsim->stats.n_active);
1829 CSIO_INC_STATS(scsim, n_no_req_error);
1868 CSIO_INC_STATS(scsim, n_busy_error);
1875 csio_put_scsi_ioreq_lock(hw, scsim, ioreq);
1918 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
1942 CSIO_INC_STATS(scsim, n_abrt_race_comp);
1962 CSIO_INC_STATS(scsim, n_abrt_busy_error);
1964 CSIO_INC_STATS(scsim, n_cls_busy_error);
1975 CSIO_INC_STATS(scsim, n_abrt_timedout);
2066 struct csio_scsim *scsim = csio_hw_to_scsim(hw);
2111 ioreq = csio_get_scsi_ioreq_lock(hw, scsim);
2115 scsim->stats.n_active);
2195 csio_scsi_gather_active_ios(scsim, &sld, &local_q);
2197 retval = csio_scsi_abort_io_q(scsim, &local_q, 30000);
2207 list_splice_tail_init(&local_q, &scsim->active_q);
2220 csio_put_scsi_ioreq_lock(hw, scsim, ioreq);