• Home
  • Raw
  • Download

Lines Matching refs:bat_iv

154 	spin_lock_init(&orig_node->bat_iv.ogm_cnt_lock);  in batadv_iv_ogm_orig_get()
199 mutex_lock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_iface_enable()
203 atomic_set(&hard_iface->bat_iv.ogm_seqno, random_seqno); in batadv_iv_ogm_iface_enable()
205 hard_iface->bat_iv.ogm_buff_len = BATADV_OGM_HLEN; in batadv_iv_ogm_iface_enable()
206 ogm_buff = kmalloc(hard_iface->bat_iv.ogm_buff_len, GFP_ATOMIC); in batadv_iv_ogm_iface_enable()
208 mutex_unlock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_iface_enable()
212 hard_iface->bat_iv.ogm_buff = ogm_buff; in batadv_iv_ogm_iface_enable()
222 mutex_unlock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_iface_enable()
229 mutex_lock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_iface_disable()
231 kfree(hard_iface->bat_iv.ogm_buff); in batadv_iv_ogm_iface_disable()
232 hard_iface->bat_iv.ogm_buff = NULL; in batadv_iv_ogm_iface_disable()
234 mutex_unlock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_iface_disable()
242 mutex_lock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_iface_update_mac()
244 ogm_buff = hard_iface->bat_iv.ogm_buff; in batadv_iv_ogm_iface_update_mac()
255 mutex_unlock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_iface_update_mac()
264 mutex_lock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_primary_iface_set()
266 ogm_buff = hard_iface->bat_iv.ogm_buff; in batadv_iv_ogm_primary_iface_set()
274 mutex_unlock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_primary_iface_set()
765 spin_lock_bh(&orig_node->bat_iv.ogm_cnt_lock); 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()
771 spin_unlock_bh(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_ogm_slide_own_bcast_window()
785 unsigned char **ogm_buff = &hard_iface->bat_iv.ogm_buff; in batadv_iv_ogm_schedule_buff()
788 int *ogm_buff_len = &hard_iface->bat_iv.ogm_buff_len; in batadv_iv_ogm_schedule_buff()
793 lockdep_assert_held(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_schedule_buff()
824 seqno = (u32)atomic_read(&hard_iface->bat_iv.ogm_seqno); in batadv_iv_ogm_schedule_buff()
826 atomic_inc(&hard_iface->bat_iv.ogm_seqno); in batadv_iv_ogm_schedule_buff()
871 mutex_lock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_schedule()
873 mutex_unlock(&hard_iface->bat_iv.ogm_buff_mutex); in batadv_iv_ogm_schedule()
896 spin_lock_bh(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_orig_ifinfo_sum()
897 sum = orig_ifinfo->bat_iv.bcast_own_sum; in batadv_iv_orig_ifinfo_sum()
898 spin_unlock_bh(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_orig_ifinfo_sum()
963 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
964 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()
965 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
966 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1000 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()
1001 &neigh_ifinfo->bat_iv.tq_index, in batadv_iv_ogm_orig_update()
1003 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()
1004 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()
1027 if (router_ifinfo->bat_iv.tq_avg > neigh_ifinfo->bat_iv.tq_avg) in batadv_iv_ogm_orig_update()
1035 neigh_ifinfo->bat_iv.tq_avg == router_ifinfo->bat_iv.tq_avg) { in batadv_iv_ogm_orig_update()
1125 neigh_rq_count = neigh_ifinfo->bat_iv.real_packet_count; in batadv_iv_ogm_calc_tq()
1244 spin_lock_bh(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_ogm_update_seqnos()
1264 is_dup = batadv_test_bit(neigh_ifinfo->bat_iv.real_bits, in batadv_iv_ogm_update_seqnos()
1280 bitmap = neigh_ifinfo->bat_iv.real_bits; in batadv_iv_ogm_update_seqnos()
1286 neigh_ifinfo->bat_iv.real_packet_count = packet_count; in batadv_iv_ogm_update_seqnos()
1300 spin_unlock_bh(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_ogm_update_seqnos()
1381 if ((router_ifinfo && router_ifinfo->bat_iv.tq_avg != 0) && in batadv_iv_ogm_process_per_outif()
1545 spin_lock_bh(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_ogm_process_reply()
1548 batadv_set_bit(orig_ifinfo->bat_iv.bcast_own, bit_pos); in batadv_iv_ogm_process_reply()
1549 weight = &orig_ifinfo->bat_iv.bcast_own_sum; in batadv_iv_ogm_process_reply()
1550 *weight = bitmap_weight(orig_ifinfo->bat_iv.bcast_own, in batadv_iv_ogm_process_reply()
1552 spin_unlock_bh(&orig_node->bat_iv.ogm_cnt_lock); in batadv_iv_ogm_process_reply()
1596 if_incoming_seqno = atomic_read(&if_incoming->bat_iv.ogm_seqno); in batadv_iv_ogm_process()
1809 n_ifinfo->bat_iv.tq_avg); in batadv_iv_ogm_orig_print_neigh()
1853 if (n_ifinfo->bat_iv.tq_avg == 0) in batadv_iv_ogm_orig_print()
1863 last_seen_msecs, n_ifinfo->bat_iv.tq_avg, in batadv_iv_ogm_orig_print()
1905 *tq_avg = n_ifinfo->bat_iv.tq_avg; in batadv_iv_ogm_neigh_get_tq_avg()
2199 tq1 = neigh1_ifinfo->bat_iv.tq_avg; in batadv_iv_ogm_neigh_diff()
2200 tq2 = neigh2_ifinfo->bat_iv.tq_avg; in batadv_iv_ogm_neigh_diff()
2440 tq_avg = router_ifinfo->bat_iv.tq_avg; in batadv_iv_gw_get_best_gw_node()
2530 gw_tq_avg = router_gw_ifinfo->bat_iv.tq_avg; in batadv_iv_gw_is_eligible()
2531 orig_tq_avg = router_orig_ifinfo->bat_iv.tq_avg; in batadv_iv_gw_is_eligible()
2586 router_ifinfo->bat_iv.tq_avg, router->addr, in batadv_iv_gw_write_buffer_text()
2679 nla_put_u8(msg, BATADV_ATTR_TQ, router_ifinfo->bat_iv.tq_avg) || in batadv_iv_gw_dump_entry()