Home
last modified time | relevance | path

Searched refs:dip (Results 1 – 25 of 77) sorted by relevance

1234

/linux-6.12.1/fs/xfs/scrub/
Dinode_repair.c171 struct xfs_dinode *dip = xfs_buf_offset(bp, ioffset); in xrep_dinode_buf_core() local
179 agino = be32_to_cpu(dip->di_next_unlinked); in xrep_dinode_buf_core()
184 if (dip->di_magic == cpu_to_be16(XFS_DINODE_MAGIC) && in xrep_dinode_buf_core()
185 xfs_dinode_good_version(mp, dip->di_version)) in xrep_dinode_buf_core()
188 if (xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize, in xrep_dinode_buf_core()
196 dip->di_magic = cpu_to_be16(XFS_DINODE_MAGIC); in xrep_dinode_buf_core()
197 dip->di_version = 3; in xrep_dinode_buf_core()
200 dip->di_next_unlinked = cpu_to_be32(NULLAGINO); in xrep_dinode_buf_core()
201 xfs_dinode_calc_crc(mp, dip); in xrep_dinode_buf_core()
226 struct xfs_dinode *dip) in xrep_dinode_header() argument
[all …]
Dinode.c214 struct xfs_dinode *dip, in xchk_inode_extsize() argument
220 uint32_t value = be32_to_cpu(dip->di_extsize); in xchk_inode_extsize()
250 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument
259 be32_to_cpu(dip->di_cowextsize), mode, flags, in xchk_inode_cowextsize()
269 struct xfs_dinode *dip, in xchk_inode_flags() argument
314 struct xfs_dinode *dip, in xchk_inode_flags2() argument
346 if (xfs_dinode_has_bigtime(dip) && !xfs_has_bigtime(mp)) in xchk_inode_flags2()
362 struct xfs_dinode *dip, in xchk_dinode_nsec() argument
367 tv = xfs_inode_from_disk_ts(dip, ts); in xchk_dinode_nsec()
376 struct xfs_dinode *dip, in xchk_dinode() argument
[all …]
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_inode_buf.c54 struct xfs_dinode *dip; in xfs_inode_buf_verify() local
58 dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog)); in xfs_inode_buf_verify()
59 unlinked_ino = be32_to_cpu(dip->di_next_unlinked); in xfs_inode_buf_verify()
60 di_ok = xfs_verify_magic16(bp, dip->di_magic) && in xfs_inode_buf_verify()
61 xfs_dinode_good_version(mp, dip->di_version) && in xfs_inode_buf_verify()
75 be16_to_cpu(dip->di_magic)); in xfs_inode_buf_verify()
78 __func__, dip, sizeof(*dip), in xfs_inode_buf_verify()
160 struct xfs_dinode *dip, in xfs_inode_from_disk_ts() argument
166 if (xfs_dinode_has_bigtime(dip)) in xfs_inode_from_disk_ts()
362 struct xfs_dinode *dip, in xfs_dinode_verify_fork() argument
[all …]
Dxfs_inode_fork.c76 struct xfs_dinode *dip, in xfs_iformat_local() argument
85 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
89 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
91 "xfs_iformat_local", dip, sizeof(*dip), in xfs_iformat_local()
97 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local()
108 struct xfs_dinode *dip, in xfs_iformat_extents() argument
114 xfs_extnum_t nex = xfs_dfork_nextents(dip, whichfork); in xfs_iformat_extents()
125 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) { in xfs_iformat_extents()
129 "xfs_iformat_extents(1)", dip, sizeof(*dip), in xfs_iformat_extents()
139 dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork); in xfs_iformat_extents()
[all …]
Dxfs_inode_fork.h125 struct xfs_dinode *dip) in xfs_dfork_data_extents() argument
127 if (xfs_dinode_has_large_extent_counts(dip)) in xfs_dfork_data_extents()
128 return be64_to_cpu(dip->di_big_nextents); in xfs_dfork_data_extents()
130 return be32_to_cpu(dip->di_nextents); in xfs_dfork_data_extents()
135 struct xfs_dinode *dip) in xfs_dfork_attr_extents() argument
137 if (xfs_dinode_has_large_extent_counts(dip)) in xfs_dfork_attr_extents()
138 return be32_to_cpu(dip->di_big_anextents); in xfs_dfork_attr_extents()
140 return be16_to_cpu(dip->di_anextents); in xfs_dfork_attr_extents()
145 struct xfs_dinode *dip, in xfs_dfork_nextents() argument
150 return xfs_dfork_data_extents(dip); in xfs_dfork_nextents()
[all …]
Dxfs_format.h1001 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument
1003 #define XFS_DFORK_DSIZE(dip,mp) \ argument
1004 ((dip)->di_forkoff ? XFS_DFORK_BOFF(dip) : XFS_LITINO(mp))
1005 #define XFS_DFORK_ASIZE(dip,mp) \ argument
1006 ((dip)->di_forkoff ? XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : 0)
1007 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
1009 XFS_DFORK_DSIZE(dip, mp) : \
1010 XFS_DFORK_ASIZE(dip, mp))
1012 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument
1013 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
[all …]
Dxfs_inode_buf.h24 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.12.1/fs/jfs/
Dnamei.c62 static int jfs_create(struct mnt_idmap *idmap, 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 …]
Djfs_imap.c3034 static int copy_from_dinode(struct dinode * dip, struct inode *ip) in copy_from_dinode() argument
3039 jfs_ip->fileset = le32_to_cpu(dip->di_fileset); in copy_from_dinode()
3040 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode()
3043 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode()
3056 set_nlink(ip, le32_to_cpu(dip->di_nlink)); in copy_from_dinode()
3058 jfs_ip->saved_uid = make_kuid(&init_user_ns, le32_to_cpu(dip->di_uid)); in copy_from_dinode()
3065 jfs_ip->saved_gid = make_kgid(&init_user_ns, le32_to_cpu(dip->di_gid)); in copy_from_dinode()
3072 ip->i_size = le64_to_cpu(dip->di_size); in copy_from_dinode()
3073 inode_set_atime(ip, le32_to_cpu(dip->di_atime.tv_sec), in copy_from_dinode()
3074 le32_to_cpu(dip->di_atime.tv_nsec)); in copy_from_dinode()
[all …]
/linux-6.12.1/fs/gfs2/
Ddir.c607 static int dirent_check_reclen(struct gfs2_inode *dip, in dirent_check_reclen() argument
614 gfs2_consist_inode(dip); in dirent_check_reclen()
623 gfs2_consist_inode(dip); in dirent_check_reclen()
636 static int dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_next() argument
643 ret = dirent_check_reclen(dip, cur, bh_end); in dirent_next()
648 ret = dirent_check_reclen(dip, tmp, bh_end); in dirent_next()
654 gfs2_consist_inode(dip); in dirent_next()
671 static void dirent_del(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_del() argument
677 gfs2_consist_inode(dip); in dirent_del()
681 gfs2_trans_add_meta(dip->i_gl, bh); in dirent_del()
[all …]
Dinode.c274 struct inode *gfs2_lookup_meta(struct inode *dip, const char *name) in gfs2_lookup_meta() argument
280 inode = gfs2_lookupi(dip, &qstr, 1); in gfs2_lookup_meta()
312 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_lookupi() local
328 if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { in gfs2_lookupi()
329 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_lookupi()
360 static int create_ok(struct gfs2_inode *dip, const struct qstr *name, in create_ok() argument
365 error = gfs2_permission(&nop_mnt_idmap, &dip->i_inode, in create_ok()
371 if (!dip->i_inode.i_nlink) in create_ok()
374 if (dip->i_entries == (u32)-1) in create_ok()
376 if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) in create_ok()
[all …]
Ddentry.c37 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()
/linux-6.12.1/fs/freevxfs/
Dvxfs_inode.c77 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 …]
Dvxfs_lookup.c132 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.12.1/tools/testing/selftests/net/forwarding/
Dtc_flower_l2_miss.sh74 local dip=192.0.2.2
82 dst_ip $dip action pass
86 dst_ip $dip action pass
89 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
100 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
111 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
129 local dip=$1; shift
138 flower indev $swp1 l2_miss 1 src_ip $sip dst_ip $dip \
142 flower indev $swp1 l2_miss 0 src_ip $sip dst_ip $dip \
146 $MZ $mode $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q
[all …]
Dtc_flower_port_range.sh80 local dip=$1; shift
95 flower src_ip $sip dst_ip $dip ip_proto $ip_proto \
100 flower src_ip $sip dst_ip $dip ip_proto $ip_proto \
105 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
112 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
119 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
128 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
130 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
132 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
134 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \
[all …]
Dsch_ets_core.sh74 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"
Drouter.sh238 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
/linux-6.12.1/arch/arm/mach-davinci/
Dcommon.c28 struct davinci_id *dip; in davinci_init_id() local
45 for (i = 0, dip = soc_info->ids; i < soc_info->ids_num; in davinci_init_id()
46 i++, dip++) in davinci_init_id()
48 if ((dip->part_no == part_no) && (dip->variant == variant)) { in davinci_init_id()
49 soc_info->cpu_id = dip->cpu_id; in davinci_init_id()
50 pr_info("DaVinci %s variant 0x%x\n", dip->name, in davinci_init_id()
51 dip->variant); in davinci_init_id()
/linux-6.12.1/fs/xfs/
Dxfs_inode_item_recover.c77 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
318 dip = xfs_buf_offset(bp, in_f->ilf_boffset); in xlog_recover_inode_commit_pass2()
324 if (XFS_IS_CORRUPT(mp, !xfs_verify_magic16(bp, dip->di_magic))) { in xlog_recover_inode_commit_pass2()
327 __func__, dip, bp, in_f->ilf_ino); in xlog_recover_inode_commit_pass2()
356 if (dip->di_version >= 3) { in xlog_recover_inode_commit_pass2()
357 xfs_lsn_t lsn = be64_to_cpu(dip->di_lsn); in xlog_recover_inode_commit_pass2()
375 if (ldip->di_flushiter < be16_to_cpu(dip->di_flushiter)) { in xlog_recover_inode_commit_pass2()
[all …]
Dxfs_iunlink_item.c57 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.12.1/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c824 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 …]
Dpvrusb2-sysfs.c411 struct pvr2_sysfs_debugifc *dip; in pvr2_sysfs_add_debugifc() local
414 dip = kzalloc(sizeof(*dip),GFP_KERNEL); in pvr2_sysfs_add_debugifc()
415 if (!dip) return; in pvr2_sysfs_add_debugifc()
416 sysfs_attr_init(&dip->attr_debugcmd.attr); in pvr2_sysfs_add_debugifc()
417 dip->attr_debugcmd.attr.name = "debugcmd"; in pvr2_sysfs_add_debugifc()
418 dip->attr_debugcmd.attr.mode = S_IRUGO|S_IWUSR|S_IWGRP; in pvr2_sysfs_add_debugifc()
419 dip->attr_debugcmd.show = debugcmd_show; in pvr2_sysfs_add_debugifc()
420 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc()
421 sysfs_attr_init(&dip->attr_debuginfo.attr); in pvr2_sysfs_add_debugifc()
422 dip->attr_debuginfo.attr.name = "debuginfo"; in pvr2_sysfs_add_debugifc()
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_l3_drops.sh193 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 …]
Ddevlink_trap_l3_exceptions.sh370 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 …]

1234