/fs/smbfs_common/ |
D | cifs_md4.c | 50 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 51 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 52 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 56 u32 a, b, c, d; in md4_transform() local 59 b = hash[1]; in md4_transform() 63 ROUND1(a, b, c, d, in[0], 3); in md4_transform() 64 ROUND1(d, a, b, c, in[1], 7); in md4_transform() 65 ROUND1(c, d, a, b, in[2], 11); in md4_transform() 66 ROUND1(b, c, d, a, in[3], 19); in md4_transform() 67 ROUND1(a, b, c, d, in[4], 3); in md4_transform() [all …]
|
D | cifs_arc4.c | 42 u32 x, y, a, b; in cifs_arc4_crypt() local 53 b = S[y]; in cifs_arc4_crypt() 57 a = (a + b) & 0xff; in cifs_arc4_crypt() 58 S[x] = b; in cifs_arc4_crypt() 68 b = tb; in cifs_arc4_crypt()
|
/fs/ |
D | d_path.c | 162 struct prepend_buffer b; in prepend_path() local 171 b = *p; in prepend_path() 173 error = __prepend_path(path->dentry, real_mount(path->mnt), root, &b); in prepend_path() 191 b = *p; in prepend_path() 193 if (b.len == p->len) in prepend_path() 194 prepend_char(&b, '/'); in prepend_path() 196 *p = b; in prepend_path() 220 DECLARE_BUFFER(b, buf, buflen); in __d_path() 222 prepend_char(&b, 0); in __d_path() 223 if (unlikely(prepend_path(path, root, &b) > 0)) in __d_path() [all …]
|
/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 | 90 const u8 *b = *_b; in afs_extract_vl_addrs() local 99 for (; nr_addrs > 0 && end - b >= nr_addrs; nr_addrs--) { in afs_extract_vl_addrs() 103 hdr.address_type = *b++; in afs_extract_vl_addrs() 107 if (end - b < 4) { in afs_extract_vl_addrs() 111 memcpy(x, b, 4); in afs_extract_vl_addrs() 113 b += 4; in afs_extract_vl_addrs() 117 if (end - b < 16) { in afs_extract_vl_addrs() 121 memcpy(x, b, 16); in afs_extract_vl_addrs() 123 b += 16; in afs_extract_vl_addrs() 138 *_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 229 for (b = 0; b < nr_blocks + 1; b++) { in afs_edit_dir_add() 233 index = b / AFS_DIR_BLOCKS_PER_PAGE; in afs_edit_dir_add() 254 block = &dir_page->blocks[b % AFS_DIR_BLOCKS_PER_PAGE]; in afs_edit_dir_add() 257 b, in afs_edit_dir_add() 258 (b < AFS_DIR_BLOCKS_WITH_CTR) ? meta->meta.alloc_ctrs[b] : 99, in afs_edit_dir_add() 263 if (b == nr_blocks) { in afs_edit_dir_add() 264 _debug("init %u", b); in afs_edit_dir_add() 265 afs_edit_init_block(meta, block, b); in afs_edit_dir_add() 266 afs_set_i_size(vnode, (b + 1) * AFS_DIR_BLOCK_SIZE); in afs_edit_dir_add() [all …]
|
D | vl_alias.c | 51 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 …]
|
D | cmservice.c | 370 __be32 *b; in afs_deliver_cb_init_call_back_state3() local 400 b = call->buffer; in afs_deliver_cb_init_call_back_state3() 402 r->time_low = b[0]; in afs_deliver_cb_init_call_back_state3() 403 r->time_mid = htons(ntohl(b[1])); in afs_deliver_cb_init_call_back_state3() 404 r->time_hi_and_version = htons(ntohl(b[2])); in afs_deliver_cb_init_call_back_state3() 405 r->clock_seq_hi_and_reserved = ntohl(b[3]); in afs_deliver_cb_init_call_back_state3() 406 r->clock_seq_low = ntohl(b[4]); in afs_deliver_cb_init_call_back_state3() 409 r->node[loop] = ntohl(b[loop + 5]); in afs_deliver_cb_init_call_back_state3() 485 __be32 *b; in afs_deliver_cb_probe_uuid() local 513 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_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))) 78 #define XFS_GROWFSRT_SPACE_RES(mp,b) \ argument 79 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK)) 93 #define XFS_SYMLINK_SPACE_RES(mp,nl,b) \ argument [all …]
|
D | xfs_btree.h | 176 struct xfs_bmbt_irec b; member 446 #define XFS_EXTLEN_MIN(a,b) min_t(xfs_extlen_t, (a), (b)) argument 447 #define XFS_EXTLEN_MAX(a,b) max_t(xfs_extlen_t, (a), (b)) argument 448 #define XFS_AGBLOCK_MIN(a,b) min_t(xfs_agblock_t, (a), (b)) argument 449 #define XFS_AGBLOCK_MAX(a,b) max_t(xfs_agblock_t, (a), (b)) argument 450 #define XFS_FILEOFF_MIN(a,b) min_t(xfs_fileoff_t, (a), (b)) argument 451 #define XFS_FILEOFF_MAX(a,b) max_t(xfs_fileoff_t, (a), (b)) argument 452 #define XFS_FILBLKS_MIN(a,b) min_t(xfs_filblks_t, (a), (b)) argument 453 #define XFS_FILBLKS_MAX(a,b) max_t(xfs_filblks_t, (a), (b)) argument 513 const union xfs_btree_ptr *b);
|
/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 | 120 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() 238 lru_put_end(struct nfsd_drc_bucket *b, struct svc_cacherep *rp) in lru_put_end() argument 241 list_move_tail(&rp->c_lru, &b->lru_head); in lru_put_end() 245 prune_bucket(struct nfsd_drc_bucket *b, struct nfsd_net *nn) in prune_bucket() argument 250 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/vboxsf/ |
D | utils.c | 480 struct vboxsf_dir_buf *b; in vboxsf_dir_buf_alloc() local 482 b = kmalloc(sizeof(*b), GFP_KERNEL); in vboxsf_dir_buf_alloc() 483 if (!b) in vboxsf_dir_buf_alloc() 486 b->buf = kmalloc(DIR_BUFFER_SIZE, GFP_KERNEL); in vboxsf_dir_buf_alloc() 487 if (!b->buf) { in vboxsf_dir_buf_alloc() 488 kfree(b); in vboxsf_dir_buf_alloc() 492 b->entries = 0; in vboxsf_dir_buf_alloc() 493 b->used = 0; in vboxsf_dir_buf_alloc() 494 b->free = DIR_BUFFER_SIZE; in vboxsf_dir_buf_alloc() 495 list_add(&b->head, list); in vboxsf_dir_buf_alloc() [all …]
|
/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 | 56 unsigned int b, p = 0; in calc_code_bit() local 62 b = i + 1; in calc_code_bit() 67 b += p; in calc_code_bit() 77 for (; (1 << p) < (b + 1); p++) in calc_code_bit() 78 b++; in calc_code_bit() 83 return b; in calc_code_bit() 99 unsigned int i, b, p = 0; in ocfs2_hamming_encode() local 118 b = calc_code_bit(nr + i, &p); in ocfs2_hamming_encode() 136 parity ^= b; in ocfs2_hamming_encode() 159 unsigned int i, b; in ocfs2_hamming_fix() local [all …]
|
/fs/exfat/ |
D | exfat_fs.h | 81 #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/ |
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) do { } while (0) argument 204 #define jffs2_sum_add_padding_mem(a,b) do { } while (0) argument 205 #define jffs2_sum_add_inode_mem(a,b,c) do { } while (0) argument 206 #define jffs2_sum_add_dirent_mem(a,b,c) do { } while (0) argument 207 #define jffs2_sum_add_xattr_mem(a,b,c) do { } while (0) argument 208 #define jffs2_sum_add_xref_mem(a,b,c) do { } while (0) argument 209 #define jffs2_sum_scan_sumnode(a,b,c,d,e) (0) argument
|
/fs/fat/ |
D | inode.c | 670 struct fat_boot_sector *b; in fat_set_state() local 694 b = (struct fat_boot_sector *) bh->b_data; in fat_set_state() 698 b->fat32.state |= FAT_STATE_DIRTY; in fat_set_state() 700 b->fat32.state &= ~FAT_STATE_DIRTY; in fat_set_state() 703 b->fat16.state |= FAT_STATE_DIRTY; in fat_set_state() 705 b->fat16.state &= ~FAT_STATE_DIRTY; in fat_set_state() 1431 static bool fat_bpb_is_zero(struct fat_boot_sector *b) in fat_bpb_is_zero() argument 1433 if (get_unaligned_le16(&b->sector_size)) in fat_bpb_is_zero() 1435 if (b->sec_per_clus) in fat_bpb_is_zero() 1437 if (b->reserved) in fat_bpb_is_zero() [all …]
|