Lines Matching refs:ctxt_info
167 struct iwl_context_info *ctxt_info; in iwl_pcie_ctxt_info_init() local
173 ctxt_info = iwl_pcie_ctxt_info_dma_alloc_coherent(trans, in iwl_pcie_ctxt_info_init()
174 sizeof(*ctxt_info), in iwl_pcie_ctxt_info_init()
176 if (!ctxt_info) in iwl_pcie_ctxt_info_init()
181 ctxt_info->version.version = 0; in iwl_pcie_ctxt_info_init()
182 ctxt_info->version.mac_id = in iwl_pcie_ctxt_info_init()
185 ctxt_info->version.size = cpu_to_le16(sizeof(*ctxt_info) / 4); in iwl_pcie_ctxt_info_init()
211 ctxt_info->control.control_flags = cpu_to_le32(control_flags); in iwl_pcie_ctxt_info_init()
214 rx_cfg = &ctxt_info->rbd_cfg; in iwl_pcie_ctxt_info_init()
220 ctxt_info->hcmd_cfg.cmd_queue_addr = in iwl_pcie_ctxt_info_init()
222 ctxt_info->hcmd_cfg.cmd_queue_size = in iwl_pcie_ctxt_info_init()
226 ret = iwl_pcie_init_fw_sec(trans, fw, &ctxt_info->dram); 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()
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()
260 trans_pcie->ctxt_info = NULL; in iwl_pcie_ctxt_info_free()