lib/sw_apps/zynqmp_pmufw/src/pm_requirement.c
s32 PmRequirementSchedule(PmRequirement* const masterReq, const u32 caps)
{
	s32 status;

	/* Check if slave has a state with requested capabilities */
	status = PmCheckCapabilities(masterReq->slave, caps);
	if (XST_SUCCESS != status) {
		goto done;
	}

	/* Schedule setting of the requirement for later */
	masterReq->nextReq = (u8)caps;

done:
	return status;
}
/**
 * PmRequirementSchedule() - Schedule requirements of the master for slave
 * @masterReq   Pointer to master requirement structure (for a slave)
 * @caps        Required capabilities of slave
 *
 * @return      Status of the operation
 *              - XST_SUCCESS if requirement is successfully scheduled
 *              - XST_NO_FEATURE if there is no state with requested
 *                capabilities
 *
 * @note        Slave state will be updated according to the saved requirements
 *              after all processors/master suspends.
 */
Schedule requirements of the master for slave
@masterReq   Pointer to master requirement structure (for a slave)
@caps        Required capabilities of slave

@return      Status of the operation
- XST_SUCCESS if requirement is successfully scheduled
- XST_NO_FEATURE if there is no state with requested
capabilities

@note        Slave state will be updated according to the saved requirements
after all processors/master suspends.
Schedule requirements of the master for slave @masterReq Pointer to master requirement structure ( for a slave ) @caps Required capabilities of slave @return Status of the operation - XST_SUCCESS if requirement is successfully scheduled - XST_NO_FEATURE if there is no state with requested capabilities @note Slave state will be updated according to the saved requirements after all processors / master suspends .
s32 PmRequirementSchedule(PmRequirement* const masterReq, const u32 caps)
{
	s32 status;
	status = PmCheckCapabilities(masterReq->slave, caps);
	if (XST_SUCCESS != status) {
		goto done;
	}
	masterReq->nextReq = (u8)caps;
done:
	return status;
}
s32 PmRequirementSchedule ( PmRequirement * const masterReq , const u32 caps ) { s32 status ; status = PmCheckCapabilities ( masterReq -> slave , caps ) ; if ( XST_SUCCESS != status ) { goto done ; } masterReq -> nextReq = ( u8 ) caps ; done : return status ; }
PmRequirementSchedule() - Schedule requirements of the master for slave
 @masterReq   Pointer to master requirement structure (for a slave)
 @caps        Required capabilities of slave
PmRequirementSchedule () - Schedule requirements of the master for slave @masterReq Pointer to master requirement structure ( for a slave ) @caps Required capabilities of slave
/* Check if slave has a state with requested capabilities */ /* Schedule setting of the requirement for later */