aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:11:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:33:00 -0400
commitc91bd12489f50809af94c46d7c4c4d98b70c6f47 (patch)
treef98d778644c208b1c77b11479165ec87c4c20661 /drivers/net/wireless/iwlwifi/iwl-trans.c
parent7f01d567c5b9e136d9b070e00be88169d5b2227e (diff)
iwlagn: cosmetics in iwl-trans.h
Remove a few dereferences of priv from the transport layer while at it. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.c b/drivers/net/wireless/iwlwifi/iwl-trans.c
index ab35fd827bd..9b0ecd4b1e1 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.c
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.c
@@ -774,7 +774,7 @@ static int iwl_trans_pcie_start_device(struct iwl_trans *trans)
774 struct iwl_trans_pcie *trans_pcie = 774 struct iwl_trans_pcie *trans_pcie =
775 IWL_TRANS_GET_PCIE_TRANS(trans); 775 IWL_TRANS_GET_PCIE_TRANS(trans);
776 776
777 priv->shrd->ucode_owner = IWL_OWNERSHIP_DRIVER; 777 trans->shrd->ucode_owner = IWL_OWNERSHIP_DRIVER;
778 trans_pcie->ac_to_queue[IWL_RXON_CTX_BSS] = iwlagn_bss_ac_to_queue; 778 trans_pcie->ac_to_queue[IWL_RXON_CTX_BSS] = iwlagn_bss_ac_to_queue;
779 trans_pcie->ac_to_queue[IWL_RXON_CTX_PAN] = iwlagn_pan_ac_to_queue; 779 trans_pcie->ac_to_queue[IWL_RXON_CTX_PAN] = iwlagn_pan_ac_to_queue;
780 780
@@ -784,7 +784,7 @@ static int iwl_trans_pcie_start_device(struct iwl_trans *trans)
784 trans_pcie->mcast_queue[IWL_RXON_CTX_BSS] = 0; 784 trans_pcie->mcast_queue[IWL_RXON_CTX_BSS] = 0;
785 trans_pcie->mcast_queue[IWL_RXON_CTX_PAN] = IWL_IPAN_MCAST_QUEUE; 785 trans_pcie->mcast_queue[IWL_RXON_CTX_PAN] = IWL_IPAN_MCAST_QUEUE;
786 786
787 if ((hw_params(priv).sku & EEPROM_SKU_CAP_AMT_ENABLE) && 787 if ((hw_params(trans).sku & EEPROM_SKU_CAP_AMT_ENABLE) &&
788 iwl_trans_pcie_prepare_card_hw(trans)) { 788 iwl_trans_pcie_prepare_card_hw(trans)) {
789 IWL_WARN(trans, "Exit HW not ready\n"); 789 IWL_WARN(trans, "Exit HW not ready\n");
790 return -EIO; 790 return -EIO;
@@ -862,7 +862,7 @@ static void iwl_trans_pcie_tx_start(struct iwl_trans *trans)
862 a += 4) 862 a += 4)
863 iwl_write_targ_mem(bus(trans), a, 0); 863 iwl_write_targ_mem(bus(trans), a, 0);
864 for (; a < trans_pcie->scd_base_addr + 864 for (; a < trans_pcie->scd_base_addr +
865 SCD_TRANS_TBL_OFFSET_QUEUE(hw_params(priv).max_txq_num); 865 SCD_TRANS_TBL_OFFSET_QUEUE(hw_params(trans).max_txq_num);
866 a += 4) 866 a += 4)
867 iwl_write_targ_mem(bus(trans), a, 0); 867 iwl_write_targ_mem(bus(trans), a, 0);
868 868
@@ -881,11 +881,11 @@ static void iwl_trans_pcie_tx_start(struct iwl_trans *trans)
881 reg_val | FH_TX_CHICKEN_BITS_SCD_AUTO_RETRY_EN); 881 reg_val | FH_TX_CHICKEN_BITS_SCD_AUTO_RETRY_EN);
882 882
883 iwl_write_prph(bus(trans), SCD_QUEUECHAIN_SEL, 883 iwl_write_prph(bus(trans), SCD_QUEUECHAIN_SEL,
884 SCD_QUEUECHAIN_SEL_ALL(priv)); 884 SCD_QUEUECHAIN_SEL_ALL(trans));
885 iwl_write_prph(bus(trans), SCD_AGGR_SEL, 0); 885 iwl_write_prph(bus(trans), SCD_AGGR_SEL, 0);
886 886
887 /* initiate the queues */ 887 /* initiate the queues */
888 for (i = 0; i < hw_params(priv).max_txq_num; i++) { 888 for (i = 0; i < hw_params(trans).max_txq_num; i++) {
889 iwl_write_prph(bus(trans), SCD_QUEUE_RDPTR(i), 0); 889 iwl_write_prph(bus(trans), SCD_QUEUE_RDPTR(i), 0);
890 iwl_write_direct32(bus(trans), HBUS_TARG_WRPTR, 0 | (i << 8)); 890 iwl_write_direct32(bus(trans), HBUS_TARG_WRPTR, 0 | (i << 8));
891 iwl_write_targ_mem(bus(trans), trans_pcie->scd_base_addr + 891 iwl_write_targ_mem(bus(trans), trans_pcie->scd_base_addr +
@@ -941,7 +941,7 @@ static void iwl_trans_pcie_tx_start(struct iwl_trans *trans)
941 941
942 if (ac != IWL_AC_UNSET) 942 if (ac != IWL_AC_UNSET)
943 iwl_set_swq_id(&priv->txq[i], ac, i); 943 iwl_set_swq_id(&priv->txq[i], ac, i);
944 iwl_trans_tx_queue_set_status(priv, &priv->txq[i], fifo, 0); 944 iwl_trans_tx_queue_set_status(trans, &priv->txq[i], fifo, 0);
945 } 945 }
946 946
947 spin_unlock_irqrestore(&trans->shrd->lock, flags); 947 spin_unlock_irqrestore(&trans->shrd->lock, flags);
@@ -2017,7 +2017,7 @@ const struct iwl_trans_ops trans_ops_pcie = {
2017 2017
2018 .tx_agg_disable = iwl_trans_pcie_tx_agg_disable, 2018 .tx_agg_disable = iwl_trans_pcie_tx_agg_disable,
2019 .tx_agg_alloc = iwl_trans_pcie_tx_agg_alloc, 2019 .tx_agg_alloc = iwl_trans_pcie_tx_agg_alloc,
2020 .txq_agg_setup = iwl_trans_pcie_txq_agg_setup, 2020 .tx_agg_setup = iwl_trans_pcie_tx_agg_setup,
2021 2021
2022 .kick_nic = iwl_trans_pcie_kick_nic, 2022 .kick_nic = iwl_trans_pcie_kick_nic,
2023 2023