lib/sw_apps/zynqmp_pmufw/src/pm_system.c
static s32 PmSystemPosFinalizeDdrCaps(void)
{
	s32 status = XST_SUCCESS;
	u32 i;

	/* Set capabilities required for DDR context saving to 0 */
	for (i = 0U; i < ARRAY_SIZE(pmPosDdrReqs_g); i++) {
		PmRequirement* req;

		req = PmRequirementGetNoMaster(pmPosDdrReqs_g[i].slave);
		if (NULL != req) {
			if (0U != req->currReq) {
				status = PmRequirementUpdate(req, 0U);
				if (XST_SUCCESS != status) {
					goto done;
				}
			}
		} else {
			status = XST_FAILURE;
			goto done;
		}
	}

done:
	return status;
}
/**
 * PmSystemPosFinalizeDdrCaps() - Release slave capabilities required for DDR
 * 				  context saving
 *
 * @return	XST_SUCCESS if capabilities are released, failure code otherwise
 */
Release slave capabilities required for DDR
context saving

@return      XST_SUCCESS if capabilities are released, failure code otherwise
Release slave capabilities required for DDR context saving @return XST_SUCCESS if capabilities are released failure code otherwise
static s32 PmSystemPosFinalizeDdrCaps(void)
{
	s32 status = XST_SUCCESS;
	u32 i;
	for (i = 0U; i < ARRAY_SIZE(pmPosDdrReqs_g); i++) {
		PmRequirement* req;
		req = PmRequirementGetNoMaster(pmPosDdrReqs_g[i].slave);
		if (NULL != req) {
			if (0U != req->currReq) {
				status = PmRequirementUpdate(req, 0U);
				if (XST_SUCCESS != status) {
					goto done;
				}
			}
		} else {
			status = XST_FAILURE;
			goto done;
		}
	}
done:
	return status;
}
static s32 PmSystemPosFinalizeDdrCaps ( void ) { s32 status = XST_SUCCESS ; u32 i ; for ( i = 0U ; i < ARRAY_SIZE ( pmPosDdrReqs_g ) ; i ++ ) { PmRequirement * req ; req = PmRequirementGetNoMaster ( pmPosDdrReqs_g [ i ] . slave ) ; if ( NULL != req ) { if ( 0U != req -> currReq ) { status = PmRequirementUpdate ( req , 0U ) ; if ( XST_SUCCESS != status ) { goto done ; } } } else { status = XST_FAILURE ; goto done ; } } done : return status ; }
PmSystemPosFinalizeDdrCaps() - Release slave capabilities required for DDR
                                context saving
PmSystemPosFinalizeDdrCaps () - Release slave capabilities required for DDR context saving
/* Set capabilities required for DDR context saving to 0 */