| /linux/fs/xfs/scrub/ |
| H A D | inode_repair.c | 174 struct xfs_dinode *dip = xfs_buf_offset(bp, ioffset); in xrep_dinode_buf_core() local 182 agino = be32_to_cpu(dip->di_next_unlinked); in xrep_dinode_buf_core() 187 if (dip->di_magic == cpu_to_be16(XFS_DINODE_MAGIC) && in xrep_dinode_buf_core() 188 xfs_dinode_good_version(mp, dip->di_version)) in xrep_dinode_buf_core() 191 if (xfs_verify_cksum((char *)dip, mp->m_sb.sb_inodesize, in xrep_dinode_buf_core() 199 dip->di_magic = cpu_to_be16(XFS_DINODE_MAGIC); in xrep_dinode_buf_core() 200 dip->di_version = 3; in xrep_dinode_buf_core() 203 dip->di_next_unlinked = cpu_to_be32(NULLAGINO); in xrep_dinode_buf_core() 204 xfs_dinode_calc_crc(mp, dip); in xrep_dinode_buf_core() 229 struct xfs_dinode *dip) in xrep_dinode_header() argument [all …]
|
| H A D | inode.c | 236 struct xfs_dinode *dip, in xchk_inode_extsize() argument 242 uint32_t value = be32_to_cpu(dip->di_extsize); in xchk_inode_extsize() 267 struct xfs_dinode *dip, in xchk_inode_cowextsize() argument 274 uint32_t value = be32_to_cpu(dip->di_cowextsize); in xchk_inode_cowextsize() 280 dip->di_metatype == cpu_to_be16(XFS_METAFILE_RTRMAP)) in xchk_inode_cowextsize() 306 struct xfs_dinode *dip, in xchk_inode_flags() argument 351 struct xfs_dinode *dip, in xchk_inode_flags2() argument 384 if (xfs_dinode_has_bigtime(dip) && !xfs_has_bigtime(mp)) in xchk_inode_flags2() 400 struct xfs_dinode *dip, in xchk_dinode_nsec() argument 405 tv = xfs_inode_from_disk_ts(dip, ts); in xchk_dinode_nsec() [all …]
|
| H A D | ialloc.c | 308 struct xfs_dinode *dip) in xchk_iallocbt_check_cluster_ifree() argument 328 if (be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC || in xchk_iallocbt_check_cluster_ifree() 329 (dip->di_version >= 3 && be64_to_cpu(dip->di_ino) != fsino)) { in xchk_iallocbt_check_cluster_ifree() 337 freemask_ok = irec_free ^ !!(dip->di_mode); in xchk_iallocbt_check_cluster_ifree() 443 struct xfs_dinode *dip; in xchk_iallocbt_check_cluster() local 450 dip = xfs_buf_offset(cluster_bp, imap.im_boffset); in xchk_iallocbt_check_cluster() 452 cluster_base + cluster_index, dip); in xchk_iallocbt_check_cluster()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_inode_buf.c | 57 struct xfs_dinode *dip; in xfs_inode_buf_verify() local 61 dip = xfs_buf_offset(bp, (i << mp->m_sb.sb_inodelog)); in xfs_inode_buf_verify() 62 unlinked_ino = be32_to_cpu(dip->di_next_unlinked); in xfs_inode_buf_verify() 63 di_ok = xfs_verify_magic16(bp, dip->di_magic) && in xfs_inode_buf_verify() 64 xfs_dinode_good_version(mp, dip->di_version) && in xfs_inode_buf_verify() 77 be16_to_cpu(dip->di_magic)); in xfs_inode_buf_verify() 80 __func__, dip, sizeof(*dip), in xfs_inode_buf_verify() 162 struct xfs_dinode *dip, in xfs_inode_from_disk_ts() argument 168 if (xfs_dinode_has_bigtime(dip)) in xfs_inode_from_disk_ts() 378 struct xfs_dinode *dip, in xfs_dinode_verify_fork() argument [all …]
|
| H A D | xfs_inode_fork.h | 125 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 …]
|
| H A D | xfs_format.h | 1099 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument 1101 #define XFS_DFORK_DSIZE(dip,mp) \ argument 1102 ((dip)->di_forkoff ? XFS_DFORK_BOFF(dip) : XFS_LITINO(mp)) 1103 #define XFS_DFORK_ASIZE(dip,mp) \ argument 1104 ((dip)->di_forkoff ? XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : 0) 1105 #define XFS_DFORK_SIZE(dip,mp,w) \ argument 1107 XFS_DFORK_DSIZE(dip, mp) : \ 1108 XFS_DFORK_ASIZE(dip, mp)) 1110 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument 1111 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec)) [all …]
|
| H A D | xfs_rtrefcount_btree.c | 634 struct xfs_dinode *dip) in xfs_iformat_rtrefcount() argument 637 struct xfs_rtrefcount_root *dfp = XFS_DFORK_PTR(dip, XFS_DATA_FORK); in xfs_iformat_rtrefcount() 653 dsize = XFS_DFORK_SIZE(dip, mp, XFS_DATA_FORK); in xfs_iformat_rtrefcount() 720 struct xfs_dinode *dip) in xfs_iflush_rtrefcount() argument 723 struct xfs_rtrefcount_root *dfp = XFS_DFORK_PTR(dip, XFS_DATA_FORK); in xfs_iflush_rtrefcount() 731 XFS_DFORK_SIZE(dip, ip->i_mount, XFS_DATA_FORK)); in xfs_iflush_rtrefcount()
|
| H A D | xfs_rtrefcount_btree.h | 180 int xfs_iformat_rtrefcount(struct xfs_inode *ip, struct xfs_dinode *dip); 184 void xfs_iflush_rtrefcount(struct xfs_inode *ip, struct xfs_dinode *dip);
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | tc_flower_port_range.sh | 81 local dip=$1; shift 96 flower src_ip $sip dst_ip $dip ip_proto $ip_proto \ 101 flower src_ip $sip dst_ip $dip ip_proto $ip_proto \ 106 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 113 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 120 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 129 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 131 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 133 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 135 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ [all …]
|
| H A D | tc_flower_l2_miss.sh | 74 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 …]
|
| H A D | router.sh | 241 local dip=$1; shift 248 flower dst_ip $dip action pass 250 create_mcast_sg $rp1 $sip $dip $rp2 253 -B $dip -q 260 delete_mcast_sg $rp1 $sip $dip $rp2 314 local dip=169.254.1.1 319 flower dst_ip $dip action pass 324 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $rp1mac -B $dip -q
|
| H A D | mirror_lib.sh | 34 local dip=$1; shift 39 if is_ipv6 $dip; then 52 $MZ $proto $vrf_name ${sip:+-A $sip} -B $dip -a own -b bc -q \
|
| H A D | lib.sh | 1444 -w $PING_TIMEOUT $dip &> /dev/null 1475 -w $PING_TIMEOUT $dip &> /dev/null 1670 local dip=$1; shift 1674 $MZ $h_in -p $pktsize -A $sip -B $dip -c 0 \ 1684 local dip=$1; shift 1688 __start_traffic $pktsize udp "$h_in" "$sip" "$dip" "$dmac" \ 1697 local dip=$1; shift 1701 __start_traffic $pktsize tcp "$h_in" "$sip" "$dip" "$dmac" \ 1709 local dip=$1; shift 1713 start_traffic_pktsize 8000 "$h_in" "$sip" "$dip" "$dmac" \ [all …]
|
| /linux/arch/arm/mach-davinci/ |
| H A D | common.c | 28 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/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-v4l2.c | 803 static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_destroy() argument 805 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; in pvr2_v4l2_dev_destroy() 806 enum pvr2_config cfg = dip->config; in pvr2_v4l2_dev_destroy() 815 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_destroy() 819 pvr2_hdw_v4l_store_minor_number(hdw,dip->minor_type,-1); in pvr2_v4l2_dev_destroy() 822 dip->v4lp = NULL; in pvr2_v4l2_dev_destroy() 823 dip->stream = NULL; in pvr2_v4l2_dev_destroy() 827 video_unregister_device(&dip->devbase); in pvr2_v4l2_dev_destroy() 834 static void pvr2_v4l2_dev_disassociate_parent(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_disassociate_parent() argument 836 if (!dip) return; in pvr2_v4l2_dev_disassociate_parent() [all …]
|
| H A D | pvrusb2-sysfs.c | 411 struct pvr2_sysfs_debugifc *dip; in pvr2_sysfs_add_debugifc() local 414 dip = kzalloc_obj(*dip); 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/fs/gfs2/ |
| H A D | dentry.c | 39 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_drevalidate() local 60 had_lock = (gfs2_glock_is_locked_by_me(dip->i_gl) != NULL); in gfs2_drevalidate() 62 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_drevalidate()
|
| H A D | dir.h | 38 int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry); 41 int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename, 44 int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip);
|
| /linux/arch/riscv/boot/dts/canaan/ |
| H A D | canaan_kd233.dts | 85 <K210_FPIOA(20, K210_PCF_GPIOHS4)>, /* Rot. dip sw line 8 */ 86 <K210_FPIOA(21, K210_PCF_GPIOHS5)>, /* Rot. dip sw line 4 */ 87 <K210_FPIOA(22, K210_PCF_GPIOHS6)>, /* Rot. dip sw line 2 */ 88 <K210_FPIOA(23, K210_PCF_GPIOHS7)>, /* Rot. dip sw line 1 */
|
| /linux/fs/btrfs/ |
| H A D | direct-io.c | 707 struct btrfs_dio_private *dip = in btrfs_dio_end_io() local 716 dip->file_offset, dip->bytes, bio->bi_status); in btrfs_dio_end_io() 720 btrfs_finish_ordered_extent(bbio->ordered, dip->file_offset, in btrfs_dio_end_io() 721 dip->bytes, !bio->bi_status); in btrfs_dio_end_io() 723 btrfs_unlock_dio_extent(&inode->io_tree, dip->file_offset, in btrfs_dio_end_io() 724 dip->file_offset + dip->bytes - 1, NULL); in btrfs_dio_end_io() 773 struct btrfs_dio_private *dip = in btrfs_dio_submit_io() local 780 dip->file_offset = file_offset; in btrfs_dio_submit_io() 781 dip->bytes = bio->bi_iter.bi_size; in btrfs_dio_submit_io() 796 file_offset, dip->bytes, in btrfs_dio_submit_io()
|
| /linux/tools/testing/selftests/net/ |
| H A D | tun.c | 869 void *sip, *dip, *smac, *dmac; in receive_gso_packet_from_tunnel() 881 assign_ifaddr_vars(family, 1, &sip, &dip, &smac, &dmac); in send_gso_packet_into_tunnel() 885 ret = ip_neigh_add(self->ifname, family, dip, dmac); in send_gso_packet_into_tunnel() 890 ret = geneve_create(param_dev_geneve_name, family, dip, in receive_gso_packet_from_tun() 896 assign_ifaddr_vars(family, 0, &sip, &dip, &smac, &dmac); in receive_gso_packet_from_tun() 900 ret = ip_neigh_add(param_dev_geneve_name, family, dip, dmac); in receive_gso_packet_from_tun() 933 void *sip, *dip, *smac, *dmac; in receive_gso_packet_from_tun() 946 assign_ifaddr_vars(outer_family, 1, &sip, &dip, &smac, &dmac); in TEST_F() 956 cur += build_ipv4_header(cur, IPPROTO_UDP, pktlen, dip, sip); in TEST_F() 959 cur += build_ipv6_header(cur, IPPROTO_UDP, 0, pktlen, dip, si in TEST_F() 733 void *sip, *dip, *smac, *dmac; FIXTURE_SETUP() local 797 void *sip, *dip, *smac, *dmac; build_gso_packet_into_tun() local [all...] |
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_vop2_reg.c | 1394 u32 die, dip; in rk3568_set_intf_mux() local 1397 dip = vop2_readl(vop2, RK3568_DSP_IF_POL); in rk3568_set_intf_mux() 1404 dip &= ~RK3568_DSP_IF_POL__RGB_LVDS_PIN_POL; in rk3568_set_intf_mux() 1405 dip |= FIELD_PREP(RK3568_DSP_IF_POL__RGB_LVDS_PIN_POL, polflags); in rk3568_set_intf_mux() 1415 dip &= ~RK3568_DSP_IF_POL__HDMI_PIN_POL; in rk3568_set_intf_mux() 1416 dip |= FIELD_PREP(RK3568_DSP_IF_POL__HDMI_PIN_POL, polflags); in rk3568_set_intf_mux() 1422 dip &= ~RK3568_DSP_IF_POL__EDP_PIN_POL; in rk3568_set_intf_mux() 1423 dip |= FIELD_PREP(RK3568_DSP_IF_POL__EDP_PIN_POL, polflags); in rk3568_set_intf_mux() 1429 dip &= ~RK3568_DSP_IF_POL__MIPI_PIN_POL; in rk3568_set_intf_mux() 1430 dip |= FIELD_PREP(RK3568_DSP_IF_POL__MIPI_PIN_POL, polflags); in rk3568_set_intf_mux() [all …]
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_among.c | 138 __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()
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfa_port.c | 23 u32 *dip = (u32 *) stats; in bfa_port_stats_swap() local 29 t0 = dip[i]; in bfa_port_stats_swap() 30 t1 = dip[i + 1]; in bfa_port_stats_swap() 32 dip[i] = be32_to_cpu(t0); in bfa_port_stats_swap() 33 dip[i + 1] = be32_to_cpu(t1); in bfa_port_stats_swap() 35 dip[i] = be32_to_cpu(t1); in bfa_port_stats_swap() 36 dip[i + 1] = be32_to_cpu(t0); in bfa_port_stats_swap()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | generate_udp_fragments.py | 65 dip = VETH1_ADDR 72 pkt = IP(src=sip,dst=dip) / UDP(sport=sport,dport=dport,chksum=0) / Raw(load=payload)
|