lib/sw_apps/zynqmp_pmufw/src/pm_power.c
static bool PmPowerIsUsable(PmNode* const powerNode)
{
	PmNode* node;
	bool usable = false;

	PmPowerDfsBegin((PmPower*)powerNode->derived);
	node = PmPowerDfsGetNext();
	while (NULL != node) {
		if (!NODE_IS_POWER(node)) {
			if (NULL != node->class->isUsable) {
				usable = node->class->isUsable(node);
				if (true == usable) {
					goto done;
				}
			}
		}
		node = PmPowerDfsGetNext();
	}

done:
	return usable;
}
/**
 * PmPowerIsUsable() - Check if power node could be used by current config
 * @powerNode	Power node to check
 *
 * @return	True if power node is usable, false otherwise
 */
Check if power node could be used by current config
@powerNode   Power node to check

@return      True if power node is usable, false otherwise
Check if power node could be used by current config @powerNode Power node to check @return True if power node is usable false otherwise
static bool PmPowerIsUsable(PmNode* const powerNode)
{
	PmNode* node;
	bool usable = false;
	PmPowerDfsBegin((PmPower*)powerNode->derived);
	node = PmPowerDfsGetNext();
	while (NULL != node) {
		if (!NODE_IS_POWER(node)) {
			if (NULL != node->class->isUsable) {
				usable = node->class->isUsable(node);
				if (true == usable) {
					goto done;
				}
			}
		}
		node = PmPowerDfsGetNext();
	}
done:
	return usable;
}
static bool PmPowerIsUsable ( PmNode * const powerNode ) { PmNode * node ; bool usable = false ; PmPowerDfsBegin ( ( PmPower * ) powerNode -> derived ) ; node = PmPowerDfsGetNext ( ) ; while ( NULL != node ) { if ( ! NODE_IS_POWER ( node ) ) { if ( NULL != node -> class -> isUsable ) { usable = node -> class -> isUsable ( node ) ; if ( true == usable ) { goto done ; } } } node = PmPowerDfsGetNext ( ) ; } done : return usable ; }
PmPowerIsUsable() - Check if power node could be used by current config
 @powerNode   Power node to check
PmPowerIsUsable () - Check if power node could be used by current config @powerNode Power node to check