lib/sw_apps/zynqmp_pmufw/src/pm_proc.c
PmProc* PmProcGetByWakeMask(const u32 wake)
{
	PmProc* found = NULL;
	u32 i;

	for (i = 0U; i < pmNodeClassProc_g.bucketSize; i++) {
		PmProc* proc = (PmProc*)pmNodeClassProc_g.bucket[i]->derived;

		if (0U != (proc->mask & wake)) {
			found = proc;
			break;
		}
	}

	return found;
}
/**
 * PmProcGetByWakeMask() - Get processor struct by wake interrupt status mask
 * @wake	GIC wake mask read from GPI1 register
 *
 * @return	Processor whose wake mask is provided as the argument
 */
Get processor struct by wake interrupt status mask
@wake        GIC wake mask read from GPI1 register

@return      Processor whose wake mask is provided as the argument
Get processor struct by wake interrupt status mask @wake GIC wake mask read from GPI1 register @return Processor whose wake mask is provided as the argument
PmProc* PmProcGetByWakeMask(const u32 wake)
{
	PmProc* found = NULL;
	u32 i;
	for (i = 0U; i < pmNodeClassProc_g.bucketSize; i++) {
		PmProc* proc = (PmProc*)pmNodeClassProc_g.bucket[i]->derived;
		if (0U != (proc->mask & wake)) {
			found = proc;
			break;
		}
	}
	return found;
}
PmProc * PmProcGetByWakeMask ( const u32 wake ) { PmProc * found = NULL ; u32 i ; for ( i = 0U ; i < pmNodeClassProc_g . bucketSize ; i ++ ) { PmProc * proc = ( PmProc * ) pmNodeClassProc_g . bucket [ i ] -> derived ; if ( 0U != ( proc -> mask & wake ) ) { found = proc ; break ; } } return found ; }
PmProcGetByWakeMask() - Get processor struct by wake interrupt status mask
 @wake        GIC wake mask read from GPI1 register
PmProcGetByWakeMask () - Get processor struct by wake interrupt status mask @wake GIC wake mask read from GPI1 register