Lines Matching refs:wpan_phy

26 struct wpan_phy *wpan_phy_find(const char *str)  in wpan_phy_find()
37 return container_of(dev, struct wpan_phy, dev); in wpan_phy_find()
42 int (*fn)(struct wpan_phy *phy, void *data);
49 struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev); in wpan_phy_iter()
54 int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), in wpan_phy_for_each()
84 struct wpan_phy *wpan_phy_idx_to_wpan_phy(int wpan_phy_idx) in wpan_phy_idx_to_wpan_phy()
93 return &rdev->wpan_phy; in wpan_phy_idx_to_wpan_phy()
96 struct wpan_phy *
123 device_initialize(&rdev->wpan_phy.dev); in wpan_phy_new()
124 dev_set_name(&rdev->wpan_phy.dev, PHY_NAME "%d", rdev->wpan_phy_idx); in wpan_phy_new()
126 rdev->wpan_phy.dev.class = &wpan_phy_class; in wpan_phy_new()
127 rdev->wpan_phy.dev.platform_data = rdev; in wpan_phy_new()
129 wpan_phy_net_set(&rdev->wpan_phy, &init_net); in wpan_phy_new()
132 init_waitqueue_head(&rdev->wpan_phy.sync_txq); in wpan_phy_new()
134 spin_lock_init(&rdev->wpan_phy.queue_lock); in wpan_phy_new()
136 return &rdev->wpan_phy; in wpan_phy_new()
140 int wpan_phy_register(struct wpan_phy *phy) in wpan_phy_register()
164 void wpan_phy_unregister(struct wpan_phy *phy) in wpan_phy_unregister()
195 void wpan_phy_free(struct wpan_phy *phy) in wpan_phy_free()
219 net = wpan_phy_net(&rdev->wpan_phy); in cfg802154_switch_netns()
236 wpan_phy_net_set(&rdev->wpan_phy, net); in cfg802154_switch_netns()
238 err = device_rename(&rdev->wpan_phy.dev, dev_name(&rdev->wpan_phy.dev)); in cfg802154_switch_netns()
268 rdev = wpan_phy_to_rdev(wpan_dev->wpan_phy); in cfg802154_netdev_notifier_call()
329 if (net_eq(wpan_phy_net(&rdev->wpan_phy), net)) in cfg802154_pernet_exit()