Lines Matching refs:neigh_ifinfo
1019 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update() local
1050 neigh_ifinfo = batadv_neigh_ifinfo_get(tmp_neigh_node, in batadv_iv_ogm_orig_update()
1052 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
1056 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
1057 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()
1058 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1059 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1062 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
1063 neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update()
1086 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()
1087 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
1093 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
1094 &neigh_ifinfo->bat_iv.tq_index, in batadv_iv_ogm_orig_update()
1096 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1097 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1102 neigh_ifinfo->last_ttl = batadv_ogm_packet->ttl; in batadv_iv_ogm_orig_update()
1120 if (router_ifinfo->bat_iv.tq_avg > neigh_ifinfo->bat_iv.tq_avg) in batadv_iv_ogm_orig_update()
1128 neigh_ifinfo->bat_iv.tq_avg == router_ifinfo->bat_iv.tq_avg) { in batadv_iv_ogm_orig_update()
1155 if (neigh_ifinfo) in batadv_iv_ogm_orig_update()
1156 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
1179 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_iv_ogm_calc_tq() local
1227 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_calc_tq()
1228 if (neigh_ifinfo) { in batadv_iv_ogm_calc_tq()
1229 neigh_rq_count = neigh_ifinfo->bat_iv.real_packet_count; in batadv_iv_ogm_calc_tq()
1230 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_calc_tq()
1327 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_iv_ogm_update_seqnos() local
1362 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, in batadv_iv_ogm_update_seqnos()
1364 if (!neigh_ifinfo) in batadv_iv_ogm_update_seqnos()
1368 is_dup = batadv_test_bit(neigh_ifinfo->bat_iv.real_bits, in batadv_iv_ogm_update_seqnos()
1384 bitmap = neigh_ifinfo->bat_iv.real_bits; in batadv_iv_ogm_update_seqnos()
1390 neigh_ifinfo->bat_iv.real_packet_count = packet_count; in batadv_iv_ogm_update_seqnos()
1391 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_update_seqnos()