Searched refs:orig_ifinfo (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/net/batman-adv/ |
H A D | originator.c | 365 orig_ifinfo = tmp; in batadv_orig_ifinfo_get() 370 return orig_ifinfo; in batadv_orig_ifinfo_get() 394 if (orig_ifinfo) in batadv_orig_ifinfo_new() 397 orig_ifinfo = kzalloc(sizeof(*orig_ifinfo), GFP_ATOMIC); in batadv_orig_ifinfo_new() 398 if (!orig_ifinfo) in batadv_orig_ifinfo_new() 408 INIT_HLIST_NODE(&orig_ifinfo->list); in batadv_orig_ifinfo_new() 409 kref_init(&orig_ifinfo->refcount); in batadv_orig_ifinfo_new() 411 kref_get(&orig_ifinfo->refcount); in batadv_orig_ifinfo_new() 416 return orig_ifinfo; in batadv_orig_ifinfo_new() 813 kfree_rcu(orig_ifinfo, rcu); in batadv_orig_ifinfo_release() [all …]
|
H A D | bat_iv_ogm.c | 889 if (!orig_ifinfo) in batadv_iv_orig_ifinfo_sum() 896 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_iv_orig_ifinfo_sum() 1230 if (WARN_ON(!orig_ifinfo)) { in batadv_iv_ogm_update_seqnos() 1256 orig_ifinfo->last_real_seqno, in batadv_iv_ogm_update_seqnos() 1287 orig_ifinfo->last_real_seqno = seqno; in batadv_iv_ogm_update_seqnos() 1293 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_iv_ogm_update_seqnos() 1427 if (!orig_ifinfo) in batadv_iv_ogm_process_per_outif() 1436 orig_ifinfo, ethhdr, in batadv_iv_ogm_process_per_outif() 1440 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_iv_ogm_process_per_outif() 1527 if (!orig_ifinfo) in batadv_iv_ogm_process_reply() [all …]
|
H A D | bat_v_ogm.c | 526 struct batadv_orig_ifinfo *orig_ifinfo = NULL; in batadv_v_ogm_forward() local 538 orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); in batadv_v_ogm_forward() 539 if (!orig_ifinfo) in batadv_v_ogm_forward() 588 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_v_ogm_forward() 614 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_v_ogm_metric_update() local 622 if (!orig_ifinfo) in batadv_v_ogm_metric_update() 630 &orig_ifinfo->batman_seqno_reset, in batadv_v_ogm_metric_update() 637 orig_ifinfo->batman_seqno_reset, jiffies); in batadv_v_ogm_metric_update() 651 orig_ifinfo->last_real_seqno = ntohl(ogm2->seqno); in batadv_v_ogm_metric_update() 652 orig_ifinfo->last_ttl = ogm2->ttl; in batadv_v_ogm_metric_update() [all …]
|
H A D | originator.h | 146 batadv_orig_ifinfo_put(struct batadv_orig_ifinfo *orig_ifinfo) in batadv_orig_ifinfo_put() argument 148 if (!orig_ifinfo) in batadv_orig_ifinfo_put() 151 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put()
|
H A D | routing.c | 58 struct batadv_orig_ifinfo *orig_ifinfo; in _batadv_update_route() local 61 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, recv_if); in _batadv_update_route() 62 if (!orig_ifinfo) in _batadv_update_route() 78 curr_router = rcu_replace_pointer(orig_ifinfo->router, neigh_node, in _batadv_update_route() 81 batadv_orig_ifinfo_put(orig_ifinfo); in _batadv_update_route()
|
H A D | network-coding.c | 761 struct batadv_orig_ifinfo *orig_ifinfo; in batadv_can_nc_with_orig() local 765 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, BATADV_IF_DEFAULT); in batadv_can_nc_with_orig() 766 if (!orig_ifinfo) in batadv_can_nc_with_orig() 769 last_ttl = orig_ifinfo->last_ttl; in batadv_can_nc_with_orig() 770 last_real_seqno = orig_ifinfo->last_real_seqno; in batadv_can_nc_with_orig() 771 batadv_orig_ifinfo_put(orig_ifinfo); in batadv_can_nc_with_orig()
|