Lines Matching refs:bat_v
52 msecs = atomic_read(&hard_iface->bat_v.elp_interval) - BATADV_JITTER;
55 queue_delayed_work(batadv_event_workqueue, &hard_iface->bat_v.elp_wq,
78 throughput = atomic_read(&hard_iface->bat_v.throughput_override);
134 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX;
136 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX;
144 if (!(hard_iface->bat_v.flags & BATADV_WARNING_DEFAULT)) {
150 hard_iface->bat_v.flags |= BATADV_WARNING_DEFAULT;
170 bat_v);
172 ewma_throughput_add(&neigh->bat_v.throughput,
213 last_tx_diff = jiffies_to_msecs(jiffies - neigh->bat_v.last_unicast_tx);
221 elp_skb_len = hard_iface->bat_v.elp_skb->len;
222 skb = skb_copy_expand(hard_iface->bat_v.elp_skb, 0,
232 skb_put_zero(skb, probe_len - hard_iface->bat_v.elp_skb->len);
254 struct batadv_hard_iface_bat_v *bat_v;
261 bat_v = container_of(work, struct batadv_hard_iface_bat_v, elp_wq.work);
262 hard_iface = container_of(bat_v, struct batadv_hard_iface, bat_v);
277 skb = skb_copy(hard_iface->bat_v.elp_skb, GFP_ATOMIC);
282 elp_packet->seqno = htonl(atomic_read(&hard_iface->bat_v.elp_seqno));
283 elp_interval = atomic_read(&hard_iface->bat_v.elp_interval);
289 atomic_read(&hard_iface->bat_v.elp_seqno));
293 atomic_inc(&hard_iface->bat_v.elp_seqno);
322 &hardif_neigh->bat_v.metric_work);
351 hard_iface->bat_v.elp_skb = dev_alloc_skb(size);
352 if (!hard_iface->bat_v.elp_skb)
355 skb_reserve(hard_iface->bat_v.elp_skb, ETH_HLEN + NET_IP_ALIGN);
356 elp_buff = skb_put_zero(hard_iface->bat_v.elp_skb,
365 atomic_set(&hard_iface->bat_v.elp_seqno, random_seqno);
368 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX;
371 hard_iface->bat_v.flags &= ~BATADV_WARNING_DEFAULT;
374 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX;
376 INIT_DELAYED_WORK(&hard_iface->bat_v.elp_wq,
391 cancel_delayed_work_sync(&hard_iface->bat_v.elp_wq);
393 dev_kfree_skb(hard_iface->bat_v.elp_skb);
394 hard_iface->bat_v.elp_skb = NULL;
409 if (!hard_iface->bat_v.elp_skb)
412 skb = hard_iface->bat_v.elp_skb;
473 elp_latest_seqno = hardif_neigh->bat_v.elp_latest_seqno;
484 hardif_neigh->bat_v.elp_latest_seqno = ntohl(elp_packet->seqno);
485 hardif_neigh->bat_v.elp_interval = ntohl(elp_packet->elp_interval);