Lines Matching refs:ldev

33 int lowpan_header_create(struct sk_buff *skb, struct net_device *ldev,  in lowpan_header_create()  argument
37 struct wpan_dev *wpan_dev = lowpan_802154_dev(ldev)->wdev->ieee802154_ptr; in lowpan_header_create()
56 if (!memcmp(daddr, ldev->broadcast, EUI64_ADDR_LEN)) { in lowpan_header_create()
62 n = neigh_lookup(&nd_tbl, &hdr->daddr, ldev); in lowpan_header_create()
158 lowpan_xmit_fragmented(struct sk_buff *skb, struct net_device *ldev, in lowpan_xmit_fragmented() argument
167 frag_tag = htons(lowpan_802154_dev(ldev)->fragment_tag); in lowpan_xmit_fragmented()
168 lowpan_802154_dev(ldev)->fragment_tag++; in lowpan_xmit_fragmented()
214 ldev->stats.tx_packets++; in lowpan_xmit_fragmented()
215 ldev->stats.tx_bytes += dgram_size; in lowpan_xmit_fragmented()
224 static int lowpan_header(struct sk_buff *skb, struct net_device *ldev, in lowpan_header() argument
227 struct wpan_dev *wpan_dev = lowpan_802154_dev(ldev)->wdev->ieee802154_ptr; in lowpan_header()
234 lowpan_header_compress(skb, ldev, &info.daddr, &info.saddr); in lowpan_header()
246 return wpan_dev_hard_header(skb, lowpan_802154_dev(ldev)->wdev, in lowpan_header()
250 netdev_tx_t lowpan_xmit(struct sk_buff *skb, struct net_device *ldev) in lowpan_xmit() argument
263 if (unlikely(skb_headroom(skb) < ldev->needed_headroom || in lowpan_xmit()
264 skb_tailroom(skb) < ldev->needed_tailroom)) { in lowpan_xmit()
267 nskb = skb_copy_expand(skb, ldev->needed_headroom, in lowpan_xmit()
268 ldev->needed_tailroom, GFP_ATOMIC); in lowpan_xmit()
282 ret = lowpan_header(skb, ldev, &dgram_size, &dgram_offset); in lowpan_xmit()
296 skb->dev = lowpan_802154_dev(ldev)->wdev; in lowpan_xmit()
297 ldev->stats.tx_packets++; in lowpan_xmit()
298 ldev->stats.tx_bytes += dgram_size; in lowpan_xmit()
304 rc = lowpan_xmit_fragmented(skb, ldev, &wpan_hdr, dgram_size, in lowpan_xmit()