Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/pcie/
Dctxt-info-gen3.c81 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_ctxt_info_gen3_init() local
91 switch (trans_pcie->rx_buf_size) { in iwl_pcie_ctxt_info_gen3_init()
113 &trans_pcie->prph_scratch_dma_addr, in iwl_pcie_ctxt_info_gen3_init()
133 cpu_to_le64(trans_pcie->rxq->bd_dma); in iwl_pcie_ctxt_info_gen3_init()
156 &trans_pcie->prph_info_dma_addr, in iwl_pcie_ctxt_info_gen3_init()
166 &trans_pcie->ctxt_info_dma_addr, in iwl_pcie_ctxt_info_gen3_init()
174 cpu_to_le64(trans_pcie->prph_info_dma_addr); in iwl_pcie_ctxt_info_gen3_init()
176 cpu_to_le64(trans_pcie->prph_scratch_dma_addr); in iwl_pcie_ctxt_info_gen3_init()
180 cpu_to_le64(trans_pcie->rxq->rb_stts_dma); in iwl_pcie_ctxt_info_gen3_init()
182 cpu_to_le64(trans_pcie->prph_info_dma_addr + PAGE_SIZE / 2); in iwl_pcie_ctxt_info_gen3_init()
[all …]
Drx.c205 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rxq_check_wrptr() local
209 struct iwl_rxq *rxq = &trans_pcie->rxq[i]; in iwl_pcie_rxq_check_wrptr()
247 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rxmq_restock() local
269 WARN_ON(rxb->page_dma & trans_pcie->supported_dma_mask); in iwl_pcie_rxmq_restock()
364 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_rx_alloc_page() local
365 unsigned int rbsize = iwl_trans_get_rb_size(trans_pcie->rx_buf_size); in iwl_pcie_rx_alloc_page()
366 unsigned int allocsize = PAGE_SIZE << trans_pcie->rx_page_order; in iwl_pcie_rx_alloc_page()
370 if (trans_pcie->rx_page_order > 0) in iwl_pcie_rx_alloc_page()
373 if (trans_pcie->alloc_page) { in iwl_pcie_rx_alloc_page()
374 spin_lock_bh(&trans_pcie->alloc_page_lock); in iwl_pcie_rx_alloc_page()
[all …]
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()
125 trans_pcie->fw_reset_state = FW_RESET_IDLE; in iwl_trans_pcie_fw_reset_handshake()
130 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_trans_pcie_gen2_stop_device() local
132 lockdep_assert_held(&trans_pcie->mutex); in _iwl_trans_pcie_gen2_stop_device()
134 if (trans_pcie->is_down) in _iwl_trans_pcie_gen2_stop_device()
138 if (trans_pcie->fw_reset_handshake) in _iwl_trans_pcie_gen2_stop_device()
[all …]
Dtrans.c42 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_dump_regs() local
43 struct pci_dev *pdev = trans_pcie->pci_dev; in iwl_trans_pcie_dump_regs()
47 if (trans_pcie->pcie_dbg_dumped_once) in iwl_trans_pcie_dump_regs()
126 trans_pcie->pcie_dbg_dumped_once = 1; in iwl_trans_pcie_dump_regs()
256 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_apm_config() local
267 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_LNKCTL, &lctl); in iwl_pcie_apm_config()
270 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_DEVCTL2, &cap); in iwl_pcie_apm_config()
540 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_nic_init() local
544 spin_lock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init()
546 spin_unlock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init()
[all …]
Dinternal.h466 iwl_trans_pcie_get_trans(struct iwl_trans_pcie *trans_pcie) in iwl_trans_pcie_get_trans() argument
468 return container_of((void *)trans_pcie, struct iwl_trans, in iwl_trans_pcie_get_trans()
544 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_disable_interrupts() local
547 if (!trans_pcie->msix_enabled) { in _iwl_disable_interrupts()
558 trans_pcie->fh_init_mask); in _iwl_disable_interrupts()
560 trans_pcie->hw_init_mask); in _iwl_disable_interrupts()
601 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_disable_interrupts() local
603 spin_lock_bh(&trans_pcie->irq_lock); in iwl_disable_interrupts()
605 spin_unlock_bh(&trans_pcie->irq_lock); in iwl_disable_interrupts()
610 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_enable_interrupts() local
[all …]
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()
187 switch (trans_pcie->rx_buf_size) { in iwl_pcie_ctxt_info_init()
215 rx_cfg->free_rbd_addr = cpu_to_le64(trans_pcie->rxq->bd_dma); in iwl_pcie_ctxt_info_init()
216 rx_cfg->used_rbd_addr = cpu_to_le64(trans_pcie->rxq->used_bd_dma); in iwl_pcie_ctxt_info_init()
217 rx_cfg->status_wr_ptr = cpu_to_le64(trans_pcie->rxq->rb_stts_dma); in iwl_pcie_ctxt_info_init()
228 dma_free_coherent(trans->dev, sizeof(*trans_pcie->ctxt_info), in iwl_pcie_ctxt_info_init()
229 ctxt_info, trans_pcie->ctxt_info_dma_addr); in iwl_pcie_ctxt_info_init()
233 trans_pcie->ctxt_info = ctxt_info; in iwl_pcie_ctxt_info_init()
242 iwl_write64(trans, CSR_CTXT_INFO_BA, trans_pcie->ctxt_info_dma_addr); in iwl_pcie_ctxt_info_init()
[all …]
Dtx.c182 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_clear_cmd_in_flight() local
187 spin_lock(&trans_pcie->reg_lock); in iwl_pcie_clear_cmd_in_flight()
189 if (WARN_ON(!trans_pcie->cmd_hold_nic_awake)) { in iwl_pcie_clear_cmd_in_flight()
190 spin_unlock(&trans_pcie->reg_lock); in iwl_pcie_clear_cmd_in_flight()
194 trans_pcie->cmd_hold_nic_awake = false; in iwl_pcie_clear_cmd_in_flight()
197 spin_unlock(&trans_pcie->reg_lock); in iwl_pcie_clear_cmd_in_flight()
296 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_tx_start() local
308 trans_pcie->scd_base_addr = in iwl_pcie_tx_start()
312 scd_base_addr != trans_pcie->scd_base_addr); in iwl_pcie_tx_start()
315 iwl_trans_write_mem(trans, trans_pcie->scd_base_addr + in iwl_pcie_tx_start()
[all …]
Dtx-gen2.c30 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_gen2_enqueue_hcmd() local
247 spin_lock(&trans_pcie->reg_lock); in iwl_pcie_gen2_enqueue_hcmd()
251 spin_unlock(&trans_pcie->reg_lock); in iwl_pcie_gen2_enqueue_hcmd()
Ddrv.c1502 struct iwl_trans_pcie *trans_pcie; in iwl_pci_probe() local
1523 trans_pcie = IWL_TRANS_GET_PCIE_TRANS(iwl_trans); in iwl_pci_probe()
1654 trans_pcie->num_rx_bufs = iwl_trans->cfg->num_rbds; in iwl_pci_probe()
1656 trans_pcie->num_rx_bufs = RX_QUEUE_SIZE; in iwl_pci_probe()
1710 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pci_resume() local
1731 iwl_pcie_conf_msix_hw(trans_pcie); in iwl_pci_resume()
1738 mutex_lock(&trans_pcie->mutex); in iwl_pci_resume()
1741 mutex_unlock(&trans_pcie->mutex); in iwl_pci_resume()