lib/sw_apps/zynqmp_pmufw/src/pm_requirement.c
void PmRequirementPreRequest(const PmMaster* const master)
{
	PmRequirement* req = master->reqs;

	while (NULL != req) {
		if (0U != req->preReq) {
			/* Set flag to state that master is using slave */
			req->info |= PM_MASTER_REQUESTED_SLAVE_MASK;
			req->nextReq = req->preReq;
		}
		req = req->nextSlave;
	}
}
/**
 * PmRequirementPreRequest() - Request requirements for master which it will not
 *			request for itself
 * @master	Master whose requirements are requested
 *
 * When waking up from forced power down, master may have some requirements to
 * be configured before it enters active state (example TCM for RPU). Loop
 * through all slaves, find such requirements and update next requirements data
 * in master/slave requirement structure that will be configured.
 */
Request requirements for master which it will not
request for itself
@master      Master whose requirements are requested

When waking up from forced power down, master may have some requirements to
be configured before it enters active state (example TCM for RPU). Loop
through all slaves, find such requirements and update next requirements data
in master/slave requirement structure that will be configured.
Request requirements for master which it will not request for itself @master Master whose requirements are requested When waking up from forced power down master may have some requirements to be configured before it enters active state ( example TCM for RPU ) . Loop through all slaves find such requirements and update next requirements data in master / slave requirement structure that will be configured .
void PmRequirementPreRequest(const PmMaster* const master)
{
	PmRequirement* req = master->reqs;
	while (NULL != req) {
		if (0U != req->preReq) {
			req->info |= PM_MASTER_REQUESTED_SLAVE_MASK;
			req->nextReq = req->preReq;
		}
		req = req->nextSlave;
	}
}
void PmRequirementPreRequest ( const PmMaster * const master ) { PmRequirement * req = master -> reqs ; while ( NULL != req ) { if ( 0U != req -> preReq ) { req -> info |= PM_MASTER_REQUESTED_SLAVE_MASK ; req -> nextReq = req -> preReq ; } req = req -> nextSlave ; } }
PmRequirementPreRequest() - Request requirements for master which it will not
                      request for itself
 @master      Master whose requirements are requested
PmRequirementPreRequest () - Request requirements for master which it will not request for itself @master Master whose requirements are requested
/* Set flag to state that master is using slave */