Lines Matching refs:se_cmd
1367 struct se_cmd *se_cmd; in __qlt_24xx_handle_abts() local
1373 list_for_each_entry(se_cmd, &se_sess->sess_cmd_list, se_cmd_list) { in __qlt_24xx_handle_abts()
1375 container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in __qlt_24xx_handle_abts()
1583 if (mcmd->se_cmd.se_tmr_req->function == TMR_ABORT_TASK) in qlt_xmit_tm_rsp()
1618 if (cmd->se_cmd.prot_op == TARGET_PROT_NORMAL) { in qlt_pci_map_calc_cnt()
1629 if ((cmd->se_cmd.prot_op == TARGET_PROT_DIN_INSERT) || in qlt_pci_map_calc_cnt()
1630 (cmd->se_cmd.prot_op == TARGET_PROT_DOUT_STRIP)) { in qlt_pci_map_calc_cnt()
1644 if ((cmd->se_cmd.prot_op == TARGET_PROT_DIN_INSERT) || in qlt_pci_map_calc_cnt()
1645 (cmd->se_cmd.prot_op == TARGET_PROT_DOUT_STRIP)) { in qlt_pci_map_calc_cnt()
1925 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_pre_xmit_response() local
1948 if (se_cmd->se_cmd_flags & SCF_UNDERFLOW_BIT) { in qlt_pre_xmit_response()
1949 prm->residual = se_cmd->residual_count; in qlt_pre_xmit_response()
1953 cmd->tag, se_cmd->t_task_cdb ? se_cmd->t_task_cdb[0] : 0, in qlt_pre_xmit_response()
1956 } else if (se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) { in qlt_pre_xmit_response()
1957 prm->residual = se_cmd->residual_count; in qlt_pre_xmit_response()
1961 cmd->tag, se_cmd->t_task_cdb ? se_cmd->t_task_cdb[0] : 0, in qlt_pre_xmit_response()
2104 if (prm->cmd->se_cmd.scsi_status != 0) { in qlt_24xx_init_ctio_to_isp()
2156 qlt_hba_err_chk_enabled(struct se_cmd *se_cmd) in qlt_hba_err_chk_enabled() argument
2165 switch (se_cmd->prot_op) { in qlt_hba_err_chk_enabled()
2190 qlt_set_t10dif_tags(struct se_cmd *se_cmd, struct crc_context *ctx) in qlt_set_t10dif_tags() argument
2192 uint32_t lba = 0xffffffff & se_cmd->t_task_lba; in qlt_set_t10dif_tags()
2202 switch (se_cmd->prot_type) { in qlt_set_t10dif_tags()
2210 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_set_t10dif_tags()
2226 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_set_t10dif_tags()
2242 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_set_t10dif_tags()
2277 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_build_ctio_crc2_pkt() local
2291 vha->vp_idx, __func__, se_cmd, se_cmd->prot_op, in qlt_build_ctio_crc2_pkt()
2292 prm->prot_sg, prm->prot_seg_cnt, se_cmd->t_task_lba); in qlt_build_ctio_crc2_pkt()
2294 if ((se_cmd->prot_op == TARGET_PROT_DIN_INSERT) || in qlt_build_ctio_crc2_pkt()
2295 (se_cmd->prot_op == TARGET_PROT_DOUT_STRIP)) in qlt_build_ctio_crc2_pkt()
2302 switch (se_cmd->prot_op) { in qlt_build_ctio_crc2_pkt()
2321 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_build_ctio_crc2_pkt()
2325 if ((se_cmd->prot_type == TARGET_DIF_TYPE1_PROT) || in qlt_build_ctio_crc2_pkt()
2326 (se_cmd->prot_type == TARGET_DIF_TYPE2_PROT)) in qlt_build_ctio_crc2_pkt()
2328 else if (se_cmd->prot_type == TARGET_DIF_TYPE3_PROT) in qlt_build_ctio_crc2_pkt()
2332 switch (se_cmd->prot_op) { in qlt_build_ctio_crc2_pkt()
2417 qlt_set_t10dif_tags(se_cmd, crc_ctx_pkt); in qlt_build_ctio_crc2_pkt()
2509 &cmd->se_cmd); in qlt_xmit_response()
2539 if (cmd->se_cmd.prot_op && (xmit_type & QLA_TGT_XMIT_DATA)) in qlt_xmit_response()
2555 if (cmd->se_cmd.prot_op == TARGET_PROT_NORMAL) in qlt_xmit_response()
2680 if (cmd->se_cmd.prot_op) in qlt_rdy_to_xfer()
2694 if (cmd->se_cmd.prot_op == TARGET_PROT_NORMAL) in qlt_rdy_to_xfer()
2729 uint64_t lba = cmd->se_cmd.t_task_lba; in qlt_handle_dif_error()
2753 ((cmd->se_cmd.prot_type != TARGET_DIF_TYPE3_PROT) || in qlt_handle_dif_error()
2759 cmd->se_cmd.bad_sector = e_ref_tag; in qlt_handle_dif_error()
2760 cmd->se_cmd.pi_err = 0; in qlt_handle_dif_error()
2801 if (cmd->se_cmd.prot_type == SCSI_PROT_DIF_TYPE3) in qlt_handle_dif_error()
2811 cmd->se_cmd.pi_err = TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED; in qlt_handle_dif_error()
2812 cmd->se_cmd.bad_sector = cmd->se_cmd.t_task_lba; in qlt_handle_dif_error()
2824 cmd->se_cmd.pi_err = TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED; in qlt_handle_dif_error()
2825 cmd->se_cmd.bad_sector = e_ref_tag; in qlt_handle_dif_error()
2837 cmd->se_cmd.pi_err = TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED; in qlt_handle_dif_error()
2838 cmd->se_cmd.bad_sector = cmd->se_cmd.t_task_lba; in qlt_handle_dif_error()
3083 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_abort_cmd() local
3087 "(se_cmd=%p, tag=%llu)", vha->vp_idx, cmd, &cmd->se_cmd, in qlt_abort_cmd()
3103 __func__, &cmd->se_cmd, in qlt_free_cmd()
3121 percpu_ida_free(&sess->se_sess->sess_tag_pool, cmd->se_cmd.map_tag); in qlt_free_cmd()
3367 struct se_cmd *se_cmd; in qlt_do_ctio_completion() local
3385 se_cmd = &cmd->se_cmd; in qlt_do_ctio_completion()
3386 tfo = se_cmd->se_tfo; in qlt_do_ctio_completion()
3405 status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3414 status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3421 vha->vp_idx, status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3432 vha->vp_idx, status, cmd->state, se_cmd, in qlt_do_ctio_completion()
3461 vha->vp_idx, status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3620 percpu_ida_free(&sess->se_sess->sess_tag_pool, cmd->se_cmd.map_tag); in __qlt_do_work()
3658 cmd->se_cmd.map_tag = tag; in qlt_get_tag()
4455 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_handle_srr() local
4484 if (se_cmd->scsi_status != 0) { in qlt_handle_srr()
4490 cmd->bufflen = se_cmd->data_length; in qlt_handle_srr()
4505 cmd->se_cmd.scsi_status); in qlt_handle_srr()
4517 if (se_cmd->scsi_status != 0) { in qlt_handle_srr()
4523 cmd->bufflen = se_cmd->data_length; in qlt_handle_srr()
4541 cmd->se_cmd.scsi_status); in qlt_handle_srr()
4555 qlt_xmit_response(cmd, xmit_type, se_cmd->scsi_status); in qlt_handle_srr()
4611 struct se_cmd *se_cmd; in qlt_handle_srr_work() local
4656 se_cmd = &cmd->se_cmd; in qlt_handle_srr_work()
4658 cmd->sg_cnt = se_cmd->t_data_nents; in qlt_handle_srr_work()
4659 cmd->sg = se_cmd->t_data_sg; in qlt_handle_srr_work()
4663 "sg_cnt=%d, offset=%d", cmd, &cmd->se_cmd, cmd->tag, in qlt_handle_srr_work()
4664 se_cmd->t_task_cdb ? se_cmd->t_task_cdb[0] : 0, in qlt_handle_srr_work()