Lines Matching +full:stop +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2005-2014, 2018-2021, 2024 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
12 #include "iwl-dbg-tlv.h"
23 * DOC: Operational mode - what is it ?
25 * The operational mode (a.k.a. op_mode) is the layer that implements
35 * DOC: Life cycle of the Operational mode
37 * The operational mode has a very simple life cycle.
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)
48 * struct iwl_op_mode_ops - op_mode specific operations
51 * interact with it. The driver layer typically calls the start and stop
55 * out *iff* the opmode will never run on hardware with multi-queue capability.
59 * @stop: stop the op_mode. Must free all the memory allocated.
65 * RSS queues received this frame; it will always be non-zero.
98 void (*stop)(struct iwl_op_mode *op_mode); member
121 * struct iwl_op_mode - operational mode
135 op_mode->ops->stop(op_mode); in iwl_op_mode_stop()
142 return op_mode->ops->rx(op_mode, napi, rxb); in iwl_op_mode_rx()
150 op_mode->ops->rx_rss(op_mode, napi, rxb, queue); in iwl_op_mode_rx_rss()
156 op_mode->ops->queue_full(op_mode, queue); in iwl_op_mode_queue_full()
162 op_mode->ops->queue_not_full(op_mode, queue); in iwl_op_mode_queue_not_full()
169 return op_mode->ops->hw_rf_kill(op_mode, state); in iwl_op_mode_hw_rf_kill()
177 op_mode->ops->free_skb(op_mode, skb); in iwl_op_mode_free_skb()
182 op_mode->ops->nic_error(op_mode, sync); in iwl_op_mode_nic_error()
187 op_mode->ops->cmd_queue_full(op_mode); in iwl_op_mode_cmd_queue_full()
193 if (op_mode->ops->nic_config) in iwl_op_mode_nic_config()
194 op_mode->ops->nic_config(op_mode); in iwl_op_mode_nic_config()
200 op_mode->ops->wimax_active(op_mode); in iwl_op_mode_wimax_active()
207 if (!op_mode || !op_mode->ops || !op_mode->ops->time_point) in iwl_op_mode_time_point()
209 op_mode->ops->time_point(op_mode, tp_id, tp_data); in iwl_op_mode_time_point()
214 if (!op_mode || !op_mode->ops || !op_mode->ops->device_powered_off) in iwl_op_mode_device_powered_off()
216 op_mode->ops->device_powered_off(op_mode); in iwl_op_mode_device_powered_off()