Searched refs:orig_ifinfo (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/net/batman-adv/ |
D | originator.c | 296 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_orig_router_get() local 300 hlist_for_each_entry_rcu(orig_ifinfo, &orig_node->ifinfo_list, list) { in batadv_orig_router_get() 301 if (orig_ifinfo->if_outgoing != if_outgoing) in batadv_orig_router_get() 304 router = rcu_dereference(orig_ifinfo->router); in batadv_orig_router_get() 328 struct batadv_orig_ifinfo *tmp, *orig_ifinfo = NULL; in batadv_orig_ifinfo_get() local 339 orig_ifinfo = tmp; in batadv_orig_ifinfo_get() 344 return orig_ifinfo; in batadv_orig_ifinfo_get() 362 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_orig_ifinfo_new() local 367 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, if_outgoing); in batadv_orig_ifinfo_new() 368 if (orig_ifinfo) in batadv_orig_ifinfo_new() [all …]
|
D | bat_v_ogm.c | 524 struct batadv_orig_ifinfo *orig_ifinfo = NULL; in batadv_v_ogm_forward() local 536 orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); in batadv_v_ogm_forward() 537 if (!orig_ifinfo) in batadv_v_ogm_forward() 548 if (orig_ifinfo->last_seqno_forwarded == ntohl(ogm_received->seqno)) in batadv_v_ogm_forward() 551 orig_ifinfo->last_seqno_forwarded = ntohl(ogm_received->seqno); in batadv_v_ogm_forward() 586 if (orig_ifinfo) in batadv_v_ogm_forward() 587 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_v_ogm_forward() 615 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_v_ogm_metric_update() local 622 orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); in batadv_v_ogm_metric_update() 623 if (!orig_ifinfo) in batadv_v_ogm_metric_update() [all …]
|
D | bat_iv_ogm.c | 749 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_iv_ogm_slide_own_bcast_window() local 759 hlist_for_each_entry_rcu(orig_ifinfo, in batadv_iv_ogm_slide_own_bcast_window() 762 if (orig_ifinfo->if_outgoing != hard_iface) in batadv_iv_ogm_slide_own_bcast_window() 766 word = orig_ifinfo->bat_iv.bcast_own; in batadv_iv_ogm_slide_own_bcast_window() 768 w = &orig_ifinfo->bat_iv.bcast_own_sum; in batadv_iv_ogm_slide_own_bcast_window() 889 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_iv_orig_ifinfo_sum() local 892 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, if_outgoing); in batadv_iv_orig_ifinfo_sum() 893 if (!orig_ifinfo) in batadv_iv_orig_ifinfo_sum() 897 sum = orig_ifinfo->bat_iv.bcast_own_sum; in batadv_iv_orig_ifinfo_sum() 900 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_iv_orig_ifinfo_sum() [all …]
|
D | originator.h | 150 batadv_orig_ifinfo_put(struct batadv_orig_ifinfo *orig_ifinfo) in batadv_orig_ifinfo_put() argument 152 if (!orig_ifinfo) in batadv_orig_ifinfo_put() 155 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put()
|
D | routing.c | 59 struct batadv_orig_ifinfo *orig_ifinfo; in _batadv_update_route() local 62 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, recv_if); in _batadv_update_route() 63 if (!orig_ifinfo) in _batadv_update_route() 79 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node, in _batadv_update_route() 82 batadv_orig_ifinfo_put(orig_ifinfo); in _batadv_update_route()
|
D | network-coding.c | 768 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_can_nc_with_orig() local 772 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, BATADV_IF_DEFAULT); in batadv_can_nc_with_orig() 773 if (!orig_ifinfo) in batadv_can_nc_with_orig() 776 last_ttl = orig_ifinfo->last_ttl; in batadv_can_nc_with_orig() 777 last_real_seqno = orig_ifinfo->last_real_seqno; in batadv_can_nc_with_orig() 778 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_can_nc_with_orig()
|