/fs/btrfs/ |
D | struct-funcs.c | 40 #define DEFINE_BTRFS_SETGET_BITS(bits) \ argument 41 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \ 52 int size = sizeof(u##bits); \ 53 u##bits res; \ 62 res = get_unaligned_le##bits(p + off); \ 68 __le##bits leres; \ 71 return le##bits##_to_cpu(leres); \ 74 res = get_unaligned_le##bits(p + off); \ 79 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 89 int size = sizeof(u##bits); \ [all …]
|
D | extent_io.h | 284 u64 max_bytes, unsigned bits, int contig); 288 unsigned bits, int filled, 291 unsigned bits, struct extent_changeset *changeset); 293 unsigned bits, int wake, int delete, 296 unsigned bits, int wake, int delete, 320 u64 end, unsigned bits) in clear_extent_bits() argument 324 if (bits & EXTENT_LOCKED) in clear_extent_bits() 327 return clear_extent_bit(tree, start, end, bits, wake, 0, NULL); in clear_extent_bits() 331 unsigned bits, struct extent_changeset *changeset); 333 unsigned bits, u64 *failed_start, [all …]
|
D | extent_io.c | 130 static int add_extent_changeset(struct extent_state *state, unsigned bits, in add_extent_changeset() argument 138 if (set && (state->state & bits) == bits) in add_extent_changeset() 140 if (!set && (state->state & bits) == 0) in add_extent_changeset() 504 struct extent_state *state, unsigned *bits, 521 unsigned *bits, struct extent_changeset *changeset) in insert_state() argument 533 set_state_bits(tree, state, bits, changeset); in insert_state() 602 unsigned *bits, int wake, in clear_state_bit() argument 606 unsigned bits_to_clear = *bits & ~EXTENT_CTLBITS; in clear_state_bit() 616 btrfs_clear_delalloc_extent(tree->private_data, state, bits); in clear_state_bit() 669 unsigned bits, int wake, int delete, in __clear_extent_bit() argument [all …]
|
D | ctree.h | 1327 #define DECLARE_BTRFS_SETGET_BITS(bits) \ argument 1328 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \ 1331 void btrfs_set_token_##bits(struct extent_buffer *eb, const void *ptr, \ 1332 unsigned long off, u##bits val, \ 1334 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 1336 void btrfs_set_##bits(struct extent_buffer *eb, void *ptr, \ 1337 unsigned long off, u##bits val); 1344 #define BTRFS_SETGET_FUNCS(name, type, member, bits) \ argument 1345 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \ 1348 BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \ [all …]
|
D | extent_map.c | 341 static void extent_map_device_set_bits(struct extent_map *em, unsigned bits) in extent_map_device_set_bits() argument 352 stripe->physical + stripe_size - 1, bits); in extent_map_device_set_bits() 356 static void extent_map_device_clear_bits(struct extent_map *em, unsigned bits) in extent_map_device_clear_bits() argument 367 stripe->physical + stripe_size - 1, bits, in extent_map_device_clear_bits()
|
D | super.c | 2030 int bits = dentry->d_sb->s_blocksize_bits; in btrfs_statfs() local 2071 buf->f_blocks >>= bits; in btrfs_statfs() 2072 buf->f_bfree = buf->f_blocks - (div_u64(total_used, factor) >> bits); in btrfs_statfs() 2077 if (buf->f_bfree >= block_rsv->size >> bits) in btrfs_statfs() 2078 buf->f_bfree -= block_rsv->size >> bits; in btrfs_statfs() 2088 buf->f_bavail = buf->f_bavail >> bits; in btrfs_statfs()
|
/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/ocfs2/cluster/ |
D | masklog.h | 120 #define __mlog_test_u64(mask, bits) \ argument 121 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 122 ((u64)(mask) >> 32) & bits.words[1] ) 123 #define __mlog_set_u64(mask, bits) do { \ argument 124 bits.words[0] |= (u32)(mask & 0xffffffff); \ 125 bits.words[1] |= (u64)(mask) >> 32; \ 127 #define __mlog_clear_u64(mask, bits) do { \ argument 128 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 129 bits.words[1] &= ~((u64)(mask) >> 32); \ 140 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument [all …]
|
/fs/crypto/ |
D | fname.c | 141 int i, bits = 0, ac = 0; in base64_encode() local 145 ac += src[i] << bits; in base64_encode() 146 bits += 8; in base64_encode() 150 bits -= 6; in base64_encode() 151 } while (bits >= 6); in base64_encode() 153 if (bits) in base64_encode() 160 int i, bits = 0, ac = 0; in base64_decode() local 168 ac += (p - lookup_table) << bits; in base64_decode() 169 bits += 6; in base64_decode() 170 if (bits >= 8) { in base64_decode() [all …]
|
/fs/ |
D | select.c | 625 void *bits; in core_sys_select() local 650 bits = stack_fds; in core_sys_select() 658 bits = kvmalloc(alloc_size, GFP_KERNEL); in core_sys_select() 659 if (!bits) in core_sys_select() 662 fds.in = bits; in core_sys_select() 663 fds.out = bits + size; in core_sys_select() 664 fds.ex = bits + 2*size; in core_sys_select() 665 fds.res_in = bits + 3*size; in core_sys_select() 666 fds.res_out = bits + 4*size; in core_sys_select() 667 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 | 103 unsigned long bits; in nilfs_copy_buffer() local 118 bits = sbh->b_state & (BIT(BH_Uptodate) | BIT(BH_Mapped)); in nilfs_copy_buffer() 121 bits &= bh->b_state; in nilfs_copy_buffer() 124 if (bits & BIT(BH_Uptodate)) in nilfs_copy_buffer() 128 if (bits & BIT(BH_Mapped)) in nilfs_copy_buffer()
|
/fs/ocfs2/ |
D | localalloc.c | 244 int ocfs2_alloc_should_use_local(struct ocfs2_super *osb, u64 bits) in ocfs2_alloc_should_use_local() argument 259 if (bits > (la_bits / 2)) in ocfs2_alloc_should_use_local() 265 (unsigned long long)bits, osb->local_alloc_state, la_bits, ret); in ocfs2_alloc_should_use_local() 1044 unsigned int bits; in ocfs2_recalc_la_window() local 1063 bits = osb->local_alloc_bits >> 1; in ocfs2_recalc_la_window() 1064 if (bits > ocfs2_megabytes_to_clusters(osb->sb, 1)) { in ocfs2_recalc_la_window() 1073 osb->local_alloc_bits = bits; in ocfs2_recalc_la_window()
|
D | reservations.c | 48 unsigned int bits; in ocfs2_resv_window_bits() local 52 bits = 4 << osb->osb_resv_level; in ocfs2_resv_window_bits() 54 bits = 4 << osb->osb_dir_resv_level; in ocfs2_resv_window_bits() 56 return bits; in ocfs2_resv_window_bits()
|
D | localalloc.h | 30 u64 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/erofs/ |
D | internal.h | 259 unsigned int bits) in erofs_bitrange() argument 262 return (value >> bit) & ((1 << bits) - 1); in erofs_bitrange()
|
/fs/ext2/ |
D | super.c | 750 static loff_t ext2_max_size(int bits) in ext2_max_size() argument 755 unsigned int ppb = 1 << (bits-2); in ext2_max_size() 767 upper_limit >>= (bits - 9); in ext2_max_size() 770 res += 1LL << (bits-2); in ext2_max_size() 771 res += 1LL << (2*(bits-2)); in ext2_max_size() 772 res += 1LL << (3*(bits-2)); in ext2_max_size() 796 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
|
D | Kconfig | 10 16/32 bits uid/gid, hard links and timestamps.
|
/fs/cachefiles/ |
D | Kconfig | 20 enabled by setting bits in /sys/modules/cachefiles/parameter/debug or
|
/fs/ufs/ |
D | super.c | 764 int bits = uspi->s_apbshift; in ufs_max_bytes() local 767 if (bits > 21) in ufs_max_bytes() 770 res = UFS_NDADDR + (1LL << bits) + (1LL << (2*bits)) + in ufs_max_bytes() 771 (1LL << (3*bits)); in ufs_max_bytes()
|
/fs/fscache/ |
D | Kconfig | 53 enabled by setting bits in /sys/modules/fscache/parameter/debug.
|