Lines Matching refs:local

25 	struct ieee802154_local *local = from_tasklet(local, t, tasklet);  in ieee802154_tasklet_handler()  local
28 while ((skb = skb_dequeue(&local->skb_queue))) { in ieee802154_tasklet_handler()
35 ieee802154_rx(local, skb); in ieee802154_tasklet_handler()
50 struct ieee802154_local *local; in ieee802154_alloc_hw() local
75 priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len; in ieee802154_alloc_hw()
85 local = wpan_phy_priv(phy); in ieee802154_alloc_hw()
86 local->phy = phy; in ieee802154_alloc_hw()
87 local->hw.phy = local->phy; in ieee802154_alloc_hw()
88 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee802154_alloc_hw()
89 local->ops = ops; in ieee802154_alloc_hw()
91 INIT_LIST_HEAD(&local->interfaces); in ieee802154_alloc_hw()
92 mutex_init(&local->iflist_mtx); in ieee802154_alloc_hw()
94 tasklet_setup(&local->tasklet, ieee802154_tasklet_handler); in ieee802154_alloc_hw()
96 skb_queue_head_init(&local->skb_queue); in ieee802154_alloc_hw()
98 INIT_WORK(&local->tx_work, ieee802154_xmit_worker); in ieee802154_alloc_hw()
112 return &local->hw; in ieee802154_alloc_hw()
118 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_free_hw() local
120 BUG_ON(!list_empty(&local->interfaces)); in ieee802154_free_hw()
122 mutex_destroy(&local->iflist_mtx); in ieee802154_free_hw()
124 wpan_phy_free(local->phy); in ieee802154_free_hw()
142 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_register_hw() local
146 local->workqueue = in ieee802154_register_hw()
147 create_singlethread_workqueue(wpan_phy_name(local->phy)); in ieee802154_register_hw()
148 if (!local->workqueue) { in ieee802154_register_hw()
153 hrtimer_init(&local->ifs_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ieee802154_register_hw()
154 local->ifs_timer.function = ieee802154_xmit_ifs_timer; in ieee802154_register_hw()
156 wpan_phy_set_dev(local->phy, local->hw.parent); in ieee802154_register_hw()
158 ieee802154_setup_wpan_phy_pib(local->phy); in ieee802154_register_hw()
161 local->phy->supported.min_csma_backoffs = 4; in ieee802154_register_hw()
162 local->phy->supported.max_csma_backoffs = 4; in ieee802154_register_hw()
163 local->phy->supported.min_maxbe = 5; in ieee802154_register_hw()
164 local->phy->supported.max_maxbe = 5; in ieee802154_register_hw()
165 local->phy->supported.min_minbe = 3; in ieee802154_register_hw()
166 local->phy->supported.max_minbe = 3; in ieee802154_register_hw()
170 local->phy->supported.min_frame_retries = 3; in ieee802154_register_hw()
171 local->phy->supported.max_frame_retries = 3; in ieee802154_register_hw()
175 local->phy->supported.iftypes |= BIT(NL802154_IFTYPE_MONITOR); in ieee802154_register_hw()
177 rc = wpan_phy_register(local->phy); in ieee802154_register_hw()
183 dev = ieee802154_if_add(local, "wpan%d", NET_NAME_ENUM, in ieee802154_register_hw()
197 wpan_phy_unregister(local->phy); in ieee802154_register_hw()
199 destroy_workqueue(local->workqueue); in ieee802154_register_hw()
207 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_unregister_hw() local
209 tasklet_kill(&local->tasklet); in ieee802154_unregister_hw()
210 flush_workqueue(local->workqueue); in ieee802154_unregister_hw()
214 ieee802154_remove_interfaces(local); in ieee802154_unregister_hw()
218 destroy_workqueue(local->workqueue); in ieee802154_unregister_hw()
219 wpan_phy_unregister(local->phy); in ieee802154_unregister_hw()