linux/drivers/net/wireless/intel/iwlwifi/pcie
Mordechay Goodstein 4f4822b7cd iwlwifi: move txq-specific from trans_pcie to common trans
We don't want to have txq code in the PCIe transport code, so move all
the relevant elements to a new iwl_txq structure and store it in
iwl_trans.

spatch

@ replace_pcie @
struct iwl_trans_pcie *trans_pcie;
@@

(
-trans_pcie->queue_stopped
+trans->txqs.queue_stopped
|
-trans_pcie->queue_used
+trans->txqs.queue_used
|
-trans_pcie->txq
+trans->txqs.txq
|
-trans_pcie->txq
+trans->txqs.txq
|
-trans_pcie->cmd_queue
+trans->txqs.cmd.q_id
|
-trans_pcie->cmd_fifo
+trans->txqs.cmd.fifo
|
-trans_pcie->cmd_q_wdg_timeout
+trans->txqs.cmd.wdg_timeout
)

// clean all new unused variables
@ depends on replace_pcie @
type T;
identifier i;
expression E;
@@
- T i = E;
 ... when != i

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200529092401.a428d3c9d66f.Ie04ae55f33954636a39c98e7ae1e739c0507435b@changeid
2020-05-29 10:32:30 +03:00
..
ctxt-info-gen3.c iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00
ctxt-info.c iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00
drv.c wireless-drivers-next patches for v5.8 2020-05-25 18:15:16 -07:00
internal.h iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00
rx.c iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00
trans-gen2.c iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00
trans.c iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00
tx-gen2.c iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00
tx.c iwlwifi: move txq-specific from trans_pcie to common trans 2020-05-29 10:32:30 +03:00