Lines Matching refs:se_cmd
1366 struct se_cmd *se_cmd; in __qlt_24xx_handle_abts() local
1372 list_for_each_entry(se_cmd, &se_sess->sess_cmd_list, se_cmd_list) { in __qlt_24xx_handle_abts()
1374 container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in __qlt_24xx_handle_abts()
1375 if (se_cmd->tag == abts->exchange_addr_to_abort) { in __qlt_24xx_handle_abts()
1581 if (mcmd->se_cmd.se_tmr_req->function == TMR_ABORT_TASK) in qlt_xmit_tm_rsp()
1616 if (cmd->se_cmd.prot_op == TARGET_PROT_NORMAL) { in qlt_pci_map_calc_cnt()
1627 if ((cmd->se_cmd.prot_op == TARGET_PROT_DIN_INSERT) || in qlt_pci_map_calc_cnt()
1628 (cmd->se_cmd.prot_op == TARGET_PROT_DOUT_STRIP)) { in qlt_pci_map_calc_cnt()
1642 if ((cmd->se_cmd.prot_op == TARGET_PROT_DIN_INSERT) || in qlt_pci_map_calc_cnt()
1643 (cmd->se_cmd.prot_op == TARGET_PROT_DOUT_STRIP)) { in qlt_pci_map_calc_cnt()
1923 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_pre_xmit_response() local
1946 if (se_cmd->se_cmd_flags & SCF_UNDERFLOW_BIT) { in qlt_pre_xmit_response()
1947 prm->residual = se_cmd->residual_count; in qlt_pre_xmit_response()
1950 prm->residual, se_cmd->tag, in qlt_pre_xmit_response()
1951 se_cmd->t_task_cdb ? se_cmd->t_task_cdb[0] : 0, in qlt_pre_xmit_response()
1954 } else if (se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) { in qlt_pre_xmit_response()
1955 prm->residual = se_cmd->residual_count; in qlt_pre_xmit_response()
1958 prm->residual, se_cmd->tag, se_cmd->t_task_cdb ? in qlt_pre_xmit_response()
1959 se_cmd->t_task_cdb[0] : 0, cmd->bufflen, prm->rq_result); in qlt_pre_xmit_response()
2032 "Dropping cmd %p (tag %d) status", cmd, se_cmd->tag); in qlt_check_srr_debug()
2056 " cmd->sg_cnt %d)", cmd, se_cmd->tag, tot_len, leave, in qlt_check_srr_debug()
2068 "to offset %d (cmd->bufflen %d)", cmd, se_cmd->tag, offset, in qlt_check_srr_debug()
2074 "qlt_set_data_offset() failed (tag %d)", se_cmd->tag); in qlt_check_srr_debug()
2100 if (prm->cmd->se_cmd.scsi_status != 0) { in qlt_24xx_init_ctio_to_isp()
2152 qlt_hba_err_chk_enabled(struct se_cmd *se_cmd) in qlt_hba_err_chk_enabled() argument
2161 switch (se_cmd->prot_op) { in qlt_hba_err_chk_enabled()
2186 qlt_set_t10dif_tags(struct se_cmd *se_cmd, struct crc_context *ctx) in qlt_set_t10dif_tags() argument
2188 uint32_t lba = 0xffffffff & se_cmd->t_task_lba; in qlt_set_t10dif_tags()
2198 switch (se_cmd->prot_type) { in qlt_set_t10dif_tags()
2206 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_set_t10dif_tags()
2222 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_set_t10dif_tags()
2238 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_set_t10dif_tags()
2272 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_build_ctio_crc2_pkt() local
2285 vha->vp_idx, __func__, se_cmd, se_cmd->prot_op, in qlt_build_ctio_crc2_pkt()
2286 prm->prot_sg, prm->prot_seg_cnt, se_cmd->t_task_lba); in qlt_build_ctio_crc2_pkt()
2288 if ((se_cmd->prot_op == TARGET_PROT_DIN_INSERT) || in qlt_build_ctio_crc2_pkt()
2289 (se_cmd->prot_op == TARGET_PROT_DOUT_STRIP)) in qlt_build_ctio_crc2_pkt()
2296 switch (se_cmd->prot_op) { in qlt_build_ctio_crc2_pkt()
2315 if (!qlt_hba_err_chk_enabled(se_cmd)) in qlt_build_ctio_crc2_pkt()
2319 if ((se_cmd->prot_type == TARGET_DIF_TYPE1_PROT) || in qlt_build_ctio_crc2_pkt()
2320 (se_cmd->prot_type == TARGET_DIF_TYPE2_PROT)) in qlt_build_ctio_crc2_pkt()
2322 else if (se_cmd->prot_type == TARGET_DIF_TYPE3_PROT) in qlt_build_ctio_crc2_pkt()
2326 switch (se_cmd->prot_op) { in qlt_build_ctio_crc2_pkt()
2411 qlt_set_t10dif_tags(se_cmd, crc_ctx_pkt); in qlt_build_ctio_crc2_pkt()
2503 &cmd->se_cmd); in qlt_xmit_response()
2533 if (cmd->se_cmd.prot_op && (xmit_type & QLA_TGT_XMIT_DATA)) in qlt_xmit_response()
2549 if (cmd->se_cmd.prot_op == TARGET_PROT_NORMAL) in qlt_xmit_response()
2674 if (cmd->se_cmd.prot_op) in qlt_rdy_to_xfer()
2688 if (cmd->se_cmd.prot_op == TARGET_PROT_NORMAL) in qlt_rdy_to_xfer()
2723 uint64_t lba = cmd->se_cmd.t_task_lba; in qlt_handle_dif_error()
2747 ((cmd->se_cmd.prot_type != TARGET_DIF_TYPE3_PROT) || in qlt_handle_dif_error()
2753 cmd->se_cmd.bad_sector = e_ref_tag; in qlt_handle_dif_error()
2754 cmd->se_cmd.pi_err = 0; in qlt_handle_dif_error()
2794 if (cmd->se_cmd.prot_type == SCSI_PROT_DIF_TYPE3) in qlt_handle_dif_error()
2804 cmd->se_cmd.pi_err = TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED; in qlt_handle_dif_error()
2805 cmd->se_cmd.bad_sector = cmd->se_cmd.t_task_lba; in qlt_handle_dif_error()
2817 cmd->se_cmd.pi_err = TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED; in qlt_handle_dif_error()
2818 cmd->se_cmd.bad_sector = e_ref_tag; in qlt_handle_dif_error()
2830 cmd->se_cmd.pi_err = TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED; in qlt_handle_dif_error()
2831 cmd->se_cmd.bad_sector = cmd->se_cmd.t_task_lba; in qlt_handle_dif_error()
3076 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_abort_cmd() local
3080 "(se_cmd=%p, tag=%llu)", vha->vp_idx, cmd, &cmd->se_cmd, in qlt_abort_cmd()
3081 se_cmd->tag); in qlt_abort_cmd()
3096 __func__, &cmd->se_cmd, in qlt_free_cmd()
3114 percpu_ida_free(&sess->se_sess->sess_tag_pool, cmd->se_cmd.map_tag); in qlt_free_cmd()
3360 struct se_cmd *se_cmd; in qlt_do_ctio_completion() local
3377 se_cmd = &cmd->se_cmd; in qlt_do_ctio_completion()
3396 status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3405 status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3412 vha->vp_idx, status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3423 vha->vp_idx, status, cmd->state, se_cmd, in qlt_do_ctio_completion()
3452 vha->vp_idx, status, cmd->state, se_cmd); in qlt_do_ctio_completion()
3485 "Aborted command %p (tag %lld) finished\n", cmd, se_cmd->tag); in qlt_do_ctio_completion()
3564 cmd->se_cmd.tag = atio->u.isp24.exchange_addr; in __qlt_do_work()
3608 percpu_ida_free(&sess->se_sess->sess_tag_pool, cmd->se_cmd.map_tag); in __qlt_do_work()
3646 cmd->se_cmd.map_tag = tag; in qlt_get_tag()
4444 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_handle_srr() local
4473 if (se_cmd->scsi_status != 0) { in qlt_handle_srr()
4479 cmd->bufflen = se_cmd->data_length; in qlt_handle_srr()
4492 vha->vp_idx, se_cmd->tag, in qlt_handle_srr()
4493 cmd->se_cmd.scsi_status); in qlt_handle_srr()
4505 if (se_cmd->scsi_status != 0) { in qlt_handle_srr()
4511 cmd->bufflen = se_cmd->data_length; in qlt_handle_srr()
4527 vha->vp_idx, se_cmd->tag, cmd->se_cmd.scsi_status); in qlt_handle_srr()
4541 qlt_xmit_response(cmd, xmit_type, se_cmd->scsi_status); in qlt_handle_srr()
4601 struct se_cmd *se_cmd; in qlt_handle_srr_work() local
4646 se_cmd = &cmd->se_cmd; in qlt_handle_srr_work()
4648 cmd->sg_cnt = se_cmd->t_data_nents; in qlt_handle_srr_work()
4649 cmd->sg = se_cmd->t_data_sg; in qlt_handle_srr_work()
4653 cmd, &cmd->se_cmd, se_cmd->tag, se_cmd->t_task_cdb ? in qlt_handle_srr_work()
4654 se_cmd->t_task_cdb[0] : 0, cmd->sg_cnt, cmd->offset); in qlt_handle_srr_work()