Lines Matching refs:ascw
1283 struct after_state_chg_work *ascw; in _drbd_set_state() local
1483 ascw = kmalloc(sizeof(*ascw), GFP_ATOMIC); in _drbd_set_state()
1484 if (ascw) { in _drbd_set_state()
1485 ascw->os = os; in _drbd_set_state()
1486 ascw->ns = ns; in _drbd_set_state()
1487 ascw->flags = flags; in _drbd_set_state()
1488 ascw->w.cb = w_after_state_ch; in _drbd_set_state()
1489 ascw->device = device; in _drbd_set_state()
1490 ascw->done = done; in _drbd_set_state()
1491 ascw->state_change = state_change; in _drbd_set_state()
1493 &ascw->w); in _drbd_set_state()
1503 struct after_state_chg_work *ascw = in w_after_state_ch() local
1505 struct drbd_device *device = ascw->device; in w_after_state_ch()
1507 after_state_ch(device, ascw->os, ascw->ns, ascw->flags, ascw->state_change); in w_after_state_ch()
1508 forget_state_change(ascw->state_change); in w_after_state_ch()
1509 if (ascw->flags & CS_WAIT_COMPLETE) in w_after_state_ch()
1510 complete(ascw->done); in w_after_state_ch()
1511 kfree(ascw); in w_after_state_ch()