Home
last modified time | relevance | path

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

/f-stack/dpdk/drivers/crypto/ccp/
H A Dccp_dev.c143 BITS_PER_WORD; in ccp_ffz()
152 nwords = (limit - 1) / BITS_PER_WORD + 1; in ccp_find_first_zero_bit()
155 return i * BITS_PER_WORD; in ccp_find_first_zero_bit()
167 int bits_to_set = BITS_PER_WORD - (start % BITS_PER_WORD); in ccp_bitmap_set()
173 bits_to_set = BITS_PER_WORD; in ccp_bitmap_set()
188 int bits_to_clear = BITS_PER_WORD - (start % BITS_PER_WORD); in ccp_bitmap_clear()
194 bits_to_clear = BITS_PER_WORD; in ccp_bitmap_clear()
216 tmp = addr[start / BITS_PER_WORD] ^ invert; in _ccp_find_next_bit()
220 start = ccp_round_down(start, BITS_PER_WORD); in _ccp_find_next_bit()
223 start += BITS_PER_WORD; in _ccp_find_next_bit()
[all …]
H A Dccp_dev.h131 BITS_PER_WORD = sizeof(unsigned long) * CHAR_BIT enumerator
134 #define WORD_OFFSET(b) ((b) / BITS_PER_WORD)
135 #define BIT_OFFSET(b) ((b) % BITS_PER_WORD)
142 (~0UL << ((start) & (BITS_PER_WORD - 1)))
144 (~0UL >> (-(nbits) & (BITS_PER_WORD - 1)))