Lines Matching refs:se_cmd
923 req->se_cmd.map_tag = tag; in sbp_mgt_get_req()
924 req->se_cmd.map_cpu = cpu; in sbp_mgt_get_req()
925 req->se_cmd.tag = next_orb; in sbp_mgt_get_req()
1220 req->se_cmd.tag = req->orb_pointer; in sbp_handle_command()
1221 if (target_submit_cmd(&req->se_cmd, sess->se_sess, req->cmd_buf, in sbp_handle_command()
1252 if (req->se_cmd.data_direction == DMA_FROM_DEVICE) { in sbp_rw_data()
1286 length = req->se_cmd.data_length; in sbp_rw_data()
1289 sg_miter_start(&iter, req->se_cmd.t_data_sg, req->se_cmd.t_data_nents, in sbp_rw_data()
1354 target_put_sess_cmd(&req->se_cmd); in sbp_send_status()
1360 struct se_cmd *se_cmd = &req->se_cmd; in sbp_sense_mangle() local
1364 WARN_ON(se_cmd->scsi_sense_length < 18); in sbp_sense_mangle()
1390 status[0] |= se_cmd->scsi_status & 0x3f;/* status */ in sbp_sense_mangle()
1395 status[2] = se_cmd->scsi_asc; /* sense_code */ in sbp_sense_mangle()
1396 status[3] = se_cmd->scsi_ascq; /* sense_qualifier */ in sbp_sense_mangle()
1427 struct se_cmd *se_cmd = &req->se_cmd; in sbp_send_sense() local
1429 if (se_cmd->scsi_sense_length) { in sbp_send_sense()
1444 struct se_cmd *se_cmd = &req->se_cmd; in sbp_free_request() local
1445 struct se_session *se_sess = se_cmd->se_sess; in sbp_free_request()
1450 target_free_tag(se_sess, se_cmd); in sbp_free_request()
1703 static void sbp_release_cmd(struct se_cmd *se_cmd) in sbp_release_cmd() argument
1705 struct sbp_target_request *req = container_of(se_cmd, in sbp_release_cmd()
1706 struct sbp_target_request, se_cmd); in sbp_release_cmd()
1716 static int sbp_write_pending(struct se_cmd *se_cmd) in sbp_write_pending() argument
1718 struct sbp_target_request *req = container_of(se_cmd, in sbp_write_pending()
1719 struct sbp_target_request, se_cmd); in sbp_write_pending()
1735 target_execute_cmd(se_cmd); in sbp_write_pending()
1744 static int sbp_get_cmd_state(struct se_cmd *se_cmd) in sbp_get_cmd_state() argument
1749 static int sbp_queue_data_in(struct se_cmd *se_cmd) in sbp_queue_data_in() argument
1751 struct sbp_target_request *req = container_of(se_cmd, in sbp_queue_data_in()
1752 struct sbp_target_request, se_cmd); in sbp_queue_data_in()
1773 static int sbp_queue_status(struct se_cmd *se_cmd) in sbp_queue_status() argument
1775 struct sbp_target_request *req = container_of(se_cmd, in sbp_queue_status()
1776 struct sbp_target_request, se_cmd); in sbp_queue_status()
1781 static void sbp_queue_tm_rsp(struct se_cmd *se_cmd) in sbp_queue_tm_rsp() argument
1785 static void sbp_aborted_task(struct se_cmd *se_cmd) in sbp_aborted_task() argument
1790 static int sbp_check_stop_free(struct se_cmd *se_cmd) in sbp_check_stop_free() argument
1792 struct sbp_target_request *req = container_of(se_cmd, in sbp_check_stop_free()
1793 struct sbp_target_request, se_cmd); in sbp_check_stop_free()
1795 return transport_generic_free_cmd(&req->se_cmd, 0); in sbp_check_stop_free()