Lines Matching refs:ascw
1046 struct after_state_chg_work *ascw; in __drbd_set_state() local
1251 ascw = kmalloc(sizeof(*ascw), GFP_ATOMIC); in __drbd_set_state()
1252 if (ascw) { in __drbd_set_state()
1253 ascw->os = os; in __drbd_set_state()
1254 ascw->ns = ns; in __drbd_set_state()
1255 ascw->flags = flags; in __drbd_set_state()
1256 ascw->w.cb = w_after_state_ch; in __drbd_set_state()
1257 ascw->done = done; in __drbd_set_state()
1258 drbd_queue_work(&mdev->data.work, &ascw->w); in __drbd_set_state()
1268 struct after_state_chg_work *ascw = in w_after_state_ch() local
1270 after_state_ch(mdev, ascw->os, ascw->ns, ascw->flags); in w_after_state_ch()
1271 if (ascw->flags & CS_WAIT_COMPLETE) { in w_after_state_ch()
1272 D_ASSERT(ascw->done != NULL); in w_after_state_ch()
1273 complete(ascw->done); in w_after_state_ch()
1275 kfree(ascw); in w_after_state_ch()