/linux-6.1.9/fs/xfs/scrub/ |
D | inode.c | 70 struct xfs_dinode *dip, in xchk_inode_extsize() argument 76 uint32_t value = be32_to_cpu(dip->di_extsize); in xchk_inode_extsize() 106 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument 115 be32_to_cpu(dip->di_cowextsize), mode, flags, in xchk_inode_cowextsize() 125 struct xfs_dinode *dip, in xchk_inode_flags() argument 170 struct xfs_dinode *dip, in xchk_inode_flags2() argument 202 if (xfs_dinode_has_bigtime(dip) && !xfs_has_bigtime(mp)) in xchk_inode_flags2() 214 struct xfs_dinode *dip, in xchk_dinode_nsec() argument 219 tv = xfs_inode_from_disk_ts(dip, ts); in xchk_dinode_nsec() 228 struct xfs_dinode *dip, in xchk_dinode() argument [all …]
|
/linux-6.1.9/fs/xfs/libxfs/ |
D | xfs_inode_buf.c | 53 struct xfs_dinode *dip; in xfs_inode_buf_verify() local 57 dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog)); in xfs_inode_buf_verify() 58 unlinked_ino = be32_to_cpu(dip->di_next_unlinked); in xfs_inode_buf_verify() 59 di_ok = xfs_verify_magic16(bp, dip->di_magic) && in xfs_inode_buf_verify() 60 xfs_dinode_good_version(mp, dip->di_version) && in xfs_inode_buf_verify() 74 be16_to_cpu(dip->di_magic)); in xfs_inode_buf_verify() 77 __func__, dip, sizeof(*dip), in xfs_inode_buf_verify() 154 struct xfs_dinode *dip, in xfs_inode_from_disk_ts() argument 160 if (xfs_dinode_has_bigtime(dip)) in xfs_inode_from_disk_ts() 353 struct xfs_dinode *dip, in xfs_dinode_verify_fork() argument [all …]
|
D | xfs_inode_fork.c | 70 struct xfs_dinode *dip, in xfs_iformat_local() argument 79 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local() 83 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local() 85 "xfs_iformat_local", dip, sizeof(*dip), in xfs_iformat_local() 90 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local() 101 struct xfs_dinode *dip, in xfs_iformat_extents() argument 107 xfs_extnum_t nex = xfs_dfork_nextents(dip, whichfork); in xfs_iformat_extents() 118 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) { in xfs_iformat_extents() 122 "xfs_iformat_extents(1)", dip, sizeof(*dip), in xfs_iformat_extents() 131 dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork); in xfs_iformat_extents() [all …]
|
D | xfs_inode_fork.h | 126 struct xfs_dinode *dip) in xfs_dfork_data_extents() argument 128 if (xfs_dinode_has_large_extent_counts(dip)) in xfs_dfork_data_extents() 129 return be64_to_cpu(dip->di_big_nextents); in xfs_dfork_data_extents() 131 return be32_to_cpu(dip->di_nextents); in xfs_dfork_data_extents() 136 struct xfs_dinode *dip) in xfs_dfork_attr_extents() argument 138 if (xfs_dinode_has_large_extent_counts(dip)) in xfs_dfork_attr_extents() 139 return be32_to_cpu(dip->di_big_anextents); in xfs_dfork_attr_extents() 141 return be16_to_cpu(dip->di_anextents); in xfs_dfork_attr_extents() 146 struct xfs_dinode *dip, in xfs_dfork_nextents() argument 151 return xfs_dfork_data_extents(dip); in xfs_dfork_nextents() [all …]
|
D | xfs_format.h | 977 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument 979 #define XFS_DFORK_DSIZE(dip,mp) \ argument 980 ((dip)->di_forkoff ? XFS_DFORK_BOFF(dip) : XFS_LITINO(mp)) 981 #define XFS_DFORK_ASIZE(dip,mp) \ argument 982 ((dip)->di_forkoff ? XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : 0) 983 #define XFS_DFORK_SIZE(dip,mp,w) \ argument 985 XFS_DFORK_DSIZE(dip, mp) : \ 986 XFS_DFORK_ASIZE(dip, mp)) 988 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument 989 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec)) [all …]
|
D | xfs_inode_buf.h | 24 void xfs_dinode_calc_crc(struct xfs_mount *mp, struct xfs_dinode *dip); 30 struct xfs_dinode *dip); 42 struct timespec64 xfs_inode_from_disk_ts(struct xfs_dinode *dip,
|
/linux-6.1.9/fs/jfs/ |
D | namei.c | 62 static int jfs_create(struct user_namespace *mnt_userns, struct inode *dip, in jfs_create() argument 74 jfs_info("jfs_create: dip:0x%p name:%pd", dip, dentry); in jfs_create() 76 rc = dquot_initialize(dip); in jfs_create() 92 ip = ialloc(dip, mode); in jfs_create() 98 tid = txBegin(dip->i_sb, 0); in jfs_create() 100 mutex_lock_nested(&JFS_IP(dip)->commit_mutex, COMMIT_MUTEX_PARENT); in jfs_create() 103 rc = jfs_init_acl(tid, ip, dip); in jfs_create() 107 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create() 113 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() 124 iplist[0] = dip; in jfs_create() [all …]
|
D | jfs_imap.c | 3024 static int copy_from_dinode(struct dinode * dip, struct inode *ip) in copy_from_dinode() argument 3029 jfs_ip->fileset = le32_to_cpu(dip->di_fileset); in copy_from_dinode() 3030 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode() 3033 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode() 3046 set_nlink(ip, le32_to_cpu(dip->di_nlink)); in copy_from_dinode() 3048 jfs_ip->saved_uid = make_kuid(&init_user_ns, le32_to_cpu(dip->di_uid)); in copy_from_dinode() 3055 jfs_ip->saved_gid = make_kgid(&init_user_ns, le32_to_cpu(dip->di_gid)); in copy_from_dinode() 3062 ip->i_size = le64_to_cpu(dip->di_size); in copy_from_dinode() 3063 ip->i_atime.tv_sec = le32_to_cpu(dip->di_atime.tv_sec); in copy_from_dinode() 3064 ip->i_atime.tv_nsec = le32_to_cpu(dip->di_atime.tv_nsec); in copy_from_dinode() [all …]
|
/linux-6.1.9/fs/gfs2/ |
D | dir.c | 606 static int dirent_check_reclen(struct gfs2_inode *dip, in dirent_check_reclen() argument 620 gfs2_consist_inode(dip); in dirent_check_reclen() 633 static int dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_next() argument 640 ret = dirent_check_reclen(dip, cur, bh_end); in dirent_next() 645 ret = dirent_check_reclen(dip, tmp, bh_end); in dirent_next() 651 gfs2_consist_inode(dip); in dirent_next() 668 static void dirent_del(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_del() argument 674 gfs2_consist_inode(dip); in dirent_del() 678 gfs2_trans_add_meta(dip->i_gl, bh); in dirent_del() 696 gfs2_consist_inode(dip); in dirent_del() [all …]
|
D | inode.c | 259 struct inode *gfs2_lookup_simple(struct inode *dip, const char *name) in gfs2_lookup_simple() argument 264 inode = gfs2_lookupi(dip, &qstr, 1); in gfs2_lookup_simple() 295 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_lookupi() local 311 if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { in gfs2_lookupi() 312 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_lookupi() 343 static int create_ok(struct gfs2_inode *dip, const struct qstr *name, in create_ok() argument 348 error = gfs2_permission(&init_user_ns, &dip->i_inode, in create_ok() 354 if (!dip->i_inode.i_nlink) in create_ok() 357 if (dip->i_entries == (u32)-1) in create_ok() 359 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok() [all …]
|
D | dentry.c | 37 struct gfs2_inode *dip; in gfs2_drevalidate() local 49 dip = GFS2_I(d_inode(parent)); in gfs2_drevalidate() 63 had_lock = (gfs2_glock_is_locked_by_me(dip->i_gl) != NULL); in gfs2_drevalidate() 65 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_drevalidate()
|
D | dir.h | 38 extern int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry); 41 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename, 44 extern int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip);
|
/linux-6.1.9/fs/freevxfs/ |
D | vxfs_inode.c | 77 struct vxfs_inode_info *vip, struct vxfs_dinode *dip) in dip2vip_cpy() argument 81 vip->vii_mode = fs32_to_cpu(sbi, dip->vdi_mode); in dip2vip_cpy() 82 vip->vii_nlink = fs32_to_cpu(sbi, dip->vdi_nlink); in dip2vip_cpy() 83 vip->vii_uid = fs32_to_cpu(sbi, dip->vdi_uid); in dip2vip_cpy() 84 vip->vii_gid = fs32_to_cpu(sbi, dip->vdi_gid); in dip2vip_cpy() 85 vip->vii_size = fs64_to_cpu(sbi, dip->vdi_size); in dip2vip_cpy() 86 vip->vii_atime = fs32_to_cpu(sbi, dip->vdi_atime); in dip2vip_cpy() 87 vip->vii_autime = fs32_to_cpu(sbi, dip->vdi_autime); in dip2vip_cpy() 88 vip->vii_mtime = fs32_to_cpu(sbi, dip->vdi_mtime); in dip2vip_cpy() 89 vip->vii_mutime = fs32_to_cpu(sbi, dip->vdi_mutime); in dip2vip_cpy() [all …]
|
D | vxfs_lookup.c | 132 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument 138 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name() 140 ino = fs32_to_cpu(VXFS_SBI(dip->i_sb), de->d_ino); in vxfs_inode_by_name() 163 vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags) in vxfs_lookup() argument 171 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup() 173 ip = vxfs_iget(dip->i_sb, ino); in vxfs_lookup()
|
/linux-6.1.9/arch/arm/mach-davinci/ |
D | common.c | 27 struct davinci_id *dip; in davinci_init_id() local 44 for (i = 0, dip = soc_info->ids; i < soc_info->ids_num; in davinci_init_id() 45 i++, dip++) in davinci_init_id() 47 if ((dip->part_no == part_no) && (dip->variant == variant)) { in davinci_init_id() 48 soc_info->cpu_id = dip->cpu_id; in davinci_init_id() 49 pr_info("DaVinci %s variant 0x%x\n", dip->name, in davinci_init_id() 50 dip->variant); in davinci_init_id()
|
/linux-6.1.9/fs/xfs/ |
D | xfs_inode_item_recover.c | 77 struct xfs_dinode *dip, in xfs_recover_inode_owner_change() argument 91 ASSERT(dip->di_version >= 3); in xfs_recover_inode_owner_change() 93 error = xfs_inode_from_disk(ip, dip); in xfs_recover_inode_owner_change() 279 struct xfs_dinode *dip; in xlog_recover_inode_commit_pass2() local 316 dip = xfs_buf_offset(bp, in_f->ilf_boffset); in xlog_recover_inode_commit_pass2() 322 if (XFS_IS_CORRUPT(mp, !xfs_verify_magic16(bp, dip->di_magic))) { in xlog_recover_inode_commit_pass2() 325 __func__, dip, bp, in_f->ilf_ino); in xlog_recover_inode_commit_pass2() 354 if (dip->di_version >= 3) { in xlog_recover_inode_commit_pass2() 355 xfs_lsn_t lsn = be64_to_cpu(dip->di_lsn); in xlog_recover_inode_commit_pass2() 373 ldip->di_flushiter < be16_to_cpu(dip->di_flushiter)) { in xlog_recover_inode_commit_pass2() [all …]
|
D | xfs_iunlink_item.c | 57 struct xfs_dinode *dip; in xfs_iunlink_log_dinode() local 73 dip = xfs_buf_offset(ibp, ip->i_imap.im_boffset); in xfs_iunlink_log_dinode() 76 if (be32_to_cpu(dip->di_next_unlinked) != iup->old_agino) { in xfs_iunlink_log_dinode() 77 xfs_inode_verifier_error(ip, -EFSCORRUPTED, __func__, dip, in xfs_iunlink_log_dinode() 78 sizeof(*dip), __this_address); in xfs_iunlink_log_dinode() 85 be32_to_cpu(dip->di_next_unlinked), iup->next_agino); in xfs_iunlink_log_dinode() 87 dip->di_next_unlinked = cpu_to_be32(iup->next_agino); in xfs_iunlink_log_dinode() 91 xfs_dinode_calc_crc(mp, dip); in xfs_iunlink_log_dinode()
|
/linux-6.1.9/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 824 static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_destroy() argument 826 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; in pvr2_v4l2_dev_destroy() 827 enum pvr2_config cfg = dip->config; in pvr2_v4l2_dev_destroy() 836 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_destroy() 840 pvr2_hdw_v4l_store_minor_number(hdw,dip->minor_type,-1); in pvr2_v4l2_dev_destroy() 843 dip->v4lp = NULL; in pvr2_v4l2_dev_destroy() 844 dip->stream = NULL; in pvr2_v4l2_dev_destroy() 848 video_unregister_device(&dip->devbase); in pvr2_v4l2_dev_destroy() 855 static void pvr2_v4l2_dev_disassociate_parent(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_disassociate_parent() argument 857 if (!dip) return; in pvr2_v4l2_dev_disassociate_parent() [all …]
|
D | pvrusb2-sysfs.c | 415 struct pvr2_sysfs_debugifc *dip; in pvr2_sysfs_add_debugifc() local 418 dip = kzalloc(sizeof(*dip),GFP_KERNEL); in pvr2_sysfs_add_debugifc() 419 if (!dip) return; in pvr2_sysfs_add_debugifc() 420 sysfs_attr_init(&dip->attr_debugcmd.attr); in pvr2_sysfs_add_debugifc() 421 dip->attr_debugcmd.attr.name = "debugcmd"; in pvr2_sysfs_add_debugifc() 422 dip->attr_debugcmd.attr.mode = S_IRUGO|S_IWUSR|S_IWGRP; in pvr2_sysfs_add_debugifc() 423 dip->attr_debugcmd.show = debugcmd_show; in pvr2_sysfs_add_debugifc() 424 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc() 425 sysfs_attr_init(&dip->attr_debuginfo.attr); in pvr2_sysfs_add_debugifc() 426 dip->attr_debuginfo.attr.name = "debuginfo"; in pvr2_sysfs_add_debugifc() [all …]
|
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/ |
D | devlink_trap_l3_drops.sh | 193 local dip=$1; shift 208 -B $dip -d 1msec -q & 229 local dip=$1; shift 243 -b $rp1mac -B $dip -d 1msec -q & 263 local dip=$1; shift 273 flower dst_ip $dip action drop 277 -B $dip -d 1msec -q & 298 local dip=$1; shift 312 -b $rp1mac -B $dip -d 1msec -q & 468 local dip=FF00:: [all …]
|
D | devlink_trap_l3_exceptions.sh | 370 local dip=$1; shift 386 ping_do $h1 $dip 401 local dip=$1; shift 417 ip $flags route add $dip via $extra_add dev $rp2 423 ping_do $h1 $dip 426 ping_do $h1 $dip 433 ip $flags route del $dip via $extra_add dev $rp2 437 ip $flags route add $dip via $via_add dev $h2 440 ping_do $h1 $dip 447 ip $flags route del $dip via $via_add dev $h2 [all …]
|
/linux-6.1.9/tools/testing/selftests/net/forwarding/ |
D | sch_ets_core.sh | 74 dip() function 85 start_traffic $h1.1$i $(sip $i) $(dip $i) $dst_mac 194 vlan_create $h2 1$i v$h2 $(dip $i)/28 285 ping_test $h1.10 $(dip 0) " vlan 10" 286 ping_test $h1.11 $(dip 1) " vlan 11" 287 ping_test $h1.12 $(dip 2) " vlan 12"
|
D | router.sh | 238 local dip=$1; shift 245 flower dst_ip $dip action pass 247 create_mcast_sg $rp1 $sip $dip $rp2 250 -B $dip -q 257 delete_mcast_sg $rp1 $sip $dip $rp2 311 local dip=169.254.1.1 316 flower dst_ip $dip action pass 321 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $rp1mac -B $dip -q
|
D | mirror_lib.sh | 34 local dip=$1; shift 39 if is_ipv6 $dip; then 48 $MZ $proto $vrf_name ${sip:+-A $sip} -B $dip -a own -b bc -q \
|
/linux-6.1.9/arch/riscv/boot/dts/canaan/ |
D | canaan_kd233.dts | 82 <K210_FPIOA(20, K210_PCF_GPIOHS4)>, /* Rot. dip sw line 8 */ 83 <K210_FPIOA(21, K210_PCF_GPIOHS5)>, /* Rot. dip sw line 4 */ 84 <K210_FPIOA(22, K210_PCF_GPIOHS6)>, /* Rot. dip sw line 2 */ 85 <K210_FPIOA(23, K210_PCF_GPIOHS7)>, /* Rot. dip sw line 1 */
|