lib/sw_apps/zynqmp_pmufw/src/pm_power.c
static s32 PmPowerRequest(PmPower* const power)
{
	s32 status = XST_SUCCESS;

	if (NULL != power->node.parent) {
		if (0U == (power->node.flags & NODE_LOCKED_POWER_FLAG)) {
			status = PmPowerRequestInt(power->node.parent);
			if (XST_SUCCESS != status) {
				goto done;
			}
			power->node.flags |= NODE_LOCKED_POWER_FLAG;
		}
	}
	status = PmPowerRequestInt(power);

done:
	return status;
}
/**
 * PmPowerRequest() - Request for power to be powered up
 * @power	Requested power
 *
 * @return	XST_SUCCESS if power is already powered up, otherwise status
 *		of powering up.
 */
Request for power to be powered up
@power       Requested power

@return      XST_SUCCESS if power is already powered up, otherwise status
of powering up.
Request for power to be powered up @power Requested power @return XST_SUCCESS if power is already powered up otherwise status of powering up .
static s32 PmPowerRequest(PmPower* const power)
{
	s32 status = XST_SUCCESS;
	if (NULL != power->node.parent) {
		if (0U == (power->node.flags & NODE_LOCKED_POWER_FLAG)) {
			status = PmPowerRequestInt(power->node.parent);
			if (XST_SUCCESS != status) {
				goto done;
			}
			power->node.flags |= NODE_LOCKED_POWER_FLAG;
		}
	}
	status = PmPowerRequestInt(power);
done:
	return status;
}
static s32 PmPowerRequest ( PmPower * const power ) { s32 status = XST_SUCCESS ; if ( NULL != power -> node . parent ) { if ( 0U == ( power -> node . flags & NODE_LOCKED_POWER_FLAG ) ) { status = PmPowerRequestInt ( power -> node . parent ) ; if ( XST_SUCCESS != status ) { goto done ; } power -> node . flags |= NODE_LOCKED_POWER_FLAG ; } } status = PmPowerRequestInt ( power ) ; done : return status ; }
PmPowerRequest() - Request for power to be powered up
 @power       Requested power
PmPowerRequest () - Request for power to be powered up @power Requested power