Lines Matching refs:ascw
1269 struct after_state_chg_work *ascw; in _drbd_set_state() local
1469 ascw = kmalloc(sizeof(*ascw), GFP_ATOMIC); in _drbd_set_state()
1470 if (ascw) { in _drbd_set_state()
1471 ascw->os = os; in _drbd_set_state()
1472 ascw->ns = ns; in _drbd_set_state()
1473 ascw->flags = flags; in _drbd_set_state()
1474 ascw->w.cb = w_after_state_ch; in _drbd_set_state()
1475 ascw->device = device; in _drbd_set_state()
1476 ascw->done = done; in _drbd_set_state()
1477 ascw->state_change = state_change; in _drbd_set_state()
1479 &ascw->w); in _drbd_set_state()
1489 struct after_state_chg_work *ascw = in w_after_state_ch() local
1491 struct drbd_device *device = ascw->device; in w_after_state_ch()
1493 after_state_ch(device, ascw->os, ascw->ns, ascw->flags, ascw->state_change); in w_after_state_ch()
1494 forget_state_change(ascw->state_change); in w_after_state_ch()
1495 if (ascw->flags & CS_WAIT_COMPLETE) in w_after_state_ch()
1496 complete(ascw->done); in w_after_state_ch()
1497 kfree(ascw); in w_after_state_ch()