Lines Matching refs:local
28 struct ieee802154_local *local = hw_to_local(hw);
32 clear_bit(WPAN_PHY_FLAG_STATE_QUEUE_STOPPED, &local->phy->flags);
33 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
54 struct ieee802154_local *local = hw_to_local(hw);
58 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
67 void ieee802154_hold_queue(struct ieee802154_local *local)
71 spin_lock_irqsave(&local->phy->queue_lock, flags);
72 if (!atomic_fetch_inc(&local->phy->hold_txs))
73 ieee802154_stop_queue(&local->hw);
74 spin_unlock_irqrestore(&local->phy->queue_lock, flags);
77 void ieee802154_release_queue(struct ieee802154_local *local)
81 spin_lock_irqsave(&local->phy->queue_lock, flags);
82 if (atomic_dec_and_test(&local->phy->hold_txs))
83 ieee802154_wake_queue(&local->hw);
84 spin_unlock_irqrestore(&local->phy->queue_lock, flags);
87 void ieee802154_disable_queue(struct ieee802154_local *local)
92 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
103 struct ieee802154_local *local =
106 ieee802154_release_queue(local);
114 struct ieee802154_local *local = hw_to_local(hw);
116 local->tx_result = IEEE802154_SUCCESS;
132 hrtimer_start(&local->ifs_timer,
136 hrtimer_start(&local->ifs_timer,
140 ieee802154_release_queue(local);
152 struct ieee802154_local *local = hw_to_local(hw);
154 local->tx_result = reason;
155 ieee802154_release_queue(local);
168 void ieee802154_stop_device(struct ieee802154_local *local)
170 flush_workqueue(local->workqueue);
171 hrtimer_cancel(&local->ifs_timer);
172 drv_stop(local);