Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/fs/xfs/scrub/
Dinode.c71 struct xfs_dinode *dip, in xchk_inode_extsize() argument
78 fa = xfs_inode_validate_extsize(sc->mp, be32_to_cpu(dip->di_extsize), in xchk_inode_extsize()
93 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument
102 be32_to_cpu(dip->di_cowextsize), mode, flags, in xchk_inode_cowextsize()
112 struct xfs_dinode *dip, in xchk_inode_flags() argument
157 struct xfs_dinode *dip, in xchk_inode_flags2() argument
193 if (xfs_dinode_has_bigtime(dip) && in xchk_inode_flags2()
206 struct xfs_dinode *dip, in xchk_dinode_nsec() argument
211 tv = xfs_inode_from_disk_ts(dip, ts); in xchk_dinode_nsec()
220 struct xfs_dinode *dip, in xchk_dinode() argument
[all …]
Dialloc.c149 struct xfs_dinode *dip) in xchk_iallocbt_check_cluster_ifree() argument
170 if (be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC || in xchk_iallocbt_check_cluster_ifree()
171 (dip->di_version >= 3 && be64_to_cpu(dip->di_ino) != fsino)) { in xchk_iallocbt_check_cluster_ifree()
180 freemask_ok = irec_free ^ !!(dip->di_mode); in xchk_iallocbt_check_cluster_ifree()
215 struct xfs_dinode *dip; in xchk_iallocbt_check_cluster() local
281 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &dip, &cluster_bp, 0); in xchk_iallocbt_check_cluster()
287 struct xfs_dinode *dip; in xchk_iallocbt_check_cluster() local
294 dip = xfs_buf_offset(cluster_bp, imap.im_boffset); in xchk_iallocbt_check_cluster()
296 cluster_base + cluster_index, dip); in xchk_iallocbt_check_cluster()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_inode_buf.c55 xfs_dinode_t *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->m_sb, 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()
174 struct xfs_dinode *dip, in xfs_inode_from_disk_ts() argument
180 if (xfs_dinode_has_bigtime(dip)) in xfs_inode_from_disk_ts()
356 struct xfs_dinode *dip, in xfs_dinode_verify_fork() argument
[all …]
Dxfs_inode_fork.c71 xfs_dinode_t *dip, in xfs_iformat_local() argument
80 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { in xfs_iformat_local()
84 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); in xfs_iformat_local()
86 "xfs_iformat_local", dip, sizeof(*dip), in xfs_iformat_local()
91 xfs_init_local_fork(ip, whichfork, XFS_DFORK_PTR(dip, whichfork), size); in xfs_iformat_local()
102 struct xfs_dinode *dip, in xfs_iformat_extents() argument
108 int nex = XFS_DFORK_NEXTENTS(dip, whichfork); in xfs_iformat_extents()
119 if (unlikely(size < 0 || size > XFS_DFORK_SIZE(dip, mp, whichfork))) { in xfs_iformat_extents()
123 "xfs_iformat_extents(1)", dip, sizeof(*dip), in xfs_iformat_extents()
132 dp = (xfs_bmbt_rec_t *) XFS_DFORK_PTR(dip, whichfork); in xfs_iformat_extents()
[all …]
Dxfs_format.h1069 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument
1071 #define XFS_DFORK_DSIZE(dip,mp) \ argument
1072 ((dip)->di_forkoff ? XFS_DFORK_BOFF(dip) : XFS_LITINO(mp))
1073 #define XFS_DFORK_ASIZE(dip,mp) \ argument
1074 ((dip)->di_forkoff ? XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : 0)
1075 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
1077 XFS_DFORK_DSIZE(dip, mp) : \
1078 XFS_DFORK_ASIZE(dip, mp))
1080 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument
1081 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
[all …]
Dxfs_inode_buf.h59 struct xfs_dinode *dip);
71 struct timespec64 xfs_inode_from_disk_ts(struct xfs_dinode *dip,
/kernel/linux/linux-5.10/fs/jfs/
Dnamei.c62 static int jfs_create(struct inode *dip, struct dentry *dentry, umode_t mode, 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.c3026 static int copy_from_dinode(struct dinode * dip, struct inode *ip) in copy_from_dinode() argument
3031 jfs_ip->fileset = le32_to_cpu(dip->di_fileset); in copy_from_dinode()
3032 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode()
3035 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode()
3048 set_nlink(ip, le32_to_cpu(dip->di_nlink)); in copy_from_dinode()
3050 jfs_ip->saved_uid = make_kuid(&init_user_ns, le32_to_cpu(dip->di_uid)); in copy_from_dinode()
3057 jfs_ip->saved_gid = make_kgid(&init_user_ns, le32_to_cpu(dip->di_gid)); in copy_from_dinode()
3064 ip->i_size = le64_to_cpu(dip->di_size); in copy_from_dinode()
3065 ip->i_atime.tv_sec = le32_to_cpu(dip->di_atime.tv_sec); in copy_from_dinode()
3066 ip->i_atime.tv_nsec = le32_to_cpu(dip->di_atime.tv_nsec); in copy_from_dinode()
[all …]
/kernel/linux/linux-5.10/fs/gfs2/
Ddir.c607 static int dirent_check_reclen(struct gfs2_inode *dip, in dirent_check_reclen() argument
621 gfs2_consist_inode(dip); in dirent_check_reclen()
634 static int dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_next() argument
641 ret = dirent_check_reclen(dip, cur, bh_end); in dirent_next()
646 ret = dirent_check_reclen(dip, tmp, bh_end); in dirent_next()
652 gfs2_consist_inode(dip); in dirent_next()
669 static void dirent_del(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_del() argument
675 gfs2_consist_inode(dip); in dirent_del()
679 gfs2_trans_add_meta(dip->i_gl, bh); in dirent_del()
697 gfs2_consist_inode(dip); in dirent_del()
[all …]
Dinode.c264 struct inode *gfs2_lookup_simple(struct inode *dip, const char *name) in gfs2_lookup_simple() argument
269 inode = gfs2_lookupi(dip, &qstr, 1); in gfs2_lookup_simple()
301 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_lookupi() local
317 if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { in gfs2_lookupi()
318 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_lookupi()
349 static int create_ok(struct gfs2_inode *dip, const struct qstr *name, in create_ok() argument
354 error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC); in create_ok()
359 if (!dip->i_inode.i_nlink) in create_ok()
362 if (dip->i_entries == (u32)-1) in create_ok()
364 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()
Ddir.h38 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);
/kernel/linux/linux-5.10/fs/freevxfs/
Dvxfs_inode.c101 struct vxfs_inode_info *vip, struct vxfs_dinode *dip) in dip2vip_cpy() argument
105 vip->vii_mode = fs32_to_cpu(sbi, dip->vdi_mode); in dip2vip_cpy()
106 vip->vii_nlink = fs32_to_cpu(sbi, dip->vdi_nlink); in dip2vip_cpy()
107 vip->vii_uid = fs32_to_cpu(sbi, dip->vdi_uid); in dip2vip_cpy()
108 vip->vii_gid = fs32_to_cpu(sbi, dip->vdi_gid); in dip2vip_cpy()
109 vip->vii_size = fs64_to_cpu(sbi, dip->vdi_size); in dip2vip_cpy()
110 vip->vii_atime = fs32_to_cpu(sbi, dip->vdi_atime); in dip2vip_cpy()
111 vip->vii_autime = fs32_to_cpu(sbi, dip->vdi_autime); in dip2vip_cpy()
112 vip->vii_mtime = fs32_to_cpu(sbi, dip->vdi_mtime); in dip2vip_cpy()
113 vip->vii_mutime = fs32_to_cpu(sbi, dip->vdi_mutime); in dip2vip_cpy()
[all …]
Dvxfs_lookup.c156 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument
162 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name()
164 ino = fs32_to_cpu(VXFS_SBI(dip->i_sb), de->d_ino); in vxfs_inode_by_name()
187 vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags) in vxfs_lookup() argument
195 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup()
197 ip = vxfs_iget(dip->i_sb, ino); in vxfs_lookup()
/kernel/linux/linux-5.10/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()
205 struct xfs_dinode *dip; in xlog_recover_inode_commit_pass2() local
242 dip = xfs_buf_offset(bp, in_f->ilf_boffset); in xlog_recover_inode_commit_pass2()
248 if (XFS_IS_CORRUPT(mp, !xfs_verify_magic16(bp, dip->di_magic))) { in xlog_recover_inode_commit_pass2()
251 __func__, dip, bp, in_f->ilf_ino); in xlog_recover_inode_commit_pass2()
280 if (dip->di_version >= 3) { in xlog_recover_inode_commit_pass2()
281 xfs_lsn_t lsn = be64_to_cpu(dip->di_lsn); in xlog_recover_inode_commit_pass2()
299 ldip->di_flushiter < be16_to_cpu(dip->di_flushiter)) { in xlog_recover_inode_commit_pass2()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-davinci/
Dcommon.c29 struct davinci_id *dip; in davinci_init_id() local
46 for (i = 0, dip = soc_info->ids; i < soc_info->ids_num; in davinci_init_id()
47 i++, dip++) in davinci_init_id()
49 if ((dip->part_no == part_no) && (dip->variant == variant)) { in davinci_init_id()
50 soc_info->cpu_id = dip->cpu_id; in davinci_init_id()
51 pr_info("DaVinci %s variant 0x%x\n", dip->name, in davinci_init_id()
52 dip->variant); in davinci_init_id()
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c828 static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_destroy() argument
830 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; in pvr2_v4l2_dev_destroy()
831 enum pvr2_config cfg = dip->config; in pvr2_v4l2_dev_destroy()
840 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_destroy()
844 pvr2_hdw_v4l_store_minor_number(hdw,dip->minor_type,-1); in pvr2_v4l2_dev_destroy()
847 dip->v4lp = NULL; in pvr2_v4l2_dev_destroy()
848 dip->stream = NULL; in pvr2_v4l2_dev_destroy()
852 video_unregister_device(&dip->devbase); in pvr2_v4l2_dev_destroy()
859 static void pvr2_v4l2_dev_disassociate_parent(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_disassociate_parent() argument
861 if (!dip) return; in pvr2_v4l2_dev_disassociate_parent()
[all …]
Dpvrusb2-sysfs.c415 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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_l3_drops.sh192 local dip=$1; shift
207 -B $dip -d 1msec -q &
228 local dip=$1; shift
242 -b $rp1mac -B $dip -d 1msec -q &
262 local dip=$1; shift
272 flower dst_ip $dip action drop
276 -B $dip -d 1msec -q &
297 local dip=$1; shift
311 -b $rp1mac -B $dip -d 1msec -q &
467 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
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
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.sh220 local dip=$1; shift
227 flower dst_ip $dip action pass
229 create_mcast_sg $rp1 $sip $dip $rp2
232 -B $dip -q
239 delete_mcast_sg $rp1 $sip $dip $rp2
293 local dip=169.254.1.1
298 flower dst_ip $dip action pass
303 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $rp1mac -B $dip -q
Dmirror_lib.sh34 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 \
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ipip.c185 u32 dip, u8 prefix_len, u16 ul_vr_id, in mlxsw_sp_ipip_fib_entry_op_gre4_ralue() argument
192 ul_vr_id, prefix_len, dip); in mlxsw_sp_ipip_fib_entry_op_gre4_ralue()
203 __be32 dip; in mlxsw_sp_ipip_fib_entry_op_gre4() local
211 dip = mlxsw_sp_ipip_netdev_saddr(MLXSW_SP_L3_PROTO_IPV4, in mlxsw_sp_ipip_fib_entry_op_gre4()
213 return mlxsw_sp_ipip_fib_entry_op_gre4_ralue(mlxsw_sp, be32_to_cpu(dip), in mlxsw_sp_ipip_fib_entry_op_gre4()
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_among.c138 __be32 dip = 0, sip = 0; in ebt_among_mt() local
160 if (get_ip_dst(skb, &dip)) in ebt_among_mt()
164 if (!ebt_mac_wormhash_contains(wh_dst, dmac, dip)) in ebt_among_mt()
168 if (ebt_mac_wormhash_contains(wh_dst, dmac, dip)) in ebt_among_mt()

123