Lines Matching refs:avail
290 size_t avail, delta, tmp; in vio_cmo_entitlement_update() local
316 avail = vio_cmo.excess.free; in vio_cmo_entitlement_update()
323 if (avail >= delta) in vio_cmo_entitlement_update()
329 avail += viodev->cmo.entitled - in vio_cmo_entitlement_update()
334 if (delta <= avail) { in vio_cmo_entitlement_update()
399 size_t avail = 0, level, chunk, need; in vio_cmo_balance() local
417 avail = cmo->entitled - cmo->spare; in vio_cmo_balance()
423 avail -= max_t(size_t, viodev->cmo.allocated, VIO_CMO_MIN_ENT); in vio_cmo_balance()
432 while (avail) { in vio_cmo_balance()
447 chunk = min_t(size_t, avail, VIO_CMO_BALANCE_CHUNK); in vio_cmo_balance()
459 avail -= need; in vio_cmo_balance()