lib/sw_apps/zynqmp_pmufw/src/pm_system.c
static s32 PmSystemSetPosRequirement(const PmSlave* const slave, u32 caps)
{
	u32 i;
	s32 status = XST_FAILURE;

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

	return status;
}
/**
 * PmSystemSetPosRequirement() - Set Power Off Susped slave requirement
 * @slave	Slave for which requirement is set
 * @caps	Capability to be set
 *
 * @return	XST_SUCCESS if slave capability is set, XST_FAILURE otherwise
 */
Set Power Off Susped slave requirement
@slave       Slave for which requirement is set
@caps        Capability to be set

@return      XST_SUCCESS if slave capability is set, XST_FAILURE otherwise
Set Power Off Susped slave requirement @slave Slave for which requirement is set @caps Capability to be set @return XST_SUCCESS if slave capability is set XST_FAILURE otherwise
static s32 PmSystemSetPosRequirement(const PmSlave* const slave, u32 caps)
{
	u32 i;
	s32 status = XST_FAILURE;
	for (i = 0U; i < ARRAY_SIZE(pmSystemReqs); i++) {
		if (slave == pmSystemReqs[i].slave) {
			pmSystemReqs[i].posCaps = caps;
			status = XST_SUCCESS;
			break;
		}
	}
	return status;
}
static s32 PmSystemSetPosRequirement ( const PmSlave * const slave , u32 caps ) { u32 i ; s32 status = XST_FAILURE ; for ( i = 0U ; i < ARRAY_SIZE ( pmSystemReqs ) ; i ++ ) { if ( slave == pmSystemReqs [ i ] . slave ) { pmSystemReqs [ i ] . posCaps = caps ; status = XST_SUCCESS ; break ; } } return status ; }
PmSystemSetPosRequirement() - Set Power Off Susped slave requirement
 @slave       Slave for which requirement is set
 @caps        Capability to be set
PmSystemSetPosRequirement () - Set Power Off Susped slave requirement @slave Slave for which requirement is set @caps Capability to be set