/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect_dynptr.c | 292 encap_headers_t *encap, struct in_addr *next_hop, in forward_with_gre() argument 404 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre() 419 encap_headers_t *encap, struct in_addr *next_hop, in forward_to_next_hop() argument 433 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 435 return forward_with_gre(skb, dynptr, encap, next_hop, metrics); in forward_to_next_hop() 441 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop() 442 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 443 encap->unigue.next_hop++; in forward_to_next_hop() 448 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop->s_addr, 4); in forward_to_next_hop() 476 struct in_addr *next_hop) in get_next_hop() argument [all …]
|
H A D | test_cls_redirect.c | 400 struct in_addr *next_hop, metrics_t *metrics) in forward_with_gre() argument 515 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre() 527 struct in_addr *next_hop, metrics_t *metrics) in forward_to_next_hop() argument 540 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 542 return forward_with_gre(skb, encap, next_hop, metrics); in forward_to_next_hop() 548 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop() 549 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 550 encap->unigue.next_hop++; in forward_to_next_hop() 555 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop->s_addr, 4); in forward_to_next_hop() 584 struct in_addr *next_hop) in get_next_hop() argument [all …]
|
H A D | test_cls_redirect.h | 46 uint8_t next_hop; member
|
/openbmc/u-boot/drivers/i2c/ |
H A D | i2c_core.c | 113 if (i2c_bus_tmp->next_hop[0].chip != 0) { in i2c_mux_set_all() 118 if (i2c_bus_tmp->next_hop[i].chip == 0) in i2c_mux_set_all() 122 i2c_bus_tmp->next_hop[i].mux.id, in i2c_mux_set_all() 123 i2c_bus_tmp->next_hop[i].chip, in i2c_mux_set_all() 124 i2c_bus_tmp->next_hop[i].channel); in i2c_mux_set_all() 142 if ((i2c_bus_tmp->next_hop[0].chip != 0) && in i2c_mux_disconnect_all() 149 chip = i2c_bus_tmp->next_hop[--i].chip; in i2c_mux_disconnect_all()
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | path.c | 21 hop->in_hop_index, regs->out_port, regs->next_hop); in tb_dump_hop() 58 hopid = hop.next_hop; in tb_path_find_dst_port() 148 h = hop.next_hop; in tb_path_discover() 176 int next_hop; in tb_path_discover() local 190 next_hop = hop.next_hop; in tb_path_discover() 193 tb_port_alloc_out_hopid(out_port, next_hop, next_hop) < 0) { in tb_path_discover() 202 path->hops[i].next_hop_index = next_hop; in tb_path_discover() 206 h = next_hop; in tb_path_discover() 548 hop.next_hop = path->hops[i].next_hop_index; in tb_path_activate()
|
H A D | tb_regs.h | 507 u32 next_hop:11; /* member
|
/openbmc/linux/net/mac80211/ |
H A D | mesh_pathtbl.c | 120 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop() 139 char *next_hop; in prepare_for_gate() local 166 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr; in prepare_for_gate() 167 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate() 200 if (WARN_ON(!gate_mpath->next_hop)) in mesh_path_move_to_queue() 484 sta = rcu_dereference(mpath->next_hop); in mesh_fast_tx_cache() 642 if (rcu_access_pointer(entry->mpath->next_hop) == sta) in mesh_fast_tx_flush_sta() 774 if (rcu_access_pointer(mpath->next_hop) == sta && in mesh_plink_broken() 837 if (rcu_access_pointer(mpath->next_hop) == sta) in mesh_path_flush_by_nexthop() 1041 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop) in mesh_path_fix_nexthop() argument [all …]
|
H A D | mesh_hwmp.c | 457 (rcu_access_pointer(mpath->next_hop) != in hwmp_route_info_get() 495 if (rcu_access_pointer(mpath->next_hop) != sta) { in hwmp_route_info_get() 533 ((rcu_access_pointer(mpath->next_hop) != sta ? in hwmp_route_info_get() 547 if (rcu_access_pointer(mpath->next_hop) != sta) { in hwmp_route_info_get() 704 return rcu_dereference_protected(mpath->next_hop, in next_hop_deref_protected() 717 u8 next_hop[ETH_ALEN]; in hwmp_prep_frame_process() local 747 memcpy(next_hop, next_hop_deref_protected(mpath)->sta.addr, ETH_ALEN); in hwmp_prep_frame_process() 758 target_addr, target_sn, next_hop, hopcount, in hwmp_prep_frame_process() 1256 struct sta_info *next_hop; in mesh_nexthop_lookup() local 1270 next_hop = rcu_dereference(mpath->next_hop); in mesh_nexthop_lookup() [all …]
|
H A D | mesh.h | 111 struct sta_info __rcu *next_hop; member 317 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
|
H A D | cfg.c | 2235 const u8 *dst, const u8 *next_hop) in ieee80211_add_mpath() argument 2244 sta = sta_info_get(sdata, next_hop); in ieee80211_add_mpath() 2275 const u8 *dst, const u8 *next_hop) in ieee80211_change_mpath() argument 2285 sta = sta_info_get(sdata, next_hop); in ieee80211_change_mpath() 2303 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument 2306 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in mpath_set_pinfo() 2309 memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN); in mpath_set_pinfo() 2311 eth_zero_addr(next_hop); in mpath_set_pinfo() 2350 u8 *dst, u8 *next_hop, struct mpath_info *pinfo) in ieee80211_get_mpath() argument 2365 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_get_mpath() [all …]
|
H A D | tx.c | 2686 struct sta_info *next_hop; in ieee80211_build_hdr() local 2692 next_hop = rcu_dereference(mpath->next_hop); in ieee80211_build_hdr() 2693 if (!next_hop || in ieee80211_build_hdr()
|
H A D | mesh.c | 816 sta = rcu_dereference(entry->mpath->next_hop); in ieee80211_mesh_xmit_fast()
|
/openbmc/linux/net/batman-adv/ |
H A D | network-coding.c | 460 nc_path->next_hop); in batadv_nc_purge_paths() 467 nc_path->prev_hop, nc_path->next_hop); in batadv_nc_purge_paths() 485 memcpy(key->next_hop, dst, sizeof(key->next_hop)); in batadv_nc_hash_key_gen() 501 hash = jhash(&nc_path->next_hop, sizeof(nc_path->next_hop), hash); in batadv_nc_hash_choose() 526 if (!batadv_compare_eth(nc_path1->next_hop, nc_path2->next_hop)) in batadv_nc_hash_compare() 981 ether_addr_copy(nc_path->next_hop, dst); in batadv_nc_get_path() 986 nc_path->next_hop); in batadv_nc_get_path() 1283 if (!batadv_compare_eth(nc_path->next_hop, out_nc_node->addr)) in batadv_nc_path_search()
|
H A D | types.h | 2014 u8 next_hop[ETH_ALEN]; member
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 285 struct in_addr next_hop; in build_input() local 297 next_hop = (struct in_addr){ .s_addr = htonl(0x7f000002) }; in build_input() 298 p = mempcpy(p, &next_hop, sizeof(next_hop)); in build_input()
|
/openbmc/u-boot/cmd/ |
H A D | i2c.c | 1742 if (i2c_bus[i].next_hop[j].chip == 0) in do_i2c_show_bus() 1745 i2c_bus[i].next_hop[j].mux.name, in do_i2c_show_bus() 1746 i2c_bus[i].next_hop[j].chip, in do_i2c_show_bus() 1747 i2c_bus[i].next_hop[j].channel); in do_i2c_show_bus() 1777 if (i2c_bus[i].next_hop[j].chip == 0) in do_i2c_show_bus() 1780 i2c_bus[i].next_hop[j].mux.name, in do_i2c_show_bus() 1781 i2c_bus[i].next_hop[j].chip, in do_i2c_show_bus() 1782 i2c_bus[i].next_hop[j].channel); in do_i2c_show_bus()
|
/openbmc/linux/net/wireless/ |
H A D | rdev-ops.h | 251 struct net_device *dev, u8 *dst, u8 *next_hop) in rdev_add_mpath() argument 254 trace_rdev_add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath() 255 ret = rdev->ops->add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath() 272 u8 *next_hop) in rdev_change_mpath() argument 275 trace_rdev_change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath() 276 ret = rdev->ops->change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath() 282 struct net_device *dev, u8 *dst, u8 *next_hop, in rdev_get_mpath() argument 286 trace_rdev_get_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_get_mpath() 287 ret = rdev->ops->get_mpath(&rdev->wiphy, dev, dst, next_hop, pinfo); in rdev_get_mpath() 307 u8 *next_hop, struct mpath_info *pinfo) in rdev_dump_mpath() argument [all …]
|
H A D | trace.h | 934 u8 *next_hop), 935 TP_ARGS(wiphy, netdev, dst, next_hop), 940 MAC_ENTRY(next_hop) 946 MAC_ASSIGN(next_hop, next_hop); 950 __entry->next_hop) 955 u8 *next_hop), 956 TP_ARGS(wiphy, netdev, dst, next_hop) 961 u8 *next_hop), 962 TP_ARGS(wiphy, netdev, dst, next_hop) 967 u8 *next_hop), [all …]
|
H A D | nl80211.c | 7715 u8 *dst, u8 *next_hop, in nl80211_send_mpath() 7727 nla_put(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop) || in nl80211_send_mpath() 7780 u8 next_hop[ETH_ALEN]; in nl80211_dump_mpath() 7802 next_hop, &pinfo); in nl80211_dump_mpath() 7810 wdev->netdev, dst, next_hop, in nl80211_dump_mpath() 7833 u8 next_hop[ETH_ALEN]; in nl80211_get_mpath() 7848 err = rdev_get_mpath(rdev, dev, dst, next_hop, &pinfo); in nl80211_get_mpath() 7857 dev, dst, next_hop, &pinfo) < 0) { in nl80211_get_mpath() 7870 u8 *next_hop = NULL; in nl80211_set_mpath() 7879 next_hop in nl80211_set_mpath() 7710 nl80211_send_mpath(struct sk_buff * msg,u32 portid,u32 seq,int flags,struct net_device * dev,u8 * dst,u8 * next_hop,struct mpath_info * pinfo) nl80211_send_mpath() argument 7775 u8 next_hop[ETH_ALEN]; nl80211_dump_mpath() local 7828 u8 next_hop[ETH_ALEN]; nl80211_get_mpath() local 7865 u8 *next_hop = NULL; nl80211_set_mpath() local 7890 u8 *next_hop = NULL; nl80211_new_mpath() local [all...] |
/openbmc/linux/drivers/s390/net/ |
H A D | qeth_core.h | 247 } next_hop; member 362 ipv6_addr_equal(&h1->next_hop.addr, &h2->next_hop.addr); in qeth_l3_same_next_hop()
|
H A D | qeth_l3_main.c | 1673 l3_hdr->next_hop.addr.s6_addr32[3] = in qeth_l3_fill_header() 1677 l3_hdr->next_hop.addr = *qeth_next_hop_v6_rcu(skb, dst); in qeth_l3_fill_header() 1684 l3_hdr->next_hop.addr.s6_addr16[0] = htons(0xfe80); in qeth_l3_fill_header() 1685 memcpy(&l3_hdr->next_hop.addr.s6_addr32[2], in qeth_l3_fill_header()
|
H A D | qeth_core_main.c | 686 __be32 next_hop; in qeth_next_hop_is_local_v4() local 692 next_hop = qeth_next_hop_v4_rcu(skb, in qeth_next_hop_is_local_v4() 694 key = ipv4_addr_hash(next_hop); in qeth_next_hop_is_local_v4() 697 if (tmp->addr.s6_addr32[3] == next_hop) { in qeth_next_hop_is_local_v4() 711 struct in6_addr *next_hop; in qeth_next_hop_is_local_v6() local 719 next_hop = qeth_next_hop_v6_rcu(skb, in qeth_next_hop_is_local_v6() 721 key = ipv6_addr_hash(next_hop); in qeth_next_hop_is_local_v6() 724 if (ipv6_addr_equal(&tmp->addr, next_hop)) { in qeth_next_hop_is_local_v6() 5507 &l3_hdr->next_hop.rx.src_mac, skb->len); in qeth_l3_rebuild_skb() 5519 l3_hdr->next_hop.rx.vlan_id; in qeth_l3_rebuild_skb()
|
/openbmc/u-boot/include/ |
H A D | i2c.h | 687 struct i2c_next_hop next_hop[CONFIG_SYS_I2C_MAX_HOPS]; member
|
/openbmc/qemu/qga/ |
H A D | commands-linux.c | 2152 char destination[33], source[33], next_hop[33]; in qmp_guest_network_get_route() local 2156 &src_prefixlen, next_hop, &metric, &refcnt, in qmp_guest_network_get_route() 2167 route->nexthop = hex_to_ip_address(next_hop, 1); in qmp_guest_network_get_route()
|
/openbmc/linux/include/net/ |
H A D | cfg80211.h | 4472 const u8 *dst, const u8 *next_hop); 4476 const u8 *dst, const u8 *next_hop); 4478 u8 *dst, u8 *next_hop, struct mpath_info *pinfo); 4480 int idx, u8 *dst, u8 *next_hop,
|