Lines Matching refs:wpan_dev
201 struct wpan_dev *wpan_dev; in cfg802154_switch_netns() local
204 list_for_each_entry(wpan_dev, &rdev->wpan_dev_list, list) { in cfg802154_switch_netns()
205 if (!wpan_dev->netdev) in cfg802154_switch_netns()
207 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
208 err = dev_change_net_namespace(wpan_dev->netdev, net, "wpan%d"); in cfg802154_switch_netns()
211 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
218 list_for_each_entry_continue_reverse(wpan_dev, in cfg802154_switch_netns()
221 if (!wpan_dev->netdev) in cfg802154_switch_netns()
223 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
224 err = dev_change_net_namespace(wpan_dev->netdev, net, in cfg802154_switch_netns()
227 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
259 struct wpan_dev *wpan_dev = dev->ieee802154_ptr; in cfg802154_netdev_notifier_call() local
262 if (!wpan_dev) in cfg802154_netdev_notifier_call()
265 rdev = wpan_phy_to_rdev(wpan_dev->wpan_phy); in cfg802154_netdev_notifier_call()
273 wpan_dev->identifier = ++rdev->wpan_dev_id; in cfg802154_netdev_notifier_call()
274 list_add_rcu(&wpan_dev->list, &rdev->wpan_dev_list); in cfg802154_netdev_notifier_call()
277 wpan_dev->netdev = dev; in cfg802154_netdev_notifier_call()
280 cfg802154_update_iface_num(rdev, wpan_dev->iftype, -1); in cfg802154_netdev_notifier_call()
286 cfg802154_update_iface_num(rdev, wpan_dev->iftype, 1); in cfg802154_netdev_notifier_call()
297 if (!list_empty(&wpan_dev->list)) { in cfg802154_netdev_notifier_call()
298 list_del_rcu(&wpan_dev->list); in cfg802154_netdev_notifier_call()
307 INIT_LIST_HEAD(&wpan_dev->list); in cfg802154_netdev_notifier_call()