/fs/xfs/ |
D | xfs_dir2_data.c | 55 xfs_dir2_data_t *d; /* data block pointer */ in xfs_dir2_data_check() local 71 d = bp->data; in xfs_dir2_data_check() 72 ASSERT(be32_to_cpu(d->hdr.magic) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_check() 73 be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_check() 74 bf = d->hdr.bestfree; in xfs_dir2_data_check() 75 p = (char *)d->u; in xfs_dir2_data_check() 76 if (be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check() 77 btp = xfs_dir2_block_tail_p(mp, (xfs_dir2_block_t *)d); in xfs_dir2_data_check() 81 endp = (char *)d + mp->m_dirblksize; in xfs_dir2_data_check() 113 (char *)dup - (char *)d); in xfs_dir2_data_check() [all …]
|
D | xfs_ag.h | 238 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument 244 #define XFS_AG_CHECK_DADDR(mp,d,len) \ argument 246 ASSERT((d) == XFS_SB_DADDR || \ 247 xfs_daddr_to_agbno(mp, d) != XFS_SB_DADDR) : \ 248 ASSERT(xfs_daddr_to_agno(mp, d) == \ 249 xfs_daddr_to_agno(mp, (d) + (len) - 1)))
|
/fs/cifs/ |
D | md5.c | 174 register __u32 a, b, c, d; in MD5Transform() local 179 d = buf[3]; in MD5Transform() 181 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform() 182 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform() 183 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform() 184 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform() 185 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform() 186 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform() 187 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform() 188 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform() [all …]
|
/fs/xfs/quota/ |
D | xfs_dquot.c | 188 xfs_dqblk_t *d) in xfs_qm_dqinit_core() argument 193 d->dd_diskdq.d_magic = cpu_to_be16(XFS_DQUOT_MAGIC); in xfs_qm_dqinit_core() 194 d->dd_diskdq.d_version = XFS_DQUOT_VERSION; in xfs_qm_dqinit_core() 195 d->dd_diskdq.d_id = cpu_to_be32(id); in xfs_qm_dqinit_core() 196 d->dd_diskdq.d_flags = type; in xfs_qm_dqinit_core() 250 xfs_disk_dquot_t *d) in xfs_qm_adjust_dqlimits() argument 254 ASSERT(d->d_id); in xfs_qm_adjust_dqlimits() 256 if (q->qi_bsoftlimit && !d->d_blk_softlimit) in xfs_qm_adjust_dqlimits() 257 d->d_blk_softlimit = cpu_to_be64(q->qi_bsoftlimit); in xfs_qm_adjust_dqlimits() 258 if (q->qi_bhardlimit && !d->d_blk_hardlimit) in xfs_qm_adjust_dqlimits() [all …]
|
D | xfs_qm_syscalls.c | 1172 xfs_dquot_t *d; in xfs_qm_hashinsert() local 1173 if (((d) = (h)->qh_next)) in xfs_qm_hashinsert() 1174 (d)->HL_PREVP = &((dqp)->HL_NEXT); in xfs_qm_hashinsert() 1175 (dqp)->HL_NEXT = d; in xfs_qm_hashinsert() 1183 xfs_dqtest_t *d) in xfs_qm_dqtest_print() argument 1186 cmn_err(CE_DEBUG, "---- dquot ID = %d", d->d_id); in xfs_qm_dqtest_print() 1187 cmn_err(CE_DEBUG, "---- fs = 0x%p", d->q_mount); in xfs_qm_dqtest_print() 1189 d->d_bcount, (int)d->d_bcount); in xfs_qm_dqtest_print() 1191 d->d_icount, (int)d->d_icount); in xfs_qm_dqtest_print() 1197 xfs_dqtest_t *d, in xfs_qm_dqtest_failed() argument [all …]
|
D | xfs_quota_priv.h | 30 #define XFS_DQ_IS_ADDEDTO_TRX(t, d) ((d)->q_transp == (t)) argument 107 xfs_dquot_t *d; \ 108 if (((d) = (dqp)->NXT)) \ 109 (d)->PVP = (dqp)->PVP; \ 110 *((dqp)->PVP) = d; \ 119 xfs_dquot_t *d; \ 120 if (((d) = (h)->qh_next)) \ 121 (d)->PVP = &((dqp)->NXT); \ 122 (dqp)->NXT = d; \ 161 #define DQFLAGTO_TYPESTR(d) (((d)->dq_flags & XFS_DQ_USER) ? "USR" : \ argument [all …]
|
/fs/hpfs/ |
D | dnode.c | 11 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos() argument 14 struct hpfs_dirent *de_end = dnode_end_de(d); in get_pos() 16 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in get_pos() 17 if (de == fde) return ((loff_t) d->self << 4) | (loff_t)i; in get_pos() 21 return ((loff_t)d->self << 4) | (loff_t)1; in get_pos() 91 static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) in hpfs_pos_ins() argument 93 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_ins() 100 static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) in hpfs_pos_del() argument 102 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_del() 109 static struct hpfs_dirent *dnode_pre_last_de(struct dnode *d) in dnode_pre_last_de() argument [all …]
|
D | alloc.c | 400 struct dnode *d; in hpfs_alloc_dnode() local 408 if (!(d = hpfs_get_4sectors(s, *dno, qbh))) { in hpfs_alloc_dnode() 412 memset(d, 0, 2048); in hpfs_alloc_dnode() 413 d->magic = DNODE_MAGIC; in hpfs_alloc_dnode() 414 d->first_free = 52; in hpfs_alloc_dnode() 415 d->dirent[0] = 32; in hpfs_alloc_dnode() 416 d->dirent[2] = 8; in hpfs_alloc_dnode() 417 d->dirent[30] = 1; in hpfs_alloc_dnode() 418 d->dirent[31] = 255; in hpfs_alloc_dnode() 419 d->self = *dno; in hpfs_alloc_dnode() [all …]
|
D | map.c | 103 secno *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory() local 104 if (!d) { in hpfs_load_bitmap_directory() 108 memcpy((char *)b + 512 * i, d, 512); in hpfs_load_bitmap_directory() 220 unsigned char *d = (char *)dnode; in hpfs_map_dnode() local 234 for (p = 20; p < dnode->first_free; p += d[p] + (d[p+1] << 8)) { in hpfs_map_dnode() 258 if (d[pp + 30] != 1 || d[pp + 31] != 255) { in hpfs_map_dnode()
|
/fs/ |
D | quota_v2.c | 139 struct v2_disk_dqblk *d = dp, empty; in v2_disk2memdqb() local 142 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2_disk2memdqb() 143 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2_disk2memdqb() 144 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2_disk2memdqb() 145 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2_disk2memdqb() 146 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2_disk2memdqb() 147 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2_disk2memdqb() 148 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2_disk2memdqb() 149 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2_disk2memdqb() 159 struct v2_disk_dqblk *d = dp; in v2_mem2diskdqb() local [all …]
|
D | quota_v1.c | 31 static void v1_disk2mem_dqblk(struct mem_dqblk *m, struct v1_disk_dqblk *d) in v1_disk2mem_dqblk() argument 33 m->dqb_ihardlimit = d->dqb_ihardlimit; in v1_disk2mem_dqblk() 34 m->dqb_isoftlimit = d->dqb_isoftlimit; in v1_disk2mem_dqblk() 35 m->dqb_curinodes = d->dqb_curinodes; in v1_disk2mem_dqblk() 36 m->dqb_bhardlimit = v1_qbtos(d->dqb_bhardlimit); in v1_disk2mem_dqblk() 37 m->dqb_bsoftlimit = v1_qbtos(d->dqb_bsoftlimit); in v1_disk2mem_dqblk() 38 m->dqb_curspace = v1_qbtos(d->dqb_curblocks); in v1_disk2mem_dqblk() 39 m->dqb_itime = d->dqb_itime; in v1_disk2mem_dqblk() 40 m->dqb_btime = d->dqb_btime; in v1_disk2mem_dqblk() 43 static void v1_mem2disk_dqblk(struct v1_disk_dqblk *d, struct mem_dqblk *m) in v1_mem2disk_dqblk() argument [all …]
|
D | dcookies.c | 96 struct dentry *d; in alloc_dcookie() local 100 d = path->dentry; in alloc_dcookie() 101 spin_lock(&d->d_lock); in alloc_dcookie() 102 d->d_flags |= DCACHE_COOKIE; in alloc_dcookie() 103 spin_unlock(&d->d_lock); in alloc_dcookie() 211 struct list_head * d; in dcookie_init() local 247 d = dcookie_hashtable; in dcookie_init() 250 INIT_LIST_HEAD(d); in dcookie_init() 251 d++; in dcookie_init() 265 struct dentry *d = dcs->path.dentry; in free_dcookie() local [all …]
|
D | xattr.c | 170 vfs_listxattr(struct dentry *d, char *list, size_t size) in vfs_listxattr() argument 174 error = security_inode_listxattr(d); in vfs_listxattr() 178 if (d->d_inode->i_op->listxattr) { in vfs_listxattr() 179 error = d->d_inode->i_op->listxattr(d, list, size); in vfs_listxattr() 181 error = security_inode_listsecurity(d->d_inode, list, size); in vfs_listxattr() 221 setxattr(struct dentry *d, const char __user *name, const void __user *value, in setxattr() argument 249 error = vfs_setxattr(d, kname, kvalue, size, flags); in setxattr() 317 getxattr(struct dentry *d, const char __user *name, void __user *value, in getxattr() argument 338 error = vfs_getxattr(d, kname, kvalue, size); in getxattr() 398 listxattr(struct dentry *d, char __user *list, size_t size) in listxattr() argument [all …]
|
/fs/ufs/ |
D | swab.h | 62 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument 65 le32_add_cpu((__le32 *)n, d); in fs32_add() 67 be32_add_cpu((__be32 *)n, d); in fs32_add() 71 fs32_sub(struct super_block *sbp, __fs32 *n, int d) in fs32_sub() argument 74 le32_add_cpu((__le32 *)n, -d); in fs32_sub() 76 be32_add_cpu((__be32 *)n, -d); in fs32_sub() 98 fs16_add(struct super_block *sbp, __fs16 *n, int d) in fs16_add() argument 101 le16_add_cpu((__le16 *)n, d); in fs16_add() 103 be16_add_cpu((__be16 *)n, d); in fs16_add() 107 fs16_sub(struct super_block *sbp, __fs16 *n, int d) in fs16_sub() argument [all …]
|
/fs/reiserfs/ |
D | hashes.c | 43 b1 += ((b0 << 4)+c) ^ (b0+sum) ^ ((b0 >> 5)+d); \ 55 u32 a, b, c, d; in keyed_hash() local 72 d = (u32) msg[12] | in keyed_hash() 91 d = pad; in keyed_hash() 93 d <<= 8; in keyed_hash() 94 d |= msg[i]; in keyed_hash() 102 c = d = pad; in keyed_hash() 111 b = c = d = pad; in keyed_hash() 117 a = b = c = d = pad; in keyed_hash()
|
/fs/fuse/ |
D | inode.c | 370 static int parse_fuse_opt(char *opt, struct fuse_mount_data *d, int is_bdev) in parse_fuse_opt() argument 373 memset(d, 0, sizeof(struct fuse_mount_data)); in parse_fuse_opt() 374 d->max_read = ~0; in parse_fuse_opt() 375 d->blksize = FUSE_DEFAULT_BLKSIZE; in parse_fuse_opt() 389 d->fd = value; in parse_fuse_opt() 390 d->fd_present = 1; in parse_fuse_opt() 398 d->rootmode = value; in parse_fuse_opt() 399 d->rootmode_present = 1; in parse_fuse_opt() 405 d->user_id = value; in parse_fuse_opt() 406 d->user_id_present = 1; in parse_fuse_opt() [all …]
|
/fs/yaffs2/ |
D | yaffs_qsort.c | 87 int d, r, swaptype, swap_cnt; in yaffs_qsort() local 104 d = (n / 8) * es; in yaffs_qsort() 105 pl = med3(pl, pl + d, pl + 2 * d, cmp); in yaffs_qsort() 106 pm = med3(pm - d, pm, pm + d, cmp); in yaffs_qsort() 107 pn = med3(pn - 2 * d, pn - d, pn, cmp); in yaffs_qsort()
|
/fs/jffs2/ |
D | summary.c | 77 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem() 80 je32_to_cpu(item->d.ino)); in jffs2_sum_add_mem() 281 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + node->d.nsize, GFP_KERNEL); in jffs2_sum_add_kvec() 286 temp->nodetype = node->d.nodetype; in jffs2_sum_add_kvec() 287 temp->totlen = node->d.totlen; in jffs2_sum_add_kvec() 289 temp->pino = node->d.pino; in jffs2_sum_add_kvec() 290 temp->version = node->d.version; in jffs2_sum_add_kvec() 291 temp->ino = node->d.ino; in jffs2_sum_add_kvec() 292 temp->nsize = node->d.nsize; in jffs2_sum_add_kvec() 293 temp->type = node->d.type; in jffs2_sum_add_kvec() [all …]
|
/fs/ocfs2/ |
D | quota_global.c | 34 struct ocfs2_global_disk_dqblk *d = dp; in ocfs2_global_disk2memdqb() local 39 m->dqb_ihardlimit = le64_to_cpu(d->dqb_ihardlimit); in ocfs2_global_disk2memdqb() 40 m->dqb_isoftlimit = le64_to_cpu(d->dqb_isoftlimit); in ocfs2_global_disk2memdqb() 43 m->dqb_curinodes = le64_to_cpu(d->dqb_curinodes); in ocfs2_global_disk2memdqb() 45 m->dqb_bhardlimit = le64_to_cpu(d->dqb_bhardlimit); in ocfs2_global_disk2memdqb() 46 m->dqb_bsoftlimit = le64_to_cpu(d->dqb_bsoftlimit); in ocfs2_global_disk2memdqb() 49 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in ocfs2_global_disk2memdqb() 51 m->dqb_btime = le64_to_cpu(d->dqb_btime); in ocfs2_global_disk2memdqb() 53 m->dqb_itime = le64_to_cpu(d->dqb_itime); in ocfs2_global_disk2memdqb() 54 OCFS2_DQUOT(dquot)->dq_use_count = le32_to_cpu(d->dqb_use_count); in ocfs2_global_disk2memdqb() [all …]
|
D | blockcheck.c | 104 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) in ocfs2_hamming_encode() argument 108 BUG_ON(!d); in ocfs2_hamming_encode() 119 for (i = 0; (i = ocfs2_find_next_bit(data, d, i)) < d; i++) in ocfs2_hamming_encode() 163 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr, in ocfs2_hamming_fix() argument 168 BUG_ON(!d); in ocfs2_hamming_fix() 181 if (fix >= calc_code_bit(nr + d, NULL)) in ocfs2_hamming_fix() 194 for (i = 0; i < d; i++, b++) in ocfs2_hamming_fix()
|
/fs/sysv/ |
D | sysv.h | 215 static inline __fs32 fs32_add(struct sysv_sb_info *sbi, __fs32 *n, int d) in fs32_add() argument 218 *(__u32*)n = PDP_swab(PDP_swab(*(__u32*)n)+d); in fs32_add() 220 le32_add_cpu((__le32 *)n, d); in fs32_add() 222 be32_add_cpu((__be32 *)n, d); in fs32_add() 242 static inline __fs16 fs16_add(struct sysv_sb_info *sbi, __fs16 *n, int d) in fs16_add() argument 245 le16_add_cpu((__le16 *)n, d); in fs16_add() 247 be16_add_cpu((__be16 *)n, d); in fs16_add()
|
/fs/ubifs/ |
D | lpt_commit.c | 1766 struct ubifs_debug_info *d = c->dbg; in dbg_chk_lpt_sz() local 1775 d->chk_lpt_sz = 0; in dbg_chk_lpt_sz() 1776 d->chk_lpt_sz2 = 0; in dbg_chk_lpt_sz() 1777 d->chk_lpt_lebs = 0; in dbg_chk_lpt_sz() 1778 d->chk_lpt_wastage = 0; in dbg_chk_lpt_sz() 1791 d->chk_lpt_sz += len; in dbg_chk_lpt_sz() 1794 d->chk_lpt_sz += len; in dbg_chk_lpt_sz() 1795 d->chk_lpt_wastage += len; in dbg_chk_lpt_sz() 1796 d->chk_lpt_lebs += 1; in dbg_chk_lpt_sz() 1800 chk_lpt_sz *= d->chk_lpt_lebs; in dbg_chk_lpt_sz() [all …]
|
D | commit.c | 473 struct ubifs_debug_info *d = c->dbg; in dbg_old_index_check_init() local 475 d->old_zroot = *zroot; in dbg_old_index_check_init() 476 lnum = d->old_zroot.lnum; in dbg_old_index_check_init() 477 offs = d->old_zroot.offs; in dbg_old_index_check_init() 478 len = d->old_zroot.len; in dbg_old_index_check_init() 488 d->old_zroot_level = le16_to_cpu(idx->level); in dbg_old_index_check_init() 489 d->old_zroot_sqnum = le64_to_cpu(idx->ch.sqnum); in dbg_old_index_check_init() 512 struct ubifs_debug_info *d = c->dbg; in dbg_check_old_index() local 529 lnum = d->old_zroot.lnum; in dbg_check_old_index() 530 offs = d->old_zroot.offs; in dbg_check_old_index() [all …]
|
D | debug.c | 871 struct ubifs_debug_info *d = c->dbg; in dbg_save_space_info() local 873 ubifs_get_lp_stats(c, &d->saved_lst); in dbg_save_space_info() 876 d->saved_free = ubifs_get_free_space_nolock(c); in dbg_save_space_info() 891 struct ubifs_debug_info *d = c->dbg; in dbg_check_space_info() local 900 if (free != d->saved_free) { in dbg_check_space_info() 902 d->saved_free, free); in dbg_check_space_info() 910 dbg_dump_lstats(&d->saved_lst); in dbg_check_space_info() 913 dbg_dump_lstats(&d->saved_lst); in dbg_check_space_info() 2160 #define chance(n, d) (simple_rand() <= (n) * 32768LL / (d)) argument 2236 struct ubifs_debug_info *d; in do_fail() local [all …]
|
/fs/9p/ |
D | fid.c | 114 struct dentry *d, *ds; in v9fs_fid_lookup() local 177 for (d = dentry, i = (n-1); i >= 0; i--, d = d->d_parent) in v9fs_fid_lookup() 178 wnames[i] = (char *) d->d_name.name; in v9fs_fid_lookup()
|