Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 35) sorted by relevance

12

/fs/jffs2/
Dcompr_rubin.c41 int bits[8]; member
90 static void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument
100 rs->bits[c] = bits[c]; in init_rubin()
153 static void init_decode(struct rubin_state *rs, int div, int *bits) in init_decode() argument
155 init_rubin(rs, div, bits); in init_decode()
170 int c, bits = 0; in __do_decode() local
178 bits++; in __do_decode()
187 rs->bit_number += bits; in __do_decode()
198 } while (--bits); in __do_decode()
239 ret = encode(rs, rs->bit_divider-rs->bits[i], in out_byte()
[all …]
/fs/ocfs2/cluster/
Dmasklog.h149 #define __mlog_test_u64(mask, bits) \ argument
150 ( (u32)(mask & 0xffffffff) & bits.words[0] || \
151 ((u64)(mask) >> 32) & bits.words[1] )
152 #define __mlog_set_u64(mask, bits) do { \ argument
153 bits.words[0] |= (u32)(mask & 0xffffffff); \
154 bits.words[1] |= (u64)(mask) >> 32; \
156 #define __mlog_clear_u64(mask, bits) do { \ argument
157 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \
158 bits.words[1] &= ~((u64)(mask) >> 32); \
169 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument
[all …]
Dheartbeat.c242 unsigned int bits = reg->hr_block_bits; in o2hb_setup_one_bio() local
260 bio->bi_sector = (reg->hr_start_block + cs) << (bits - 9); in o2hb_setup_one_bio()
265 vec_start = (cs << bits) % PAGE_CACHE_SIZE; in o2hb_setup_one_bio()
/fs/btrfs/
Dstruct-funcs.c44 #define BTRFS_SETGET_FUNCS(name, type, member, bits) \ argument
45 u##bits btrfs_##name(struct extent_buffer *eb, type *s); \
46 void btrfs_set_##name(struct extent_buffer *eb, type *s, u##bits val); \
47 u##bits btrfs_##name(struct extent_buffer *eb, \
58 return le##bits##_to_cpu(p->member); \
67 u##bits res; \
73 __le##bits leres; \
75 return le##bits##_to_cpu(leres); \
78 res = le##bits##_to_cpu(p->member); \
85 type *s, u##bits val) \
[all …]
Dextent_io.h63 unsigned long old, unsigned long bits);
65 unsigned long old, unsigned long bits);
154 u64 max_bytes, unsigned long bits);
157 int bits, int filled);
159 int bits, gfp_t mask);
161 int bits, int wake, int delete, gfp_t mask);
163 int bits, gfp_t mask);
181 u64 *start_ret, u64 *end_ret, int bits);
183 u64 start, int bits);
252 int wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, int bits);
Dextent_io.c331 unsigned long bits) in set_state_cb() argument
335 state->end, state->state, bits); in set_state_cb()
341 unsigned long bits) in clear_state_cb() argument
345 state->end, state->state, bits); in clear_state_cb()
361 int bits) in insert_state() argument
371 if (bits & EXTENT_DIRTY) in insert_state()
373 set_state_cb(tree, state, bits); in insert_state()
374 state->state |= bits; in insert_state()
434 struct extent_state *state, int bits, int wake, in clear_state_bit() argument
437 int ret = state->state & bits; in clear_state_bit()
[all …]
Dctree.h1009 #define BTRFS_SETGET_FUNCS(name, type, member, bits) \ argument
1010 u##bits btrfs_##name(struct extent_buffer *eb, type *s); \
1011 void btrfs_set_##name(struct extent_buffer *eb, type *s, u##bits val);
1014 #define BTRFS_SETGET_HEADER_FUNCS(name, type, member, bits) \ argument
1015 static inline u##bits btrfs_##name(struct extent_buffer *eb) \
1018 u##bits res = le##bits##_to_cpu(p->member); \
1023 u##bits val) \
1026 p->member = cpu_to_le##bits(val); \
1030 #define BTRFS_SETGET_STACK_FUNCS(name, type, member, bits) \ argument
1031 static inline u##bits btrfs_##name(type *s) \
[all …]
Dsuper.c548 int bits = dentry->d_sb->s_blocksize_bits; in btrfs_statfs() local
552 buf->f_blocks = btrfs_super_total_bytes(disk_super) >> bits; in btrfs_statfs()
554 (btrfs_super_bytes_used(disk_super) >> bits); in btrfs_statfs()
/fs/cifs/
Dmd5.c55 ctx->bits[0] = 0; in cifs_MD5_init()
56 ctx->bits[1] = 0; in cifs_MD5_init()
70 t = ctx->bits[0]; in cifs_MD5_update()
71 if ((ctx->bits[0] = t + ((__u32) len << 3)) < t) in cifs_MD5_update()
72 ctx->bits[1]++; /* Carry from low to high */ in cifs_MD5_update()
73 ctx->bits[1] += len >> 29; in cifs_MD5_update()
119 count = (ctx->bits[0] >> 3) & 0x3F; in cifs_MD5_final()
145 ((__u32 *) ctx->in)[14] = ctx->bits[0]; in cifs_MD5_final()
146 ((__u32 *) ctx->in)[15] = ctx->bits[1]; in cifs_MD5_final()
Dmd5.h10 __u32 bits[2]; member
Dcifsacl.c264 const struct cifs_sid *psid, __u64 nmode, umode_t bits) in fill_ace_for_sid() argument
272 mode_to_access_flags(nmode, bits, &access_req); in fill_ace_for_sid()
/fs/
Dselect.c489 void *bits; in core_sys_select() local
514 bits = stack_fds; in core_sys_select()
518 bits = kmalloc(6 * size, GFP_KERNEL); in core_sys_select()
519 if (!bits) in core_sys_select()
522 fds.in = bits; in core_sys_select()
523 fds.out = bits + size; in core_sys_select()
524 fds.ex = bits + 2*size; in core_sys_select()
525 fds.res_in = bits + 3*size; in core_sys_select()
526 fds.res_out = bits + 4*size; in core_sys_select()
527 fds.res_ex = bits + 5*size; in core_sys_select()
[all …]
Dseq_file.c500 int seq_bitmap(struct seq_file *m, const unsigned long *bits, in seq_bitmap() argument
505 m->size - m->count, bits, nr_bits); in seq_bitmap()
516 int seq_bitmap_list(struct seq_file *m, unsigned long *bits, in seq_bitmap_list() argument
521 m->size - m->count, bits, nr_bits); in seq_bitmap_list()
Dcompat.c1620 void *bits; in compat_core_sys_select() local
1642 bits = stack_fds; in compat_core_sys_select()
1644 bits = kmalloc(6 * size, GFP_KERNEL); in compat_core_sys_select()
1646 if (!bits) in compat_core_sys_select()
1649 fds.in = (unsigned long *) bits; in compat_core_sys_select()
1650 fds.out = (unsigned long *) (bits + size); in compat_core_sys_select()
1651 fds.ex = (unsigned long *) (bits + 2*size); in compat_core_sys_select()
1652 fds.res_in = (unsigned long *) (bits + 3*size); in compat_core_sys_select()
1653 fds.res_out = (unsigned long *) (bits + 4*size); in compat_core_sys_select()
1654 fds.res_ex = (unsigned long *) (bits + 5*size); in compat_core_sys_select()
[all …]
/fs/ext2/
Dsuper.c677 static loff_t ext2_max_size(int bits) in ext2_max_size() argument
693 upper_limit >>= (bits - 9); in ext2_max_size()
699 meta_blocks += 1 + (1LL << (bits-2)); in ext2_max_size()
701 meta_blocks += 1 + (1LL << (bits-2)) + (1LL << (2*(bits-2))); in ext2_max_size()
704 upper_limit <<= bits; in ext2_max_size()
706 res += 1LL << (bits-2); in ext2_max_size()
707 res += 1LL << (2*(bits-2)); in ext2_max_size()
708 res += 1LL << (3*(bits-2)); in ext2_max_size()
709 res <<= bits; in ext2_max_size()
/fs/ocfs2/
Dlocalalloc.c192 int ocfs2_alloc_should_use_local(struct ocfs2_super *osb, u64 bits) in ocfs2_alloc_should_use_local() argument
207 if (bits > (la_bits / 2)) in ocfs2_alloc_should_use_local()
213 osb->local_alloc_state, (unsigned long long)bits, la_bits, ret); in ocfs2_alloc_should_use_local()
1003 unsigned int bits; in ocfs2_recalc_la_window() local
1022 bits = osb->local_alloc_bits >> 1; in ocfs2_recalc_la_window()
1023 if (bits > ocfs2_megabytes_to_clusters(osb->sb, 1)) { in ocfs2_recalc_la_window()
1032 osb->local_alloc_bits = bits; in ocfs2_recalc_la_window()
Dlocalalloc.h41 u64 bits);
/fs/ubifs/
Dlpt.c59 int i, n, bits, per_leb_wastage, max_pnode_cnt; in do_calc_lpt_geom() local
91 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom()
94 c->pnode_sz = (bits + 7) / 8; in do_calc_lpt_geom()
96 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom()
99 c->nnode_sz = (bits + 7) / 8; in do_calc_lpt_geom()
101 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom()
103 c->ltab_sz = (bits + 7) / 8; in do_calc_lpt_geom()
105 bits = UBIFS_LPT_CRC_BITS + UBIFS_LPT_TYPE_BITS + in do_calc_lpt_geom()
107 c->lsave_sz = (bits + 7) / 8; in do_calc_lpt_geom()
533 int num, bits; in calc_nnode_num() local
[all …]
/fs/hpfs/
Dsuper.c112 unsigned *bits; in hpfs_count_one_bitmap() local
114 if (!(bits = hpfs_map_4sectors(s, secno, &qbh, 4))) return 0; in hpfs_count_one_bitmap()
118 if (!bits[i]) continue; in hpfs_count_one_bitmap()
119 for (b = bits[i]; b; b>>=1) count += b & 1; in hpfs_count_one_bitmap()
/fs/cramfs/
DKconfig10 16/32 bits uid/gid, hard links and timestamps.
/fs/ext3/
Dsuper.c1484 static loff_t ext3_max_size(int bits) in ext3_max_size() argument
1500 upper_limit >>= (bits - 9); in ext3_max_size()
1506 meta_blocks += 1 + (1LL << (bits-2)); in ext3_max_size()
1508 meta_blocks += 1 + (1LL << (bits-2)) + (1LL << (2*(bits-2))); in ext3_max_size()
1511 upper_limit <<= bits; in ext3_max_size()
1513 res += 1LL << (bits-2); in ext3_max_size()
1514 res += 1LL << (2*(bits-2)); in ext3_max_size()
1515 res += 1LL << (3*(bits-2)); in ext3_max_size()
1516 res <<= bits; in ext3_max_size()
/fs/ext4/
Dsuper.c1887 static loff_t ext4_max_bitmap_size(int bits, int has_huge_files) in ext4_max_bitmap_size() argument
1909 upper_limit >>= (bits - 9); in ext4_max_bitmap_size()
1925 meta_blocks += 1 + (1LL << (bits-2)); in ext4_max_bitmap_size()
1927 meta_blocks += 1 + (1LL << (bits-2)) + (1LL << (2*(bits-2))); in ext4_max_bitmap_size()
1930 upper_limit <<= bits; in ext4_max_bitmap_size()
1932 res += 1LL << (bits-2); in ext4_max_bitmap_size()
1933 res += 1LL << (2*(bits-2)); in ext4_max_bitmap_size()
1934 res += 1LL << (3*(bits-2)); in ext4_max_bitmap_size()
1935 res <<= bits; in ext4_max_bitmap_size()
/fs/reiserfs/
Dsuper.c1110 static void handle_barrier_mode(struct super_block *s, unsigned long bits) in handle_barrier_mode() argument
1116 if (bits & all_barrier) { in handle_barrier_mode()
1118 if (bits & flush) { in handle_barrier_mode()
1121 } else if (bits & none) { in handle_barrier_mode()
/fs/ocfs2/dlm/
Ddlmcommon.h697 #define BITS_TO_BYTES(bits) (((bits)+BITS_PER_BYTE-1)/BITS_PER_BYTE) argument
/fs/yaffs2/
DKconfig124 Setting this to 'y' will force tnode width to 16 bits and save

12