Lines Matching refs:neigh_ifinfo

924 	struct batadv_neigh_ifinfo *neigh_ifinfo = NULL;  in batadv_iv_ogm_orig_update()  local
954 neigh_ifinfo = batadv_neigh_ifinfo_get(tmp_neigh_node, in batadv_iv_ogm_orig_update()
956 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
960 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
961 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()
962 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
963 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
966 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
967 neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update()
990 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()
991 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()
997 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
998 &neigh_ifinfo->bat_iv.tq_index, in batadv_iv_ogm_orig_update()
1000 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1001 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1006 neigh_ifinfo->last_ttl = batadv_ogm_packet->ttl; in batadv_iv_ogm_orig_update()
1024 if (router_ifinfo->bat_iv.tq_avg > neigh_ifinfo->bat_iv.tq_avg) in batadv_iv_ogm_orig_update()
1032 neigh_ifinfo->bat_iv.tq_avg == router_ifinfo->bat_iv.tq_avg) { in batadv_iv_ogm_orig_update()
1049 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_orig_update()
1071 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_iv_ogm_calc_tq() local
1116 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_calc_tq()
1117 if (neigh_ifinfo) { in batadv_iv_ogm_calc_tq()
1118 neigh_rq_count = neigh_ifinfo->bat_iv.real_packet_count; in batadv_iv_ogm_calc_tq()
1119 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_calc_tq()
1215 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_iv_ogm_update_seqnos() local
1250 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, in batadv_iv_ogm_update_seqnos()
1252 if (!neigh_ifinfo) in batadv_iv_ogm_update_seqnos()
1256 is_dup = batadv_test_bit(neigh_ifinfo->bat_iv.real_bits, in batadv_iv_ogm_update_seqnos()
1272 bitmap = neigh_ifinfo->bat_iv.real_bits; in batadv_iv_ogm_update_seqnos()
1278 neigh_ifinfo->bat_iv.real_packet_count = packet_count; in batadv_iv_ogm_update_seqnos()
1279 batadv_neigh_ifinfo_put(neigh_ifinfo); in batadv_iv_ogm_update_seqnos()