/linux-master/tools/testing/selftests/net/netfilter/ |
H A D | bridge_brouter.sh | 25 ip netns exec "$nsbr" sysctl -q net.ipv4.conf.default.rp_filter=0 26 ip netns exec "$nsbr" sysctl -q net.ipv4.conf.all.rp_filter=0 27 if ! ip link add veth0 netns "$nsbr" type veth peer name eth0 netns "$ns1"; then 31 ip link add veth1 netns "$nsbr" type veth peer name eth0 netns "$ns2" 33 if ! ip -net "$nsbr" link add br0 type bridge; then 38 ip -net "$nsbr" link set veth0 up 39 ip -net "$nsbr" link set veth1 up 41 ip -net "$nsbr" link set veth0 master br0 42 ip -net "$nsbr" link set veth1 master br0 43 ip [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_perf_skip.c | 6 uintptr_t ip; variable 11 /* Skip events that have the correct ip. */ 12 return ip != PT_REGS_IP(&data->regs);
|
/linux-master/arch/sparc/kernel/ |
H A D | ftrace.c | 15 static u32 ftrace_call_replace(unsigned long ip, unsigned long addr) argument 20 off = ((s32)addr - (s32)ip); 26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) argument 32 "1: cas [%[ip]], %[old], %[new]\n" 33 " flush %[ip]\n" 47 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) 58 unsigned long ip = rec->ip; local 61 old = ftrace_call_replace(ip, add 68 unsigned long ip = rec->ip; local 78 unsigned long ip = (unsigned long)(&ftrace_call); local 94 unsigned long ip = (unsigned long)(&ftrace_graph_call); local 104 unsigned long ip = (unsigned long)(&ftrace_graph_call); local [all...] |
/linux-master/lib/lzo/ |
H A D | lzo1x_decompress_safe.c | 23 #define HAVE_IP(x) ((size_t)(ip_end - ip) >= (size_t)(x)) 43 const unsigned char *ip; local 53 ip = in; 58 if (likely(in_len >= 5) && likely(*ip == 17)) { 59 bitstream_version = ip[1]; 60 ip += 2; 65 if (*ip > 17) { 66 t = *ip++ - 17; 75 t = *ip++; 80 const unsigned char *ip_last = ip; [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_reflink.h | 9 static inline bool xfs_is_always_cow_inode(struct xfs_inode *ip) argument 11 return ip->i_mount->m_always_cow && xfs_has_reflink(ip->i_mount); 14 static inline bool xfs_is_cow_inode(struct xfs_inode *ip) argument 16 return xfs_is_reflink_inode(ip) || xfs_is_always_cow_inode(ip); 19 extern int xfs_reflink_trim_around_shared(struct xfs_inode *ip, 21 int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 24 int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 27 extern int xfs_reflink_convert_cow(struct xfs_inode *ip, xfs_off_ [all...] |
H A D | xfs_pnfs.c | 33 struct xfs_inode *ip = XFS_I(inode); local 37 xfs_iunlock(ip, *iolock); 42 xfs_ilock(ip, *iolock); 84 struct xfs_inode *ip) 89 error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_writeid, 94 xfs_ilock(ip, XFS_ILOCK_EXCL); 95 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); 97 VFS_I(ip)->i_mode &= ~S_ISUID; 98 if (VFS_I(ip) 83 xfs_fs_map_update_inode( struct xfs_inode *ip) argument 119 struct xfs_inode *ip = XFS_I(inode); local 226 xfs_pnfs_validate_isize( struct xfs_inode *ip, xfs_off_t isize) argument 265 struct xfs_inode *ip = XFS_I(inode); local [all...] |
/linux-master/samples/bpf/ |
H A D | lwt_len_hist.sh | 13 ip route del 192.168.253.2/32 dev $VETH0 2> /dev/null 14 ip link del $VETH0 2> /dev/null 15 ip link del $VETH1 2> /dev/null 16 ip netns exec $NS1 killall netserver 17 ip netns delete $NS1 2> /dev/null 22 ip netns add $NS1 23 ip link add $VETH0 type veth peer name $VETH1 24 ip link set dev $VETH0 up 25 ip addr add 192.168.253.1/24 dev $VETH0 26 ip lin [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | test_vxlan_under_vrf.sh | 50 ip link del veth-hv-1 2>/dev/null || true 51 ip link del veth-tap 2>/dev/null || true 69 ip link add veth-hv-1 type veth peer name veth-hv-2 73 ip link set veth-hv-$id netns ${hv[$id]} 74 ip -netns ${hv[$id]} link set veth-hv-$id name veth0 76 ip -netns ${hv[$id]} link add vrf-underlay type vrf table 1 77 ip -netns ${hv[$id]} link set vrf-underlay up 78 ip -netns ${hv[$id]} addr add 172.16.0.$id/24 dev veth0 79 ip -netns ${hv[$id]} link set veth0 up 81 ip [all...] |
H A D | ip6_gre_headroom.sh | 9 ip link add h1 type veth peer name swp1 10 ip link add h3 type veth peer name swp3 12 ip link set dev h1 up 13 ip address add 192.0.2.1/28 dev h1 15 ip link add dev vh3 type vrf table 20 16 ip link set dev h3 master vh3 17 ip link set dev vh3 up 18 ip link set dev h3 up 20 ip link set dev swp3 up 21 ip addres [all...] |
H A D | unicast_extensions.sh | 67 ip -n $foo_ns address add $1/$3 dev foo || return 1 68 ip -n $foo_ns link set foo up || return 1 69 ip -n $bar_ns address add $2/$3 dev bar || return 1 70 ip -n $bar_ns link set bar up || return 1 72 ip netns exec $foo_ns timeout 2 ping -c 1 $2 || return 1 73 ip netns exec $bar_ns timeout 2 ping -c 1 $1 || return 1 95 ip -n $foo_ns address add $1/$5 dev foo || return 1 96 ip -n $foo_ns link set foo up || return 1 97 ip -n $foo_ns route add default via $2 || return 1 98 ip [all...] |
/linux-master/drivers/net/ethernet/sgi/ |
H A D | ioc3-eth.c | 36 #include <linux/ip.h> 48 #include <net/ip.h> 109 static void ioc3_start(struct ioc3_private *ip); 110 static inline void ioc3_stop(struct ioc3_private *ip); 113 static void ioc3_free_rx_bufs(struct ioc3_private *ip); 114 static inline void ioc3_clean_tx_ring(struct ioc3_private *ip); 123 static inline int ioc3_alloc_skb(struct ioc3_private *ip, struct sk_buff **skb, argument 139 d = dma_map_single(ip->dma_dev, new_skb->data, 142 if (dma_mapping_error(ip->dma_dev, d)) { 229 struct ioc3_private *ip local 243 struct ioc3_private *ip = netdev_priv(dev); local 260 struct ioc3_private *ip = netdev_priv(dev); local 275 struct ioc3_private *ip = netdev_priv(dev); local 290 struct ioc3_private *ip = netdev_priv(dev); local 367 struct ioc3_private *ip = netdev_priv(dev); local 447 struct ioc3_private *ip = netdev_priv(dev); local 494 struct ioc3_private *ip = netdev_priv(dev); local 534 struct ioc3_private *ip = netdev_priv(dev_id); local 553 ioc3_setup_duplex(struct ioc3_private *ip) argument 573 struct ioc3_private *ip = from_timer(ip, t, ioc3_timer); local 587 ioc3_mii_init(struct ioc3_private *ip) argument 604 ioc3_mii_start(struct ioc3_private *ip) argument 610 ioc3_tx_unmap(struct ioc3_private *ip, int entry) argument 630 ioc3_clean_tx_ring(struct ioc3_private *ip) argument 648 ioc3_free_rx_bufs(struct ioc3_private *ip) argument 670 struct ioc3_private *ip = netdev_priv(dev); local 692 ioc3_ssram_disc(struct ioc3_private *ip) argument 718 struct ioc3_private *ip = netdev_priv(dev); local 740 ioc3_start(struct ioc3_private *ip) argument 772 ioc3_stop(struct ioc3_private *ip) argument 783 struct ioc3_private *ip = netdev_priv(dev); local 802 struct ioc3_private *ip = netdev_priv(dev); local 831 struct ioc3_private *ip; local 968 struct ioc3_private *ip = netdev_priv(dev); local 981 struct ioc3_private *ip = netdev_priv(dev); local 1110 struct ioc3_private *ip = netdev_priv(dev); local 1168 struct ioc3_private *ip = netdev_priv(dev); local 1180 struct ioc3_private *ip = netdev_priv(dev); local 1192 struct ioc3_private *ip = netdev_priv(dev); local 1204 struct ioc3_private *ip = netdev_priv(dev); local 1224 struct ioc3_private *ip = netdev_priv(dev); local 1236 struct ioc3_private *ip = netdev_priv(dev); local [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_xdping.sh | 38 ip netns add $TARGET_NS 39 ip link add veth0 type veth peer name veth1 40 ip link set veth0 netns $TARGET_NS 41 ip netns exec $TARGET_NS ip addr add ${TARGET_IP}/24 dev veth0 42 ip addr add ${LOCAL_IP}/24 dev veth1 43 ip netns exec $TARGET_NS ip link set veth0 up 44 ip link set veth1 up 50 ip netn [all...] |
H A D | test_xdp_redirect.sh | 22 ip netns add ${NS1} 23 ip netns add ${NS2} 25 ip link add veth1 index 111 type veth peer name veth11 netns ${NS1} 26 ip link add veth2 index 222 type veth peer name veth22 netns ${NS2} 28 ip link set veth1 up 29 ip link set veth2 up 30 ip -n ${NS1} link set dev veth11 up 31 ip -n ${NS2} link set dev veth22 up 33 ip -n ${NS1} addr add 10.1.1.11/24 dev veth11 34 ip [all...] |
H A D | test_xdp_vlan.sh | 54 echo " ip netns exec ${NS1} bash" 55 echo " ip netns exec ${NS2} bash" 60 ip link del veth1 2> /dev/null 61 ip netns del ${NS1} 2> /dev/null 62 ip netns del ${NS2} 2> /dev/null 122 ip link set dev lo xdpgeneric off 2>/dev/null > /dev/null 124 echo "selftests: $TESTNAME [SKIP] need ip xdp support" 130 ip link del veth1 2> /dev/null 131 ip netns del ${NS1} 2> /dev/null 132 ip netn [all...] |
H A D | test_tc_edt.sh | 31 ip netns del ${NS_SRC} 32 ip netns del ${NS_DST} 39 ip netns add "${NS_SRC}" 40 ip netns add "${NS_DST}" 41 ip link add veth_src type veth peer name veth_dst 42 ip link set veth_src netns ${NS_SRC} 43 ip link set veth_dst netns ${NS_DST} 45 ip -netns ${NS_SRC} addr add ${IP_SRC}/24 dev veth_src 46 ip -netns ${NS_DST} addr add ${IP_DST}/24 dev veth_dst 48 ip [all...] |
/linux-master/fs/jfs/ |
H A D | jfs_extent.h | 9 #define INOHINT(ip) \ 10 (addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1)
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | mirror_topo_lib.sh | 60 ip link set dev $swp3 up 62 ip link add name br1 type bridge vlan_filtering 1 63 ip link set dev br1 addrgenmode none 64 ip link set dev br1 up 66 ip link set dev $swp1 master br1 67 ip link set dev $swp1 up 69 ip link set dev $swp2 master br1 70 ip link set dev $swp2 up 79 ip link set dev $swp1 down 80 ip lin [all...] |
H A D | router_mpath_nh.sh | 55 ip link set dev $h1 master vrf-h1 57 ip link set dev vrf-h1 up 58 ip link set dev $h1 up 60 ip address add 192.0.2.2/24 dev $h1 61 ip address add 2001:db8:1::2/64 dev $h1 63 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 64 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 69 ip route del 2001:db8:2::/64 vrf vrf-h1 70 ip route del 198.51.100.0/24 vrf vrf-h1 72 ip addres [all...] |
H A D | router_multipath.sh | 11 ip link set dev $h1 master vrf-h1 13 ip link set dev vrf-h1 up 14 ip link set dev $h1 up 16 ip address add 192.0.2.2/24 dev $h1 17 ip address add 2001:db8:1::2/64 dev $h1 19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 25 ip route del 2001:db8:2::/64 vrf vrf-h1 26 ip route del 198.51.100.0/24 vrf vrf-h1 28 ip addres [all...] |
/linux-master/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond-lladdr-target.sh | 30 ip netns del $sw 31 ip netns del $host 46 ip netns add $sw 47 ip netns add $host 49 ip -n $host link add veth0 type veth peer name veth0 netns $sw 50 ip -n $host link add veth1 type veth peer name veth1 netns $sw 52 ip -n $sw link add br0 type bridge 53 ip -n $sw link set br0 up 54 sw_lladdr=$(ip -n $sw addr show br0 | awk '/fe80/{print $2}' | cut -d'/' -f1) 56 slowwait 2 wait_lladdr_dad ip [all...] |
H A D | bond-eth-type-change.sh | 20 ip -d l sh dev "$bonddev" | grep -q "MASTER" 23 ip -d l sh dev "$bonddev" | grep -q "SLAVE" 38 ip link add name "$nonethdev" type nlmon 40 ip link add name "$devbond0" type bond 43 ip link set dev "$devbond0" type bond mode active-backup 46 ip link add name "$devbond1" type bond 47 ip link add name "$devbond2" type bond 48 ip link set dev "$devbond0" master "$devbond1" 51 ip link set dev "$nonethdev" master "$devbond0" 1>/dev/null 2>/dev/null 52 ip lin [all...] |
/linux-master/drivers/gpu/drm/lima/ |
H A D | lima_pp.c | 18 #define pp_write(reg, data) writel(data, ip->iomem + reg) 19 #define pp_read(reg) readl(ip->iomem + reg) 21 static void lima_pp_handle_irq(struct lima_ip *ip, u32 state) argument 23 struct lima_device *dev = ip->dev; 30 lima_ip_name(ip), state, status); 43 struct lima_ip *ip = data; local 44 struct lima_device *dev = ip->dev; 52 lima_pp_handle_irq(ip, state); 76 struct lima_ip *ip = pipe->processor[i]; local 89 lima_pp_handle_irq(ip, stat 104 lima_pp_soft_reset_async(struct lima_ip *ip) argument 115 lima_pp_soft_reset_poll(struct lima_ip *ip) argument 121 lima_pp_soft_reset_async_wait_one(struct lima_ip *ip) argument 137 lima_pp_soft_reset_async_wait(struct lima_ip *ip) argument 158 lima_pp_write_frame(struct lima_ip *ip, u32 *frame, u32 *wb) argument 171 lima_pp_bus_stop_poll(struct lima_ip *ip) argument 176 lima_pp_hard_reset_poll(struct lima_ip *ip) argument 182 lima_pp_hard_reset(struct lima_ip *ip) argument 217 lima_pp_print_version(struct lima_ip *ip) argument 246 lima_pp_hw_init(struct lima_ip *ip) argument 253 lima_pp_resume(struct lima_ip *ip) argument 258 lima_pp_suspend(struct lima_ip *ip) argument 263 lima_pp_init(struct lima_ip *ip) argument 287 lima_pp_fini(struct lima_ip *ip) argument 294 lima_pp_bcast_resume(struct lima_ip *ip) argument 301 lima_pp_bcast_suspend(struct lima_ip *ip) argument 306 lima_pp_bcast_init(struct lima_ip *ip) argument 322 lima_pp_bcast_fini(struct lima_ip *ip) argument 359 struct lima_ip *ip = pipe->bcast_processor; local 380 struct lima_ip *ip = pipe->processor[i]; local 395 struct lima_ip *ip = pipe->processor[i]; local 428 struct lima_ip *ip = pipe->processor[i]; local 452 struct lima_ip *ip = pipe->processor[i]; local [all...] |
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_inode_fork.c | 35 struct xfs_inode *ip, 40 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); 50 zero_terminate = S_ISLNK(VFS_I(ip)->i_mode); 75 struct xfs_inode *ip, 85 if (unlikely(size > XFS_DFORK_SIZE(dip, ip->i_mount, whichfork))) { 86 xfs_warn(ip->i_mount, 88 (unsigned long long) ip->i_ino, size, 89 XFS_DFORK_SIZE(dip, ip->i_mount, whichfork)); 90 xfs_inode_verifier_error(ip, -EFSCORRUPTED, 93 xfs_inode_mark_sick(ip, XFS_SICK_INO_COR 34 xfs_init_local_fork( struct xfs_inode *ip, int whichfork, const void *data, int64_t size) argument 74 xfs_iformat_local( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork, int size) argument 106 xfs_iformat_extents( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork) argument 173 xfs_iformat_btree( struct xfs_inode *ip, struct xfs_dinode *dip, int whichfork) argument 232 xfs_iformat_data_fork( struct xfs_inode *ip, struct xfs_dinode *dip) argument 298 xfs_ifork_init_attr( struct xfs_inode *ip, enum xfs_dinode_fmt format, xfs_extnum_t nextents) argument 317 xfs_ifork_zap_attr( struct xfs_inode *ip) argument 326 xfs_iformat_attr_fork( struct xfs_inode *ip, struct xfs_dinode *dip) argument 384 xfs_iroot_realloc( xfs_inode_t *ip, int rec_diff, int whichfork) argument 511 xfs_idata_realloc( struct xfs_inode *ip, int64_t byte_diff, int whichfork) argument 566 xfs_iextents_copy( struct xfs_inode *ip, struct xfs_bmbt_rec *dp, int whichfork) argument 606 xfs_iflush_fork( struct xfs_inode *ip, struct xfs_dinode *dip, struct xfs_inode_log_item *iip, int whichfork) argument 682 xfs_iext_state_to_fork( struct xfs_inode *ip, int state) argument 697 xfs_ifork_init_cow( struct xfs_inode *ip) argument 710 xfs_ifork_verify_local_data( struct xfs_inode *ip) argument 745 xfs_ifork_verify_local_attr( struct xfs_inode *ip) argument 776 xfs_iext_count_extend( struct xfs_trans *tp, struct xfs_inode *ip, int whichfork, uint nr_to_add) argument 813 xfs_ifork_is_realtime( struct xfs_inode *ip, int whichfork) argument [all...] |
/linux-master/fs/gfs2/ |
H A D | quota.h | 18 int gfs2_qa_get(struct gfs2_inode *ip); 19 void gfs2_qa_put(struct gfs2_inode *ip); 20 int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); 21 void gfs2_quota_unhold(struct gfs2_inode *ip); 23 int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); 24 void gfs2_quota_unlock(struct gfs2_inode *ip); 26 int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid, 28 void gfs2_quota_change(struct gfs2_inode *ip, s64 change, 40 static inline int gfs2_quota_lock_check(struct gfs2_inode *ip, argument 43 struct gfs2_sbd *sdp = GFS2_SB(&ip [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rif_bridge.sh | 25 ip link set dev lag1 addrgenmode none 26 ip link set dev lag1 address $(mac_get $swp1) 29 ip link set dev lag2 addrgenmode none 30 ip link set dev lag2 address $(mac_get $swp2) 32 ip link add name br1 type bridge vlan_filtering 1 33 ip link set dev br1 addrgenmode none 34 ip link set dev br1 address $(mac_get lag1) 35 ip link set dev br1 up 37 ip link set dev lag1 master br1 39 ip lin [all...] |