Lines Matching refs:kts
50 static struct ktstate *kts; variable
1204 if (!kts[actual_id].active) { in ktio()
1207 if (!kts[actual_id].active in ktio()
1208 && aoe_ktstart(&kts[actual_id]) == 0) in ktio()
1209 kts[actual_id].active = 1; in ktio()
1277 if (!kts[id].active) { in ktcomplete()
1636 if (kts[i].active) in aoe_flush_iocq()
1691 kts = kcalloc(ncpus, sizeof(struct ktstate), GFP_KERNEL); in aoecmd_init()
1692 if (!kts) { in aoecmd_init()
1707 snprintf(kts[i].name, sizeof(kts[i].name), "aoe_ktio%d", i); in aoecmd_init()
1708 kts[i].fn = ktio; in aoecmd_init()
1709 kts[i].waitq = &ktiowq[i]; in aoecmd_init()
1710 kts[i].lock = &iocq[i].lock; in aoecmd_init()
1711 kts[i].id = i; in aoecmd_init()
1712 kts[i].active = 0; in aoecmd_init()
1714 kts[0].active = 1; in aoecmd_init()
1715 if (aoe_ktstart(&kts[0])) { in aoecmd_init()
1724 kfree(kts); in aoecmd_init()
1737 if (kts[i].active) in aoecmd_exit()
1738 aoe_ktstop(&kts[i]); in aoecmd_exit()
1746 kfree(kts); in aoecmd_exit()