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
This commit is contained in:
Aman Mehta
2023-10-31 17:55:12 +05:30
committed by Ravindra Konda
parent a7fe389b77
commit 1dd27488f1
2 changed files with 27 additions and 0 deletions

View File

@@ -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
*

View File

@@ -505,6 +505,19 @@ int __qdf_fls(uint32_t x)
return 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 ffs(x);
}
/**
* __qdf_get_smp_processor_id() - Get the current CPU id
*