Lines Matching refs:deve
28 struct se_dev_entry *deve; in target_scsi3_ua_check() local
40 deve = target_nacl_find_deve(nacl, cmd->orig_fe_lun); in target_scsi3_ua_check()
41 if (!deve) { in target_scsi3_ua_check()
45 if (list_empty_careful(&deve->ua_list)) { in target_scsi3_ua_check()
76 struct se_dev_entry *deve, in core_scsi3_ua_allocate() argument
92 spin_lock(&deve->ua_lock); in core_scsi3_ua_allocate()
93 list_for_each_entry_safe(ua_p, ua_tmp, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_allocate()
98 spin_unlock(&deve->ua_lock); in core_scsi3_ua_allocate()
124 &deve->ua_list); in core_scsi3_ua_allocate()
127 &deve->ua_list); in core_scsi3_ua_allocate()
135 &deve->ua_list); in core_scsi3_ua_allocate()
138 &deve->ua_list); in core_scsi3_ua_allocate()
141 &deve->ua_list); in core_scsi3_ua_allocate()
142 spin_unlock(&deve->ua_lock); in core_scsi3_ua_allocate()
146 list_add_tail(&ua->ua_nacl_list, &deve->ua_list); in core_scsi3_ua_allocate()
147 spin_unlock(&deve->ua_lock); in core_scsi3_ua_allocate()
150 " 0x%02x, ASCQ: 0x%02x\n", deve->mapped_lun, in core_scsi3_ua_allocate()
159 struct se_dev_entry *deve; in target_ua_allocate_lun() local
165 deve = target_nacl_find_deve(nacl, unpacked_lun); in target_ua_allocate_lun()
166 if (!deve) { in target_ua_allocate_lun()
171 core_scsi3_ua_allocate(deve, asc, ascq); in target_ua_allocate_lun()
176 struct se_dev_entry *deve) in core_scsi3_ua_release_all() argument
180 spin_lock(&deve->ua_lock); in core_scsi3_ua_release_all()
181 list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_release_all()
185 spin_unlock(&deve->ua_lock); in core_scsi3_ua_release_all()
197 struct se_dev_entry *deve; in core_scsi3_ua_for_check_condition() local
213 deve = target_nacl_find_deve(nacl, cmd->orig_fe_lun); in core_scsi3_ua_for_check_condition()
214 if (!deve) { in core_scsi3_ua_for_check_condition()
227 spin_lock(&deve->ua_lock); in core_scsi3_ua_for_check_condition()
228 list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_for_check_condition()
252 spin_unlock(&deve->ua_lock); in core_scsi3_ua_for_check_condition()
271 struct se_dev_entry *deve; in core_scsi3_ua_clear_for_request_sense() local
285 deve = target_nacl_find_deve(nacl, cmd->orig_fe_lun); in core_scsi3_ua_clear_for_request_sense()
286 if (!deve) { in core_scsi3_ua_clear_for_request_sense()
290 if (list_empty_careful(&deve->ua_list)) { in core_scsi3_ua_clear_for_request_sense()
304 spin_lock(&deve->ua_lock); in core_scsi3_ua_clear_for_request_sense()
305 list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_clear_for_request_sense()
314 spin_unlock(&deve->ua_lock); in core_scsi3_ua_clear_for_request_sense()