Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 159) sorted by relevance

1234567

/fs/ntfs/
Dmst.c42 int post_read_mst_fixup(NTFS_RECORD *b, const u32 size) in post_read_mst_fixup() argument
48 usa_ofs = le16_to_cpu(b->usa_ofs); in post_read_mst_fixup()
50 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
58 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in post_read_mst_fixup()
70 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
81 b->magic = magic_BAAD; in post_read_mst_fixup()
87 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
88 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
123 int pre_write_mst_fixup(NTFS_RECORD *b, const u32 size) in pre_write_mst_fixup() argument
130 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup()
[all …]
/fs/ext4/
Dhash.c23 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; in TEA_transform() local
28 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform()
47 #define ROUND(f, a, b, c, d, x, s) \ argument
48 (a += f(b, c, d) + x, a = rol32(a, s))
58 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local
61 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform()
62 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform()
63 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform()
64 ROUND(F, b, c, d, a, in[3] + K1, 19); in half_md4_transform()
65 ROUND(F, a, b, c, d, in[4] + K1, 3); in half_md4_transform()
[all …]
/fs/xfs/libxfs/
Dxfs_rtbitmap.c118 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtfind_back() local
145 b = &bufp[word]; in xfs_rtfind_back()
152 want = (*b & ((xfs_rtword_t)1 << bit)) ? -1 : 0; in xfs_rtfind_back()
169 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back()
194 b = &bufp[word]; in xfs_rtfind_back()
199 b--; in xfs_rtfind_back()
215 if ((wdiff = *b ^ want)) { in xfs_rtfind_back()
240 b = &bufp[word]; in xfs_rtfind_back()
245 b--; in xfs_rtfind_back()
262 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back()
[all …]
Dxfs_bmap_btree.c376 cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_bmbt_dup_cursor()
382 new->bc_private.b.firstblock = cur->bc_private.b.firstblock; in xfs_bmbt_dup_cursor()
383 new->bc_private.b.dfops = cur->bc_private.b.dfops; in xfs_bmbt_dup_cursor()
384 new->bc_private.b.flags = cur->bc_private.b.flags; in xfs_bmbt_dup_cursor()
394 ASSERT((dst->bc_private.b.firstblock != NULLFSBLOCK) || in xfs_bmbt_update_cursor()
395 (dst->bc_private.b.ip->i_d.di_flags & XFS_DIFLAG_REALTIME)); in xfs_bmbt_update_cursor()
396 ASSERT(dst->bc_private.b.dfops == src->bc_private.b.dfops); in xfs_bmbt_update_cursor()
398 dst->bc_private.b.allocated += src->bc_private.b.allocated; in xfs_bmbt_update_cursor()
399 dst->bc_private.b.firstblock = src->bc_private.b.firstblock; in xfs_bmbt_update_cursor()
401 src->bc_private.b.allocated = 0; in xfs_bmbt_update_cursor()
[all …]
Dxfs_btree.h187 struct xfs_bmbt_irec b; member
238 } b; member
450 #define XFS_EXTLEN_MIN(a,b) min_t(xfs_extlen_t, (a), (b)) argument
451 #define XFS_EXTLEN_MAX(a,b) max_t(xfs_extlen_t, (a), (b)) argument
452 #define XFS_AGBLOCK_MIN(a,b) min_t(xfs_agblock_t, (a), (b)) argument
453 #define XFS_AGBLOCK_MAX(a,b) max_t(xfs_agblock_t, (a), (b)) argument
454 #define XFS_FILEOFF_MIN(a,b) min_t(xfs_fileoff_t, (a), (b)) argument
455 #define XFS_FILEOFF_MAX(a,b) max_t(xfs_fileoff_t, (a), (b)) argument
456 #define XFS_FILBLKS_MIN(a,b) min_t(xfs_filblks_t, (a), (b)) argument
457 #define XFS_FILBLKS_MAX(a,b) max_t(xfs_filblks_t, (a), (b)) argument
[all …]
Dxfs_trans_space.h33 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ argument
34 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
41 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument
42 (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \
47 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument
48 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
49 XFS_NRMAPADD_SPACE_RES((mp), (b)))
91 #define XFS_GROWFSRT_SPACE_RES(mp,b) \ argument
92 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK))
106 #define XFS_SYMLINK_SPACE_RES(mp,nl,b) \ argument
[all …]
Dxfs_rmap_btree.c389 uint64_t b; in xfs_rmapbt_keys_inorder() local
398 b = be64_to_cpu(k2->rmap.rm_owner); in xfs_rmapbt_keys_inorder()
399 if (a < b) in xfs_rmapbt_keys_inorder()
401 else if (a > b) in xfs_rmapbt_keys_inorder()
404 b = XFS_RMAP_OFF(be64_to_cpu(k2->rmap.rm_offset)); in xfs_rmapbt_keys_inorder()
405 if (a <= b) in xfs_rmapbt_keys_inorder()
419 uint64_t b; in xfs_rmapbt_recs_inorder() local
428 b = be64_to_cpu(r2->rmap.rm_owner); in xfs_rmapbt_recs_inorder()
429 if (a < b) in xfs_rmapbt_recs_inorder()
431 else if (a > b) in xfs_rmapbt_recs_inorder()
[all …]
/fs/nfs/blocklayout/
Ddev.c53 nfs4_block_decode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfs4_block_decode_volume() argument
61 b->type = be32_to_cpup(p++); in nfs4_block_decode_volume()
63 switch (b->type) { in nfs4_block_decode_volume()
68 b->simple.nr_sigs = be32_to_cpup(p++); in nfs4_block_decode_volume()
69 if (!b->simple.nr_sigs || b->simple.nr_sigs > PNFS_BLOCK_MAX_UUIDS) { in nfs4_block_decode_volume()
70 dprintk("Bad signature count: %d\n", b->simple.nr_sigs); in nfs4_block_decode_volume()
74 b->simple.len = 4 + 4; in nfs4_block_decode_volume()
75 for (i = 0; i < b->simple.nr_sigs; i++) { in nfs4_block_decode_volume()
79 p = xdr_decode_hyper(p, &b->simple.sigs[i].offset); in nfs4_block_decode_volume()
80 b->simple.sigs[i].sig_len = be32_to_cpup(p++); in nfs4_block_decode_volume()
[all …]
Drpc_pipefs.c38 nfs4_encode_simple(__be32 *p, struct pnfs_block_volume *b) in nfs4_encode_simple() argument
43 *p++ = cpu_to_be32(b->type); in nfs4_encode_simple()
44 *p++ = cpu_to_be32(b->simple.nr_sigs); in nfs4_encode_simple()
45 for (i = 0; i < b->simple.nr_sigs; i++) { in nfs4_encode_simple()
46 p = xdr_encode_hyper(p, b->simple.sigs[i].offset); in nfs4_encode_simple()
47 p = xdr_encode_opaque(p, b->simple.sigs[i].sig, in nfs4_encode_simple()
48 b->simple.sigs[i].sig_len); in nfs4_encode_simple()
53 bl_resolve_deviceid(struct nfs_server *server, struct pnfs_block_volume *b, in bl_resolve_deviceid() argument
71 b->simple.len += 4; /* single volume */ in bl_resolve_deviceid()
72 if (b->simple.len > PAGE_SIZE) in bl_resolve_deviceid()
[all …]
/fs/jfs/
Djfs_dmap.h85 #define BLKTODMAP(b,s) \ argument
86 ((((b) >> 13) + ((b) >> 23) + ((b) >> 33) + 3 + 1) << (s))
100 #define BLKTOL0(b,s) \ argument
101 (((((b) >> 23) << 10) + ((b) >> 23) + ((b) >> 33) + 2 + 1) << (s))
115 #define BLKTOL1(b,s) \ argument
116 (((((b) >> 33) << 20) + (((b) >> 33) << 10) + ((b) >> 33) + 1 + 1) << (s))
122 #define BLKTOCTL(b,s,l) \ argument
123 (((l) == 2) ? 1 : ((l) == 1) ? BLKTOL1((b),(s)) : BLKTOL0((b),(s)))
134 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size)) argument
281 #define LITOL2BSZ(n,m,b) ((((n) == 0) ? (m) : cnttz((n))) + (b)) argument
[all …]
/fs/nfsd/
Dblocklayoutxdr.c20 struct pnfs_block_extent *b = lgp->lg_content; in nfsd4_block_encode_layoutget() local
31 p = xdr_encode_opaque_fixed(p, &b->vol_id, in nfsd4_block_encode_layoutget()
33 p = xdr_encode_hyper(p, b->foff); in nfsd4_block_encode_layoutget()
34 p = xdr_encode_hyper(p, b->len); in nfsd4_block_encode_layoutget()
35 p = xdr_encode_hyper(p, b->soff); in nfsd4_block_encode_layoutget()
36 *p++ = cpu_to_be32(b->es); in nfsd4_block_encode_layoutget()
41 nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfsd4_block_encode_volume() argument
46 switch (b->type) { in nfsd4_block_encode_volume()
48 len = 4 + 4 + 8 + 4 + (XDR_QUADLEN(b->simple.sig_len) << 2); in nfsd4_block_encode_volume()
53 *p++ = cpu_to_be32(b->type); in nfsd4_block_encode_volume()
[all …]
Dnfscache.c151 nfsd_reply_cache_free(struct nfsd_drc_bucket *b, struct svc_cacherep *rp) in nfsd_reply_cache_free() argument
153 spin_lock(&b->cache_lock); in nfsd_reply_cache_free()
155 spin_unlock(&b->cache_lock); in nfsd_reply_cache_free()
226 lru_put_end(struct nfsd_drc_bucket *b, struct svc_cacherep *rp) in lru_put_end() argument
229 list_move_tail(&rp->c_lru, &b->lru_head); in lru_put_end()
233 prune_bucket(struct nfsd_drc_bucket *b) in prune_bucket() argument
238 list_for_each_entry_safe(rp, tmp, &b->lru_head, c_lru) { in prune_bucket()
265 struct nfsd_drc_bucket *b = &drc_hashtbl[i]; in prune_cache_entries() local
267 if (list_empty(&b->lru_head)) in prune_cache_entries()
269 spin_lock(&b->cache_lock); in prune_cache_entries()
[all …]
Dblocklayout.c149 struct pnfs_block_volume *b; in nfsd4_block_get_device_info_simple() local
158 b = &dev->volumes[0]; in nfsd4_block_get_device_info_simple()
160 b->type = PNFS_BLOCK_VOLUME_SIMPLE; in nfsd4_block_get_device_info_simple()
161 b->simple.sig_len = PNFS_BLOCK_UUID_LEN; in nfsd4_block_get_device_info_simple()
162 return sb->s_export_op->get_uuid(sb, b->simple.sig, &b->simple.sig_len, in nfsd4_block_get_device_info_simple()
163 &b->simple.offset); in nfsd4_block_get_device_info_simple()
214 struct pnfs_block_volume *b) in nfsd4_scsi_identify_device() argument
280 b->scsi.code_set = PS_CODE_SET_BINARY; in nfsd4_scsi_identify_device()
281 b->scsi.designator_type = type == 0x02 ? in nfsd4_scsi_identify_device()
283 b->scsi.designator_len = id_len; in nfsd4_scsi_identify_device()
[all …]
/fs/ubifs/
Dreplay.c97 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() argument
104 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops()
111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
131 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
133 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
145 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
146 b->dirty); in set_bud_lprops()
148 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, in set_bud_lprops()
156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
157 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops()
[all …]
/fs/squashfs/
Dblock.c98 int bytes, compressed, b = 0, k = 0, avail, i; in squashfs_read_data() local
122 for (b = 0; bytes < length; b++, cur_index++) { in squashfs_read_data()
123 bh[b] = sb_getblk(sb, cur_index); in squashfs_read_data()
124 if (bh[b] == NULL) in squashfs_read_data()
128 ll_rw_block(REQ_OP_READ, 0, b, bh); in squashfs_read_data()
139 b = 1; in squashfs_read_data()
154 for (; bytes < length; b++) { in squashfs_read_data()
155 bh[b] = sb_getblk(sb, ++cur_index); in squashfs_read_data()
156 if (bh[b] == NULL) in squashfs_read_data()
160 ll_rw_block(REQ_OP_READ, 0, b - 1, bh + 1); in squashfs_read_data()
[all …]
Dzlib_wrapper.c66 struct buffer_head **bh, int b, int offset, int length, in zlib_uncompress() argument
77 if (stream->avail_in == 0 && k < b) { in zlib_uncompress()
102 if (stream->avail_in == 0 && k < b) in zlib_uncompress()
115 if (k < b) in zlib_uncompress()
121 for (; k < b; k++) in zlib_uncompress()
/fs/ocfs2/
Dblockcheck.c66 unsigned int b, p = 0; in calc_code_bit() local
72 b = i + 1; in calc_code_bit()
77 b += p; in calc_code_bit()
87 for (; (1 << p) < (b + 1); p++) in calc_code_bit()
88 b++; in calc_code_bit()
93 return b; in calc_code_bit()
109 unsigned int i, b, p = 0; in ocfs2_hamming_encode() local
128 b = calc_code_bit(nr + i, &p); in ocfs2_hamming_encode()
146 parity ^= b; in ocfs2_hamming_encode()
169 unsigned int i, b; in ocfs2_hamming_fix() local
[all …]
/fs/xfs/
Dxfs_linux.h147 #define MIN(a,b) (min(a,b)) argument
148 #define MAX(a,b) (max(a,b)) argument
207 static inline __u32 xfs_do_mod(void *a, __u32 b, int n) in xfs_do_mod() argument
211 return *(__u32 *)a % b; in xfs_do_mod()
215 return do_div(c, b); in xfs_do_mod()
223 #define do_mod(a, b) xfs_do_mod(&(a), (b), sizeof(a)) argument
/fs/reiserfs/
Dhashes.c36 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); \
49 u32 a, b, c, d; in keyed_hash() local
61 b = (u32) msg[4] | in keyed_hash()
79 b = (u32) msg[4] | in keyed_hash()
93 b = (u32) msg[4] | in keyed_hash()
105 b = c = d = pad; in keyed_hash()
107 b <<= 8; in keyed_hash()
108 b |= msg[i]; in keyed_hash()
111 a = b = c = d = pad; in keyed_hash()
Dprocfs.c417 char b[BDEVNAME_SIZE]; in reiserfs_proc_info_init() local
421 strlcpy(b, sb->s_id, BDEVNAME_SIZE); in reiserfs_proc_info_init()
422 s = strchr(b, '/'); in reiserfs_proc_info_init()
427 REISERFS_SB(sb)->procdir = proc_mkdir_data(b, 0, proc_info_root, sb); in reiserfs_proc_info_init()
439 proc_info_root_name, b); in reiserfs_proc_info_init()
447 char b[BDEVNAME_SIZE]; in reiserfs_proc_info_done() local
451 strlcpy(b, sb->s_id, BDEVNAME_SIZE); in reiserfs_proc_info_done()
452 s = strchr(b, '/'); in reiserfs_proc_info_done()
456 remove_proc_subtree(b, proc_info_root); in reiserfs_proc_info_done()
/fs/afs/
Dcmservice.c358 __be32 *b; in afs_deliver_cb_init_call_back_state3() local
390 b = call->buffer; in afs_deliver_cb_init_call_back_state3()
392 r->time_low = b[0]; in afs_deliver_cb_init_call_back_state3()
393 r->time_mid = htons(ntohl(b[1])); in afs_deliver_cb_init_call_back_state3()
394 r->time_hi_and_version = htons(ntohl(b[2])); in afs_deliver_cb_init_call_back_state3()
395 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_init_call_back_state3()
396 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_init_call_back_state3()
399 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_init_call_back_state3()
484 __be32 *b; in afs_deliver_cb_probe_uuid() local
512 b = call->buffer; in afs_deliver_cb_probe_uuid()
[all …]
/fs/jffs2/
Dsummary.h201 #define jffs2_sum_add_kvec(a,b,c,d) (0) argument
202 #define jffs2_sum_move_collected(a,b) argument
204 #define jffs2_sum_add_padding_mem(a,b) argument
205 #define jffs2_sum_add_inode_mem(a,b,c) argument
206 #define jffs2_sum_add_dirent_mem(a,b,c) argument
207 #define jffs2_sum_add_xattr_mem(a,b,c) argument
208 #define jffs2_sum_add_xref_mem(a,b,c) argument
209 #define jffs2_sum_scan_sumnode(a,b,c,d,e) (0) argument
/fs/fat/
Dinode.c656 struct fat_boot_sector *b; in fat_set_state() local
680 b = (struct fat_boot_sector *) bh->b_data; in fat_set_state()
684 b->fat32.state |= FAT_STATE_DIRTY; in fat_set_state()
686 b->fat32.state &= ~FAT_STATE_DIRTY; in fat_set_state()
689 b->fat16.state |= FAT_STATE_DIRTY; in fat_set_state()
691 b->fat16.state &= ~FAT_STATE_DIRTY; in fat_set_state()
1424 static bool fat_bpb_is_zero(struct fat_boot_sector *b) in fat_bpb_is_zero() argument
1426 if (get_unaligned_le16(&b->sector_size)) in fat_bpb_is_zero()
1428 if (b->sec_per_clus) in fat_bpb_is_zero()
1430 if (b->reserved) in fat_bpb_is_zero()
[all …]
/fs/dlm/
Ddir.c66 char *b, *last_name = NULL; in dlm_recover_directory() local
104 b = ls->ls_recover_buf->rc_buf; in dlm_recover_directory()
115 memcpy(&v, b, sizeof(__be16)); in dlm_recover_directory()
117 b += sizeof(__be16); in dlm_recover_directory()
136 b, namelen, in dlm_recover_directory()
159 b, namelen); in dlm_recover_directory()
178 memcpy(last_name, b, namelen); in dlm_recover_directory()
179 b += namelen; in dlm_recover_directory()
/fs/btrfs/
Dcheck-integrity.c264 static void btrfsic_block_init(struct btrfsic_block *b);
266 static void btrfsic_block_free(struct btrfsic_block *b);
274 static void btrfsic_block_hashtable_add(struct btrfsic_block *b,
276 static void btrfsic_block_hashtable_remove(struct btrfsic_block *b);
398 static void btrfsic_block_init(struct btrfsic_block *b) in btrfsic_block_init() argument
400 b->magic_num = BTRFSIC_BLOCK_MAGIC_NUMBER; in btrfsic_block_init()
401 b->dev_state = NULL; in btrfsic_block_init()
402 b->dev_bytenr = 0; in btrfsic_block_init()
403 b->logical_bytenr = 0; in btrfsic_block_init()
404 b->generation = BTRFSIC_GENERATION_UNKNOWN; in btrfsic_block_init()
[all …]

1234567