Home
last modified time | relevance | path

Searched refs:trans_pcie (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/
H A Drx.c206 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rxq_check_wrptr() local
210 struct iwl_rxq *rxq = &trans_pcie->rxq[i]; in iwl_pcie_rxq_check_wrptr()
248 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rxmq_restock() local
270 WARN_ON(rxb->page_dma & trans_pcie->supported_dma_mask); in iwl_pcie_rxmq_restock()
365 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rx_alloc_page() local
366 unsigned int allocsize = PAGE_SIZE << trans_pcie->rx_page_order; in iwl_pcie_rx_alloc_page()
367 unsigned int rbsize = trans_pcie->rx_buf_bytes; in iwl_pcie_rx_alloc_page()
371 if (trans_pcie->rx_page_order > 0) in iwl_pcie_rx_alloc_page()
374 if (trans_pcie->alloc_page) { in iwl_pcie_rx_alloc_page()
375 spin_lock_bh(&trans_pcie->alloc_page_lock); in iwl_pcie_rx_alloc_page()
[all …]
H A Dtrans-gen2.c100 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_fw_reset_handshake() local
103 trans_pcie->fw_reset_state = FW_RESET_REQUESTED; in iwl_trans_pcie_fw_reset_handshake()
116 ret = wait_event_timeout(trans_pcie->fw_reset_waitq, in iwl_trans_pcie_fw_reset_handshake()
117 trans_pcie->fw_reset_state != FW_RESET_REQUESTED, in iwl_trans_pcie_fw_reset_handshake()
119 if (!ret || trans_pcie->fw_reset_state == FW_RESET_ERROR) { in iwl_trans_pcie_fw_reset_handshake()
123 if (trans_pcie->msix_enabled) { in iwl_trans_pcie_fw_reset_handshake()
147 trans_pcie->fw_reset_state = FW_RESET_IDLE; in iwl_trans_pcie_fw_reset_handshake()
152 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_trans_pcie_gen2_stop_device() local
154 lockdep_assert_held(&trans_pcie->mutex); in _iwl_trans_pcie_gen2_stop_device()
156 if (trans_pcie->is_down) in _iwl_trans_pcie_gen2_stop_device()
[all …]
H A Dinternal.h39 * trans_pcie layer */
542 iwl_trans_pcie_get_trans(struct iwl_trans_pcie *trans_pcie) in iwl_trans_pcie_get_trans() argument
544 return container_of((void *)trans_pcie, struct iwl_trans, in iwl_trans_pcie_get_trans()
594 #define IWL_TRANS_PCIE_MAX_FRAGS(trans_pcie) ((trans_pcie)->txqs.tfd.max_tbs - 3)
672 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_get_tfd()
677 return (u8 *)txq->tfds + trans_pcie->txqs.tfd.size * idx; in iwl_txq_get_tfd()
694 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
696 if (!test_and_set_bit(txq->id, trans_pcie->txqs.queue_stopped)) { in iwl_txq_stop()
734 struct iwl_trans_pcie *trans_pcie
597 IWL_TRANS_PCIE_MAX_FRAGS(trans_pcie) global() argument
675 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_txq_get_tfd() local
697 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_txq_stop() local
737 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_trans_pcie_wake_queue() local
752 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_txq_set_tfd_invalid_gen2() local
800 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_pcie_gen1_2_alloc_tx_cmd() local
809 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_pcie_gen1_2_free_tx_cmd() local
832 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); _iwl_disable_interrupts() local
891 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_disable_interrupts() local
900 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); _iwl_enable_interrupts() local
923 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_enable_interrupts() local
931 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_enable_hw_int_msk_msix() local
939 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_enable_fh_int_msk_msix() local
947 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_enable_fw_load_int() local
964 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_enable_fw_load_int_ctx_info() local
1024 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_enable_rfkill_int() local
1053 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_is_rfkill_set() local
1161 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_pcie_gen1_is_pm_supported() local
1168 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); iwl_pcie_gen1_2_is_ltr_enabled() local
[all...]
H A Dtrans.c205 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_apm_config() local
216 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_LNKCTL, &lctl); in iwl_pcie_apm_config()
217 trans_pcie->pm_support = !(lctl & PCI_EXP_LNKCTL_ASPM_L0S); in iwl_pcie_apm_config()
219 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_DEVCTL2, &cap); in iwl_pcie_apm_config()
220 trans_pcie->ltr_enabled = cap & PCI_EXP_DEVCTL2_LTR_EN; in iwl_pcie_apm_config()
223 trans_pcie->ltr_enabled ? "En" : "Dis"); in iwl_pcie_apm_config()
487 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_nic_init() local
491 spin_lock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init()
493 spin_unlock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init()
635 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_load_firmware_chunk() local
[all …]
H A Dtx.c126 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_txq_check_wrptrs() local
130 struct iwl_txq *txq = trans_pcie->txqs.txq[i]; in iwl_pcie_txq_check_wrptrs()
132 if (!test_bit(i, trans_pcie->txqs.queue_used)) in iwl_pcie_txq_check_wrptrs()
166 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_txq_build_tfd() local
170 tfd = (u8 *)txq->tfds + trans_pcie->txqs.tfd.size * txq->write_ptr; in iwl_pcie_txq_build_tfd()
173 memset(tfd, 0, trans_pcie->txqs.tfd.size); in iwl_pcie_txq_build_tfd()
178 if (num_tbs >= trans_pcie->txqs.tfd.max_tbs) { in iwl_pcie_txq_build_tfd()
180 trans_pcie->txqs.tfd.max_tbs); in iwl_pcie_txq_build_tfd()
195 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_clear_cmd_in_flight() local
200 spin_lock(&trans_pcie->reg_lock); in iwl_pcie_clear_cmd_in_flight()
[all …]
H A Dtx-gen2.c604 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_gen2_set_tb() local
623 if (le16_to_cpu(tfd->num_tbs) >= trans_pcie->txqs.tfd.max_tbs) { in iwl_txq_gen2_set_tb()
625 trans_pcie->txqs.tfd.max_tbs); in iwl_txq_gen2_set_tb()
641 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_gen2_tfd_unmap() local
647 if (num_tbs > trans_pcie->txqs.tfd.max_tbs) { in iwl_txq_gen2_tfd_unmap()
720 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_gen2_tx() local
722 struct iwl_txq *txq = trans_pcie->txqs.txq[txq_id]; in iwl_txq_gen2_tx()
731 if (WARN_ONCE(!test_bit(txq_id, trans_pcie->txqs.queue_used), in iwl_txq_gen2_tx()
736 skb_shinfo(skb)->nr_frags > IWL_TRANS_PCIE_MAX_FRAGS(trans_pcie) && in iwl_txq_gen2_tx()
818 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_gen2_unmap() local
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dctxt-info-v2.c104 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_ctxt_info_v2_alloc() local
146 &trans_pcie->prph_scratch_dma_addr, in iwl_pcie_ctxt_info_v2_alloc()
179 cpu_to_le64(trans_pcie->rxq->bd_dma); in iwl_pcie_ctxt_info_v2_alloc()
208 &trans_pcie->prph_info_dma_addr, in iwl_pcie_ctxt_info_v2_alloc()
218 &trans_pcie->ctxt_info_dma_addr, in iwl_pcie_ctxt_info_v2_alloc()
226 cpu_to_le64(trans_pcie->prph_info_dma_addr); in iwl_pcie_ctxt_info_v2_alloc()
228 cpu_to_le64(trans_pcie->prph_scratch_dma_addr); in iwl_pcie_ctxt_info_v2_alloc()
247 cpu_to_le64(trans_pcie->rxq->rb_stts_dma); in iwl_pcie_ctxt_info_v2_alloc()
249 cpu_to_le64(trans_pcie->prph_info_dma_addr + PAGE_SIZE / 2); in iwl_pcie_ctxt_info_v2_alloc()
251 cpu_to_le64(trans_pcie->prph_info_dma_addr + 3 * PAGE_SIZE / 4); in iwl_pcie_ctxt_info_v2_alloc()
[all …]
H A Dctxt-info.c166 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_ctxt_info_init() local
179 trans_pcie->ctxt_info_dma_addr = phys; in iwl_pcie_ctxt_info_init()
216 rx_cfg->free_rbd_addr = cpu_to_le64(trans_pcie->rxq->bd_dma); in iwl_pcie_ctxt_info_init()
217 rx_cfg->used_rbd_addr = cpu_to_le64(trans_pcie->rxq->used_bd_dma); in iwl_pcie_ctxt_info_init()
218 rx_cfg->status_wr_ptr = cpu_to_le64(trans_pcie->rxq->rb_stts_dma); in iwl_pcie_ctxt_info_init()
222 cpu_to_le64(trans_pcie->txqs.txq[trans->conf.cmd_queue]->dma_addr); in iwl_pcie_ctxt_info_init()
229 dma_free_coherent(trans->dev, sizeof(*trans_pcie->ctxt_info), in iwl_pcie_ctxt_info_init()
230 ctxt_info, trans_pcie->ctxt_info_dma_addr); in iwl_pcie_ctxt_info_init()
234 trans_pcie->ctxt_info = ctxt_info; in iwl_pcie_ctxt_info_init()
243 iwl_write64(trans, CSR_CTXT_INFO_BA, trans_pcie->ctxt_info_dma_addr); in iwl_pcie_ctxt_info_init()
[all …]
H A Ddrv.c1211 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_pci_resume() local
1273 iwl_pcie_conf_msix_hw(trans_pcie); in _iwl_pci_resume()
1280 mutex_lock(&trans_pcie->mutex); in _iwl_pci_resume()
1283 mutex_unlock(&trans_pcie->mutex); in _iwl_pci_resume()