lib/sw_apps/zynqmp_pmufw/src/pm_slave.c
static u32 PmSlaveGetPerms(const PmNode* const node)
{
	PmSlave* slave = (PmSlave*)node->derived;
	PmRequirement* req = slave->reqs;
	u32 perms = 0U;

	while (NULL != req) {
		/* Check if system requirement (used by PMU) */
		if (NULL == req->master) {
			if (SYSTEM_USING_SLAVE(req)) {
				perms |= IPI_PMU_0_IER_PMU_0_MASK;
			}
		} else {
			if (MASTER_REQUESTED_SLAVE(req)) {
				perms |= req->master->ipiMask;
			}
		}
		req = req->nextMaster;
	}

	return perms;
}
/**
 * PmSlaveGetPerms() - Get permissions of masters to control slave's clocks
 * @node	Slave node
 *
 * @return	ORed masks of permissible masters' IPI masks
 *
 * @note	Only masters that have requested the slave are accounted to have
 *		permissions
 */
Get permissions of masters to control slave's clocks
@node        Slave node

@return      ORed masks of permissible masters' IPI masks

@note        Only masters that have requested the slave are accounted to have
permissions
Get permissions of masters to control slave ' s clocks @node Slave node @return ORed masks of permissible masters ' IPI masks @note Only masters that have requested the slave are accounted to have permissions
static u32 PmSlaveGetPerms(const PmNode* const node)
{
	PmSlave* slave = (PmSlave*)node->derived;
	PmRequirement* req = slave->reqs;
	u32 perms = 0U;
	while (NULL != req) {
		if (NULL == req->master) {
			if (SYSTEM_USING_SLAVE(req)) {
				perms |= IPI_PMU_0_IER_PMU_0_MASK;
			}
		} else {
			if (MASTER_REQUESTED_SLAVE(req)) {
				perms |= req->master->ipiMask;
			}
		}
		req = req->nextMaster;
	}
	return perms;
}
static u32 PmSlaveGetPerms ( const PmNode * const node ) { PmSlave * slave = ( PmSlave * ) node -> derived ; PmRequirement * req = slave -> reqs ; u32 perms = 0U ; while ( NULL != req ) { if ( NULL == req -> master ) { if ( SYSTEM_USING_SLAVE ( req ) ) { perms |= IPI_PMU_0_IER_PMU_0_MASK ; } } else { if ( MASTER_REQUESTED_SLAVE ( req ) ) { perms |= req -> master -> ipiMask ; } } req = req -> nextMaster ; } return perms ; }
PmSlaveGetPerms() - Get permissions of masters to control slave's clocks
 @node        Slave node
PmSlaveGetPerms () - Get permissions of masters to control slave ' s clocks @node Slave node
/* Check if system requirement (used by PMU) */