Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/pcie/
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 …]
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()
160 &trans_pcie->prph_info_dma_addr, in iwl_pcie_ctxt_info_gen3_init()
170 &trans_pcie->ctxt_info_dma_addr, in iwl_pcie_ctxt_info_gen3_init()
178 cpu_to_le64(trans_pcie->prph_info_dma_addr); in iwl_pcie_ctxt_info_gen3_init()
180 cpu_to_le64(trans_pcie->prph_scratch_dma_addr); in iwl_pcie_ctxt_info_gen3_init()
184 cpu_to_le64(trans_pcie->rxq->rb_stts_dma); in iwl_pcie_ctxt_info_gen3_init()
186 cpu_to_le64(trans_pcie->prph_info_dma_addr + PAGE_SIZE / 2); in iwl_pcie_ctxt_info_gen3_init()
[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()
130 trans_pcie->fw_reset_state = FW_RESET_IDLE; in iwl_trans_pcie_fw_reset_handshake()
135 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_trans_pcie_gen2_stop_device() local
137 lockdep_assert_held(&trans_pcie->mutex); in _iwl_trans_pcie_gen2_stop_device()
139 if (trans_pcie->is_down) in _iwl_trans_pcie_gen2_stop_device()
143 if (trans_pcie->fw_reset_handshake) in _iwl_trans_pcie_gen2_stop_device()
[all …]
Dinternal.h468 iwl_trans_pcie_get_trans(struct iwl_trans_pcie *trans_pcie) in iwl_trans_pcie_get_trans() argument
470 return container_of((void *)trans_pcie, struct iwl_trans, in iwl_trans_pcie_get_trans()
549 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_disable_interrupts() local
552 if (!trans_pcie->msix_enabled) { in _iwl_disable_interrupts()
563 trans_pcie->fh_init_mask); in _iwl_disable_interrupts()
565 trans_pcie->hw_init_mask); in _iwl_disable_interrupts()
606 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_disable_interrupts() local
608 spin_lock_bh(&trans_pcie->irq_lock); in iwl_disable_interrupts()
610 spin_unlock_bh(&trans_pcie->irq_lock); in iwl_disable_interrupts()
615 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_enable_interrupts() local
[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()
258 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_apm_config() local
269 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_LNKCTL, &lctl); in iwl_pcie_apm_config()
272 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_DEVCTL2, &cap); in iwl_pcie_apm_config()
542 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_nic_init() local
546 spin_lock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init()
548 spin_unlock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init()
[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.c166 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_clear_cmd_in_flight() local
171 spin_lock(&trans_pcie->reg_lock); in iwl_pcie_clear_cmd_in_flight()
173 if (WARN_ON(!trans_pcie->cmd_hold_nic_awake)) { in iwl_pcie_clear_cmd_in_flight()
174 spin_unlock(&trans_pcie->reg_lock); in iwl_pcie_clear_cmd_in_flight()
178 trans_pcie->cmd_hold_nic_awake = false; in iwl_pcie_clear_cmd_in_flight()
181 spin_unlock(&trans_pcie->reg_lock); in iwl_pcie_clear_cmd_in_flight()
280 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_tx_start() local
292 trans_pcie->scd_base_addr = in iwl_pcie_tx_start()
296 scd_base_addr != trans_pcie->scd_base_addr); in iwl_pcie_tx_start()
299 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.c1309 struct iwl_trans_pcie *trans_pcie; in iwl_pci_probe() local
1330 trans_pcie = IWL_TRANS_GET_PCIE_TRANS(iwl_trans); in iwl_pci_probe()
1455 trans_pcie->num_rx_bufs = iwl_trans->cfg->num_rbds; in iwl_pci_probe()
1457 trans_pcie->num_rx_bufs = RX_QUEUE_SIZE; in iwl_pci_probe()
1523 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pci_resume() local
1544 iwl_pcie_conf_msix_hw(trans_pcie); in iwl_pci_resume()
1551 mutex_lock(&trans_pcie->mutex); in iwl_pci_resume()
1554 mutex_unlock(&trans_pcie->mutex); in iwl_pci_resume()