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