Lines Matching refs:fw
85 const struct fw_img *fw,
96 lmac_cnt = iwl_pcie_get_num_sections(fw, 0);
98 umac_cnt = iwl_pcie_get_num_sections(fw, lmac_cnt + 1);
100 paging_cnt = iwl_pcie_get_num_sections(fw, lmac_cnt + umac_cnt + 2);
102 dram->fw = kcalloc(umac_cnt + lmac_cnt, sizeof(*dram->fw), GFP_KERNEL);
103 if (!dram->fw)
111 ret = iwl_pcie_ctxt_info_alloc_dma(trans, fw->sec[i].data,
112 fw->sec[i].len,
113 &dram->fw[dram->fw_cnt]);
117 cpu_to_le64(dram->fw[dram->fw_cnt].physical);
125 fw->sec[dram->fw_cnt + 1].data,
126 fw->sec[dram->fw_cnt + 1].len,
127 &dram->fw[dram->fw_cnt]);
131 cpu_to_le64(dram->fw[dram->fw_cnt].physical);
137 * Paging memory isn't stored in dram->fw as the umac and lmac - it is
140 * while fw memory can be released on alive, the paging memory can be
142 * Given that, the logic here in accessing the fw image is a bit
149 ret = iwl_pcie_ctxt_info_alloc_dma(trans, fw->sec[fw_idx].data,
150 fw->sec[fw_idx].len,
164 const struct fw_img *fw)
226 ret = iwl_pcie_init_fw_sec(trans, fw, &ctxt_info->dram);