Lines Matching refs:ascw
985 struct after_state_chg_work *ascw; in __drbd_set_state() local
1179 ascw = kmalloc(sizeof(*ascw), GFP_ATOMIC); in __drbd_set_state()
1180 if (ascw) { in __drbd_set_state()
1181 ascw->os = os; in __drbd_set_state()
1182 ascw->ns = ns; in __drbd_set_state()
1183 ascw->flags = flags; in __drbd_set_state()
1184 ascw->w.cb = w_after_state_ch; in __drbd_set_state()
1185 ascw->device = device; in __drbd_set_state()
1186 ascw->done = done; in __drbd_set_state()
1188 &ascw->w); in __drbd_set_state()
1198 struct after_state_chg_work *ascw = in w_after_state_ch() local
1200 struct drbd_device *device = ascw->device; in w_after_state_ch()
1202 after_state_ch(device, ascw->os, ascw->ns, ascw->flags); in w_after_state_ch()
1203 if (ascw->flags & CS_WAIT_COMPLETE) in w_after_state_ch()
1204 complete(ascw->done); in w_after_state_ch()
1205 kfree(ascw); in w_after_state_ch()