Lines Matching refs:bat_v

52 	msecs = atomic_read(&hard_iface->bat_v.elp_interval) - BATADV_JITTER;  in batadv_v_elp_start_timer()
55 queue_delayed_work(batadv_event_workqueue, &hard_iface->bat_v.elp_wq, in batadv_v_elp_start_timer()
78 throughput = atomic_read(&hard_iface->bat_v.throughput_override); in batadv_v_elp_get_throughput()
133 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput()
135 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput()
143 if (!(hard_iface->bat_v.flags & BATADV_WARNING_DEFAULT)) { in batadv_v_elp_get_throughput()
149 hard_iface->bat_v.flags |= BATADV_WARNING_DEFAULT; in batadv_v_elp_get_throughput()
169 bat_v); in batadv_v_elp_throughput_metric_update()
171 ewma_throughput_add(&neigh->bat_v.throughput, in batadv_v_elp_throughput_metric_update()
212 last_tx_diff = jiffies_to_msecs(jiffies - neigh->bat_v.last_unicast_tx); in batadv_v_elp_wifi_neigh_probe()
220 elp_skb_len = hard_iface->bat_v.elp_skb->len; in batadv_v_elp_wifi_neigh_probe()
221 skb = skb_copy_expand(hard_iface->bat_v.elp_skb, 0, in batadv_v_elp_wifi_neigh_probe()
231 skb_put_zero(skb, probe_len - hard_iface->bat_v.elp_skb->len); in batadv_v_elp_wifi_neigh_probe()
253 struct batadv_hard_iface_bat_v *bat_v; in batadv_v_elp_periodic_work() local
260 bat_v = container_of(work, struct batadv_hard_iface_bat_v, elp_wq.work); in batadv_v_elp_periodic_work()
261 hard_iface = container_of(bat_v, struct batadv_hard_iface, bat_v); in batadv_v_elp_periodic_work()
276 skb = skb_copy(hard_iface->bat_v.elp_skb, GFP_ATOMIC); in batadv_v_elp_periodic_work()
281 elp_packet->seqno = htonl(atomic_read(&hard_iface->bat_v.elp_seqno)); in batadv_v_elp_periodic_work()
282 elp_interval = atomic_read(&hard_iface->bat_v.elp_interval); in batadv_v_elp_periodic_work()
288 atomic_read(&hard_iface->bat_v.elp_seqno)); in batadv_v_elp_periodic_work()
292 atomic_inc(&hard_iface->bat_v.elp_seqno); in batadv_v_elp_periodic_work()
321 &hardif_neigh->bat_v.metric_work); in batadv_v_elp_periodic_work()
350 hard_iface->bat_v.elp_skb = dev_alloc_skb(size); in batadv_v_elp_iface_enable()
351 if (!hard_iface->bat_v.elp_skb) in batadv_v_elp_iface_enable()
354 skb_reserve(hard_iface->bat_v.elp_skb, ETH_HLEN + NET_IP_ALIGN); in batadv_v_elp_iface_enable()
355 elp_buff = skb_put_zero(hard_iface->bat_v.elp_skb, in batadv_v_elp_iface_enable()
364 atomic_set(&hard_iface->bat_v.elp_seqno, random_seqno); in batadv_v_elp_iface_enable()
367 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX; in batadv_v_elp_iface_enable()
370 hard_iface->bat_v.flags &= ~BATADV_WARNING_DEFAULT; in batadv_v_elp_iface_enable()
373 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX; in batadv_v_elp_iface_enable()
375 INIT_DELAYED_WORK(&hard_iface->bat_v.elp_wq, in batadv_v_elp_iface_enable()
390 cancel_delayed_work_sync(&hard_iface->bat_v.elp_wq); in batadv_v_elp_iface_disable()
392 dev_kfree_skb(hard_iface->bat_v.elp_skb); in batadv_v_elp_iface_disable()
393 hard_iface->bat_v.elp_skb = NULL; in batadv_v_elp_iface_disable()
408 if (!hard_iface->bat_v.elp_skb) in batadv_v_elp_iface_activate()
411 skb = hard_iface->bat_v.elp_skb; in batadv_v_elp_iface_activate()
472 elp_latest_seqno = hardif_neigh->bat_v.elp_latest_seqno; in batadv_v_elp_neigh_update()
483 hardif_neigh->bat_v.elp_latest_seqno = ntohl(elp_packet->seqno); in batadv_v_elp_neigh_update()
484 hardif_neigh->bat_v.elp_interval = ntohl(elp_packet->elp_interval); in batadv_v_elp_neigh_update()