Home
last modified time | relevance | path

Searched refs:T_TASK (Results 1 – 12 of 12) sorted by relevance

/linux-2.6.39/drivers/target/
Dtarget_core_transport.c626 if (!T_TASK(cmd)) in transport_all_task_dev_remove_state()
629 list_for_each_entry(task, &T_TASK(cmd)->t_task_list, t_list) { in transport_all_task_dev_remove_state()
647 atomic_dec(&T_TASK(cmd)->t_task_cdbs_ex_left); in transport_all_task_dev_remove_state()
666 spin_lock_irqsave(&T_TASK(cmd)->t_state_lock, flags); in transport_cmd_check_stop()
671 if (atomic_read(&T_TASK(cmd)->transport_lun_stop)) { in transport_cmd_check_stop()
678 atomic_set(&T_TASK(cmd)->t_transport_active, 0); in transport_cmd_check_stop()
681 spin_unlock_irqrestore(&T_TASK(cmd)->t_state_lock, flags); in transport_cmd_check_stop()
683 complete(&T_TASK(cmd)->transport_lun_stop_comp); in transport_cmd_check_stop()
690 if (atomic_read(&T_TASK(cmd)->t_transport_stop)) { in transport_cmd_check_stop()
706 spin_unlock_irqrestore(&T_TASK(cmd)->t_state_lock, flags); in transport_cmd_check_stop()
[all …]
Dtarget_core_tmr.c175 spin_lock_irqsave(&T_TASK(cmd)->t_state_lock, flags); in core_tmr_lun_reset()
176 if (!(atomic_read(&T_TASK(cmd)->t_transport_active))) { in core_tmr_lun_reset()
177 spin_unlock_irqrestore(&T_TASK(cmd)->t_state_lock, flags); in core_tmr_lun_reset()
182 spin_unlock_irqrestore(&T_TASK(cmd)->t_state_lock, flags); in core_tmr_lun_reset()
190 spin_unlock_irqrestore(&T_TASK(cmd)->t_state_lock, flags); in core_tmr_lun_reset()
226 if (!T_TASK(cmd)) { in core_tmr_lun_reset()
250 spin_lock_irqsave(&T_TASK(cmd)->t_state_lock, flags); in core_tmr_lun_reset()
257 cmd->deferred_t_state, T_TASK(cmd)->t_task_cdb[0]); in core_tmr_lun_reset()
263 T_TASK(cmd)->t_task_cdbs, in core_tmr_lun_reset()
264 atomic_read(&T_TASK(cmd)->t_task_cdbs_left), in core_tmr_lun_reset()
[all …]
Dtarget_core_pscsi.c737 T_TASK(task->task_se_cmd)->t_task_buf; in pscsi_transport_complete()
803 unsigned char *cdb = T_TASK(cmd)->t_task_cdb; in pscsi_alloc_task()
816 if (T_TASK(cmd)->t_task_cdb != T_TASK(cmd)->__t_task_cdb) { in pscsi_alloc_task()
929 if (T_TASK(cmd)->t_task_cdb != T_TASK(cmd)->__t_task_cdb) in pscsi_free_task()
1306 pt->pscsi_req, T_TASK(cmd)->t_task_buf, in pscsi_map_task_non_SG()
Dtarget_core_rd.c743 T_TASK(task->task_se_cmd)->t_tasks_se_num += *se_mem_cnt; in rd_DIRECT_with_offset()
825 T_TASK(task->task_se_cmd)->t_tasks_se_num += *se_mem_cnt; in rd_DIRECT_without_offset()
888 list_entry(T_TASK(cmd)->t_mem_list->next, in rd_DIRECT_do_se_mem_map()
894 list_entry(T_TASK(cmd)->t_mem_list->next, in rd_DIRECT_do_se_mem_map()
Dtarget_core_pr.c160 if ((T_TASK(cmd)->t_task_cdb[1] & 0x01) && in core_scsi2_reservation_reserve()
161 (T_TASK(cmd)->t_task_cdb[1] & 0x02)) { in core_scsi2_reservation_reserve()
219 unsigned char *cdb = &T_TASK(cmd)->t_task_cdb[0]; in core_scsi2_emulate_crh()
1485 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_scsi3_decode_spec_i_port()
3310 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_scsi3_emulate_pro_register_and_move()
3726 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_scsi3_emulate_pr_out()
3833 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_scsi3_pri_read_keys()
3888 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_scsi3_pri_read_reservation()
3968 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_scsi3_pri_report_capabilities()
4023 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_scsi3_pri_read_full_status()
[all …]
Dtarget_core_ua.c273 cmd->orig_fe_lun, T_TASK(cmd)->t_task_cdb[0], *asc, *ascq); in core_scsi3_ua_for_check_condition()
Dtarget_core_iblock.c337 int immed = (T_TASK(cmd)->t_task_cdb[1] & 0x2); in iblock_emulate_sync_cache()
406 T_TASK(task->task_se_cmd)->t_tasks_fua)) in iblock_do_task()
Dtarget_core_device.c168 atomic_set(&T_TASK(se_cmd)->transport_lun_active, 1); in transport_get_lun_for_cmd()
660 unsigned char *buf = (unsigned char *)T_TASK(se_cmd)->t_task_buf; in transport_core_report_lun_response()
664 list_for_each_entry(se_task, &T_TASK(se_cmd)->t_task_list, t_list) in transport_core_report_lun_response()
Dtarget_core_file.c479 T_TASK(cmd)->t_tasks_fua) { in fd_do_task()
Dtarget_core_alua.c60 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_emulate_report_target_port_groups()
152 unsigned char *buf = (unsigned char *)T_TASK(cmd)->t_task_buf; in core_emulate_set_target_port_groups()
/linux-2.6.39/drivers/target/loopback/
Dtcm_loop.c121 T_TASK(se_cmd)->t_tasks_bidi = 1; in tcm_loop_allocate_core_cmd()
179 if (T_TASK(se_cmd)->t_tasks_bidi) { in tcm_loop_new_cmd_map()
/linux-2.6.39/include/target/
Dtarget_core_base.h554 #define T_TASK(cmd) ((cmd)->t_task) macro