lib/sw_apps/zynqmp_pmufw/src/pm_slave.c
u32 PmSlaveGetRequirements(const PmSlave* const slave,
			   const PmMaster* const master)
{
	u32 currReq = 0U;
	PmRequirement* masterReq = PmRequirementGet(master, slave);

	if (NULL == masterReq) {
		/* This master has no access to this slave */
		goto done;
	}

	if (!MASTER_REQUESTED_SLAVE(masterReq)) {
		/* This master is currently not using this slave */
		goto done;
	}

	/* This master is currently using this slave */
	currReq = masterReq->currReq;

done:
	return currReq;
}
/**
 * PmSlaveGetRequirements() - get current requirements for a slave node
 * @slave      Slave node for which the current requirements are requested
 * @master     Master that's making the request
 *
 * @return  Current requirements of the requesting master on the node
 */
get current requirements for a slave node
@slave      Slave node for which the current requirements are requested
@master     Master that's making the request

@return  Current requirements of the requesting master on the node
get current requirements for a slave node @slave Slave node for which the current requirements are requested @master Master that ' s making the request @return Current requirements of the requesting master on the node
u32 PmSlaveGetRequirements(const PmSlave* const slave,
			   const PmMaster* const master)
{
	u32 currReq = 0U;
	PmRequirement* masterReq = PmRequirementGet(master, slave);
	if (NULL == masterReq) {
		goto done;
	}
	if (!MASTER_REQUESTED_SLAVE(masterReq)) {
		goto done;
	}
	currReq = masterReq->currReq;
done:
	return currReq;
}
u32 PmSlaveGetRequirements ( const PmSlave * const slave , const PmMaster * const master ) { u32 currReq = 0U ; PmRequirement * masterReq = PmRequirementGet ( master , slave ) ; if ( NULL == masterReq ) { goto done ; } if ( ! MASTER_REQUESTED_SLAVE ( masterReq ) ) { goto done ; } currReq = masterReq -> currReq ; done : return currReq ; }
PmSlaveGetRequirements() - get current requirements for a slave node
 @slave      Slave node for which the current requirements are requested
 @master     Master that's making the request
PmSlaveGetRequirements () - get current requirements for a slave node @slave Slave node for which the current requirements are requested @master Master that ' s making the request
/* This master has no access to this slave */ /* This master is currently not using this slave */ /* This master is currently using this slave */