Home
last modified time | relevance | path

Searched refs:OSAL_BITS_PER_UL (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Dbcm_osal.h180 #define OSAL_BITS_PER_UL (sizeof(unsigned long)*OSAL_BITS_PER_BYTE) /* always a power of 2 */ macro
181 #define OSAL_BITS_PER_UL_MASK (OSAL_BITS_PER_UL - 1)
227 return first_zero ? (first_zero-1) : OSAL_BITS_PER_UL; in osal_ffz()
232 addr[nr/OSAL_BITS_PER_UL] |= 1UL << (nr & OSAL_BITS_PER_UL_MASK); in OSAL_SET_BIT()
237 addr[nr/OSAL_BITS_PER_UL] &= ~(1UL << (nr & OSAL_BITS_PER_UL_MASK)); in OSAL_CLEAR_BIT()
242 return !!(addr[nr/OSAL_BITS_PER_UL] & (1UL << (nr & OSAL_BITS_PER_UL_MASK))); in OSAL_TEST_BIT()
251 nwords = (limit - 1)/OSAL_BITS_PER_UL + 1; in OSAL_FIND_FIRST_ZERO_BIT()
253 return (i == nwords) ? limit : i*OSAL_BITS_PER_UL + osal_ffz(addr[i]); in OSAL_FIND_FIRST_ZERO_BIT()
259 u32 nwords = (limit+OSAL_BITS_PER_UL-1)/OSAL_BITS_PER_UL; in OSAL_FIND_FIRST_BIT()
270 return i*OSAL_BITS_PER_UL + osal_ffz(addr[i]); in OSAL_FIND_FIRST_BIT()