Searched refs:trans_pcie (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | rx.c | 205 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 …]
|
D | ctxt-info-gen3.c | 103 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_ctxt_info_gen3_init() local 113 switch (trans_pcie->rx_buf_size) { in iwl_pcie_ctxt_info_gen3_init() 135 &trans_pcie->prph_scratch_dma_addr, in iwl_pcie_ctxt_info_gen3_init() 163 cpu_to_le64(trans_pcie->rxq->bd_dma); in iwl_pcie_ctxt_info_gen3_init() 190 &trans_pcie->prph_info_dma_addr, in iwl_pcie_ctxt_info_gen3_init() 200 &trans_pcie->ctxt_info_dma_addr, in iwl_pcie_ctxt_info_gen3_init() 208 cpu_to_le64(trans_pcie->prph_info_dma_addr); in iwl_pcie_ctxt_info_gen3_init() 210 cpu_to_le64(trans_pcie->prph_scratch_dma_addr); in iwl_pcie_ctxt_info_gen3_init() 214 cpu_to_le64(trans_pcie->rxq->rb_stts_dma); in iwl_pcie_ctxt_info_gen3_init() 216 cpu_to_le64(trans_pcie->prph_info_dma_addr + PAGE_SIZE / 2); in iwl_pcie_ctxt_info_gen3_init() [all …]
|
D | trans.c | 42 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() 257 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_apm_config() local 268 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_LNKCTL, &lctl); in iwl_pcie_apm_config() 271 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_DEVCTL2, &cap); in iwl_pcie_apm_config() 541 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_nic_init() local 545 spin_lock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init() 547 spin_unlock_bh(&trans_pcie->irq_lock); in iwl_pcie_nic_init() [all …]
|
D | trans-gen2.c | 100 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 …]
|
D | tx.c | 81 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_txq_inc_wr_ptr() local 94 txq_id != trans_pcie->txqs.cmd.q_id && in iwl_pcie_txq_inc_wr_ptr() 125 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_txq_check_wrptrs() local 129 struct iwl_txq *txq = trans_pcie->txqs.txq[i]; in iwl_pcie_txq_check_wrptrs() 131 if (!test_bit(i, trans_pcie->txqs.queue_used)) in iwl_pcie_txq_check_wrptrs() 165 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_txq_build_tfd() local 169 tfd = (u8 *)txq->tfds + trans_pcie->txqs.tfd.size * txq->write_ptr; in iwl_pcie_txq_build_tfd() 172 memset(tfd, 0, trans_pcie->txqs.tfd.size); in iwl_pcie_txq_build_tfd() 177 if (num_tbs >= trans_pcie->txqs.tfd.max_tbs) { in iwl_pcie_txq_build_tfd() 179 trans_pcie->txqs.tfd.max_tbs); in iwl_pcie_txq_build_tfd() [all …]
|
D | internal.h | 543 iwl_trans_pcie_get_trans(struct iwl_trans_pcie *trans_pcie) in iwl_trans_pcie_get_trans() argument 545 return container_of((void *)trans_pcie, struct iwl_trans, in iwl_trans_pcie_get_trans() 599 #define IWL_TRANS_PCIE_MAX_FRAGS(trans_pcie) ((trans_pcie)->txqs.tfd.max_tbs - 3) argument 676 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_get_tfd() local 681 return (u8 *)txq->tfds + trans_pcie->txqs.tfd.size * idx; in iwl_txq_get_tfd() 698 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_stop() local 700 if (!test_and_set_bit(txq->id, trans_pcie->txqs.queue_stopped)) { in iwl_txq_stop() 736 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_wake_queue() local 738 if (test_and_clear_bit(txq->id, trans_pcie->txqs.queue_stopped)) { in iwl_trans_pcie_wake_queue() 812 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_disable_interrupts() local [all …]
|
D | ctxt-info.c | 166 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() 221 cpu_to_le64(trans_pcie->txqs.txq[trans_pcie->txqs.cmd.q_id]->dma_addr); 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() [all …]
|
D | tx-gen2.c | 21 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in get_workaround_page() local 27 page_ptr = (void *)((u8 *)skb->cb + trans_pcie->txqs.page_offs); in get_workaround_page() 562 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_gen2_update_byte_tbl() local 587 WARN_ON(trans_pcie->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl() 595 WARN_ON(!trans_pcie->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl() 611 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_gen2_set_tb() local 630 if (le16_to_cpu(tfd->num_tbs) >= trans_pcie->txqs.tfd.max_tbs) { in iwl_txq_gen2_set_tb() 632 trans_pcie->txqs.tfd.max_tbs); in iwl_txq_gen2_set_tb() 648 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_txq_gen2_tfd_unmap() local 654 if (num_tbs > trans_pcie->txqs.tfd.max_tbs) { in iwl_txq_gen2_tfd_unmap() [all …]
|
D | drv.c | 1365 struct iwl_trans_pcie *trans_pcie; in iwl_pci_probe() local 1386 trans_pcie = IWL_TRANS_GET_PCIE_TRANS(iwl_trans); in iwl_pci_probe() 1514 trans_pcie->num_rx_bufs = iwl_trans->cfg->num_rbds; in iwl_pci_probe() 1516 trans_pcie->num_rx_bufs = RX_QUEUE_SIZE; in iwl_pci_probe() 1582 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_pci_resume() local 1624 iwl_pcie_conf_msix_hw(trans_pcie); in _iwl_pci_resume() 1631 mutex_lock(&trans_pcie->mutex); in _iwl_pci_resume() 1634 mutex_unlock(&trans_pcie->mutex); in _iwl_pci_resume()
|