cmo               107 arch/powerpc/include/asm/vio.h 	} cmo;
cmo               885 arch/powerpc/kernel/prom_init.c 	u8 cmo;
cmo              1039 arch/powerpc/kernel/prom_init.c 		.cmo =
cmo               152 arch/powerpc/platforms/pseries/vio.c 	if (viodev->cmo.entitled > viodev->cmo.allocated)
cmo               153 arch/powerpc/platforms/pseries/vio.c 		reserve_free = viodev->cmo.entitled - viodev->cmo.allocated;
cmo               164 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.allocated += size;
cmo               199 arch/powerpc/platforms/pseries/vio.c 	if (viodev->cmo.allocated > viodev->cmo.entitled) {
cmo               200 arch/powerpc/platforms/pseries/vio.c 		excess_freed = min(reserve_freed, (viodev->cmo.allocated -
cmo               201 arch/powerpc/platforms/pseries/vio.c 		                                   viodev->cmo.entitled));
cmo               206 arch/powerpc/platforms/pseries/vio.c 	viodev->cmo.allocated -= (reserve_freed + excess_freed);
cmo               232 arch/powerpc/platforms/pseries/vio.c 		tmp = min3(spare_needed, reserve_freed, (viodev->cmo.entitled - VIO_CMO_MIN_ENT));
cmo               235 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.entitled -= tmp;
cmo               317 arch/powerpc/platforms/pseries/vio.c 		if ((viodev->cmo.entitled > viodev->cmo.allocated) &&
cmo               318 arch/powerpc/platforms/pseries/vio.c 		    (viodev->cmo.entitled > VIO_CMO_MIN_ENT))
cmo               319 arch/powerpc/platforms/pseries/vio.c 				avail += viodev->cmo.entitled -
cmo               320 arch/powerpc/platforms/pseries/vio.c 				         max_t(size_t, viodev->cmo.allocated,
cmo               343 arch/powerpc/platforms/pseries/vio.c 			if ((viodev->cmo.entitled > viodev->cmo.allocated) &&
cmo               344 arch/powerpc/platforms/pseries/vio.c 			    (viodev->cmo.entitled > VIO_CMO_MIN_ENT))
cmo               345 arch/powerpc/platforms/pseries/vio.c 				tmp = viodev->cmo.entitled -
cmo               346 arch/powerpc/platforms/pseries/vio.c 				      max_t(size_t, viodev->cmo.allocated,
cmo               348 arch/powerpc/platforms/pseries/vio.c 			viodev->cmo.entitled -= min(tmp, delta);
cmo               385 arch/powerpc/platforms/pseries/vio.c 	struct vio_cmo *cmo;
cmo               392 arch/powerpc/platforms/pseries/vio.c 	cmo = container_of(work, struct vio_cmo, balance_q.work);
cmo               397 arch/powerpc/platforms/pseries/vio.c 	cmo->min = vio_cmo_num_OF_devs() * VIO_CMO_MIN_ENT;
cmo               398 arch/powerpc/platforms/pseries/vio.c 	BUG_ON(cmo->min > cmo->entitled);
cmo               399 arch/powerpc/platforms/pseries/vio.c 	cmo->spare = min_t(size_t, VIO_CMO_MIN_ENT, (cmo->entitled - cmo->min));
cmo               400 arch/powerpc/platforms/pseries/vio.c 	cmo->min += cmo->spare;
cmo               401 arch/powerpc/platforms/pseries/vio.c 	cmo->desired = cmo->min;
cmo               407 arch/powerpc/platforms/pseries/vio.c 	avail = cmo->entitled - cmo->spare;
cmo               411 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.entitled = VIO_CMO_MIN_ENT;
cmo               412 arch/powerpc/platforms/pseries/vio.c 		cmo->desired += (viodev->cmo.desired - VIO_CMO_MIN_ENT);
cmo               413 arch/powerpc/platforms/pseries/vio.c 		avail -= max_t(size_t, viodev->cmo.allocated, VIO_CMO_MIN_ENT);
cmo               427 arch/powerpc/platforms/pseries/vio.c 			if (viodev->cmo.desired <= level) {
cmo               438 arch/powerpc/platforms/pseries/vio.c 			chunk = min(chunk, (viodev->cmo.desired -
cmo               439 arch/powerpc/platforms/pseries/vio.c 			                    viodev->cmo.entitled));
cmo               440 arch/powerpc/platforms/pseries/vio.c 			viodev->cmo.entitled += chunk;
cmo               447 arch/powerpc/platforms/pseries/vio.c 			need = max(viodev->cmo.allocated, viodev->cmo.entitled)-
cmo               448 arch/powerpc/platforms/pseries/vio.c 			       max(viodev->cmo.allocated, level);
cmo               458 arch/powerpc/platforms/pseries/vio.c 	cmo->reserve.size = cmo->min;
cmo               459 arch/powerpc/platforms/pseries/vio.c 	cmo->excess.free = 0;
cmo               460 arch/powerpc/platforms/pseries/vio.c 	cmo->excess.size = 0;
cmo               465 arch/powerpc/platforms/pseries/vio.c 		if (viodev->cmo.entitled)
cmo               466 arch/powerpc/platforms/pseries/vio.c 			cmo->reserve.size += (viodev->cmo.entitled -
cmo               469 arch/powerpc/platforms/pseries/vio.c 		if (viodev->cmo.allocated > viodev->cmo.entitled)
cmo               470 arch/powerpc/platforms/pseries/vio.c 			need += viodev->cmo.allocated - viodev->cmo.entitled;
cmo               472 arch/powerpc/platforms/pseries/vio.c 	cmo->excess.size = cmo->entitled - cmo->reserve.size;
cmo               473 arch/powerpc/platforms/pseries/vio.c 	cmo->excess.free = cmo->excess.size - need;
cmo               487 arch/powerpc/platforms/pseries/vio.c 		atomic_inc(&viodev->cmo.allocs_failed);
cmo               496 arch/powerpc/platforms/pseries/vio.c 		atomic_inc(&viodev->cmo.allocs_failed);
cmo               532 arch/powerpc/platforms/pseries/vio.c 	atomic_inc(&viodev->cmo.allocs_failed);
cmo               577 arch/powerpc/platforms/pseries/vio.c 	atomic_inc(&viodev->cmo.allocs_failed);
cmo               651 arch/powerpc/platforms/pseries/vio.c 	if (desired >= viodev->cmo.desired) {
cmo               653 arch/powerpc/platforms/pseries/vio.c 		vio_cmo.desired += desired - viodev->cmo.desired;
cmo               654 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.desired = desired;
cmo               657 arch/powerpc/platforms/pseries/vio.c 		vio_cmo.desired -= viodev->cmo.desired - desired;
cmo               658 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.desired = desired;
cmo               663 arch/powerpc/platforms/pseries/vio.c 		if (viodev->cmo.entitled > desired) {
cmo               664 arch/powerpc/platforms/pseries/vio.c 			vio_cmo.reserve.size -= viodev->cmo.entitled - desired;
cmo               665 arch/powerpc/platforms/pseries/vio.c 			vio_cmo.excess.size += viodev->cmo.entitled - desired;
cmo               671 arch/powerpc/platforms/pseries/vio.c 			if (viodev->cmo.allocated < viodev->cmo.entitled)
cmo               672 arch/powerpc/platforms/pseries/vio.c 				vio_cmo.excess.free += viodev->cmo.entitled -
cmo               673 arch/powerpc/platforms/pseries/vio.c 				                       max(viodev->cmo.allocated, desired);
cmo               674 arch/powerpc/platforms/pseries/vio.c 			viodev->cmo.entitled = desired;
cmo               732 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.desired =
cmo               734 arch/powerpc/platforms/pseries/vio.c 		if (viodev->cmo.desired < VIO_CMO_MIN_ENT)
cmo               735 arch/powerpc/platforms/pseries/vio.c 			viodev->cmo.desired = VIO_CMO_MIN_ENT;
cmo               747 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.desired = 0;
cmo               762 arch/powerpc/platforms/pseries/vio.c 			vio_cmo.desired += (viodev->cmo.desired -
cmo               788 arch/powerpc/platforms/pseries/vio.c 		vio_cmo.desired += viodev->cmo.desired;
cmo               811 arch/powerpc/platforms/pseries/vio.c 	if (viodev->cmo.allocated) {
cmo               814 arch/powerpc/platforms/pseries/vio.c 		        __func__, viodev->cmo.allocated);
cmo               834 arch/powerpc/platforms/pseries/vio.c 	if (viodev->cmo.entitled) {
cmo               840 arch/powerpc/platforms/pseries/vio.c 		vio_cmo.desired -= (viodev->cmo.desired - VIO_CMO_MIN_ENT);
cmo               847 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.entitled -= VIO_CMO_MIN_ENT;
cmo               850 arch/powerpc/platforms/pseries/vio.c 		if (viodev->cmo.entitled && (vio_cmo.spare < VIO_CMO_MIN_ENT)) {
cmo               851 arch/powerpc/platforms/pseries/vio.c 			tmp = min(viodev->cmo.entitled, (VIO_CMO_MIN_ENT -
cmo               854 arch/powerpc/platforms/pseries/vio.c 			viodev->cmo.entitled -= tmp;
cmo               858 arch/powerpc/platforms/pseries/vio.c 		vio_cmo.excess.size += viodev->cmo.entitled;
cmo               859 arch/powerpc/platforms/pseries/vio.c 		vio_cmo.excess.free += viodev->cmo.entitled;
cmo               860 arch/powerpc/platforms/pseries/vio.c 		vio_cmo.reserve.size -= viodev->cmo.entitled;
cmo               867 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.entitled = VIO_CMO_MIN_ENT;
cmo               868 arch/powerpc/platforms/pseries/vio.c 		viodev->cmo.desired = VIO_CMO_MIN_ENT;
cmo               869 arch/powerpc/platforms/pseries/vio.c 		atomic_set(&viodev->cmo.allocs_failed, 0);
cmo               937 arch/powerpc/platforms/pseries/vio.c 	return sprintf(buf, "%lu\n", to_vio_dev(dev)->cmo.name);        \
cmo               944 arch/powerpc/platforms/pseries/vio.c 	return sprintf(buf, "%d\n", atomic_read(&viodev->cmo.allocs_failed));
cmo               951 arch/powerpc/platforms/pseries/vio.c 	atomic_set(&viodev->cmo.allocs_failed, 0);
cmo              1241 arch/powerpc/platforms/pseries/vio.c 		memset(&viodev->cmo, 0, sizeof(viodev->cmo));