Lines Matching refs:allocated
154 if (viodev->cmo.entitled > viodev->cmo.allocated) in vio_cmo_alloc()
155 reserve_free = viodev->cmo.entitled - viodev->cmo.allocated; in vio_cmo_alloc()
166 viodev->cmo.allocated += size; in vio_cmo_alloc()
201 if (viodev->cmo.allocated > viodev->cmo.entitled) { in vio_cmo_dealloc()
202 excess_freed = min(reserve_freed, (viodev->cmo.allocated - in vio_cmo_dealloc()
208 viodev->cmo.allocated -= (reserve_freed + excess_freed); in vio_cmo_dealloc()
319 if ((viodev->cmo.entitled > viodev->cmo.allocated) && in vio_cmo_entitlement_update()
322 max_t(size_t, viodev->cmo.allocated, in vio_cmo_entitlement_update()
345 if ((viodev->cmo.entitled > viodev->cmo.allocated) && in vio_cmo_entitlement_update()
348 max_t(size_t, viodev->cmo.allocated, in vio_cmo_entitlement_update()
415 avail -= max_t(size_t, viodev->cmo.allocated, VIO_CMO_MIN_ENT); in vio_cmo_balance()
449 need = max(viodev->cmo.allocated, viodev->cmo.entitled)- in vio_cmo_balance()
450 max(viodev->cmo.allocated, level); in vio_cmo_balance()
471 if (viodev->cmo.allocated > viodev->cmo.entitled) in vio_cmo_balance()
472 need += viodev->cmo.allocated - viodev->cmo.entitled; in vio_cmo_balance()
676 if (viodev->cmo.allocated < viodev->cmo.entitled) in vio_cmo_set_dev_desired()
678 max(viodev->cmo.allocated, desired); in vio_cmo_set_dev_desired()
816 if (viodev->cmo.allocated) { in vio_cmo_bus_remove()
819 __func__, viodev->cmo.allocated); in vio_cmo_bus_remove()
977 viodev_cmo_rd_attr(allocated);