Lines Matching full:addr
34 int ext2fs_set_bit(unsigned int nr,void * addr)
37 unsigned char *ADDR = (unsigned char *) addr;
39 ADDR += nr >> 3;
41 retval = mask & *ADDR;
42 *ADDR |= mask;
46 int ext2fs_clear_bit(unsigned int nr, void * addr)
49 unsigned char *ADDR = (unsigned char *) addr;
51 ADDR += nr >> 3;
53 retval = mask & *ADDR;
54 *ADDR &= ~mask;
58 int ext2fs_test_bit(unsigned int nr, const void * addr)
61 const unsigned char *ADDR = (const unsigned char *) addr;
63 ADDR += nr >> 3;
65 return (mask & *ADDR);
85 int ext2fs_set_bit64(__u64 nr, void * addr)
88 unsigned char *ADDR = (unsigned char *) addr;
90 ADDR += nr >> 3;
92 retval = mask & *ADDR;
93 *ADDR |= mask;
97 int ext2fs_clear_bit64(__u64 nr, void * addr)
100 unsigned char *ADDR = (unsigned char *) addr;
102 ADDR += nr >> 3;
104 retval = mask & *ADDR;
105 *ADDR &= ~mask;
109 int ext2fs_test_bit64(__u64 nr, const void * addr)
112 const unsigned char *ADDR = (const unsigned char *) addr;
114 ADDR += nr >> 3;
116 return (mask & *ADDR);
135 unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes)
137 const unsigned char *cp = addr;