/fs/omfs/ |
D | bitmap.c | 27 int addrlen, int bit, int max) in count_run() argument 33 x = find_next_bit(*addr, nbits, bit); in count_run() 34 count += x - bit; in count_run() 39 bit = 0; in count_run() 49 int nbits, int bit, int count, int set) in set_run() argument 61 for (i = 0; i < count; i++, bit++) { in set_run() 62 if (bit >= nbits) { in set_run() 63 bit = 0; in set_run() 74 set_bit(bit, sbi->s_imap[map]); in set_run() 75 set_bit(bit, (unsigned long *)bh->b_data); in set_run() [all …]
|
/fs/ocfs2/ |
D | heartbeat.c | 28 int bit); 30 int bit); 69 int bit) in __ocfs2_node_map_set_bit() argument 71 set_bit(bit, map->map); in __ocfs2_node_map_set_bit() 76 int bit) in ocfs2_node_map_set_bit() argument 78 if (bit==-1) in ocfs2_node_map_set_bit() 80 BUG_ON(bit >= map->num_nodes); in ocfs2_node_map_set_bit() 82 __ocfs2_node_map_set_bit(map, bit); in ocfs2_node_map_set_bit() 87 int bit) in __ocfs2_node_map_clear_bit() argument 89 clear_bit(bit, map->map); in __ocfs2_node_map_clear_bit() [all …]
|
D | ocfs2.h | 871 static inline void _ocfs2_set_bit(unsigned int bit, unsigned long *bitmap) in _ocfs2_set_bit() argument 873 __set_bit_le(bit, bitmap); in _ocfs2_set_bit() 875 #define ocfs2_set_bit(bit, addr) _ocfs2_set_bit((bit), (unsigned long *)(addr)) argument 877 static inline void _ocfs2_clear_bit(unsigned int bit, unsigned long *bitmap) in _ocfs2_clear_bit() argument 879 __clear_bit_le(bit, bitmap); in _ocfs2_clear_bit() 881 #define ocfs2_clear_bit(bit, addr) _ocfs2_clear_bit((bit), (unsigned long *)(addr)) argument 887 static inline void *correct_addr_and_bit_unaligned(int *bit, void *addr) in correct_addr_and_bit_unaligned() argument 890 *bit += ((unsigned long) addr & 7UL) << 3; in correct_addr_and_bit_unaligned() 893 *bit += ((unsigned long) addr & 3UL) << 3; in correct_addr_and_bit_unaligned() 901 static inline void ocfs2_set_bit_unaligned(int bit, void *bitmap) in ocfs2_set_bit_unaligned() argument [all …]
|
D | heartbeat.h | 21 int bit); 24 int bit); 27 int bit);
|
/fs/udf/ |
D | balloc.c | 139 unsigned long bit; in udf_bitmap_free_blocks() local 161 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 166 if (bit + count > (sb->s_blocksize << 3)) { in udf_bitmap_free_blocks() 167 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 176 if (udf_set_bit(bit + i, bh->b_data)) { in udf_bitmap_free_blocks() 177 udf_debug("bit %lu already set\n", bit + i); in udf_bitmap_free_blocks() 179 ((__u8 *)bh->b_data)[(bit + i) >> 3]); in udf_bitmap_free_blocks() 201 int bit, block, block_group; in udf_bitmap_prealloc_blocks() local 223 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks() 225 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_rtbitmap.c | 102 int bit; /* bit number in the word */ in xfs_rtfind_back() local 129 bit = (int)(start & (XFS_NBWORD - 1)); in xfs_rtfind_back() 135 want = (*b & ((xfs_rtword_t)1 << bit)) ? -1 : 0; in xfs_rtfind_back() 140 if (bit < XFS_NBWORD - 1) { in xfs_rtfind_back() 145 firstbit = XFS_RTMAX((xfs_srtblock_t)(bit - len + 1), 0); in xfs_rtfind_back() 146 mask = (((xfs_rtword_t)1 << (bit - firstbit + 1)) - 1) << in xfs_rtfind_back() 157 i = bit - XFS_RTHIBIT(wdiff); in xfs_rtfind_back() 161 i = bit - firstbit + 1; in xfs_rtfind_back() 277 int bit; /* bit number in the word */ in xfs_rtfind_forw() local 304 bit = (int)(start & (XFS_NBWORD - 1)); in xfs_rtfind_forw() [all …]
|
/fs/ntfs/ |
D | bitmap.c | 42 u8 bit; in __ntfs_bitmap_set_bits_in_run() local 74 bit = start_bit & 7; in __ntfs_bitmap_set_bits_in_run() 77 if (bit) { in __ntfs_bitmap_set_bits_in_run() 79 while ((bit & 7) && cnt) { in __ntfs_bitmap_set_bits_in_run() 82 *byte |= 1 << bit++; in __ntfs_bitmap_set_bits_in_run() 84 *byte &= ~(1 << bit++); in __ntfs_bitmap_set_bits_in_run() 135 bit = cnt; in __ntfs_bitmap_set_bits_in_run() 137 while (bit--) { in __ntfs_bitmap_set_bits_in_run() 139 *byte |= 1 << bit; in __ntfs_bitmap_set_bits_in_run() 141 *byte &= ~(1 << bit); in __ntfs_bitmap_set_bits_in_run()
|
D | bitmap.h | 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() 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()
|
D | mft.c | 1129 s64 pass_end, ll, data_pos, pass_start, ofs, bit; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() local 1195 bit = data_pos & 7; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1199 (long long)data_pos, (long long)bit); in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1200 for (; bit < size && data_pos + bit < pass_end; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1201 bit &= ~7ull, bit += 8) { in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1202 byte = buf + (bit >> 3); in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1206 if (b < 8 && b >= (bit & 7)) { in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1207 ll = data_pos + (bit & ~7ull) + b; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1225 (long long)data_pos, (long long)bit); in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 2241 s64 ll, bit, old_data_initialized, old_data_size; in ntfs_mft_record_alloc() local [all …]
|
/fs/ufs/ |
D | ialloc.c | 64 unsigned ino, cg, bit; in ufs_free_inode() local 82 bit = ufs_inotocgoff (ino); in ufs_free_inode() 96 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_iusedoff, bit)) in ufs_free_inode() 99 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_iusedoff, bit); in ufs_free_inode() 181 unsigned cg, bit, i, j, start; in ufs_new_inode() local 249 bit = ubh_find_next_zero_bit (UCPI_UBH(ucpi), ucpi->c_iusedoff, uspi->s_ipg, start); in ufs_new_inode() 250 if (!(bit < uspi->s_ipg)) { in ufs_new_inode() 251 bit = ubh_find_first_zero_bit (UCPI_UBH(ucpi), ucpi->c_iusedoff, start); in ufs_new_inode() 252 if (!(bit < start)) { in ufs_new_inode() 259 UFSD("start = %u, bit = %u, ipg = %u\n", start, bit, uspi->s_ipg); in ufs_new_inode() [all …]
|
D | util.h | 351 #define ubh_blkmap(ubh,begin,bit) \ argument 352 …((*ubh_get_addr(ubh, (begin) + ((bit) >> 3)) >> ((bit) & 7)) & (0xff >> (UFS_MAXFRAG - uspi->s_fpb… 379 #define ubh_setbit(ubh,begin,bit) \ argument 380 (*ubh_get_addr(ubh, (begin) + ((bit) >> 3)) |= (1 << ((bit) & 7))) 382 #define ubh_clrbit(ubh,begin,bit) \ argument 383 (*ubh_get_addr (ubh, (begin) + ((bit) >> 3)) &= ~(1 << ((bit) & 7))) 385 #define ubh_isset(ubh,begin,bit) \ argument 386 (*ubh_get_addr (ubh, (begin) + ((bit) >> 3)) & (1 << ((bit) & 7))) 388 #define ubh_isclr(ubh,begin,bit) (!ubh_isset(ubh,begin,bit)) argument 419 unsigned bit, i; in find_last_zero_bit() local [all …]
|
/fs/ntfs3/ |
D | dir.c | 373 size_t bit; in ntfs_readdir() local 426 bit = (pos - sbi->record_size) >> index_bits; in ntfs_readdir() 431 bit = 0; in ntfs_readdir() 440 vbo = (u64)bit << index_bits; in ntfs_readdir() 446 err = indx_used_bit(&ni->dir, ni, &bit); in ntfs_readdir() 450 if (bit == MINUS_ONE_T) { in ntfs_readdir() 455 vbo = (u64)bit << index_bits; in ntfs_readdir() 462 err = indx_read(&ni->dir, ni, bit << ni->dir.idx2vbn_bits, in ntfs_readdir() 472 bit += 1; in ntfs_readdir() 499 size_t drs = 0, fles = 0, bit = 0; in ntfs_dir_count() local [all …]
|
D | bitmap.c | 37 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits); 235 static void wnd_add_free_ext(struct wnd_bitmap *wnd, size_t bit, size_t len, in wnd_add_free_ext() argument 239 size_t ib, end_in = bit + len; in wnd_add_free_ext() 251 n = rb_lookup(&wnd->start_tree, bit); in wnd_add_free_ext() 258 if (e->start.key + e->count.key == bit) { in wnd_add_free_ext() 260 bit = e->start.key; in wnd_add_free_ext() 294 bit < wnd->zone_end in wnd_add_free_ext() 298 while (bit > ib && wnd_is_free_hlp(wnd, bit - 1, 1)) { in wnd_add_free_ext() 299 bit -= 1; in wnd_add_free_ext() 351 e->start.key = bit; in wnd_add_free_ext() [all …]
|
D | bitfunc.c | 33 bool are_bits_clear(const ulong *lmap, size_t bit, size_t nbits) in are_bits_clear() argument 35 size_t pos = bit & 7; in are_bits_clear() 36 const u8 *map = (u8 *)lmap + (bit >> 3); in are_bits_clear() 81 bool are_bits_set(const ulong *lmap, size_t bit, size_t nbits) in are_bits_set() argument 84 size_t pos = bit & 7; in are_bits_set() 85 const u8 *map = (u8 *)lmap + (bit >> 3); in are_bits_set()
|
D | index.c | 199 size_t bit; member 205 size_t bit, struct bmp_buf *bbuf) in bmp_buf_get() argument 208 size_t data_size, valid_size, vbo, off = bit >> 3; in bmp_buf_get() 232 bbuf->bit = 0; in bmp_buf_get() 280 bbuf->bit = 8 * (off & ~(size_t)sbi->block_mask); in bmp_buf_get() 317 size_t bit) in indx_mark_used() argument 322 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_used() 326 __set_bit(bit - bbuf.bit, bbuf.buf); in indx_mark_used() 337 size_t bit) in indx_mark_free() argument 342 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_free() [all …]
|
D | lznt.c | 232 size_t bit = 0; in decompress_chunk() local 244 if (!(ch & (1 << bit))) { in decompress_chunk() 278 bit = (bit + 1) & 7; in decompress_chunk() 280 if (!bit) { in decompress_chunk()
|
/fs/ksmbd/mgmt/ |
D | user_session.h | 66 static inline int test_session_flag(struct ksmbd_session *sess, int bit) in test_session_flag() argument 68 return sess->flags & bit; in test_session_flag() 71 static inline void set_session_flag(struct ksmbd_session *sess, int bit) in set_session_flag() argument 73 sess->flags |= bit; in set_session_flag() 76 static inline void clear_session_flag(struct ksmbd_session *sess, int bit) in clear_session_flag() argument 78 sess->flags &= ~bit; in clear_session_flag()
|
/fs/affs/ |
D | bitmap.c | 44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 54 bit = blk % sbi->s_bmap_bits; in affs_free_block() 69 mask = 1 << (bit & 31); in affs_free_block() 70 data = (__be32 *)bh->b_data + bit / 32 + 1; in affs_free_block() 122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 182 bit = blk % sbi->s_bmap_bits; in affs_alloc_block() 183 data = (__be32 *)bh->b_data + bit / 32 + 1; in affs_alloc_block() 185 mask = ~0UL << (bit & 31); in affs_alloc_block() 206 bit = ffs(tmp & mask) - 1; in affs_alloc_block() 207 blk += bit + sbi->s_reserved; in affs_alloc_block() [all …]
|
/fs/xfs/ |
D | xfs_buf_item_recover.c | 453 int bit; in xlog_recover_do_reg_buffer() local 460 bit = 0; in xlog_recover_do_reg_buffer() 463 bit = xfs_next_bit(buf_f->blf_data_map, in xlog_recover_do_reg_buffer() 464 buf_f->blf_map_size, bit); in xlog_recover_do_reg_buffer() 465 if (bit == -1) in xlog_recover_do_reg_buffer() 468 buf_f->blf_map_size, bit); in xlog_recover_do_reg_buffer() 473 ((uint)bit << XFS_BLF_SHIFT) + (nbits << XFS_BLF_SHIFT)); in xlog_recover_do_reg_buffer() 515 (uint)bit << XFS_BLF_SHIFT), /* dest */ in xlog_recover_do_reg_buffer() 520 bit += nbits; in xlog_recover_do_reg_buffer() 594 int bit = 0; in xlog_recover_do_inode_buffer() local [all …]
|
/fs/ocfs2/dlm/ |
D | dlmmaster.c | 602 struct dlm_lock_resource *res, int bit) in dlm_lockres_set_refmap_bit() argument 607 res->lockname.name, bit, __builtin_return_address(0)); in dlm_lockres_set_refmap_bit() 609 set_bit(bit, res->refmap); in dlm_lockres_set_refmap_bit() 613 struct dlm_lock_resource *res, int bit) in dlm_lockres_clear_refmap_bit() argument 618 res->lockname.name, bit, __builtin_return_address(0)); in dlm_lockres_clear_refmap_bit() 620 clear_bit(bit, res->refmap); in dlm_lockres_clear_refmap_bit() 714 int bit, wait_on_recovery = 0; in dlm_get_lock_resource() local 864 bit = find_next_bit(dlm->recovery_map, O2NM_MAX_NODES, 0); in dlm_get_lock_resource() 865 if (bit < O2NM_MAX_NODES) { in dlm_get_lock_resource() 868 dlm->name, namelen, (char *)lockid, bit); in dlm_get_lock_resource() [all …]
|
/fs/minix/ |
D | bitmap.c | 48 unsigned long bit, zone; in minix_free_block() local 55 bit = zone & ((1<<k) - 1); in minix_free_block() 63 if (!minix_test_and_clear_bit(bit, bh->b_data)) in minix_free_block() 189 unsigned long ino, bit; in minix_free_inode() local 196 bit = ino & ((1<<k) - 1); in minix_free_inode() 207 if (!minix_test_and_clear_bit(bit, bh->b_data)) in minix_free_inode() 208 printk("minix_free_inode: bit %lu already cleared\n", bit); in minix_free_inode()
|
/fs/afs/ |
D | dir_edit.c | 27 int bit, n; in afs_find_contig_bits() local 38 bit = 1; in afs_find_contig_bits() 49 bit += n; in afs_find_contig_bits() 52 if (bit > 64 - nr_slots) in afs_find_contig_bits() 54 return bit; in afs_find_contig_bits() 59 bit += n; in afs_find_contig_bits() 69 int bit, unsigned int nr_slots) in afs_set_contig_bits() argument 74 mask <<= bit; in afs_set_contig_bits() 90 int bit, unsigned int nr_slots) in afs_clear_contig_bits() argument 95 mask <<= bit; in afs_clear_contig_bits()
|
/fs/pstore/ |
D | ftrace.c | 31 int bit; in pstore_ftrace_call() local 44 bit = ftrace_test_recursion_trylock(ip, parent_ip); in pstore_ftrace_call() 45 if (bit < 0) in pstore_ftrace_call() 57 ftrace_test_recursion_unlock(bit); in pstore_ftrace_call()
|
/fs/ext4/ |
D | mballoc.c | 445 static inline void *mb_correct_addr_and_bit(int *bit, void *addr) in mb_correct_addr_and_bit() argument 448 *bit += ((unsigned long) addr & 7UL) << 3; in mb_correct_addr_and_bit() 451 *bit += ((unsigned long) addr & 3UL) << 3; in mb_correct_addr_and_bit() 459 static inline int mb_test_bit(int bit, void *addr) in mb_test_bit() argument 465 addr = mb_correct_addr_and_bit(&bit, addr); in mb_test_bit() 466 return ext4_test_bit(bit, addr); in mb_test_bit() 469 static inline void mb_set_bit(int bit, void *addr) in mb_set_bit() argument 471 addr = mb_correct_addr_and_bit(&bit, addr); in mb_set_bit() 472 ext4_set_bit(bit, addr); in mb_set_bit() 475 static inline void mb_clear_bit(int bit, void *addr) in mb_clear_bit() argument [all …]
|
/fs/nilfs2/ |
D | the_nilfs.h | 194 #define THE_NILFS_FNS(bit, name) \ argument 197 set_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 201 clear_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \ 205 return test_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \
|