lib/sw_apps/zynqmp_pmufw/src/pm_pll.c
static s32 PmPllGetWakeUpLatency(const PmNode* const node, u32* const lat)
{
	s32 status = XST_SUCCESS;
	PmPll* pll = (PmPll*)node->derived;
	PmNode* const powerNode = &node->parent->node;
	u32 latency = 0U;

	*lat = 0U;
	if (PM_PLL_STATE_LOCKED == pll->node.currState) {
		goto done;
	}

	*lat += PM_PLL_LOCKING_TIME;
	if (NULL == powerNode->class->getWakeUpLatency) {
		status = XST_NO_FEATURE;
		goto done;
	}

	status = powerNode->class->getWakeUpLatency(powerNode, &latency);
	if (XST_SUCCESS == status) {
		*lat += latency;
	}

done:
	return status;
}
/**
 * PmPllGetWakeUpLatency() - Get wake-up latency of a PLL
 * @node	PLL node
 * @lat		Pointer to the location where the latency value should be stored
 *
 * @return	XST_SUCCESS if latency value is stored in *lat, XST_NO_FEATURE
 *		if the latency depends on power parent which has no method
 *		(getWakeUpLatency) to provide latency information.
 */
Get wake-up latency of a PLL
@node        PLL node
@lat         Pointer to the location where the latency value should be stored

@return      XST_SUCCESS if latency value is stored in *lat, XST_NO_FEATURE
if the latency depends on power parent which has no method
(getWakeUpLatency) to provide latency information.
Get wake - up latency of a PLL @node PLL node @lat Pointer to the location where the latency value should be stored @return XST_SUCCESS if latency value is stored in * lat XST_NO_FEATURE if the latency depends on power parent which has no method ( getWakeUpLatency ) to provide latency information .
static s32 PmPllGetWakeUpLatency(const PmNode* const node, u32* const lat)
{
	s32 status = XST_SUCCESS;
	PmPll* pll = (PmPll*)node->derived;
	PmNode* const powerNode = &node->parent->node;
	u32 latency = 0U;
	*lat = 0U;
	if (PM_PLL_STATE_LOCKED == pll->node.currState) {
		goto done;
	}
	*lat += PM_PLL_LOCKING_TIME;
	if (NULL == powerNode->class->getWakeUpLatency) {
		status = XST_NO_FEATURE;
		goto done;
	}
	status = powerNode->class->getWakeUpLatency(powerNode, &latency);
	if (XST_SUCCESS == status) {
		*lat += latency;
	}
done:
	return status;
}
static s32 PmPllGetWakeUpLatency ( const PmNode * const node , u32 * const lat ) { s32 status = XST_SUCCESS ; PmPll * pll = ( PmPll * ) node -> derived ; PmNode * const powerNode = & node -> parent -> node ; u32 latency = 0U ; * lat = 0U ; if ( PM_PLL_STATE_LOCKED == pll -> node . currState ) { goto done ; } * lat += PM_PLL_LOCKING_TIME ; if ( NULL == powerNode -> class -> getWakeUpLatency ) { status = XST_NO_FEATURE ; goto done ; } status = powerNode -> class -> getWakeUpLatency ( powerNode , & latency ) ; if ( XST_SUCCESS == status ) { * lat += latency ; } done : return status ; }
PmPllGetWakeUpLatency() - Get wake-up latency of a PLL
 @node        PLL node
 @lat         Pointer to the location where the latency value should be stored
PmPllGetWakeUpLatency () - Get wake - up latency of a PLL @node PLL node @lat Pointer to the location where the latency value should be stored