Lines Matching defs:ADDR
57 extern void ext2fs_fast_set_bit(unsigned int nr,void * addr);
58 extern void ext2fs_fast_clear_bit(unsigned int nr, void * addr);
59 extern void ext2fs_fast_set_bit64(__u64 nr,void * addr);
60 extern void ext2fs_fast_clear_bit64(__u64 nr, void * addr);
242 _INLINE_ void ext2fs_fast_set_bit(unsigned int nr,void * addr)
244 unsigned char *ADDR = (unsigned char *) addr;
246 ADDR += nr >> 3;
247 *ADDR |= (unsigned char) (1 << (nr & 0x07));
250 _INLINE_ void ext2fs_fast_clear_bit(unsigned int nr, void * addr)
252 unsigned char *ADDR = (unsigned char *) addr;
254 ADDR += nr >> 3;
255 *ADDR &= (unsigned char) ~(1 << (nr & 0x07));
259 _INLINE_ void ext2fs_fast_set_bit64(__u64 nr, void * addr)
261 unsigned char *ADDR = (unsigned char *) addr;
263 ADDR += nr >> 3;
264 *ADDR |= (unsigned char) (1 << (nr & 0x07));
267 _INLINE_ void ext2fs_fast_clear_bit64(__u64 nr, void * addr)
269 unsigned char *ADDR = (unsigned char *) addr;
271 ADDR += nr >> 3;
272 *ADDR &= (unsigned char) ~(1 << (nr & 0x07));
286 * operation and != 0 if it was not. Bit 0 is the LSB of addr; bit 32
287 * is the LSB of (addr+1).
294 #define EXT2FS_ADDR (*(struct __dummy_h *) addr)
295 #define EXT2FS_CONST_ADDR (*(const struct __dummy_h *) addr)
297 _INLINE_ int ext2fs_set_bit(unsigned int nr, void * addr)
301 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
308 _INLINE_ int ext2fs_clear_bit(unsigned int nr, void * addr)
312 addr = (void *) (((unsigned char *) addr) + (nr >> 3));
319 _INLINE_ int ext2fs_test_bit(unsigned int nr, const void * addr)
323 addr = (const void *) (((const unsigned char *) addr) + (nr >> 3));
652 extern int ext2fs_set_bit(unsigned int nr,void * addr);
653 extern int ext2fs_clear_bit(unsigned int nr, void * addr);
654 extern int ext2fs_test_bit(unsigned int nr, const void * addr);
657 extern int ext2fs_set_bit64(__u64 nr,void * addr);
658 extern int ext2fs_clear_bit64(__u64 nr, void * addr);
659 extern int ext2fs_test_bit64(__u64 nr, const void * addr);
660 extern unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes);