Home
last modified time | relevance | path

Searched refs:num_bits (Results 1 – 10 of 10) sorted by relevance

/fs/ntfs3/lib/
Ddecompress_common.h88 u32 num_bits) in bitstream_ensure_bits() argument
90 if (is->bitsleft < num_bits) { in bitstream_ensure_bits()
105 bitstream_peek_bits(const struct input_bitstream *is, const u32 num_bits) in bitstream_peek_bits() argument
107 return (is->bitbuf >> 1) >> (sizeof(is->bitbuf) * 8 - num_bits - 1); in bitstream_peek_bits()
115 bitstream_remove_bits(struct input_bitstream *is, u32 num_bits) in bitstream_remove_bits() argument
117 is->bitbuf <<= num_bits; in bitstream_remove_bits()
118 is->bitsleft -= num_bits; in bitstream_remove_bits()
126 bitstream_pop_bits(struct input_bitstream *is, u32 num_bits) in bitstream_pop_bits() argument
128 u32 bits = bitstream_peek_bits(is, num_bits); in bitstream_pop_bits()
130 bitstream_remove_bits(is, num_bits); in bitstream_pop_bits()
[all …]
/fs/hfs/
Dbitmap.c139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument
145 if (!*num_bits) in hfs_vbm_search_free()
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
156 *num_bits = pos = 0; in hfs_vbm_search_free()
161 hfs_dbg(BITMAP, "alloc_bits: %u,%u\n", pos, *num_bits); in hfs_vbm_search_free()
162 HFS_SB(sb)->free_ablocks -= *num_bits; in hfs_vbm_search_free()
/fs/ocfs2/
Dresize.c90 u16 chain, num_bits, backups = 0; in ocfs2_update_last_group_and_inode() local
109 num_bits = new_clusters * cl_bpc; in ocfs2_update_last_group_and_inode()
110 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode()
111 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode()
137 le32_add_cpu(&cr->c_total, num_bits); in ocfs2_update_last_group_and_inode()
138 le32_add_cpu(&cr->c_free, num_bits); in ocfs2_update_last_group_and_inode()
139 le32_add_cpu(&fe->id1.bitmap1.i_total, num_bits); in ocfs2_update_last_group_and_inode()
161 le16_add_cpu(&group->bg_bits, -1 * num_bits); in ocfs2_update_last_group_and_inode()
162 le16_add_cpu(&group->bg_free_bits_count, -1 * num_bits); in ocfs2_update_last_group_and_inode()
Dsuballoc.c423 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local
430 &num_bits); in ocfs2_block_group_alloc_contig()
451 bg_blkno, num_bits, alloc_rec, cl); in ocfs2_block_group_alloc_contig()
465 u32 *bit_off, u32 *num_bits) in ocfs2_block_group_claim_bits() argument
471 bit_off, num_bits); in ocfs2_block_group_claim_bits()
580 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local
609 &bit_off, &num_bits); in ocfs2_block_group_alloc_discontig()
615 min_bits = num_bits; in ocfs2_block_group_alloc_discontig()
631 bg_blkno, num_bits, alloc_rec, cl); in ocfs2_block_group_alloc_discontig()
1340 unsigned int num_bits) in ocfs2_block_group_set_bits() argument
[all …]
Dsuballoc.h76 u32 num_bits,
80 u32 num_bits,
87 unsigned int num_bits);
94 u32 *num_bits,
Dlocalalloc.h40 u32 *num_bits);
46 u32 num_bits);
Dlocalalloc.c718 u32 *num_bits) in ocfs2_claim_local_alloc_bits() argument
743 *num_bits = bits_wanted; in ocfs2_claim_local_alloc_bits()
760 le32_add_cpu(&alloc->id1.bitmap1.i_used, *num_bits); in ocfs2_claim_local_alloc_bits()
773 u32 num_bits) in ocfs2_free_local_alloc_bits() argument
790 clear_bits = num_bits; in ocfs2_free_local_alloc_bits()
804 le32_add_cpu(&alloc->id1.bitmap1.i_used, -num_bits); in ocfs2_free_local_alloc_bits()
Dalloc.c4782 u32 bit_off, num_bits; in ocfs2_add_clusters_in_btree() local
4820 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_clusters_in_btree()
4827 BUG_ON(num_bits > clusters_to_add); in ocfs2_add_clusters_in_btree()
4841 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4843 num_bits, flags, meta_ac); in ocfs2_add_clusters_in_btree()
4852 clusters_to_add -= num_bits; in ocfs2_add_clusters_in_btree()
4853 *logical_offset += num_bits; in ocfs2_add_clusters_in_btree()
4865 bit_off, num_bits); in ocfs2_add_clusters_in_btree()
4871 num_bits); in ocfs2_add_clusters_in_btree()
Dxattr.c5105 u32 clusters_to_add = 1, bit_off, num_bits, v_start = 0; in ocfs2_add_new_xattr_cluster() local
5126 clusters_to_add, &bit_off, &num_bits); in ocfs2_add_new_xattr_cluster()
5133 BUG_ON(num_bits > clusters_to_add); in ocfs2_add_new_xattr_cluster()
5136 trace_ocfs2_add_new_xattr_cluster((unsigned long long)block, num_bits); in ocfs2_add_new_xattr_cluster()
5139 (prev_clusters + num_bits) << osb->s_clustersize_bits <= in ocfs2_add_new_xattr_cluster()
5151 *num_clusters = prev_clusters + num_bits; in ocfs2_add_new_xattr_cluster()
5168 v_start, num_bits); in ocfs2_add_new_xattr_cluster()
5170 num_bits, 0, ctxt->meta_ac); in ocfs2_add_new_xattr_cluster()
Ddir.c2294 unsigned int num_bits; in ocfs2_dx_dir_attach_index() local
2301 &dr_suballoc_bit, &num_bits, &dr_blkno); in ocfs2_dx_dir_attach_index()