Lines Matching full:op_mode

25  * The operational mode (a.k.a. op_mode) is the layer that implements
27 * the transport API to access the HW. The op_mode doesn't need to know how the
30 * There can be several op_mode: i.e. different fw APIs will require two
31 * different op_modes. This is why the op_mode is virtualized.
39 * 1) The driver layer (iwl-drv.c) chooses the op_mode based on the
41 * 2) The driver layer starts the op_mode (ops->start)
42 * 3) The op_mode registers mac80211
43 * 4) The op_mode is governed by mac80211
44 * 5) The driver layer stops the op_mode
48 * struct iwl_op_mode_ops - op_mode specific operations
50 * The op_mode exports its ops so that external components can start it and
57 * @start: start the op_mode. The transport layer is already allocated.
59 * @stop: stop the op_mode. Must free all the memory allocated.
61 * @rx: Rx notification to the op_mode. rxb is the Rx buffer itself. Cmd is the
63 * @rx_rss: data queue RX notification to the op_mode, for (data) notifications
77 * reclaimed by the op_mode. This can happen when the driver is freed and
94 void (*stop)(struct iwl_op_mode *op_mode);
95 void (*rx)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
97 void (*rx_rss)(struct iwl_op_mode *op_mode, struct napi_struct *napi,
99 void (*async_cb)(struct iwl_op_mode *op_mode,
101 void (*queue_full)(struct iwl_op_mode *op_mode, int queue);
102 void (*queue_not_full)(struct iwl_op_mode *op_mode, int queue);
103 bool (*hw_rf_kill)(struct iwl_op_mode *op_mode, bool state);
104 void (*free_skb)(struct iwl_op_mode *op_mode, struct sk_buff *skb);
105 void (*nic_error)(struct iwl_op_mode *op_mode, bool sync);
106 void (*cmd_queue_full)(struct iwl_op_mode *op_mode);
107 void (*nic_config)(struct iwl_op_mode *op_mode);
108 void (*wimax_active)(struct iwl_op_mode *op_mode);
109 void (*time_point)(struct iwl_op_mode *op_mode,
129 static inline void iwl_op_mode_stop(struct iwl_op_mode *op_mode) in iwl_op_mode_stop() argument
132 op_mode->ops->stop(op_mode); in iwl_op_mode_stop()
135 static inline void iwl_op_mode_rx(struct iwl_op_mode *op_mode, in iwl_op_mode_rx() argument
139 return op_mode->ops->rx(op_mode, napi, rxb); in iwl_op_mode_rx()
142 static inline void iwl_op_mode_rx_rss(struct iwl_op_mode *op_mode, in iwl_op_mode_rx_rss() argument
147 op_mode->ops->rx_rss(op_mode, napi, rxb, queue); in iwl_op_mode_rx_rss()
150 static inline void iwl_op_mode_async_cb(struct iwl_op_mode *op_mode, in iwl_op_mode_async_cb() argument
153 if (op_mode->ops->async_cb) in iwl_op_mode_async_cb()
154 op_mode->ops->async_cb(op_mode, cmd); in iwl_op_mode_async_cb()
157 static inline void iwl_op_mode_queue_full(struct iwl_op_mode *op_mode, in iwl_op_mode_queue_full() argument
160 op_mode->ops->queue_full(op_mode, queue); in iwl_op_mode_queue_full()
163 static inline void iwl_op_mode_queue_not_full(struct iwl_op_mode *op_mode, in iwl_op_mode_queue_not_full() argument
166 op_mode->ops->queue_not_full(op_mode, queue); in iwl_op_mode_queue_not_full()
170 iwl_op_mode_hw_rf_kill(struct iwl_op_mode *op_mode, bool state) in iwl_op_mode_hw_rf_kill() argument
173 return op_mode->ops->hw_rf_kill(op_mode, state); in iwl_op_mode_hw_rf_kill()
176 static inline void iwl_op_mode_free_skb(struct iwl_op_mode *op_mode, in iwl_op_mode_free_skb() argument
179 if (WARN_ON_ONCE(!op_mode)) in iwl_op_mode_free_skb()
181 op_mode->ops->free_skb(op_mode, skb); in iwl_op_mode_free_skb()
184 static inline void iwl_op_mode_nic_error(struct iwl_op_mode *op_mode, bool sync) in iwl_op_mode_nic_error() argument
186 op_mode->ops->nic_error(op_mode, sync); in iwl_op_mode_nic_error()
189 static inline void iwl_op_mode_cmd_queue_full(struct iwl_op_mode *op_mode) in iwl_op_mode_cmd_queue_full() argument
191 op_mode->ops->cmd_queue_full(op_mode); in iwl_op_mode_cmd_queue_full()
194 static inline void iwl_op_mode_nic_config(struct iwl_op_mode *op_mode) in iwl_op_mode_nic_config() argument
197 op_mode->ops->nic_config(op_mode); in iwl_op_mode_nic_config()
200 static inline void iwl_op_mode_wimax_active(struct iwl_op_mode *op_mode) in iwl_op_mode_wimax_active() argument
203 op_mode->ops->wimax_active(op_mode); in iwl_op_mode_wimax_active()
206 static inline void iwl_op_mode_time_point(struct iwl_op_mode *op_mode, in iwl_op_mode_time_point() argument
210 if (!op_mode || !op_mode->ops || !op_mode->ops->time_point) in iwl_op_mode_time_point()
212 op_mode->ops->time_point(op_mode, tp_id, tp_data); in iwl_op_mode_time_point()