Lines Matching full:tmr

32 	struct se_tmr_req *tmr;  in core_tmr_alloc_req()  local
34 tmr = kzalloc(sizeof(struct se_tmr_req), gfp_flags); in core_tmr_alloc_req()
35 if (!tmr) { in core_tmr_alloc_req()
41 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req()
42 tmr->task_cmd = se_cmd; in core_tmr_alloc_req()
43 tmr->fabric_tmr_ptr = fabric_tmr_ptr; in core_tmr_alloc_req()
44 tmr->function = function; in core_tmr_alloc_req()
45 INIT_LIST_HEAD(&tmr->tmr_list); in core_tmr_alloc_req()
51 void core_tmr_release_req(struct se_tmr_req *tmr) in core_tmr_release_req() argument
53 kfree(tmr); in core_tmr_release_req()
84 * Otherwise, obtain a local se_cmd->cmd_kref now for TMR in __target_check_io_state()
107 struct se_tmr_req *tmr, in core_tmr_abort_task() argument
128 * tmr->task_cmd in core_tmr_abort_task()
134 if (tmr->ref_task_tag != ref_tag) in core_tmr_abort_task()
159 tmr->response = TMR_FUNCTION_COMPLETE; in core_tmr_abort_task()
170 tmr->ref_task_tag); in core_tmr_abort_task()
171 tmr->response = TMR_TASK_DOES_NOT_EXIST; in core_tmr_abort_task()
177 struct se_tmr_req *tmr, in core_tmr_drain_tmr_list() argument
188 * LUN_RESET tmr.. in core_tmr_drain_tmr_list()
192 if (tmr_p == tmr) in core_tmr_drain_tmr_list()
197 pr_err("Unable to locate struct se_cmd for TMR\n"); in core_tmr_drain_tmr_list()
225 printk("LUN_RESET TMR: non-zero kref_get_unless_zero\n"); in core_tmr_drain_tmr_list()
238 pr_debug("LUN_RESET: %s releasing TMR %p Function: 0x%02x," in core_tmr_drain_tmr_list()
282 * for TMR LUN_RESET: in core_tmr_drain_state_list()
356 struct se_tmr_req *tmr, in core_tmr_lun_reset() argument
380 if (tmr && tmr->task_cmd && tmr->task_cmd->se_sess) { in core_tmr_lun_reset()
381 tmr_sess = tmr->task_cmd->se_sess; in core_tmr_lun_reset()
385 pr_debug("LUN_RESET: TMR caller fabric: %s" in core_tmr_lun_reset()
402 (preempt_and_abort_list) ? "Preempt" : "TMR", in core_tmr_lun_reset()
404 core_tmr_drain_tmr_list(dev, tmr, preempt_and_abort_list); in core_tmr_lun_reset()
426 (preempt_and_abort_list) ? "Preempt" : "TMR", in core_tmr_lun_reset()