Lines Matching defs:ADDR
33 int ext2fs_set_bit(unsigned int nr,void * addr)
36 unsigned char *ADDR = (unsigned char *) addr;
38 ADDR += nr >> 3;
40 retval = mask & *ADDR;
41 *ADDR |= mask;
45 int ext2fs_clear_bit(unsigned int nr, void * addr)
48 unsigned char *ADDR = (unsigned char *) addr;
50 ADDR += nr >> 3;
52 retval = mask & *ADDR;
53 *ADDR &= ~mask;
57 int ext2fs_test_bit(unsigned int nr, const void * addr)
60 const unsigned char *ADDR = (const unsigned char *) addr;
62 ADDR += nr >> 3;
64 return (mask & *ADDR);
84 int ext2fs_set_bit64(__u64 nr, void * addr)
87 unsigned char *ADDR = (unsigned char *) addr;
89 ADDR += nr >> 3;
91 retval = mask & *ADDR;
92 *ADDR |= mask;
96 int ext2fs_clear_bit64(__u64 nr, void * addr)
99 unsigned char *ADDR = (unsigned char *) addr;
101 ADDR += nr >> 3;
103 retval = mask & *ADDR;
104 *ADDR &= ~mask;
108 int ext2fs_test_bit64(__u64 nr, const void * addr)
111 const unsigned char *ADDR = (const unsigned char *) addr;
113 ADDR += nr >> 3;
115 return (mask & *ADDR);
134 unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes)
136 const unsigned char *cp = addr;