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()
134 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput()
136 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput()
144 if (!(hard_iface->bat_v.flags & BATADV_WARNING_DEFAULT)) { in batadv_v_elp_get_throughput()
150 hard_iface->bat_v.flags |= BATADV_WARNING_DEFAULT; in batadv_v_elp_get_throughput()
170 bat_v); in batadv_v_elp_throughput_metric_update()
172 ewma_throughput_add(&neigh->bat_v.throughput, in batadv_v_elp_throughput_metric_update()
213 last_tx_diff = jiffies_to_msecs(jiffies - neigh->bat_v.last_unicast_tx); in batadv_v_elp_wifi_neigh_probe()
221 elp_skb_len = hard_iface->bat_v.elp_skb->len; in batadv_v_elp_wifi_neigh_probe()
222 skb = skb_copy_expand(hard_iface->bat_v.elp_skb, 0, in batadv_v_elp_wifi_neigh_probe()
232 skb_put_zero(skb, probe_len - hard_iface->bat_v.elp_skb->len); in batadv_v_elp_wifi_neigh_probe()
254 struct batadv_hard_iface_bat_v *bat_v; in batadv_v_elp_periodic_work() local
261 bat_v = container_of(work, struct batadv_hard_iface_bat_v, elp_wq.work); in batadv_v_elp_periodic_work()
262 hard_iface = container_of(bat_v, struct batadv_hard_iface, bat_v); in batadv_v_elp_periodic_work()
277 skb = skb_copy(hard_iface->bat_v.elp_skb, GFP_ATOMIC); in batadv_v_elp_periodic_work()
282 elp_packet->seqno = htonl(atomic_read(&hard_iface->bat_v.elp_seqno)); in batadv_v_elp_periodic_work()
283 elp_interval = atomic_read(&hard_iface->bat_v.elp_interval); in batadv_v_elp_periodic_work()
289 atomic_read(&hard_iface->bat_v.elp_seqno)); in batadv_v_elp_periodic_work()
293 atomic_inc(&hard_iface->bat_v.elp_seqno); in batadv_v_elp_periodic_work()
322 &hardif_neigh->bat_v.metric_work); in batadv_v_elp_periodic_work()
351 hard_iface->bat_v.elp_skb = dev_alloc_skb(size); in batadv_v_elp_iface_enable()
352 if (!hard_iface->bat_v.elp_skb) in batadv_v_elp_iface_enable()
355 skb_reserve(hard_iface->bat_v.elp_skb, ETH_HLEN + NET_IP_ALIGN); in batadv_v_elp_iface_enable()
356 elp_buff = skb_put_zero(hard_iface->bat_v.elp_skb, in batadv_v_elp_iface_enable()
365 atomic_set(&hard_iface->bat_v.elp_seqno, random_seqno); in batadv_v_elp_iface_enable()
368 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX; in batadv_v_elp_iface_enable()
371 hard_iface->bat_v.flags &= ~BATADV_WARNING_DEFAULT; in batadv_v_elp_iface_enable()
374 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX; in batadv_v_elp_iface_enable()
376 INIT_DELAYED_WORK(&hard_iface->bat_v.elp_wq, in batadv_v_elp_iface_enable()
391 cancel_delayed_work_sync(&hard_iface->bat_v.elp_wq); in batadv_v_elp_iface_disable()
393 dev_kfree_skb(hard_iface->bat_v.elp_skb); in batadv_v_elp_iface_disable()
394 hard_iface->bat_v.elp_skb = NULL; in batadv_v_elp_iface_disable()
409 if (!hard_iface->bat_v.elp_skb) in batadv_v_elp_iface_activate()
412 skb = hard_iface->bat_v.elp_skb; in batadv_v_elp_iface_activate()
473 elp_latest_seqno = hardif_neigh->bat_v.elp_latest_seqno; in batadv_v_elp_neigh_update()
484 hardif_neigh->bat_v.elp_latest_seqno = ntohl(elp_packet->seqno); in batadv_v_elp_neigh_update()
485 hardif_neigh->bat_v.elp_interval = ntohl(elp_packet->elp_interval); in batadv_v_elp_neigh_update()