Lines Matching refs:trans_pcie
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()
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()
251 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_ctxt_info_free() local
253 if (!trans_pcie->ctxt_info) in iwl_pcie_ctxt_info_free()
256 dma_free_coherent(trans->dev, sizeof(*trans_pcie->ctxt_info), in iwl_pcie_ctxt_info_free()
257 trans_pcie->ctxt_info, in iwl_pcie_ctxt_info_free()
258 trans_pcie->ctxt_info_dma_addr); in iwl_pcie_ctxt_info_free()
259 trans_pcie->ctxt_info_dma_addr = 0; in iwl_pcie_ctxt_info_free()
260 trans_pcie->ctxt_info = NULL; in iwl_pcie_ctxt_info_free()