lib/sw_apps/zynqmp_pmufw/src/pm_system.c
static u32 PmSystemGetRequirement(const PmSlave* const slave)
{
	u32 i;
	u32 caps = 0U;

	for (i = 0U; i < ARRAY_SIZE(pmSystemReqs); i++) {
		if (slave == pmSystemReqs[i].slave) {
			caps = pmSystemReqs[i].caps;
			break;
		}
	}

	return caps;
}
/**
 * PmSystemGetRequirement() - Get system-level requirement for given slave
 * @slave	Slave in question
 *
 * @return	Capabilities of the slave the are required for the system
 */
Get system-level requirement for given slave
@slave       Slave in question

@return      Capabilities of the slave the are required for the system
Get system - level requirement for given slave @slave Slave in question @return Capabilities of the slave the are required for the system
static u32 PmSystemGetRequirement(const PmSlave* const slave)
{
	u32 i;
	u32 caps = 0U;
	for (i = 0U; i < ARRAY_SIZE(pmSystemReqs); i++) {
		if (slave == pmSystemReqs[i].slave) {
			caps = pmSystemReqs[i].caps;
			break;
		}
	}
	return caps;
}
static u32 PmSystemGetRequirement ( const PmSlave * const slave ) { u32 i ; u32 caps = 0U ; for ( i = 0U ; i < ARRAY_SIZE ( pmSystemReqs ) ; i ++ ) { if ( slave == pmSystemReqs [ i ] . slave ) { caps = pmSystemReqs [ i ] . caps ; break ; } } return caps ; }
PmSystemGetRequirement() - Get system-level requirement for given slave
 @slave       Slave in question
PmSystemGetRequirement () - Get system - level requirement for given slave @slave Slave in question