Lines Matching refs:kts
51 static struct ktstate *kts; variable
1212 if (!kts[actual_id].active) { in ktio()
1215 if (!kts[actual_id].active in ktio()
1216 && aoe_ktstart(&kts[actual_id]) == 0) in ktio()
1217 kts[actual_id].active = 1; in ktio()
1285 if (!kts[id].active) { in ktcomplete()
1644 if (kts[i].active) in aoe_flush_iocq()
1699 kts = kcalloc(ncpus, sizeof(struct ktstate), GFP_KERNEL); in aoecmd_init()
1700 if (!kts) { in aoecmd_init()
1717 snprintf(kts[i].name, sizeof(kts[i].name), "aoe_ktio%d", i); in aoecmd_init()
1718 kts[i].fn = ktio; in aoecmd_init()
1719 kts[i].waitq = &ktiowq[i]; in aoecmd_init()
1720 kts[i].lock = &iocq[i].lock; in aoecmd_init()
1721 kts[i].id = i; in aoecmd_init()
1722 kts[i].active = 0; in aoecmd_init()
1724 kts[0].active = 1; in aoecmd_init()
1725 if (aoe_ktstart(&kts[0])) { in aoecmd_init()
1734 kfree(kts); in aoecmd_init()
1747 if (kts[i].active) in aoecmd_exit()
1748 aoe_ktstop(&kts[i]); in aoecmd_exit()
1756 kfree(kts); in aoecmd_exit()