Lines Matching +full:clear +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * bitmap.h - Defines for NTFS kernel bitmap handling. Part of the Linux-NTFS
22 * ntfs_bitmap_set_bits_in_run - set a run of bits in a bitmap to a value
24 * @start_bit: first bit to set
28 * Set @count bits starting at bit @start_bit in the bitmap described by the
31 * Return 0 on success and -errno on error.
41 * ntfs_bitmap_set_run - set a run of bits in a bitmap
43 * @start_bit: first bit to set
46 * Set @count bits starting at bit @start_bit in the bitmap described by the
49 * Return 0 on success and -errno on error.
58 * ntfs_bitmap_clear_run - clear a run of bits in a bitmap
60 * @start_bit: first bit to clear
61 * @count: number of bits to clear
63 * Clear @count bits starting at bit @start_bit in the bitmap described by the
66 * Return 0 on success and -errno on error.
75 * ntfs_bitmap_set_bit - set a bit in a bitmap
77 * @bit: bit to set
79 * Set bit @bit in the bitmap described by the vfs inode @vi.
81 * Return 0 on success and -errno on error.
83 static inline int ntfs_bitmap_set_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_set_bit() argument
85 return ntfs_bitmap_set_run(vi, bit, 1); in ntfs_bitmap_set_bit()
89 * ntfs_bitmap_clear_bit - clear a bit in a bitmap
91 * @bit: bit to clear
93 * Clear bit @bit in the bitmap described by the vfs inode @vi.
95 * Return 0 on success and -errno on error.
97 static inline int ntfs_bitmap_clear_bit(struct inode *vi, const s64 bit) in ntfs_bitmap_clear_bit() argument
99 return ntfs_bitmap_clear_run(vi, bit, 1); in ntfs_bitmap_clear_bit()