Home
last modified time | relevance | path

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

1234567

/fs/ntfs/
Dmst.c28 int post_read_mst_fixup(NTFS_RECORD *b, const u32 size) in post_read_mst_fixup() argument
34 usa_ofs = le16_to_cpu(b->usa_ofs); in post_read_mst_fixup()
36 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
44 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in post_read_mst_fixup()
56 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
67 b->magic = magic_BAAD; in post_read_mst_fixup()
73 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
74 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
109 int pre_write_mst_fixup(NTFS_RECORD *b, const u32 size) in pre_write_mst_fixup() argument
116 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup()
[all …]
/fs/afs/
Dvl_list.c97 const u8 *b = *_b; in afs_extract_vl_addrs() local
106 for (; nr_addrs > 0 && end - b >= nr_addrs; nr_addrs--) { in afs_extract_vl_addrs()
110 hdr.address_type = *b++; in afs_extract_vl_addrs()
114 if (end - b < 4) { in afs_extract_vl_addrs()
118 memcpy(x, b, 4); in afs_extract_vl_addrs()
120 b += 4; in afs_extract_vl_addrs()
124 if (end - b < 16) { in afs_extract_vl_addrs()
128 memcpy(x, b, 16); in afs_extract_vl_addrs()
130 b += 16; in afs_extract_vl_addrs()
145 *_b = b; in afs_extract_vl_addrs()
[all …]
Ddir_edit.c194 unsigned int need_slots, nr_blocks, b; in afs_edit_dir_add() local
230 for (b = 0; b < nr_blocks + 1; b++) { in afs_edit_dir_add()
234 index = b / AFS_DIR_BLOCKS_PER_PAGE; in afs_edit_dir_add()
255 block = &dir_page->blocks[b % AFS_DIR_BLOCKS_PER_PAGE]; in afs_edit_dir_add()
258 b, in afs_edit_dir_add()
259 (b < AFS_DIR_BLOCKS_WITH_CTR) ? meta->meta.alloc_ctrs[b] : 99, in afs_edit_dir_add()
264 if (b == nr_blocks) { in afs_edit_dir_add()
265 _debug("init %u", b); in afs_edit_dir_add()
266 afs_edit_init_block(meta, block, b); in afs_edit_dir_add()
267 afs_set_i_size(vnode, (b + 1) * AFS_DIR_BLOCK_SIZE); in afs_edit_dir_add()
[all …]
Dvl_alias.c51 const struct sockaddr_in *b = &srx_b->transport.sin; in afs_compare_addrs() local
53 addr_b = ntohl(b->sin_addr.s_addr); in afs_compare_addrs()
57 port_b = ntohs(b->sin_port); in afs_compare_addrs()
65 const struct sockaddr_in6 *b = &srx_b->transport.sin6; in afs_compare_addrs() local
66 diff = memcmp(&a->sin6_addr, &b->sin6_addr, 16); in afs_compare_addrs()
69 port_b = ntohs(b->sin6_port); in afs_compare_addrs()
91 int a = 0, b = 0, addr_matches = 0; in afs_compare_fs_alists() local
96 while (a < la->nr_addrs && b < lb->nr_addrs) { in afs_compare_fs_alists()
98 const struct sockaddr_rxrpc *srx_b = &lb->addrs[b]; in afs_compare_fs_alists()
104 b++; in afs_compare_fs_alists()
[all …]
Dcmservice.c368 __be32 *b; in afs_deliver_cb_init_call_back_state3() local
398 b = call->buffer; in afs_deliver_cb_init_call_back_state3()
400 r->time_low = b[0]; in afs_deliver_cb_init_call_back_state3()
401 r->time_mid = htons(ntohl(b[1])); in afs_deliver_cb_init_call_back_state3()
402 r->time_hi_and_version = htons(ntohl(b[2])); in afs_deliver_cb_init_call_back_state3()
403 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_init_call_back_state3()
404 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_init_call_back_state3()
407 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_init_call_back_state3()
482 __be32 *b; in afs_deliver_cb_probe_uuid() local
510 b = call->buffer; in afs_deliver_cb_probe_uuid()
[all …]
/fs/ext4/
Dhash.c20 __u32 a = in[0], b = in[1], c = in[2], d = in[3]; in TEA_transform() local
25 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); in TEA_transform()
44 #define ROUND(f, a, b, c, d, x, s) \ argument
45 (a += f(b, c, d) + x, a = rol32(a, s))
55 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local
58 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform()
59 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform()
60 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform()
61 ROUND(F, b, c, d, a, in[3] + K1, 19); in half_md4_transform()
62 ROUND(F, a, b, c, d, in[4] + K1, 3); in half_md4_transform()
[all …]
/fs/xfs/libxfs/
Dxfs_rtbitmap.c101 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtfind_back() local
128 b = &bufp[word]; in xfs_rtfind_back()
135 want = (*b & ((xfs_rtword_t)1 << bit)) ? -1 : 0; in xfs_rtfind_back()
152 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back()
177 b = &bufp[word]; in xfs_rtfind_back()
182 b--; in xfs_rtfind_back()
198 if ((wdiff = *b ^ want)) { in xfs_rtfind_back()
223 b = &bufp[word]; in xfs_rtfind_back()
228 b--; in xfs_rtfind_back()
245 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back()
[all …]
Dxfs_trans_space.h21 #define XFS_NRMAPADD_SPACE_RES(mp, b)\ argument
22 (((b + XFS_MAX_CONTIG_RMAPS_PER_BLOCK(mp) - 1) / \
29 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument
30 (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \
35 #define XFS_SWAP_RMAP_SPACE_RES(mp,b,w)\ argument
36 (XFS_NEXTENTADD_SPACE_RES((mp), (b), (w)) + \
37 XFS_NRMAPADD_SPACE_RES((mp), (b)))
79 #define XFS_GROWFSRT_SPACE_RES(mp,b) \ argument
80 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK))
94 #define XFS_SYMLINK_SPACE_RES(mp,nl,b) \ argument
[all …]
Dxfs_btree.h175 struct xfs_bmbt_irec b; member
438 #define XFS_EXTLEN_MIN(a,b) min_t(xfs_extlen_t, (a), (b)) argument
439 #define XFS_EXTLEN_MAX(a,b) max_t(xfs_extlen_t, (a), (b)) argument
440 #define XFS_AGBLOCK_MIN(a,b) min_t(xfs_agblock_t, (a), (b)) argument
441 #define XFS_AGBLOCK_MAX(a,b) max_t(xfs_agblock_t, (a), (b)) argument
442 #define XFS_FILEOFF_MIN(a,b) min_t(xfs_fileoff_t, (a), (b)) argument
443 #define XFS_FILEOFF_MAX(a,b) max_t(xfs_fileoff_t, (a), (b)) argument
444 #define XFS_FILBLKS_MIN(a,b) min_t(xfs_filblks_t, (a), (b)) argument
445 #define XFS_FILBLKS_MAX(a,b) max_t(xfs_filblks_t, (a), (b)) argument
503 const union xfs_btree_ptr *b);
/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.h72 #define BLKTODMAP(b,s) \ argument
73 ((((b) >> 13) + ((b) >> 23) + ((b) >> 33) + 3 + 1) << (s))
87 #define BLKTOL0(b,s) \ argument
88 (((((b) >> 23) << 10) + ((b) >> 23) + ((b) >> 33) + 2 + 1) << (s))
102 #define BLKTOL1(b,s) \ argument
103 (((((b) >> 33) << 20) + (((b) >> 33) << 10) + ((b) >> 33) + 1 + 1) << (s))
109 #define BLKTOCTL(b,s,l) \ argument
110 (((l) == 2) ? 1 : ((l) == 1) ? BLKTOL1((b),(s)) : BLKTOL0((b),(s)))
121 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size)) argument
268 #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.c120 nfsd_reply_cache_free_locked(struct nfsd_drc_bucket *b, struct svc_cacherep *rp, in nfsd_reply_cache_free_locked() argument
128 rb_erase(&rp->c_node, &b->rb_head); in nfsd_reply_cache_free_locked()
137 nfsd_reply_cache_free(struct nfsd_drc_bucket *b, struct svc_cacherep *rp, in nfsd_reply_cache_free() argument
140 spin_lock(&b->cache_lock); in nfsd_reply_cache_free()
141 nfsd_reply_cache_free_locked(b, rp, nn); in nfsd_reply_cache_free()
142 spin_unlock(&b->cache_lock); in nfsd_reply_cache_free()
221 lru_put_end(struct nfsd_drc_bucket *b, struct svc_cacherep *rp) in lru_put_end() argument
224 list_move_tail(&rp->c_lru, &b->lru_head); in lru_put_end()
228 prune_bucket(struct nfsd_drc_bucket *b, struct nfsd_net *nn) in prune_bucket() argument
233 list_for_each_entry_safe(rp, tmp, &b->lru_head, c_lru) { in prune_bucket()
[all …]
Dblocklayout.c150 struct pnfs_block_volume *b; in nfsd4_block_get_device_info_simple() local
159 b = &dev->volumes[0]; in nfsd4_block_get_device_info_simple()
161 b->type = PNFS_BLOCK_VOLUME_SIMPLE; in nfsd4_block_get_device_info_simple()
162 b->simple.sig_len = PNFS_BLOCK_UUID_LEN; in nfsd4_block_get_device_info_simple()
163 return sb->s_export_op->get_uuid(sb, b->simple.sig, &b->simple.sig_len, in nfsd4_block_get_device_info_simple()
164 &b->simple.offset); in nfsd4_block_get_device_info_simple()
215 struct pnfs_block_volume *b) in nfsd4_scsi_identify_device() argument
295 b->scsi.code_set = PS_CODE_SET_BINARY; in nfsd4_scsi_identify_device()
296 b->scsi.designator_type = type == 0x02 ? in nfsd4_scsi_identify_device()
298 b->scsi.designator_len = id_len; in nfsd4_scsi_identify_device()
[all …]
/fs/vboxsf/
Dutils.c461 struct vboxsf_dir_buf *b; in vboxsf_dir_buf_alloc() local
463 b = kmalloc(sizeof(*b), GFP_KERNEL); in vboxsf_dir_buf_alloc()
464 if (!b) in vboxsf_dir_buf_alloc()
467 b->buf = kmalloc(DIR_BUFFER_SIZE, GFP_KERNEL); in vboxsf_dir_buf_alloc()
468 if (!b->buf) { in vboxsf_dir_buf_alloc()
469 kfree(b); in vboxsf_dir_buf_alloc()
473 b->entries = 0; in vboxsf_dir_buf_alloc()
474 b->used = 0; in vboxsf_dir_buf_alloc()
475 b->free = DIR_BUFFER_SIZE; in vboxsf_dir_buf_alloc()
476 list_add(&b->head, list); in vboxsf_dir_buf_alloc()
[all …]
/fs/ubifs/
Dreplay.c88 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() argument
95 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops()
102 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
122 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
124 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
136 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
137 b->dirty); in set_bud_lprops()
139 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, in set_bud_lprops()
147 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
148 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops()
[all …]
/fs/ocfs2/
Dblockcheck.c58 unsigned int b, p = 0; in calc_code_bit() local
64 b = i + 1; in calc_code_bit()
69 b += p; in calc_code_bit()
79 for (; (1 << p) < (b + 1); p++) in calc_code_bit()
80 b++; in calc_code_bit()
85 return b; in calc_code_bit()
101 unsigned int i, b, p = 0; in ocfs2_hamming_encode() local
120 b = calc_code_bit(nr + i, &p); in ocfs2_hamming_encode()
138 parity ^= b; in ocfs2_hamming_encode()
161 unsigned int i, b; in ocfs2_hamming_fix() local
[all …]
/fs/exfat/
Dexfat_fs.h81 #define EXFAT_CLU_TO_B(b, sbi) ((b) << (sbi)->cluster_size_bits) argument
82 #define EXFAT_B_TO_CLU(b, sbi) ((b) >> (sbi)->cluster_size_bits) argument
83 #define EXFAT_B_TO_CLU_ROUND_UP(b, sbi) \ argument
84 (((b - 1) >> (sbi)->cluster_size_bits) + 1)
90 #define EXFAT_BLK_TO_B(b, sb) ((b) << (sb)->s_blocksize_bits) argument
91 #define EXFAT_B_TO_BLK(b, sb) ((b) >> (sb)->s_blocksize_bits) argument
92 #define EXFAT_B_TO_BLK_ROUND_UP(b, sb) \ argument
93 (((b - 1) >> (sb)->s_blocksize_bits) + 1)
99 #define EXFAT_B_TO_DEN_IDX(b, sbi) \ argument
100 ((b) << ((sbi)->cluster_size_bits - DENTRY_SIZE_BITS))
[all …]
/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()
/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.c669 struct fat_boot_sector *b; in fat_set_state() local
693 b = (struct fat_boot_sector *) bh->b_data; in fat_set_state()
697 b->fat32.state |= FAT_STATE_DIRTY; in fat_set_state()
699 b->fat32.state &= ~FAT_STATE_DIRTY; in fat_set_state()
702 b->fat16.state |= FAT_STATE_DIRTY; in fat_set_state()
704 b->fat16.state &= ~FAT_STATE_DIRTY; in fat_set_state()
1430 static bool fat_bpb_is_zero(struct fat_boot_sector *b) in fat_bpb_is_zero() argument
1432 if (get_unaligned_le16(&b->sector_size)) in fat_bpb_is_zero()
1434 if (b->sec_per_clus) in fat_bpb_is_zero()
1436 if (b->reserved) in fat_bpb_is_zero()
[all …]
/fs/dlm/
Ddir.c64 char *b, *last_name = NULL; in dlm_recover_directory() local
102 b = ls->ls_recover_buf->rc_buf; in dlm_recover_directory()
113 memcpy(&v, b, sizeof(__be16)); in dlm_recover_directory()
115 b += sizeof(__be16); in dlm_recover_directory()
134 b, namelen, in dlm_recover_directory()
157 b, namelen); in dlm_recover_directory()
176 memcpy(last_name, b, namelen); in dlm_recover_directory()
177 b += namelen; in dlm_recover_directory()
/fs/btrfs/
Dcheck-integrity.c247 static void btrfsic_block_init(struct btrfsic_block *b);
249 static void btrfsic_block_free(struct btrfsic_block *b);
257 static void btrfsic_block_hashtable_add(struct btrfsic_block *b,
259 static void btrfsic_block_hashtable_remove(struct btrfsic_block *b);
379 static void btrfsic_block_init(struct btrfsic_block *b) in btrfsic_block_init() argument
381 b->magic_num = BTRFSIC_BLOCK_MAGIC_NUMBER; in btrfsic_block_init()
382 b->dev_state = NULL; in btrfsic_block_init()
383 b->dev_bytenr = 0; in btrfsic_block_init()
384 b->logical_bytenr = 0; in btrfsic_block_init()
385 b->generation = BTRFSIC_GENERATION_UNKNOWN; in btrfsic_block_init()
[all …]
/fs/nfs/
Dpnfs_nfs.c100 struct pnfs_commit_bucket *b; in pnfs_alloc_commit_array() local
109 for (b = &p->buckets[0]; n != 0; b++, n--) { in pnfs_alloc_commit_array()
110 INIT_LIST_HEAD(&b->written); in pnfs_alloc_commit_array()
111 INIT_LIST_HEAD(&b->committing); in pnfs_alloc_commit_array()
112 b->lseg = NULL; in pnfs_alloc_commit_array()
113 b->direct_verf.committed = NFS_INVALID_STABLE_HOW; in pnfs_alloc_commit_array()
308 struct pnfs_commit_bucket *b; in pnfs_bucket_recover_commit_reqs() local
314 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_recover_commit_reqs()
315 nwritten = nfs_scan_commit_list(&b->written, dst, cinfo, 0); in pnfs_bucket_recover_commit_reqs()
319 freeme = pnfs_free_bucket_lseg(b); in pnfs_bucket_recover_commit_reqs()
[all …]

1234567