lib/sw_apps/zynqmp_pmufw/src/pm_slave.c
u32 PmSlaveGetUsersMask(const PmSlave* const slave)
{
	PmRequirement* req = slave->reqs;
	u32 usage = 0U;

	while (NULL != req) {
		if (MASTER_REQUESTED_SLAVE(req)) {
			/* Found master which is using slave */
			usage |= req->master->ipiMask;
		}
		req = req->nextMaster;
	}

	return usage;
}
/**
 * PmSlaveGetUsersMask() - Gets all masters' mask currently using the slave
 * @slave       Slave in question
 *
 * @return      Each master has unique ipiMask which identifies it (one hot
 *              encoding). Return value represents ORed masks of all masters
 *              which are currently using the slave.
 */
Gets all masters' mask currently using the slave
@slave       Slave in question

@return      Each master has unique ipiMask which identifies it (one hot
encoding). Return value represents ORed masks of all masters
which are currently using the slave.
Gets all masters ' mask currently using the slave @slave Slave in question @return Each master has unique ipiMask which identifies it ( one hot encoding ) . Return value represents ORed masks of all masters which are currently using the slave .
u32 PmSlaveGetUsersMask(const PmSlave* const slave)
{
	PmRequirement* req = slave->reqs;
	u32 usage = 0U;
	while (NULL != req) {
		if (MASTER_REQUESTED_SLAVE(req)) {
			usage |= req->master->ipiMask;
		}
		req = req->nextMaster;
	}
	return usage;
}
u32 PmSlaveGetUsersMask ( const PmSlave * const slave ) { PmRequirement * req = slave -> reqs ; u32 usage = 0U ; while ( NULL != req ) { if ( MASTER_REQUESTED_SLAVE ( req ) ) { usage |= req -> master -> ipiMask ; } req = req -> nextMaster ; } return usage ; }
PmSlaveGetUsersMask() - Gets all masters' mask currently using the slave
 @slave       Slave in question
PmSlaveGetUsersMask () - Gets all masters ' mask currently using the slave @slave Slave in question
/* Found master which is using slave */