lib/sw_apps/zynqmp_pmufw/src/pm_requirement.c
PmRequirement* PmRequirementGet(const PmMaster* const master,
				const PmSlave* const slave)
{
	PmRequirement* req = master->reqs;

	while (NULL != req) {
		if (slave == req->slave) {
			break;
		}
		req = req->nextSlave;
	}

	return req;
}
/**
 * PmRequirementGet() - Get requirement for master/slave pair
 * @master  Master whose request structure should be found
 * @slave   Slave in question
 *
 * @return  Pointer to the requirement associated with the master/slave pair.
 *          NULL if such structure is not found.
 */
Get requirement for master/slave pair
@master  Master whose request structure should be found
@slave   Slave in question

@return  Pointer to the requirement associated with the master/slave pair.
NULL if such structure is not found.
Get requirement for master / slave pair @master Master whose request structure should be found @slave Slave in question @return Pointer to the requirement associated with the master / slave pair . NULL if such structure is not found .
PmRequirement* PmRequirementGet(const PmMaster* const master,
				const PmSlave* const slave)
{
	PmRequirement* req = master->reqs;
	while (NULL != req) {
		if (slave == req->slave) {
			break;
		}
		req = req->nextSlave;
	}
	return req;
}
PmRequirement * PmRequirementGet ( const PmMaster * const master , const PmSlave * const slave ) { PmRequirement * req = master -> reqs ; while ( NULL != req ) { if ( slave == req -> slave ) { break ; } req = req -> nextSlave ; } return req ; }
PmRequirementGet() - Get requirement for master/slave pair
 @master  Master whose request structure should be found
 @slave   Slave in question
PmRequirementGet () - Get requirement for master / slave pair @master Master whose request structure should be found @slave Slave in question