Lines Matching defs:ADDR
17 extern int ext2fs_set_bit(unsigned int nr,void * addr);
18 extern int ext2fs_clear_bit(unsigned int nr, void * addr);
19 extern int ext2fs_test_bit(unsigned int nr, const void * addr);
20 extern void ext2fs_fast_set_bit(unsigned int nr,void * addr);
21 extern void ext2fs_fast_clear_bit(unsigned int nr, void * addr);
153 _INLINE_ void ext2fs_fast_set_bit(unsigned int nr,void * addr)
155 unsigned char *ADDR = (unsigned char *) addr;
157 ADDR += nr >> 3;
158 *ADDR |= (1 << (nr & 0x07));
161 _INLINE_ void ext2fs_fast_clear_bit(unsigned int nr, void * addr)
163 unsigned char *ADDR = (unsigned char *) addr;
165 ADDR += nr >> 3;
166 *ADDR &= ~(1 << (nr & 0x07));
180 * operation and != 0 if it was not. Bit 0 is the LSB of addr; bit 32
181 * is the LSB of (addr+1).
188 #define EXT2FS_ADDR (*(struct __dummy_h *) addr)
189 #define EXT2FS_CONST_ADDR (*(const struct __dummy_h *) addr)
191 _INLINE_ int ext2fs_set_bit(unsigned int nr, void * addr)
195 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
202 _INLINE_ int ext2fs_clear_bit(unsigned int nr, void * addr)
206 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
213 _INLINE_ int ext2fs_test_bit(unsigned int nr, const void * addr)
217 addr = (const void *) (((const unsigned char *) addr) + (nr >> 3));
255 _INLINE_ int ext2fs_set_bit(unsigned int nr,void * addr)
260 : "=d" (retval) : "d" (nr^7), "a" (addr));
265 _INLINE_ int ext2fs_clear_bit(unsigned int nr, void * addr)
270 : "=d" (retval) : "d" (nr^7), "a" (addr));
275 _INLINE_ int ext2fs_test_bit(unsigned int nr, const void * addr)
280 : "=d" (retval) : "d" (nr^7), "a" (addr));