diff options
Diffstat (limited to 'include/asm-generic/bitops')
-rw-r--r-- | include/asm-generic/bitops/ext2-non-atomic.h | 12 | ||||
-rw-r--r-- | include/asm-generic/bitops/le.h | 28 | ||||
-rw-r--r-- | include/asm-generic/bitops/minix-le.h | 10 |
3 files changed, 25 insertions, 25 deletions
diff --git a/include/asm-generic/bitops/ext2-non-atomic.h b/include/asm-generic/bitops/ext2-non-atomic.h index 63cf822431a2..ba27bbe755a2 100644 --- a/include/asm-generic/bitops/ext2-non-atomic.h +++ b/include/asm-generic/bitops/ext2-non-atomic.h | |||
@@ -4,17 +4,17 @@ | |||
4 | #include <asm-generic/bitops/le.h> | 4 | #include <asm-generic/bitops/le.h> |
5 | 5 | ||
6 | #define ext2_set_bit(nr,addr) \ | 6 | #define ext2_set_bit(nr,addr) \ |
7 | generic___test_and_set_le_bit((nr),(unsigned long *)(addr)) | 7 | __test_and_set_bit_le((nr), (unsigned long *)(addr)) |
8 | #define ext2_clear_bit(nr,addr) \ | 8 | #define ext2_clear_bit(nr,addr) \ |
9 | generic___test_and_clear_le_bit((nr),(unsigned long *)(addr)) | 9 | __test_and_clear_bit_le((nr), (unsigned long *)(addr)) |
10 | 10 | ||
11 | #define ext2_test_bit(nr,addr) \ | 11 | #define ext2_test_bit(nr,addr) \ |
12 | generic_test_le_bit((nr),(unsigned long *)(addr)) | 12 | test_bit_le((nr), (unsigned long *)(addr)) |
13 | #define ext2_find_first_zero_bit(addr, size) \ | 13 | #define ext2_find_first_zero_bit(addr, size) \ |
14 | generic_find_first_zero_le_bit((unsigned long *)(addr), (size)) | 14 | find_first_zero_bit_le((unsigned long *)(addr), (size)) |
15 | #define ext2_find_next_zero_bit(addr, size, off) \ | 15 | #define ext2_find_next_zero_bit(addr, size, off) \ |
16 | generic_find_next_zero_le_bit((unsigned long *)(addr), (size), (off)) | 16 | find_next_zero_bit_le((unsigned long *)(addr), (size), (off)) |
17 | #define ext2_find_next_bit(addr, size, off) \ | 17 | #define ext2_find_next_bit(addr, size, off) \ |
18 | generic_find_next_le_bit((unsigned long *)(addr), (size), (off)) | 18 | find_next_bit_le((unsigned long *)(addr), (size), (off)) |
19 | 19 | ||
20 | #endif /* _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ */ | 20 | #endif /* _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ */ |
diff --git a/include/asm-generic/bitops/le.h b/include/asm-generic/bitops/le.h index 9085429ff3ca..394ac3ebcbde 100644 --- a/include/asm-generic/bitops/le.h +++ b/include/asm-generic/bitops/le.h | |||
@@ -8,44 +8,44 @@ | |||
8 | 8 | ||
9 | #define BITOP_LE_SWIZZLE 0 | 9 | #define BITOP_LE_SWIZZLE 0 |
10 | 10 | ||
11 | #define generic_find_next_zero_le_bit(addr, size, offset) \ | 11 | #define find_next_zero_bit_le(addr, size, offset) \ |
12 | find_next_zero_bit(addr, size, offset) | 12 | find_next_zero_bit(addr, size, offset) |
13 | #define generic_find_next_le_bit(addr, size, offset) \ | 13 | #define find_next_bit_le(addr, size, offset) \ |
14 | find_next_bit(addr, size, offset) | 14 | find_next_bit(addr, size, offset) |
15 | #define generic_find_first_zero_le_bit(addr, size) \ | 15 | #define find_first_zero_bit_le(addr, size) \ |
16 | find_first_zero_bit(addr, size) | 16 | find_first_zero_bit(addr, size) |
17 | 17 | ||
18 | #elif defined(__BIG_ENDIAN) | 18 | #elif defined(__BIG_ENDIAN) |
19 | 19 | ||
20 | #define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7) | 20 | #define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7) |
21 | 21 | ||
22 | extern unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, | 22 | extern unsigned long find_next_zero_bit_le(const unsigned long *addr, |
23 | unsigned long size, unsigned long offset); | 23 | unsigned long size, unsigned long offset); |
24 | extern unsigned long generic_find_next_le_bit(const unsigned long *addr, | 24 | extern unsigned long find_next_bit_le(const unsigned long *addr, |
25 | unsigned long size, unsigned long offset); | 25 | unsigned long size, unsigned long offset); |
26 | 26 | ||
27 | #define generic_find_first_zero_le_bit(addr, size) \ | 27 | #define find_first_zero_bit_le(addr, size) \ |
28 | generic_find_next_zero_le_bit((addr), (size), 0) | 28 | find_next_zero_bit_le((addr), (size), 0) |
29 | 29 | ||
30 | #else | 30 | #else |
31 | #error "Please fix <asm/byteorder.h>" | 31 | #error "Please fix <asm/byteorder.h>" |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #define generic_test_le_bit(nr, addr) \ | 34 | #define test_bit_le(nr, addr) \ |
35 | test_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 35 | test_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
36 | #define generic___set_le_bit(nr, addr) \ | 36 | #define __set_bit_le(nr, addr) \ |
37 | __set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 37 | __set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
38 | #define generic___clear_le_bit(nr, addr) \ | 38 | #define __clear_bit_le(nr, addr) \ |
39 | __clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 39 | __clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
40 | 40 | ||
41 | #define generic_test_and_set_le_bit(nr, addr) \ | 41 | #define test_and_set_bit_le(nr, addr) \ |
42 | test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 42 | test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
43 | #define generic_test_and_clear_le_bit(nr, addr) \ | 43 | #define test_and_clear_bit_le(nr, addr) \ |
44 | test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 44 | test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
45 | 45 | ||
46 | #define generic___test_and_set_le_bit(nr, addr) \ | 46 | #define __test_and_set_bit_le(nr, addr) \ |
47 | __test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 47 | __test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
48 | #define generic___test_and_clear_le_bit(nr, addr) \ | 48 | #define __test_and_clear_bit_le(nr, addr) \ |
49 | __test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 49 | __test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
50 | 50 | ||
51 | #endif /* _ASM_GENERIC_BITOPS_LE_H_ */ | 51 | #endif /* _ASM_GENERIC_BITOPS_LE_H_ */ |
diff --git a/include/asm-generic/bitops/minix-le.h b/include/asm-generic/bitops/minix-le.h index 4a981c1bb1ae..854e9489f62d 100644 --- a/include/asm-generic/bitops/minix-le.h +++ b/include/asm-generic/bitops/minix-le.h | |||
@@ -4,14 +4,14 @@ | |||
4 | #include <asm-generic/bitops/le.h> | 4 | #include <asm-generic/bitops/le.h> |
5 | 5 | ||
6 | #define minix_test_and_set_bit(nr,addr) \ | 6 | #define minix_test_and_set_bit(nr,addr) \ |
7 | generic___test_and_set_le_bit((nr),(unsigned long *)(addr)) | 7 | __test_and_set_bit_le((nr), (unsigned long *)(addr)) |
8 | #define minix_set_bit(nr,addr) \ | 8 | #define minix_set_bit(nr,addr) \ |
9 | generic___set_le_bit((nr),(unsigned long *)(addr)) | 9 | __set_bit_le((nr), (unsigned long *)(addr)) |
10 | #define minix_test_and_clear_bit(nr,addr) \ | 10 | #define minix_test_and_clear_bit(nr,addr) \ |
11 | generic___test_and_clear_le_bit((nr),(unsigned long *)(addr)) | 11 | __test_and_clear_bit_le((nr), (unsigned long *)(addr)) |
12 | #define minix_test_bit(nr,addr) \ | 12 | #define minix_test_bit(nr,addr) \ |
13 | generic_test_le_bit((nr),(unsigned long *)(addr)) | 13 | test_bit_le((nr), (unsigned long *)(addr)) |
14 | #define minix_find_first_zero_bit(addr,size) \ | 14 | #define minix_find_first_zero_bit(addr,size) \ |
15 | generic_find_first_zero_le_bit((unsigned long *)(addr),(size)) | 15 | find_first_zero_bit_le((unsigned long *)(addr), (size)) |
16 | 16 | ||
17 | #endif /* _ASM_GENERIC_BITOPS_MINIX_LE_H_ */ | 17 | #endif /* _ASM_GENERIC_BITOPS_MINIX_LE_H_ */ |