lib/sw_apps/zynqmp_pmufw/src/pm_slave.c
static s32 PmSlaveForceDown(PmNode* const node)
{
	s32 status = XST_SUCCESS;
	PmSlave* const slave = (PmSlave*)node->derived;
	PmRequirement* req = slave->reqs;

	while (NULL != req) {
		if (MASTER_REQUESTED_SLAVE(req)) {
			PmRequirementClear(req);
		}
		req = req->nextMaster;
	}
	status = PmUpdateSlave(slave);

	if ((NULL != slave->class) && (NULL != slave->class->forceDown)) {
		status = slave->class->forceDown(slave);
	}

	return status;
}
/**
 * PmSlaveForceDown() - Force down the slave node
 * @node	Slave node to force down
 *
 * @return	Status of performing force down operation
 */
Force down the slave node
@node        Slave node to force down

@return      Status of performing force down operation
Force down the slave node @node Slave node to force down @return Status of performing force down operation
static s32 PmSlaveForceDown(PmNode* const node)
{
	s32 status = XST_SUCCESS;
	PmSlave* const slave = (PmSlave*)node->derived;
	PmRequirement* req = slave->reqs;
	while (NULL != req) {
		if (MASTER_REQUESTED_SLAVE(req)) {
			PmRequirementClear(req);
		}
		req = req->nextMaster;
	}
	status = PmUpdateSlave(slave);
	if ((NULL != slave->class) && (NULL != slave->class->forceDown)) {
		status = slave->class->forceDown(slave);
	}
	return status;
}
static s32 PmSlaveForceDown ( PmNode * const node ) { s32 status = XST_SUCCESS ; PmSlave * const slave = ( PmSlave * ) node -> derived ; PmRequirement * req = slave -> reqs ; while ( NULL != req ) { if ( MASTER_REQUESTED_SLAVE ( req ) ) { PmRequirementClear ( req ) ; } req = req -> nextMaster ; } status = PmUpdateSlave ( slave ) ; if ( ( NULL != slave -> class ) && ( NULL != slave -> class -> forceDown ) ) { status = slave -> class -> forceDown ( slave ) ; } return status ; }
PmSlaveForceDown() - Force down the slave node
 @node        Slave node to force down
PmSlaveForceDown () - Force down the slave node @node Slave node to force down