Home | History | Annotate | Download | only in ext2fs

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);
144 _INLINE_ void ext2fs_fast_set_bit(unsigned int nr,void * addr)
146 unsigned char *ADDR = (unsigned char *) addr;
148 ADDR += nr >> 3;
149 *ADDR |= (1 << (nr & 0x07));
152 _INLINE_ void ext2fs_fast_clear_bit(unsigned int nr, void * addr)
154 unsigned char *ADDR = (unsigned char *) addr;
156 ADDR += nr >> 3;
157 *ADDR &= ~(1 << (nr & 0x07));
172 * operation and != 0 if it was not. Bit 0 is the LSB of addr; bit 32
173 * is the LSB of (addr+1).
180 #define EXT2FS_ADDR (*(struct __dummy_h *) addr)
181 #define EXT2FS_CONST_ADDR (*(const struct __dummy_h *) addr)
183 _INLINE_ int ext2fs_set_bit(unsigned int nr, void * addr)
187 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
194 _INLINE_ int ext2fs_clear_bit(unsigned int nr, void * addr)
198 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
205 _INLINE_ int ext2fs_test_bit(unsigned int nr, const void * addr)
209 addr = (const void *) (((const unsigned char *) addr) + (nr >> 3));
217 _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
238 :"1" ((size + 31) >> 5), "2" (addr), "S" (addr));
242 _INLINE_ int ext2fs_find_next_bit_set (void * addr, int size, int offset)
244 unsigned long * p = ((unsigned long *) addr) + (offset >> 5);
265 res = ext2fs_find_first_bit_set(p, size - 32 * (p - (unsigned long *) addr));
309 _INLINE_ int ext2fs_set_bit(unsigned int nr,void * addr)
314 : "=d" (retval) : "d" (nr^7), "a" (addr));
319 _INLINE_ int ext2fs_clear_bit(unsigned int nr, void * addr)
324 : "=d" (retval) : "d" (nr^7), "a" (addr));
329 _INLINE_ int ext2fs_test_bit(unsigned int nr, const void * addr)
334 : "=d" (retval) : "d" (nr^7), "a" (addr));
358 _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
360 char *cp = (char *) addr;
377 _INLINE_ int ext2fs_find_next_bit_set (void * addr, int size, int offset)
383 p = ((unsigned char *) addr) + res;