Home
last modified time | relevance | path

Searched refs:ip2 (Results 1 – 25 of 28) sorted by relevance

12

/linux/fs/xfs/
H A Dxfs_exchrange.c32 struct xfs_inode *ip2) in xfs_exchrange_ilock() argument
34 if (ip1 != ip2) in xfs_exchrange_ilock()
36 ip2, XFS_ILOCK_EXCL); in xfs_exchrange_ilock()
41 if (ip2 != ip1) in xfs_exchrange_ilock()
42 xfs_trans_ijoin(tp, ip2, 0); in xfs_exchrange_ilock()
51 struct xfs_inode *ip2) in xfs_exchrange_iunlock() argument
53 if (ip2 != ip1) in xfs_exchrange_iunlock()
54 xfs_iunlock(ip2, XFS_ILOCK_EXCL); in xfs_exchrange_iunlock()
69 xfs_exchrange_ilock(NULL, req->ip1, req->ip2); in xfs_exchrange_estimate()
71 xfs_exchrange_iunlock(req->ip1, req->ip2); in xfs_exchrange_estimate()
85 xfs_exchrange_check_freshness(const struct xfs_exchrange * fxr,struct xfs_inode * ip2) xfs_exchrange_check_freshness() argument
195 xfs_exchrange_mappings(const struct xfs_exchrange * fxr,struct xfs_inode * ip1,struct xfs_inode * ip2) xfs_exchrange_mappings() argument
525 xfs_exchrange_check_rtalign(const struct xfs_exchrange * fxr,struct xfs_inode * ip1,struct xfs_inode * ip2,unsigned int alloc_unit) xfs_exchrange_check_rtalign() argument
590 xfs_exchrange_prep(struct xfs_exchrange * fxr,struct xfs_inode * ip1,struct xfs_inode * ip2) xfs_exchrange_prep() argument
676 struct xfs_inode *ip2 = XFS_I(inode2); xfs_exchrange_contents() local
847 struct xfs_inode *ip2 = XFS_I(inode2); xfs_ioc_start_commit() local
892 struct xfs_inode *ip2 = XFS_I(file_inode(file)); xfs_ioc_commit_range() local
[all...]
H A Dxfs_exchmaps_item.c366 struct xfs_inode *ip1, *ip2; in xfs_xmi_item_recover_intent() local
386 &ip2); in xfs_xmi_item_recover_intent()
394 req->ip2 = ip2; in xfs_xmi_item_recover_intent()
400 xfs_exchrange_ilock(NULL, ip1, ip2); in xfs_xmi_item_recover_intent()
402 xfs_exchrange_iunlock(ip1, ip2); in xfs_xmi_item_recover_intent()
407 *ipp2 = ip2; in xfs_xmi_item_recover_intent()
413 xfs_irele(ip2); in xfs_xmi_item_recover_intent()
416 req->ip2 = req->ip1 = NULL; in xfs_xmi_item_recover_intent()
433 struct xfs_inode *ip1, *ip2; in xfs_exchmaps_recover_work() local
[all...]
H A Dxfs_inode.c2000 struct xfs_inode *ip2, /* in: inode of new entry */ in xfs_sort_for_rename() argument
2021 if (ip2) in xfs_sort_for_rename()
2022 i_tab[i++] = ip2; in xfs_sort_for_rename()
2734 struct xfs_inode *ip2) in xfs_mmaplock_two_inodes_and_break_dax_layout() argument
2738 if (ip1->i_ino > ip2->i_ino) in xfs_mmaplock_two_inodes_and_break_dax_layout()
2739 swap(ip1, ip2); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2750 if (ip1 == ip2) in xfs_mmaplock_two_inodes_and_break_dax_layout()
2754 xfs_ilock(ip2, xfs_lock_inumorder(XFS_MMAPLOCK_EXCL, 1)); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2760 error = dax_break_layout(VFS_I(ip2), 0, -1, NULL); in xfs_mmaplock_two_inodes_and_break_dax_layout()
2762 xfs_iunlock(ip2, XFS_MMAPLOCK_EXC in xfs_mmaplock_two_inodes_and_break_dax_layout()
2777 xfs_ilock2_io_mmap(struct xfs_inode * ip1,struct xfs_inode * ip2) xfs_ilock2_io_mmap() argument
2804 xfs_iunlock2_io_mmap(struct xfs_inode * ip1,struct xfs_inode * ip2) xfs_iunlock2_io_mmap() argument
2823 xfs_iunlock2_remapping(struct xfs_inode * ip1,struct xfs_inode * ip2) xfs_iunlock2_remapping() argument
[all...]
H A Dxfs_exchrange.h47 struct xfs_inode *ip2);
48 void xfs_exchrange_iunlock(struct xfs_inode *ip1, struct xfs_inode *ip2);
H A Dxfs_inode.h655 int xfs_ilock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2);
656 void xfs_iunlock2_io_mmap(struct xfs_inode *ip1, struct xfs_inode *ip2);
657 void xfs_iunlock2_remapping(struct xfs_inode *ip1, struct xfs_inode *ip2);
/linux/tools/testing/selftests/net/forwarding/
H A Dmirror_gre_lib.sh9 local ip2=$1; shift
13 do_test_span_dir_ips 10 h3-$tundev "$ip1" "$ip2" \
21 local ip2=$1; shift
23 do_test_span_dir_ips 0 h3-$tundev "$ip1" "$ip2"
32 local ip2=$1; shift
35 "$backward_type" "$ip1" "$ip2"
46 local ip2=$1; shift
52 "$backward_type" "$ip1" "$ip2"
67 local ip2=$1; shift
74 "$backward_type" "$ip1" "$ip2"
[all...]
H A Dvxlan_asymmetric_ipv6.sh401 local ip2=$1; shift
411 ip neigh add $ip2 lladdr $mac2 nud noarp dev vlan20 \
H A Dvxlan_asymmetric.sh406 local ip2=$1; shift
416 ip neigh add $ip2 lladdr $mac2 nud noarp dev vlan20 \
/linux/net/netfilter/ipset/
H A Dip_set_hash_ipportnet.c54 __be32 ip2; member
65 const struct hash_ipportnet4_elem *ip2, in hash_ipportnet4_data_equal() argument
68 return ip1->ip == ip2->ip && in hash_ipportnet4_data_equal()
69 ip1->ip2 == ip2->ip2 && in hash_ipportnet4_data_equal()
70 ip1->cidr == ip2->cidr && in hash_ipportnet4_data_equal()
71 ip1->port == ip2->port && in hash_ipportnet4_data_equal()
72 ip1->proto == ip2->proto; in hash_ipportnet4_data_equal()
96 elem->ip2 in hash_ipportnet4_data_netmask()
168 u32 ip2_from = 0, ip2_to = 0, ip2, i = 0; hash_ipportnet4_uadt() local
309 union nf_inet_addr ip2; global() member
320 hash_ipportnet6_data_equal(const struct hash_ipportnet6_elem * ip1,const struct hash_ipportnet6_elem * ip2,u32 * multi) hash_ipportnet6_data_equal() argument
[all...]
H A Dip_set_hash_ipportip.c44 __be32 ip2; member
52 const struct hash_ipportip4_elem *ip2, in hash_ipportip4_data_equal() argument
55 return ip1->ip == ip2->ip && in hash_ipportip4_data_equal()
56 ip1->ip2 == ip2->ip2 && in hash_ipportip4_data_equal()
57 ip1->port == ip2->port && in hash_ipportip4_data_equal()
58 ip1->proto == ip2->proto; in hash_ipportip4_data_equal()
66 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip2) || in hash_ipportip4_data_list()
103 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2); in hash_ipportip4_kadt()
210 union nf_inet_addr ip2; global() member
220 hash_ipportip6_data_equal(const struct hash_ipportip6_elem * ip1,const struct hash_ipportip6_elem * ip2,u32 * multi) hash_ipportip6_data_equal() argument
[all...]
H A Dip_set_hash_netnet.c61 const struct hash_netnet4_elem *ip2, in hash_netnet4_data_equal() argument
64 return ip1->ipcmp == ip2->ipcmp && in hash_netnet4_data_equal()
65 ip1->ccmp == ip2->ccmp; in hash_netnet4_data_equal()
174 u32 ip2 = 0, ip2_from = 0, ip2_to = 0, i = 0; in hash_netnet4_uadt() local
253 ip2 = ntohl(h->next.ip[1]); in hash_netnet4_uadt()
255 ip2 = ip2_from; in hash_netnet4_uadt()
263 e.ip[1] = htonl(ip2); in hash_netnet4_uadt()
268 ip2 = ip_set_range_to_cidr(ip2, ip2_to, &e.cidr[1]); in hash_netnet4_uadt()
274 } while (ip2 in hash_netnet4_uadt()
296 hash_netnet6_data_equal(const struct hash_netnet6_elem * ip1,const struct hash_netnet6_elem * ip2,u32 * multi) hash_netnet6_data_equal() argument
[all...]
H A Dip_set_hash_netiface.c70 const struct hash_netiface4_elem *ip2, in hash_netiface4_data_equal() argument
73 return ip1->ip == ip2->ip && in hash_netiface4_data_equal()
74 ip1->cidr == ip2->cidr && in hash_netiface4_data_equal()
76 ip1->physdev == ip2->physdev && in hash_netiface4_data_equal()
78 strncmp(ip1->iface, ip2->iface, strlen(ip1->iface)) == 0 : in hash_netiface4_data_equal()
79 strcmp(ip1->iface, ip2->iface) == 0); in hash_netiface4_data_equal()
304 const struct hash_netiface6_elem *ip2, in hash_netiface6_data_equal() argument
307 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netiface6_data_equal()
308 ip1->cidr == ip2->cidr && in hash_netiface6_data_equal()
310 ip1->physdev == ip2 in hash_netiface6_data_equal()
[all...]
H A Dip_set_hash_netport.c63 const struct hash_netport4_elem *ip2, in hash_netport4_data_equal() argument
66 return ip1->ip == ip2->ip && in hash_netport4_data_equal()
67 ip1->port == ip2->port && in hash_netport4_data_equal()
68 ip1->proto == ip2->proto && in hash_netport4_data_equal()
69 ip1->cidr == ip2->cidr; in hash_netport4_data_equal()
280 const struct hash_netport6_elem *ip2, in hash_netport6_data_equal() argument
283 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_netport6_data_equal()
284 ip1->port == ip2->port && in hash_netport6_data_equal()
285 ip1->proto == ip2->proto && in hash_netport6_data_equal()
286 ip1->cidr == ip2 in hash_netport6_data_equal()
[all...]
H A Dip_set_hash_ipmark.c48 const struct hash_ipmark4_elem *ip2, in hash_ipmark4_data_equal() argument
51 return ip1->ip == ip2->ip && in hash_ipmark4_data_equal()
52 ip1->mark == ip2->mark; in hash_ipmark4_data_equal()
180 const struct hash_ipmark6_elem *ip2, in hash_ipmark6_data_equal() argument
183 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipmark6_data_equal()
184 ip1->mark == ip2->mark; in hash_ipmark6_data_equal()
H A Dip_set_hash_ipport.c56 const struct hash_ipport4_elem *ip2, in hash_ipport4_data_equal() argument
59 return ip1->ip == ip2->ip && in hash_ipport4_data_equal()
60 ip1->port == ip2->port && in hash_ipport4_data_equal()
61 ip1->proto == ip2->proto; in hash_ipport4_data_equal()
223 const struct hash_ipport6_elem *ip2, in hash_ipport6_data_equal() argument
226 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipport6_data_equal()
227 ip1->port == ip2->port && in hash_ipport6_data_equal()
228 ip1->proto == ip2->proto; in hash_ipport6_data_equal()
H A Dip_set_hash_net.c53 const struct hash_net4_elem *ip2, in hash_net4_data_equal() argument
56 return ip1->ip == ip2->ip && in hash_net4_data_equal()
57 ip1->cidr == ip2->cidr; in hash_net4_data_equal()
224 const struct hash_net6_elem *ip2, in hash_net6_data_equal() argument
227 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_net6_data_equal()
228 ip1->cidr == ip2->cidr; in hash_net6_data_equal()
H A Dip_set_hash_ip.c184 const struct hash_ip6_elem *ip2, in hash_ip6_data_equal() argument
187 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6); in hash_ip6_data_equal()
/linux/tools/testing/selftests/wireguard/
H A Dnetns.sh42 ip2() { pretty 2 "ip $*"; ip -n $netns2 "$@"; } function
56 ip2 link del dev wg0
57 ip2 link del dev wg1
97 ip2 addr add 192.168.241.2/24 dev wg0
98 ip2 addr add fd00::2/112 dev wg0
114 ip2 link set up dev wg0
167 { read _; read _; read _; read rx_bytes _; read _; read tx_bytes _; } < <(ip2 -stats link show dev wg0)
180 ip2 link set wg0 mtu $big_mtu
184 ip2 link set wg0 mtu $orig_mtu
191 ip2 lin
[all...]
/linux/lib/zstd/compress/
H A Dzstd_fast.c211 const BYTE* ip2; in ZSTD_compressBlock_fast_noDict_generic() local
230 * between pairs of positions, from ip0 to ip2 or ip1 to ip3. */ in ZSTD_compressBlock_fast_noDict_generic()
253 ip2 = ip0 + step; in ZSTD_compressBlock_fast_noDict_generic()
254 ip3 = ip2 + 1; in ZSTD_compressBlock_fast_noDict_generic()
267 const U32 rval = MEM_read32(ip2 - rep_offset1); in ZSTD_compressBlock_fast_noDict_generic()
274 if ((MEM_read32(ip2) == rval) & (rep_offset1 > 0)) { in ZSTD_compressBlock_fast_noDict_generic()
275 ip0 = ip2; in ZSTD_compressBlock_fast_noDict_generic()
285 * repcode (ip2). */ in ZSTD_compressBlock_fast_noDict_generic()
305 hash1 = ZSTD_hashPtr(ip2, hlog, mls); in ZSTD_compressBlock_fast_noDict_generic()
309 ip1 = ip2; in ZSTD_compressBlock_fast_noDict_generic()
736 const BYTE* ip2; ZSTD_compressBlock_fast_extDict_generic() local
[all...]
/linux/fs/xfs/libxfs/
H A Dxfs_exchmaps.c146 ifp2 = xfs_ifork_ptr(req->ip2, whichfork); in xfs_exchmaps_check_forks()
968 if (req->blockcount != XFS_B_TO_FSB(mp, req->ip2->i_disk_size)) in xmi_can_exchange_reflink_flags()
986 xmi->xmi_ip2 = req->ip2; in xfs_exchmaps_init_intent()
1000 xmi->xmi_isize1 = req->ip2->i_disk_size; in xfs_exchmaps_init_intent()
1007 if (xfs_is_reflink_inode(req->ip2)) in xfs_exchmaps_init_intent()
1083 error = xmi_next(req->ip2, bmap_flags, &irec2, &adj.right2); in xfs_exchmaps_estimate()
1123 if (req->ip1 == req->ip2) { in xfs_exchmaps_estimate()
1130 error = xmi_ensure_delta_nextents(req, req->ip2, d_nexts2); in xfs_exchmaps_estimate()
1224 xfs_assert_ilocked(req->ip2, XFS_ILOCK_EXCL); in xfs_exchange_mappings()
H A Dxfs_dir2.c1039 * @ip2) in directory @dp2, and update '..' @ip1 and @ip2's entries as needed.
1040 * @ip1 and @ip2 need not be of the same type.
1056 struct xfs_inode *ip2 = du2->ip; in xfs_dir_exchange_children() local
1063 error = xfs_dir_replace(tp, dp1, name1, ip2->i_ino, spaceres); in xfs_dir_exchange_children()
1080 if (S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_dir_exchange_children()
1081 error = xfs_dir_replace(tp, ip2, &xfs_name_dotdot, in xfs_dir_exchange_children()
1086 /* transfer ip2 ".." reference to dp1 */ in xfs_dir_exchange_children()
1111 if (!S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_dir_exchange_children()
1119 * Although ip2 is in xfs_dir_exchange_children()
[all...]
H A Dxfs_exchmaps.h52 struct xfs_inode *ip2; member
74 * Data device blocks to be moved out of ip2, and free space needed to
82 /* rt blocks to be moved out of ip2. */
H A Dxfs_rtgroup.c293 const struct xfs_inode *ip2 = in xfs_rtginode_ilock_cmp_fn() local
296 if (ip1->i_projid < ip2->i_projid) in xfs_rtginode_ilock_cmp_fn()
298 if (ip1->i_projid > ip2->i_projid) in xfs_rtginode_ilock_cmp_fn()
/linux/fs/xfs/scrub/
H A Dtempfile.c633 req->ip2 = sc->ip; in xrep_tempexch_prep_request()
754 if (!XFS_IS_QUOTA_ON(tp->t_mountp) || req->ip1 == req->ip2 || in xrep_tempexch_reserve_quota()
756 (req->ip1->i_udquot == req->ip2->i_udquot && in xrep_tempexch_reserve_quota()
757 req->ip1->i_gdquot == req->ip2->i_gdquot && in xrep_tempexch_reserve_quota()
758 req->ip1->i_pdquot == req->ip2->i_pdquot)) in xrep_tempexch_reserve_quota()
780 return xfs_trans_reserve_quota_nblks(tp, req->ip2, in xrep_tempexch_reserve_quota()
/linux/drivers/net/wireguard/selftest/
H A Dallowedips.c26 u8 ip1[16], ip2[16], cidr1, cidr2; in print_node() local
51 wg_allowedips_read_node(rcu_dereference_raw(node->bit[0]), ip2, &cidr2); in print_node()
52 printk(fmt_connection, ip1, cidr1, ip2, cidr2); in print_node()
55 wg_allowedips_read_node(rcu_dereference_raw(node->bit[1]), ip2, &cidr2); in print_node()
56 printk(fmt_connection, ip1, cidr1, ip2, cidr2); in print_node()

12