• Home
  • Raw
  • Download

Lines Matching refs:bat_v

94 	queue_delayed_work(batadv_event_workqueue, &hard_iface->bat_v.aggr_wq,  in batadv_v_ogm_start_queue_timer()
108 if (delayed_work_pending(&bat_priv->bat_v.ogm_wq)) in batadv_v_ogm_start_timer()
113 queue_delayed_work(batadv_event_workqueue, &bat_priv->bat_v.ogm_wq, in batadv_v_ogm_start_timer()
170 lockdep_assert_held(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_queue_left()
172 return hard_iface->bat_v.aggr_len + ogm_len <= max; in batadv_v_ogm_queue_left()
185 lockdep_assert_held(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_aggr_list_free()
187 __skb_queue_purge(&hard_iface->bat_v.aggr_list); in batadv_v_ogm_aggr_list_free()
188 hard_iface->bat_v.aggr_len = 0; in batadv_v_ogm_aggr_list_free()
204 unsigned int aggr_len = hard_iface->bat_v.aggr_len; in batadv_v_ogm_aggr_send()
209 lockdep_assert_held(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_aggr_send()
223 while ((skb = __skb_dequeue(&hard_iface->bat_v.aggr_list))) { in batadv_v_ogm_aggr_send()
224 hard_iface->bat_v.aggr_len -= batadv_v_ogm_len(skb); in batadv_v_ogm_aggr_send()
250 spin_lock_bh(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_queue_on_if()
254 hard_iface->bat_v.aggr_len += batadv_v_ogm_len(skb); in batadv_v_ogm_queue_on_if()
255 __skb_queue_tail(&hard_iface->bat_v.aggr_list, skb); in batadv_v_ogm_queue_on_if()
256 spin_unlock_bh(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_queue_on_if()
273 lockdep_assert_held(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_send_softif()
278 ogm_buff = bat_priv->bat_v.ogm_buff; in batadv_v_ogm_send_softif()
279 ogm_buff_len = bat_priv->bat_v.ogm_buff_len; in batadv_v_ogm_send_softif()
288 bat_priv->bat_v.ogm_buff = ogm_buff; in batadv_v_ogm_send_softif()
289 bat_priv->bat_v.ogm_buff_len = ogm_buff_len; in batadv_v_ogm_send_softif()
299 ogm_packet->seqno = htonl(atomic_read(&bat_priv->bat_v.ogm_seqno)); in batadv_v_ogm_send_softif()
300 atomic_inc(&bat_priv->bat_v.ogm_seqno); in batadv_v_ogm_send_softif()
370 struct batadv_priv_bat_v *bat_v; in batadv_v_ogm_send() local
373 bat_v = container_of(work, struct batadv_priv_bat_v, ogm_wq.work); in batadv_v_ogm_send()
374 bat_priv = container_of(bat_v, struct batadv_priv, bat_v); in batadv_v_ogm_send()
376 mutex_lock(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_send()
378 mutex_unlock(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_send()
393 hard_iface = container_of(batv, struct batadv_hard_iface, bat_v); in batadv_v_ogm_aggr_work()
395 spin_lock_bh(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_aggr_work()
397 spin_unlock_bh(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_aggr_work()
426 cancel_delayed_work_sync(&hard_iface->bat_v.aggr_wq); in batadv_v_ogm_iface_disable()
428 spin_lock_bh(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_iface_disable()
430 spin_unlock_bh(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_iface_disable()
442 mutex_lock(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_primary_iface_set()
443 if (!bat_priv->bat_v.ogm_buff) in batadv_v_ogm_primary_iface_set()
446 ogm_packet = (struct batadv_ogm2_packet *)bat_priv->bat_v.ogm_buff; in batadv_v_ogm_primary_iface_set()
450 mutex_unlock(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_primary_iface_set()
499 !(if_incoming->bat_v.flags & BATADV_FULL_DUPLEX)) in batadv_v_forward_penalty()
578 ogm_forward->throughput = htonl(neigh_ifinfo->bat_v.throughput); in batadv_v_ogm_forward()
662 neigh_ifinfo->bat_v.throughput = path_throughput; in batadv_v_ogm_metric_update()
663 neigh_ifinfo->bat_v.last_seqno = ntohl(ogm2->seqno); in batadv_v_ogm_metric_update()
750 neigh_last_seqno = neigh_ifinfo->bat_v.last_seqno; in batadv_v_ogm_route_update()
751 router_last_seqno = router_ifinfo->bat_v.last_seqno; in batadv_v_ogm_route_update()
753 router_throughput = router_ifinfo->bat_v.throughput; in batadv_v_ogm_route_update()
754 neigh_throughput = neigh_ifinfo->bat_v.throughput; in batadv_v_ogm_route_update()
917 link_throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_ogm_process()
1050 bat_priv->bat_v.ogm_buff_len = BATADV_OGM2_HLEN; in batadv_v_ogm_init()
1051 ogm_buff = kzalloc(bat_priv->bat_v.ogm_buff_len, GFP_ATOMIC); in batadv_v_ogm_init()
1055 bat_priv->bat_v.ogm_buff = ogm_buff; in batadv_v_ogm_init()
1065 atomic_set(&bat_priv->bat_v.ogm_seqno, random_seqno); in batadv_v_ogm_init()
1066 INIT_DELAYED_WORK(&bat_priv->bat_v.ogm_wq, batadv_v_ogm_send); in batadv_v_ogm_init()
1068 mutex_init(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_init()
1079 cancel_delayed_work_sync(&bat_priv->bat_v.ogm_wq); in batadv_v_ogm_free()
1081 mutex_lock(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_free()
1083 kfree(bat_priv->bat_v.ogm_buff); in batadv_v_ogm_free()
1084 bat_priv->bat_v.ogm_buff = NULL; in batadv_v_ogm_free()
1085 bat_priv->bat_v.ogm_buff_len = 0; in batadv_v_ogm_free()
1087 mutex_unlock(&bat_priv->bat_v.ogm_buff_mutex); in batadv_v_ogm_free()