Lines Matching refs:se_lun

49 	struct se_lun *se_lun = NULL;  in transport_lookup_cmd_lun()  local
77 se_lun = deve->se_lun; in transport_lookup_cmd_lun()
79 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_cmd_lun()
80 se_lun = NULL; in transport_lookup_cmd_lun()
84 se_cmd->se_lun = se_lun; in transport_lookup_cmd_lun()
92 if (!se_lun) { in transport_lookup_cmd_lun()
114 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
115 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) in transport_lookup_cmd_lun()
118 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
128 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_cmd_lun()
145 struct se_lun *se_lun = NULL; in transport_lookup_tmr_lun() local
153 se_lun = deve->se_lun; in transport_lookup_tmr_lun()
155 if (!percpu_ref_tryget_live(&se_lun->lun_ref)) { in transport_lookup_tmr_lun()
156 se_lun = NULL; in transport_lookup_tmr_lun()
160 se_cmd->se_lun = se_lun; in transport_lookup_tmr_lun()
168 if (!se_lun) { in transport_lookup_tmr_lun()
176 se_cmd->se_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_tmr_lun()
177 se_tmr->tmr_dev = rcu_dereference_raw(se_lun->lun_se_dev); in transport_lookup_tmr_lun()
208 struct se_lun *lun; in core_get_se_deve_from_rtpi()
213 lun = deve->se_lun; in core_get_se_deve_from_rtpi()
241 core_disable_device_list_for_node(deve->se_lun, deve, nacl, tpg); in core_free_device_list_for_node()
287 struct se_lun *lun; in target_dev_ua_allocate()
317 struct se_lun *lun, in core_enable_device_list_for_node()
346 if (orig && orig->se_lun) { in core_enable_device_list_for_node()
347 struct se_lun *orig_lun = orig->se_lun; in core_enable_device_list_for_node()
367 new->se_lun = lun; in core_enable_device_list_for_node()
386 new->se_lun = lun; in core_enable_device_list_for_node()
400 struct se_lun *lun, in core_disable_device_list_for_node()
456 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg()
466 if (lun != deve->se_lun) in core_clear_lun_from_tpg()
510 struct se_lun *lun) in core_dev_add_lun()
549 struct se_lun *lun) in core_dev_del_lun()
589 struct se_lun *lun, in core_dev_add_initiator_node_lun_acl()
605 lacl->se_lun = lun; in core_dev_add_initiator_node_lun_acl()
626 struct se_lun *lun, in core_dev_del_initiator_node_lun_acl()
685 struct se_lun *xcopy_lun; in target_alloc_device()