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()
133 return &rdev->wpan_phy; in wpan_phy_new()
137 int wpan_phy_register(struct wpan_phy *phy) in wpan_phy_register()
161 void wpan_phy_unregister(struct wpan_phy *phy) in wpan_phy_unregister()
192 void wpan_phy_free(struct wpan_phy *phy) in wpan_phy_free()
216 net = wpan_phy_net(&rdev->wpan_phy); in cfg802154_switch_netns()
233 wpan_phy_net_set(&rdev->wpan_phy, net); in cfg802154_switch_netns()
235 err = device_rename(&rdev->wpan_phy.dev, dev_name(&rdev->wpan_phy.dev)); in cfg802154_switch_netns()
265 rdev = wpan_phy_to_rdev(wpan_dev->wpan_phy); in cfg802154_netdev_notifier_call()
326 if (net_eq(wpan_phy_net(&rdev->wpan_phy), net)) in cfg802154_pernet_exit()