Home
last modified time | relevance | path

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

/linux-2.6.39/arch/powerpc/include/asm/
Dbitops.h56 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) macro
86 set_bits(BITOP_MASK(nr), addr + BITOP_WORD(nr)); in set_bit()
91 clear_bits(BITOP_MASK(nr), addr + BITOP_WORD(nr)); in clear_bit()
96 clear_bits_unlock(BITOP_MASK(nr), addr + BITOP_WORD(nr)); in clear_bit_unlock()
101 change_bits(BITOP_MASK(nr), addr + BITOP_WORD(nr)); in change_bit()
139 return test_and_set_bits(BITOP_MASK(nr), addr + BITOP_WORD(nr)) != 0; in test_and_set_bit()
146 addr + BITOP_WORD(nr)) != 0; in test_and_set_bit_lock()
152 return test_and_clear_bits(BITOP_MASK(nr), addr + BITOP_WORD(nr)) != 0; in test_and_clear_bit()
158 return test_and_change_bits(BITOP_MASK(nr), addr + BITOP_WORD(nr)) != 0; in test_and_change_bit()
/linux-2.6.39/lib/
Dfind_next_bit.c17 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) macro
26 const unsigned long *p = addr + BITOP_WORD(offset); in find_next_bit()
70 const unsigned long *p = addr + BITOP_WORD(offset); in find_next_zero_bit()
198 p += BITOP_WORD(offset); in find_next_zero_bit_le()
242 p += BITOP_WORD(offset); in find_next_bit_le()