lowpan_dev
struct lowpan_dev *lowpan_dev(const struct net_device *dev)
return (struct lowpan_802154_dev *)lowpan_dev(dev)->priv;
(sizeof(struct lowpan_dev) + llpriv_size)
struct net_device *lowpan_dev;
return lowpan_dev(dev)->lltype == lltype;
&lowpan_dev(dev)->ctx.table[i].flags);
lowpan_dev(dev)->lltype = lltype;
spin_lock_init(&lowpan_dev(dev)->ctx.lock);
lowpan_dev(dev)->ctx.table[i].id = i;
struct lowpan_dev *ldev = lowpan_dev(dev);
struct lowpan_dev *ldev)
struct lowpan_dev *ldev = lowpan_dev(dev);
debugfs_create_file("show", 0644, contexts, &lowpan_dev(dev)->ctx,
debugfs_remove_recursive(lowpan_dev(dev)->iface_debugfs);
spin_lock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
spin_lock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
struct lowpan_iphc_ctx *ret = &lowpan_dev(dev)->ctx.table[id];
struct lowpan_iphc_ctx *table = lowpan_dev(dev)->ctx.table;
struct lowpan_iphc_ctx *table = lowpan_dev(dev)->ctx.table;
switch (lowpan_dev(dev)->lltype) {
switch (lowpan_dev(dev)->lltype) {
spin_lock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
spin_lock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
spin_lock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
spin_unlock_bh(&lowpan_dev(dev)->ctx.lock);
switch (lowpan_dev(dev)->lltype) {
switch (lowpan_dev(dev)->lltype) {
switch (lowpan_dev(dev)->lltype) {
switch (lowpan_dev(skb->dev)->lltype) {
return (struct lowpan_btle_dev *)lowpan_dev(netdev)->priv;
if (wdev->ieee802154_ptr->lowpan_dev) {
wdev->ieee802154_ptr->lowpan_dev = ldev;
wdev->ieee802154_ptr->lowpan_dev = NULL;
if (wpan_dev->lowpan_dev)
lowpan_dellink(wpan_dev->lowpan_dev, NULL);
ldev = wdev->ieee802154_ptr->lowpan_dev;
if (wpan_dev->lowpan_dev) {
if (netif_running(wpan_dev->lowpan_dev))
if (wpan_dev->lowpan_dev) {
if (netif_running(wpan_dev->lowpan_dev))
if (sdata->wpan_dev.lowpan_dev) {
if (netif_running(sdata->wpan_dev.lowpan_dev))
if (sdata->wpan_dev.lowpan_dev)
dev_addr_set(sdata->wpan_dev.lowpan_dev, dev->dev_addr);