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