Lines Matching refs:per_store_ap

914 static struct xarray *per_store_ap = &per_store_arr;  variable
1242 lsip = xa_load(per_store_ap, 0); /* should never be NULL */ in lba2fake_store()
3427 return xa_load(per_store_ap, devip->sdbg_host->si_idx); in devip2sip()
6844 if (!xa_empty(per_store_ap)) { in scsi_debug_show_info()
6861 xa_for_each(per_store_ap, l_idx, sip) { in scsi_debug_show_info()
6862 niu = xa_get_mark(per_store_ap, l_idx, in scsi_debug_show_info()
7052 xa_clear_mark(per_store_ap, idx, in fake_rw_store()
7059 xa_set_mark(per_store_ap, sdhp->si_idx, in fake_rw_store()
7376 xa_for_each_marked(per_store_ap, idx, sip, in add_host_store()
7482 if (sdebug_fake_rw == 0 && !xa_empty(per_store_ap)) { in map_show()
7483 struct sdeb_store_info *sip = xa_load(per_store_ap, 0); in map_show()
7886 xa_init_flags(per_store_ap, XA_FLAGS_ALLOC | XA_FLAGS_LOCK_IRQ); in scsi_debug_init()
7968 xa_destroy(per_store_ap); in scsi_debug_exit()
7989 if (xa_empty(per_store_ap)) in sdebug_erase_store()
7991 sip = xa_load(per_store_ap, idx); in sdebug_erase_store()
7998 xa_erase(per_store_ap, idx); in sdebug_erase_store()
8008 xa_for_each(per_store_ap, idx, sip) { in sdebug_erase_all_stores()
8035 xa_lock_irqsave(per_store_ap, iflags); in sdebug_add_store()
8036 res = __xa_alloc(per_store_ap, &n_idx, sip, xal, GFP_ATOMIC); in sdebug_add_store()
8038 xa_unlock_irqrestore(per_store_ap, iflags); in sdebug_add_store()
8046 xa_unlock_irqrestore(per_store_ap, iflags); in sdebug_add_store()
8114 if (xa_get_mark(per_store_ap, idx, SDEB_XA_NOT_IN_USE)) in sdebug_add_host_helper()
8115 xa_clear_mark(per_store_ap, idx, SDEB_XA_NOT_IN_USE); in sdebug_add_host_helper()
8198 xa_set_mark(per_store_ap, idx, SDEB_XA_NOT_IN_USE); in sdebug_do_remove_host()