lib/sw_services/xilplmi/src/xplmi_err.c
static u32 XPlmi_GetErrorId(u32 ErrorNodeId, u32 RegMask)
{
	u32 ErrorId = 0U;
	u32 Mask = RegMask;
	u32 ErrorNodeType = XPlmi_EventNodeType(ErrorNodeId);

	while (Mask != (u32)0U) {
		if ((Mask & 0x1U) == 0x1U) {
			break;
		}
		ErrorId++;
		Mask >>= 1U;
	}
	ErrorId += (ErrorNodeType * XPLMI_MAX_ERR_BITS);

	return ErrorId;
}
/*****************************************************************************/
/**
 * @brief	This function returns Error Id for the given error node type and
 * error mask.
 *
 * @param	ErrorNodeId is the error node Id.
 * @param	RegMask  is register mask of the error.
 *
 * @return	ErrorId value.
 *
 *****************************************************************************/
@brief       This function returns Error Id for the given error node type and
error mask.

@param       ErrorNodeId is the error node Id.
@param       RegMask  is register mask of the error.


@brief This function returns Error Id for the given error node type and error mask . @param ErrorNodeId is the error node Id . @param RegMask is register mask of the error .
static u32 XPlmi_GetErrorId(u32 ErrorNodeId, u32 RegMask)
{
	u32 ErrorId = 0U;
	u32 Mask = RegMask;
	u32 ErrorNodeType = XPlmi_EventNodeType(ErrorNodeId);
	while (Mask != (u32)0U) {
		if ((Mask & 0x1U) == 0x1U) {
			break;
		}
		ErrorId++;
		Mask >>= 1U;
	}
	ErrorId += (ErrorNodeType * XPLMI_MAX_ERR_BITS);
	return ErrorId;
}
static u32 XPlmi_GetErrorId ( u32 ErrorNodeId , u32 RegMask ) { u32 ErrorId = 0U ; u32 Mask = RegMask ; u32 ErrorNodeType = XPlmi_EventNodeType ( ErrorNodeId ) ; while ( Mask != ( u32 ) 0U ) { if ( ( Mask & 0x1U ) == 0x1U ) { break ; } ErrorId ++ ; Mask >>= 1U ; } ErrorId += ( ErrorNodeType * XPLMI_MAX_ERR_BITS ) ; return ErrorId ; }
@brief       This function returns Error Id for the given error node type and
 error mask.
@brief This function returns Error Id for the given error node type and error mask .