Lines Matching defs:vnx
300 pool_init(&vndxfer_pool, sizeof(struct vndxfer), 0, 0, 0, "swp vnx",
1359 struct vndxfer *vnx;
1370 vnx = pool_get(&vndxfer_pool, PR_WAITOK);
1371 vnx->vx_flags = VX_BUSY;
1372 vnx->vx_error = 0;
1373 vnx->vx_pending = 0;
1374 vnx->vx_bp = bp;
1375 vnx->vx_sdp = sdp;
1424 vnx->vx_error = error; /* pass error up */
1464 nbp->vb_xfer = vnx; /* patch it back in to vnx */
1470 if (vnx->vx_error != 0) {
1475 vnx->vx_pending++;
1493 vnx->vx_flags &= ~VX_BUSY;
1494 if (vnx->vx_pending == 0) {
1495 error = vnx->vx_error;
1496 pool_put(&vndxfer_pool, vnx);
1564 struct vndxfer *vnx = vbp->vb_xfer;
1565 struct buf *pbp = vnx->vx_bp; /* parent buffer */
1566 struct swapdev *sdp = vnx->vx_sdp;
1583 vnx->vx_pending--;
1589 vnx->vx_error = error;
1602 if (vnx->vx_error != 0) {
1604 error = vnx->vx_error;
1605 if ((vnx->vx_flags & VX_BUSY) == 0 && vnx->vx_pending == 0) {
1609 pool_put(&vndxfer_pool, vnx);
1612 KASSERT(vnx->vx_pending == 0);
1613 if ((vnx->vx_flags & VX_BUSY) == 0) {
1615 (uintptr_t)pbp, vnx->vx_error, 0, 0);
1617 pool_put(&vndxfer_pool, vnx);