lib/sw_apps/zynqmp_pmufw/src/pm_power.c
static void PmPowerStackPush(PmPower* const power, const u8 index)
{
	/* Stack overflow should never happen */
	if (ARRAY_SIZE(pmPowerStack) == pmDfs.sp) {
		PmAlert("Power stack overflow\r\n");
		goto done;
	}
	pmPowerStack[pmDfs.sp].power = power;
	pmPowerStack[pmDfs.sp].index = index;
	pmDfs.sp++;
done:
	return;
}
/**
 * PmPowerStackPush() - Push power/index on stack
 * @power	Power node pushed on stack
 * @index	Index of a child which should be visited upon pop
 */
Push power/index on stack
@power       Power node pushed on stack
@index       Index of a child which should be visited upon pop
Push power / index on stack @power Power node pushed on stack @index Index of a child which should be visited upon pop
static void PmPowerStackPush(PmPower* const power, const u8 index)
{
	if (ARRAY_SIZE(pmPowerStack) == pmDfs.sp) {
		PmAlert("Power stack overflow\r\n");
		goto done;
	}
	pmPowerStack[pmDfs.sp].power = power;
	pmPowerStack[pmDfs.sp].index = index;
	pmDfs.sp++;
done:
	return;
}
static void PmPowerStackPush ( PmPower * const power , const u8 index ) { if ( ARRAY_SIZE ( pmPowerStack ) == pmDfs . sp ) { PmAlert ( " \r \n " ) ; goto done ; } pmPowerStack [ pmDfs . sp ] . power = power ; pmPowerStack [ pmDfs . sp ] . index = index ; pmDfs . sp ++ ; done : return ; }
PmPowerStackPush() - Push power/index on stack
 @power       Power node pushed on stack
 @index       Index of a child which should be visited upon pop
PmPowerStackPush () - Push power / index on stack @power Power node pushed on stack @index Index of a child which should be visited upon pop
/* Stack overflow should never happen */