/fs/ntfs/ |
D | mst.c | 28 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/ |
D | vl_list.c | 96 const u8 *b = *_b; in afs_extract_vl_addrs() local 105 for (; nr_addrs > 0 && end - b >= nr_addrs; nr_addrs--) { in afs_extract_vl_addrs() 109 hdr.address_type = *b++; in afs_extract_vl_addrs() 113 if (end - b < 4) { in afs_extract_vl_addrs() 117 memcpy(x, b, 4); in afs_extract_vl_addrs() 119 b += 4; in afs_extract_vl_addrs() 123 if (end - b < 16) { in afs_extract_vl_addrs() 127 memcpy(x, b, 16); in afs_extract_vl_addrs() 129 b += 16; in afs_extract_vl_addrs() 144 *_b = b; in afs_extract_vl_addrs() [all …]
|
D | dir_edit.c | 194 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() 257 block = &dir_page->blocks[b % AFS_DIR_BLOCKS_PER_PAGE]; in afs_edit_dir_add() 260 b, in afs_edit_dir_add() 261 (b < AFS_DIR_BLOCKS_WITH_CTR) ? meta->meta.alloc_ctrs[b] : 99, in afs_edit_dir_add() 266 if (b == nr_blocks) { in afs_edit_dir_add() 267 _debug("init %u", b); in afs_edit_dir_add() 268 afs_edit_init_block(meta, block, b); in afs_edit_dir_add() 269 i_size_write(&vnode->vfs_inode, (b + 1) * AFS_DIR_BLOCK_SIZE); in afs_edit_dir_add() [all …]
|
D | cmservice.c | 413 __be32 *b; in afs_deliver_cb_init_call_back_state3() local 443 b = call->buffer; in afs_deliver_cb_init_call_back_state3() 445 r->time_low = b[0]; in afs_deliver_cb_init_call_back_state3() 446 r->time_mid = htons(ntohl(b[1])); in afs_deliver_cb_init_call_back_state3() 447 r->time_hi_and_version = htons(ntohl(b[2])); in afs_deliver_cb_init_call_back_state3() 448 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_init_call_back_state3() 449 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_init_call_back_state3() 452 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_init_call_back_state3() 527 __be32 *b; in afs_deliver_cb_probe_uuid() local 555 b = call->buffer; in afs_deliver_cb_probe_uuid() [all …]
|
/fs/ext4/ |
D | hash.c | 20 __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/ |
D | xfs_rtbitmap.c | 101 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 …]
|
D | xfs_bmap_btree.c | 169 cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_bmbt_dup_cursor() 175 new->bc_private.b.flags = cur->bc_private.b.flags; in xfs_bmbt_dup_cursor() 186 (dst->bc_private.b.ip->i_d.di_flags & XFS_DIFLAG_REALTIME)); in xfs_bmbt_update_cursor() 188 dst->bc_private.b.allocated += src->bc_private.b.allocated; in xfs_bmbt_update_cursor() 191 src->bc_private.b.allocated = 0; in xfs_bmbt_update_cursor() 208 xfs_rmap_ino_bmbt_owner(&args.oinfo, cur->bc_private.b.ip->i_ino, in xfs_bmbt_alloc_block() 209 cur->bc_private.b.whichfork); in xfs_bmbt_alloc_block() 233 args.wasdel = cur->bc_private.b.flags & XFS_BTCUR_BPRV_WASDEL; in xfs_bmbt_alloc_block() 262 cur->bc_private.b.allocated++; in xfs_bmbt_alloc_block() 263 cur->bc_private.b.ip->i_d.di_nblocks++; in xfs_bmbt_alloc_block() [all …]
|
D | xfs_trans_space.h | 21 #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 …]
|
D | xfs_btree.h | 174 struct xfs_bmbt_irec b; member 222 } b; member 447 #define XFS_EXTLEN_MIN(a,b) min_t(xfs_extlen_t, (a), (b)) argument 448 #define XFS_EXTLEN_MAX(a,b) max_t(xfs_extlen_t, (a), (b)) argument 449 #define XFS_AGBLOCK_MIN(a,b) min_t(xfs_agblock_t, (a), (b)) argument 450 #define XFS_AGBLOCK_MAX(a,b) max_t(xfs_agblock_t, (a), (b)) argument 451 #define XFS_FILEOFF_MIN(a,b) min_t(xfs_fileoff_t, (a), (b)) argument 452 #define XFS_FILEOFF_MAX(a,b) max_t(xfs_fileoff_t, (a), (b)) argument 453 #define XFS_FILBLKS_MIN(a,b) min_t(xfs_filblks_t, (a), (b)) argument 454 #define XFS_FILBLKS_MAX(a,b) max_t(xfs_filblks_t, (a), (b)) argument [all …]
|
/fs/nfs/blocklayout/ |
D | dev.c | 53 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 …]
|
D | rpc_pipefs.c | 38 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/ |
D | jfs_dmap.h | 72 #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/ |
D | blocklayoutxdr.c | 20 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 …]
|
D | nfscache.c | 119 nfsd_reply_cache_free_locked(struct nfsd_drc_bucket *b, struct svc_cacherep *rp, in nfsd_reply_cache_free_locked() argument 127 rb_erase(&rp->c_node, &b->rb_head); in nfsd_reply_cache_free_locked() 136 nfsd_reply_cache_free(struct nfsd_drc_bucket *b, struct svc_cacherep *rp, in nfsd_reply_cache_free() argument 139 spin_lock(&b->cache_lock); in nfsd_reply_cache_free() 140 nfsd_reply_cache_free_locked(b, rp, nn); in nfsd_reply_cache_free() 141 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 …]
|
D | blocklayout.c | 150 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/squashfs/ |
D | block.c | 85 int bytes, compressed, b = 0, k = 0, avail, i; in squashfs_read_data() local 109 for (b = 0; bytes < length; b++, cur_index++) { in squashfs_read_data() 110 bh[b] = sb_getblk(sb, cur_index); in squashfs_read_data() 111 if (bh[b] == NULL) in squashfs_read_data() 115 ll_rw_block(REQ_OP_READ, 0, b, bh); in squashfs_read_data() 126 b = 1; in squashfs_read_data() 141 for (; bytes < length; b++) { in squashfs_read_data() 142 bh[b] = sb_getblk(sb, ++cur_index); in squashfs_read_data() 143 if (bh[b] == NULL) in squashfs_read_data() 147 ll_rw_block(REQ_OP_READ, 0, b - 1, bh + 1); in squashfs_read_data() [all …]
|
D | zlib_wrapper.c | 53 struct buffer_head **bh, int b, int offset, int length, in zlib_uncompress() argument 64 if (stream->avail_in == 0 && k < b) { in zlib_uncompress() 89 if (stream->avail_in == 0 && k < b) in zlib_uncompress() 102 if (k < b) in zlib_uncompress() 108 for (; k < b; k++) in zlib_uncompress()
|
/fs/ubifs/ |
D | replay.c | 88 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/ |
D | blockcheck.c | 58 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/reiserfs/ |
D | hashes.c | 36 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/ |
D | summary.h | 201 #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/ |
D | inode.c | 669 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() 1434 static bool fat_bpb_is_zero(struct fat_boot_sector *b) in fat_bpb_is_zero() argument 1436 if (get_unaligned_le16(&b->sector_size)) in fat_bpb_is_zero() 1438 if (b->sec_per_clus) in fat_bpb_is_zero() 1440 if (b->reserved) in fat_bpb_is_zero() [all …]
|
/fs/dlm/ |
D | dir.c | 64 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/ |
D | check-integrity.c | 251 static void btrfsic_block_init(struct btrfsic_block *b); 253 static void btrfsic_block_free(struct btrfsic_block *b); 261 static void btrfsic_block_hashtable_add(struct btrfsic_block *b, 263 static void btrfsic_block_hashtable_remove(struct btrfsic_block *b); 385 static void btrfsic_block_init(struct btrfsic_block *b) in btrfsic_block_init() argument 387 b->magic_num = BTRFSIC_BLOCK_MAGIC_NUMBER; in btrfsic_block_init() 388 b->dev_state = NULL; in btrfsic_block_init() 389 b->dev_bytenr = 0; in btrfsic_block_init() 390 b->logical_bytenr = 0; in btrfsic_block_init() 391 b->generation = BTRFSIC_GENERATION_UNKNOWN; in btrfsic_block_init() [all …]
|
/fs/xfs/scrub/ |
D | bitmap.h | 25 #define for_each_xfs_bitmap_block(b, bex, n, bitmap) \ argument 27 for ((b) = bex->start; (b) < bex->start + bex->len; (b)++)
|