Lines Matching refs:se_cmd
1234 req->se_cmd.tag = req->orb_pointer; in sbp_handle_command()
1235 if (target_submit_cmd(&req->se_cmd, sess->se_sess, req->cmd_buf, in sbp_handle_command()
1267 if (req->se_cmd.data_direction == DMA_FROM_DEVICE) { in sbp_rw_data()
1301 length = req->se_cmd.data_length; in sbp_rw_data()
1304 sg_miter_start(&iter, req->se_cmd.t_data_sg, req->se_cmd.t_data_nents, in sbp_rw_data()
1368 struct se_cmd *se_cmd = &req->se_cmd; in sbp_sense_mangle() local
1372 WARN_ON(se_cmd->scsi_sense_length < 18); in sbp_sense_mangle()
1398 status[0] |= se_cmd->scsi_status & 0x3f;/* status */ in sbp_sense_mangle()
1403 status[2] = se_cmd->scsi_asc; /* sense_code */ in sbp_sense_mangle()
1404 status[3] = se_cmd->scsi_ascq; /* sense_qualifier */ in sbp_sense_mangle()
1435 struct se_cmd *se_cmd = &req->se_cmd; in sbp_send_sense() local
1437 if (se_cmd->scsi_sense_length) { in sbp_send_sense()
1713 static void sbp_release_cmd(struct se_cmd *se_cmd) in sbp_release_cmd() argument
1715 struct sbp_target_request *req = container_of(se_cmd, in sbp_release_cmd()
1716 struct sbp_target_request, se_cmd); in sbp_release_cmd()
1736 static int sbp_write_pending(struct se_cmd *se_cmd) in sbp_write_pending() argument
1738 struct sbp_target_request *req = container_of(se_cmd, in sbp_write_pending()
1739 struct sbp_target_request, se_cmd); in sbp_write_pending()
1755 target_execute_cmd(se_cmd); in sbp_write_pending()
1759 static int sbp_write_pending_status(struct se_cmd *se_cmd) in sbp_write_pending_status() argument
1769 static int sbp_get_cmd_state(struct se_cmd *se_cmd) in sbp_get_cmd_state() argument
1774 static int sbp_queue_data_in(struct se_cmd *se_cmd) in sbp_queue_data_in() argument
1776 struct sbp_target_request *req = container_of(se_cmd, in sbp_queue_data_in()
1777 struct sbp_target_request, se_cmd); in sbp_queue_data_in()
1798 static int sbp_queue_status(struct se_cmd *se_cmd) in sbp_queue_status() argument
1800 struct sbp_target_request *req = container_of(se_cmd, in sbp_queue_status()
1801 struct sbp_target_request, se_cmd); in sbp_queue_status()
1806 static void sbp_queue_tm_rsp(struct se_cmd *se_cmd) in sbp_queue_tm_rsp() argument
1810 static void sbp_aborted_task(struct se_cmd *se_cmd) in sbp_aborted_task() argument
1815 static int sbp_check_stop_free(struct se_cmd *se_cmd) in sbp_check_stop_free() argument
1817 struct sbp_target_request *req = container_of(se_cmd, in sbp_check_stop_free()
1818 struct sbp_target_request, se_cmd); in sbp_check_stop_free()
1820 transport_generic_free_cmd(&req->se_cmd, 0); in sbp_check_stop_free()