/fs/jffs2/ |
D | compr_rubin.c | 44 int bits[8]; member 88 static void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument 98 rs->bits[c] = bits[c]; in init_rubin() 151 static void init_decode(struct rubin_state *rs, int div, int *bits) in init_decode() argument 153 init_rubin(rs, div, bits); in init_decode() 168 int c, bits = 0; in __do_decode() local 176 bits++; in __do_decode() 185 rs->bit_number += bits; in __do_decode() 196 } while (--bits); in __do_decode() 237 ret = encode(rs, rs->bit_divider-rs->bits[i], in out_byte() [all …]
|
/fs/btrfs/ |
D | struct-funcs.c | 50 #define DEFINE_BTRFS_SETGET_BITS(bits) \ argument 51 u##bits btrfs_get_token_##bits(struct btrfs_map_token *token, \ 58 const int size = sizeof(u##bits); \ 59 u8 lebytes[sizeof(u##bits)]; \ 67 return get_unaligned_le##bits(token->kaddr + oip); \ 72 return get_unaligned_le##bits(token->kaddr + oip); \ 78 return get_unaligned_le##bits(lebytes); \ 80 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 87 const int size = sizeof(u##bits); \ 89 u8 lebytes[sizeof(u##bits)]; \ [all …]
|
D | extent-io-tree.c | 178 static int add_extent_changeset(struct extent_state *state, u32 bits, in add_extent_changeset() argument 186 if (set && (state->state & bits) == bits) in add_extent_changeset() 188 if (!set && (state->state & bits) == 0) in add_extent_changeset() 372 u32 bits, struct extent_changeset *changeset) in set_state_bits() argument 374 u32 bits_to_set = bits & ~EXTENT_CTLBITS; in set_state_bits() 378 btrfs_set_delalloc_extent(tree->private_data, state, bits); in set_state_bits() 397 u32 bits, struct extent_changeset *changeset) in insert_state() argument 403 set_state_bits(tree, state, bits, changeset); in insert_state() 436 struct rb_node *parent, unsigned bits, in insert_state_fast() argument 439 set_state_bits(tree, state, bits, changeset); in insert_state_fast() [all …]
|
D | extent-io-tree.h | 116 u64 max_bytes, u32 bits, int contig); 120 u32 bits, int filled, struct extent_state *cached_state); 122 u32 bits, struct extent_changeset *changeset); 124 u32 bits, struct extent_state **cached, gfp_t mask, 128 u64 end, u32 bits, in clear_extent_bit() argument 131 return __clear_extent_bit(tree, start, end, bits, cached, in clear_extent_bit() 150 u64 end, u32 bits) in clear_extent_bits() argument 152 return clear_extent_bit(tree, start, end, bits, NULL); in clear_extent_bits() 156 u32 bits, struct extent_changeset *changeset); 158 u32 bits, struct extent_state **cached_state, gfp_t mask); [all …]
|
D | ctree.h | 1777 #define DECLARE_BTRFS_SETGET_BITS(bits) \ argument 1778 u##bits btrfs_get_token_##bits(struct btrfs_map_token *token, \ 1780 void btrfs_set_token_##bits(struct btrfs_map_token *token, \ 1782 u##bits val); \ 1783 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 1785 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 1786 unsigned long off, u##bits val); 1793 #define BTRFS_SETGET_FUNCS(name, type, member, bits) \ argument 1794 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \ 1797 static_assert(sizeof(u##bits) == sizeof(((type *)0))->member); \ [all …]
|
D | extent_map.c | 364 static void extent_map_device_set_bits(struct extent_map *em, unsigned bits) in extent_map_device_set_bits() argument 375 stripe->physical + stripe_size - 1, bits); in extent_map_device_set_bits() 379 static void extent_map_device_clear_bits(struct extent_map *em, unsigned bits) in extent_map_device_clear_bits() argument 390 stripe->physical + stripe_size - 1, bits, in extent_map_device_clear_bits()
|
/fs/ocfs2/cluster/ |
D | masklog.h | 118 #define __mlog_test_u64(mask, bits) \ argument 119 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 120 ((u64)(mask) >> 32) & bits.words[1] ) 121 #define __mlog_set_u64(mask, bits) do { \ argument 122 bits.words[0] |= (u32)(mask & 0xffffffff); \ 123 bits.words[1] |= (u64)(mask) >> 32; \ 125 #define __mlog_clear_u64(mask, bits) do { \ argument 126 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 127 bits.words[1] &= ~((u64)(mask) >> 32); \ 138 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument [all …]
|
/fs/crypto/ |
D | fname.c | 213 int bits = 0; in fscrypt_base64url_encode() local 219 bits += 8; in fscrypt_base64url_encode() 221 bits -= 6; in fscrypt_base64url_encode() 222 *cp++ = base64url_table[(ac >> bits) & 0x3f]; in fscrypt_base64url_encode() 223 } while (bits >= 6); in fscrypt_base64url_encode() 225 if (bits) in fscrypt_base64url_encode() 226 *cp++ = base64url_table[(ac << (6 - bits)) & 0x3f]; in fscrypt_base64url_encode() 248 int bits = 0; in fscrypt_base64url_decode() local 258 bits += 6; in fscrypt_base64url_decode() 259 if (bits >= 8) { in fscrypt_base64url_decode() [all …]
|
/fs/ntfs3/ |
D | bitmap.c | 37 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits); 711 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_set_free() argument 715 size_t bits0 = bits; in wnd_set_free() 721 while (iw < wnd->nwnd && bits) { in wnd_set_free() 729 op = min_t(u32, tail, bits); in wnd_set_free() 751 bits -= op; in wnd_set_free() 764 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits) in wnd_set_used() argument 768 size_t bits0 = bits; in wnd_set_used() 774 while (iw < wnd->nwnd && bits) { in wnd_set_used() 782 op = min_t(u32, tail, bits); in wnd_set_used() [all …]
|
D | Kconfig | 16 bool "64 bits per NTFS clusters" 19 Windows implementation of ntfs.sys uses 32 bits per clusters. 20 If activated 64 bits per clusters you will be able to use 4k cluster
|
D | ntfs_fs.h | 828 int wnd_set_free(struct wnd_bitmap *wnd, size_t bit, size_t bits); 829 int wnd_set_used(struct wnd_bitmap *wnd, size_t bit, size_t bits); 830 bool wnd_is_free(struct wnd_bitmap *wnd, size_t bit, size_t bits); 831 bool wnd_is_used(struct wnd_bitmap *wnd, size_t bit, size_t bits); 953 static inline size_t bitmap_size(size_t bits) in bitmap_size() argument 955 return ALIGN((bits + 7) >> 3, 8); in bitmap_size() 1034 static inline void ni_set_ext_compress_bits(struct ntfs_inode *ni, u8 bits) in ni_set_ext_compress_bits() argument 1036 ni->ni_flags |= (bits - 0xb) & NI_FLAG_COMPRESSED_MASK; in ni_set_ext_compress_bits()
|
D | file.c | 118 u8 bits; in ntfs_extend_initialized_size() local 122 bits = sbi->cluster_bits; in ntfs_extend_initialized_size() 123 vcn = pos >> bits; in ntfs_extend_initialized_size() 131 loff_t vbo = (loff_t)vcn << bits; in ntfs_extend_initialized_size() 132 loff_t to = vbo + ((loff_t)clen << bits); in ntfs_extend_initialized_size() 143 to = (new_valid >> bits) << bits; in ntfs_extend_initialized_size()
|
/fs/ |
D | select.c | 630 void *bits; in core_sys_select() local 655 bits = stack_fds; in core_sys_select() 663 bits = kvmalloc(alloc_size, GFP_KERNEL); in core_sys_select() 664 if (!bits) in core_sys_select() 667 fds.in = bits; in core_sys_select() 668 fds.out = bits + size; in core_sys_select() 669 fds.ex = bits + 2*size; in core_sys_select() 670 fds.res_in = bits + 3*size; in core_sys_select() 671 fds.res_out = bits + 4*size; in core_sys_select() 672 fds.res_ex = bits + 5*size; in core_sys_select() [all …]
|
/fs/minix/ |
D | bitmap.c | 100 u32 bits = sbi->s_nzones - sbi->s_firstdatazone + 1; in minix_count_free_blocks() local 102 return (count_free(sbi->s_zmap, sb->s_blocksize, bits) in minix_count_free_blocks() 270 u32 bits = sbi->s_ninodes + 1; in minix_count_free_inodes() local 272 return count_free(sbi->s_imap, sb->s_blocksize, bits); in minix_count_free_inodes()
|
D | minix.h | 91 static inline unsigned minix_blocks_needed(unsigned bits, unsigned blocksize) in minix_blocks_needed() argument 93 return DIV_ROUND_UP(bits, blocksize * 8); in minix_blocks_needed()
|
/fs/nilfs2/ |
D | page.c | 102 unsigned long bits; in nilfs_copy_buffer() local 117 bits = sbh->b_state & (BIT(BH_Uptodate) | BIT(BH_Mapped)); in nilfs_copy_buffer() 120 bits &= bh->b_state; in nilfs_copy_buffer() 123 if (bits & BIT(BH_Uptodate)) in nilfs_copy_buffer() 127 if (bits & BIT(BH_Mapped)) in nilfs_copy_buffer()
|
/fs/ocfs2/ |
D | localalloc.c | 242 int ocfs2_alloc_should_use_local(struct ocfs2_super *osb, u64 bits) in ocfs2_alloc_should_use_local() argument 257 if (bits > (la_bits / 2)) in ocfs2_alloc_should_use_local() 263 (unsigned long long)bits, osb->local_alloc_state, la_bits, ret); in ocfs2_alloc_should_use_local() 1042 unsigned int bits; in ocfs2_recalc_la_window() local 1061 bits = osb->local_alloc_bits >> 1; in ocfs2_recalc_la_window() 1062 if (bits > ocfs2_megabytes_to_clusters(osb->sb, 1)) { in ocfs2_recalc_la_window() 1071 osb->local_alloc_bits = bits; in ocfs2_recalc_la_window()
|
D | reservations.c | 43 unsigned int bits; in ocfs2_resv_window_bits() local 47 bits = 4 << osb->osb_resv_level; in ocfs2_resv_window_bits() 49 bits = 4 << osb->osb_dir_resv_level; in ocfs2_resv_window_bits() 51 return bits; in ocfs2_resv_window_bits()
|
D | localalloc.h | 28 u64 bits);
|
/fs/ntfs3/lib/ |
D | decompress_common.h | 128 u32 bits = bitstream_peek_bits(is, num_bits); in bitstream_pop_bits() local 131 return bits; in bitstream_pop_bits()
|
/fs/ubifs/ |
D | lpt.c | 48 int i, n, bits, per_leb_wastage, max_pnode_cnt; in do_calc_lpt_geom() local 80 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom() 83 c->pnode_sz = (bits + 7) / 8; in do_calc_lpt_geom() 85 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom() 88 c->nnode_sz = (bits + 7) / 8; in do_calc_lpt_geom() 90 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom() 92 c->ltab_sz = (bits + 7) / 8; in do_calc_lpt_geom() 94 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom() 96 c->lsave_sz = (bits + 7) / 8; in do_calc_lpt_geom() 524 int num, bits; in calc_nnode_num() local [all …]
|
/fs/hpfs/ |
D | super.c | 136 unsigned long *bits; in hpfs_count_one_bitmap() local 139 bits = hpfs_map_4sectors(s, secno, &qbh, 0); in hpfs_count_one_bitmap() 140 if (!bits) in hpfs_count_one_bitmap() 142 count = bitmap_weight(bits, 2048 * BITS_PER_BYTE); in hpfs_count_one_bitmap()
|
/fs/ext2/ |
D | super.c | 730 static loff_t ext2_max_size(int bits) in ext2_max_size() argument 735 unsigned int ppb = 1 << (bits-2); in ext2_max_size() 747 upper_limit >>= (bits - 9); in ext2_max_size() 750 res += 1LL << (bits-2); in ext2_max_size() 751 res += 1LL << (2*(bits-2)); in ext2_max_size() 752 res += 1LL << (3*(bits-2)); in ext2_max_size() 780 res <<= bits; in ext2_max_size()
|
/fs/cramfs/ |
D | README | 50 <block_pointer>s are each 32 bits long. 53 <block_pointer>'s top bits may contain special flags as follows: 60 its end, shifted right by 2 bits. The block must therefore be
|
/fs/cachefiles/ |
D | Kconfig | 20 enabled by setting bits in /sys/modules/cachefiles/parameter/debug or
|