#include <compiler.h>


Go to the source code of this file.
Functions | |
| static void | atomic_set_bit (unsigned int nr, unsigned long *bitmap) |
| Atomically set bit nr in bitmap. | |
| static void | atomic_clear_bit (unsigned int nr, unsigned long *bitmap) |
| Atomically clear bit nr in bitmap. | |
| static void | atomic_toggle_bit (unsigned int nr, unsigned long *bitmap) |
| Atomically toggle bit nr in bitmap. | |
| static bool | atomic_test_and_set_bit (unsigned int nr, unsigned long *bitmap) |
| Atomically set bit nr in bitmap and return its previous state. | |
| static bool | atomic_test_and_clear_bit (unsigned int nr, unsigned long *bitmap) |
| Atomically clear bit nr in bitmap and return its previous state. | |
| static unsigned long | __ffs (unsigned long word) |
| Find First bit Set in word. | |
| static unsigned long | ffz (unsigned long word) |
| Find First Zero bit in word. | |
| static int | __fls (unsigned long word) |
| Find Last bit Set in word. | |
| static int | fls (unsigned long word) |
| Find Last bit Set in word (counting from 1). | |
| static int | ffs (unsigned long word) |
| Find First bit Set in word (standard semantics). | |
Definition in file bitops.h.
| static unsigned long __ffs | ( | unsigned long | word | ) | [inline, static] |
Find First bit Set in word.
Definition at line 106 of file bitops.h.
References bit_reverse(), and count_leading_zeroes.
Referenced by ffs(), ffz(), and softirq_priv_do_pending().

| static int __fls | ( | unsigned long | word | ) | [inline, static] |
Find Last bit Set in word.
Definition at line 132 of file bitops.h.
References count_leading_zeroes.
Referenced by fls().
| static void atomic_clear_bit | ( | unsigned int | nr, | |
| unsigned long * | bitmap | |||
| ) | [inline, static] |
| static void atomic_set_bit | ( | unsigned int | nr, | |
| unsigned long * | bitmap | |||
| ) | [inline, static] |
Atomically set bit nr in bitmap.
Definition at line 49 of file bitops.h.
References bit_mask, and bit_word.
Referenced by softirq_raise().
| static bool atomic_test_and_clear_bit | ( | unsigned int | nr, | |
| unsigned long * | bitmap | |||
| ) | [inline, static] |
Atomically clear bit nr in bitmap and return its previous state.
Definition at line 88 of file bitops.h.
References bit_mask, bit_word, and BITS_PER_LONG.
| static bool atomic_test_and_set_bit | ( | unsigned int | nr, | |
| unsigned long * | bitmap | |||
| ) | [inline, static] |
Atomically set bit nr in bitmap and return its previous state.
Definition at line 74 of file bitops.h.
References bit_mask, bit_word, and BITS_PER_LONG.
| static void atomic_toggle_bit | ( | unsigned int | nr, | |
| unsigned long * | bitmap | |||
| ) | [inline, static] |
| static int ffs | ( | unsigned long | word | ) | [inline, static] |
Find First bit Set in word (standard semantics).
This function differs from __ffs() in that the least significant bit is position 1, and it returns a well-defined result when word is 0.
Definition at line 165 of file bitops.h.
References __ffs().
Referenced by sdmmc_slot_set_voltage().

| static unsigned long ffz | ( | unsigned long | word | ) | [inline, static] |
| static int fls | ( | unsigned long | word | ) | [inline, static] |
Find Last bit Set in word (counting from 1).
This function differs from __fls() in that the least significant bit is position 1, and it returns a well-defined result when word is 0.
Definition at line 147 of file bitops.h.
References __fls().

1.5.8