Lines Matching refs:neigh_ifinfo
1024 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update() local
1056 neigh_ifinfo = batadv_neigh_ifinfo_get(tmp_neigh_node, in batadv_iv_ogm_orig_update()
1058 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
1062 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
1063 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()
1064 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1065 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1068 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
1069 neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update()
1092 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()
1093 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
1099 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
1100 &neigh_ifinfo->bat_iv.tq_index, in batadv_iv_ogm_orig_update()
1102 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1103 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1108 neigh_ifinfo->last_ttl = batadv_ogm_packet->ttl; in batadv_iv_ogm_orig_update()
1126 if (router_ifinfo->bat_iv.tq_avg > neigh_ifinfo->bat_iv.tq_avg) in batadv_iv_ogm_orig_update()
1134 neigh_ifinfo->bat_iv.tq_avg == router_ifinfo->bat_iv.tq_avg) { in batadv_iv_ogm_orig_update()
1161 if (neigh_ifinfo) in batadv_iv_ogm_orig_update()
1162 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
1185 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_iv_ogm_calc_tq() local
1233 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_calc_tq()
1234 if (neigh_ifinfo) { in batadv_iv_ogm_calc_tq()
1235 neigh_rq_count = neigh_ifinfo->bat_iv.real_packet_count; in batadv_iv_ogm_calc_tq()
1236 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_calc_tq()
1333 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_iv_ogm_update_seqnos() local
1368 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, in batadv_iv_ogm_update_seqnos()
1370 if (!neigh_ifinfo) in batadv_iv_ogm_update_seqnos()
1374 is_dup = batadv_test_bit(neigh_ifinfo->bat_iv.real_bits, in batadv_iv_ogm_update_seqnos()
1390 bitmap = neigh_ifinfo->bat_iv.real_bits; in batadv_iv_ogm_update_seqnos()
1396 neigh_ifinfo->bat_iv.real_packet_count = packet_count; in batadv_iv_ogm_update_seqnos()
1397 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_update_seqnos()