Lines Matching defs:ADDR
13 extern int ext2fs_set_bit(unsigned int nr,void * addr);
14 extern int ext2fs_clear_bit(unsigned int nr, void * addr);
15 extern int ext2fs_test_bit(unsigned int nr, const void * addr);
16 extern void ext2fs_fast_set_bit(unsigned int nr,void * addr);
17 extern void ext2fs_fast_clear_bit(unsigned int nr, void * addr);
149 _INLINE_ void ext2fs_fast_set_bit(unsigned int nr,void * addr)
151 unsigned char *ADDR = (unsigned char *) addr;
153 ADDR += nr >> 3;
154 *ADDR |= (1 << (nr & 0x07));
157 _INLINE_ void ext2fs_fast_clear_bit(unsigned int nr, void * addr)
159 unsigned char *ADDR = (unsigned char *) addr;
161 ADDR += nr >> 3;
162 *ADDR &= ~(1 << (nr & 0x07));
176 * operation and != 0 if it was not. Bit 0 is the LSB of addr; bit 32
177 * is the LSB of (addr+1).
184 #define EXT2FS_ADDR (*(struct __dummy_h *) addr)
185 #define EXT2FS_CONST_ADDR (*(const struct __dummy_h *) addr)
187 _INLINE_ int ext2fs_set_bit(unsigned int nr, void * addr)
191 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
198 _INLINE_ int ext2fs_clear_bit(unsigned int nr, void * addr)
202 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
209 _INLINE_ int ext2fs_test_bit(unsigned int nr, const void * addr)
213 addr = (const void *) (((const unsigned char *) addr) + (nr >> 3));
251 _INLINE_ int ext2fs_set_bit(unsigned int nr,void * addr)
256 : "=d" (retval) : "d" (nr^7), "a" (addr));
261 _INLINE_ int ext2fs_clear_bit(unsigned int nr, void * addr)
266 : "=d" (retval) : "d" (nr^7), "a" (addr));
271 _INLINE_ int ext2fs_test_bit(unsigned int nr, const void * addr)
276 : "=d" (retval) : "d" (nr^7), "a" (addr));