qcacmn: Add qdf_ffs API and modify ring id params

Adds qdf_ffs wrapper API for ffs(x) API.
Update the ring id min and max value for 'dp_mlo_reo_rings_map' ini.

Change-Id: I4ee202350dd63854fe75a20b1eab2173341b70ed
CRs-Fixed: 3655539
Tento commit je obsažen v:
Aman Mehta
2023-10-31 17:55:12 +05:30
odevzdal Ravindra Konda
rodič a7fe389b77
revize 1dd27488f1
2 změnil soubory, kde provedl 27 přidání a 0 odebrání

Zobrazit soubor

@@ -931,6 +931,20 @@ int qdf_fls(uint32_t x)
return __qdf_fls(x);
}
/**
* qdf_ffs() - find first set bit in a given 32 bit input
* @x: 32 bit mask
*
* Return: zero if the input is zero, otherwise returns the bit
* position of the first set bit, where the LSB is 1 and MSB is 32.
*/
static inline
int qdf_ffs(uint32_t x)
{
return __qdf_ffs(x);
}
/**
* qdf_get_smp_processor_id() - Get the current CPU id
*