Lines Matching refs: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 struct se_device *dev = tmr->tmr_dev; in core_tmr_release_req()
58 list_del_init(&tmr->tmr_list); in core_tmr_release_req()
62 kfree(tmr); in core_tmr_release_req()
116 struct se_tmr_req *tmr, in core_tmr_abort_task() argument
134 if (tmr->ref_task_tag != ref_tag) in core_tmr_abort_task()
150 if (!tmr->tmr_dev) in core_tmr_abort_task()
151 WARN_ON_ONCE(transport_lookup_tmr_lun(tmr->task_cmd, in core_tmr_abort_task()
158 tmr->response = TMR_FUNCTION_COMPLETE; in core_tmr_abort_task()
165 tmr->ref_task_tag); in core_tmr_abort_task()
166 tmr->response = TMR_TASK_DOES_NOT_EXIST; in core_tmr_abort_task()
172 struct se_tmr_req *tmr, in core_tmr_drain_tmr_list() argument
186 if (tmr) in core_tmr_drain_tmr_list()
187 list_del_init(&tmr->tmr_list); in core_tmr_drain_tmr_list()
330 struct se_tmr_req *tmr, in core_tmr_lun_reset() argument
354 if (tmr && tmr->task_cmd && tmr->task_cmd->se_sess) { in core_tmr_lun_reset()
355 tmr_sess = tmr->task_cmd->se_sess; in core_tmr_lun_reset()
369 core_tmr_drain_tmr_list(dev, tmr, preempt_and_abort_list); in core_tmr_lun_reset()