Lines Matching full:ua

80 	struct se_ua *ua, *ua_p, *ua_tmp;  in core_scsi3_ua_allocate()  local
82 ua = kmem_cache_zalloc(se_ua_cache, GFP_ATOMIC); in core_scsi3_ua_allocate()
83 if (!ua) { in core_scsi3_ua_allocate()
87 INIT_LIST_HEAD(&ua->ua_nacl_list); in core_scsi3_ua_allocate()
89 ua->ua_asc = asc; in core_scsi3_ua_allocate()
90 ua->ua_ascq = ascq; in core_scsi3_ua_allocate()
99 kmem_cache_free(se_ua_cache, ua); in core_scsi3_ua_allocate()
123 list_add(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
126 list_add_tail(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
134 list_add(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
137 list_add_tail(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
140 list_add_tail(&ua->ua_nacl_list, in core_scsi3_ua_allocate()
146 list_add_tail(&ua->ua_nacl_list, &deve->ua_list); in core_scsi3_ua_allocate()
178 struct se_ua *ua, *ua_p; in core_scsi3_ua_release_all() local
181 list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_release_all()
182 list_del(&ua->ua_nacl_list); in core_scsi3_ua_release_all()
183 kmem_cache_free(se_ua_cache, ua); in core_scsi3_ua_release_all()
200 struct se_ua *ua = NULL, *ua_p; in core_scsi3_ua_for_check_condition() local
228 list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_for_check_condition()
235 *asc = ua->ua_asc; in core_scsi3_ua_for_check_condition()
236 *ascq = ua->ua_ascq; in core_scsi3_ua_for_check_condition()
241 * condition. Return the ASC/ASCQ of the highest priority UA in core_scsi3_ua_for_check_condition()
245 *asc = ua->ua_asc; in core_scsi3_ua_for_check_condition()
246 *ascq = ua->ua_ascq; in core_scsi3_ua_for_check_condition()
249 list_del(&ua->ua_nacl_list); in core_scsi3_ua_for_check_condition()
250 kmem_cache_free(se_ua_cache, ua); in core_scsi3_ua_for_check_condition()
274 struct se_ua *ua = NULL, *ua_p; in core_scsi3_ua_clear_for_request_sense() local
305 list_for_each_entry_safe(ua, ua_p, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_clear_for_request_sense()
307 *asc = ua->ua_asc; in core_scsi3_ua_clear_for_request_sense()
308 *ascq = ua->ua_ascq; in core_scsi3_ua_clear_for_request_sense()
311 list_del(&ua->ua_nacl_list); in core_scsi3_ua_clear_for_request_sense()
312 kmem_cache_free(se_ua_cache, ua); in core_scsi3_ua_clear_for_request_sense()