Lines Matching refs:ni
46 __private_extern__ errno_t __ntfs_bitmap_set_bits_in_run(ntfs_inode *ni,
52 * @ni: ntfs inode describing the bitmap
58 * ntfs inode @ni to @value, where @value is either 0 or 1.
62 * Locking: The caller must hold @ni->lock.
64 static inline errno_t ntfs_bitmap_set_bits_in_run(ntfs_inode *ni,
67 return __ntfs_bitmap_set_bits_in_run(ni, start_bit, count, value,
73 * @ni: ntfs inode describing the bitmap
78 * ntfs inode @ni.
82 * Locking: The caller must hold @ni->lock.
84 static inline errno_t ntfs_bitmap_set_run(ntfs_inode *ni, const s64 start_bit,
87 return ntfs_bitmap_set_bits_in_run(ni, start_bit, count, 1);
92 * @ni: ntfs inode describing the bitmap
97 * ntfs inode @ni.
101 * Locking: The caller must hold @ni->lock.
103 static inline errno_t ntfs_bitmap_clear_run(ntfs_inode *ni,
106 return ntfs_bitmap_set_bits_in_run(ni, start_bit, count, 0);
111 * @ni: ntfs inode describing the bitmap
114 * Set bit @bit in the bitmap described by the ntfs inode @ni.
118 * Locking: The caller must hold @ni->lock.
120 static inline errno_t ntfs_bitmap_set_bit(ntfs_inode *ni, const s64 bit)
122 return ntfs_bitmap_set_run(ni, bit, 1);
127 * @ni: ntfs inode describing the bitmap
130 * Clear bit @bit in the bitmap described by the ntfs inode @ni.
134 * Locking: The caller must hold @ni->lock.
136 static inline errno_t ntfs_bitmap_clear_bit(ntfs_inode *ni, const s64 bit)
138 return ntfs_bitmap_clear_run(ni, bit, 1);