Lines Matching refs:fw_dump

286 void qlcnic_82xx_cache_tmpl_hdr_values(struct qlcnic_fw_dump *fw_dump)  in qlcnic_82xx_cache_tmpl_hdr_values()  argument
290 hdr = fw_dump->tmpl_hdr; in qlcnic_82xx_cache_tmpl_hdr_values()
291 fw_dump->tmpl_hdr_size = hdr->size; in qlcnic_82xx_cache_tmpl_hdr_values()
292 fw_dump->version = hdr->version; in qlcnic_82xx_cache_tmpl_hdr_values()
293 fw_dump->num_entries = hdr->num_entries; in qlcnic_82xx_cache_tmpl_hdr_values()
294 fw_dump->offset = hdr->offset; in qlcnic_82xx_cache_tmpl_hdr_values()
297 fw_dump->cap_mask = hdr->cap_mask; in qlcnic_82xx_cache_tmpl_hdr_values()
299 fw_dump->use_pex_dma = (hdr->capabilities & BIT_0) ? true : false; in qlcnic_82xx_cache_tmpl_hdr_values()
340 void qlcnic_83xx_cache_tmpl_hdr_values(struct qlcnic_fw_dump *fw_dump) in qlcnic_83xx_cache_tmpl_hdr_values() argument
344 hdr = fw_dump->tmpl_hdr; in qlcnic_83xx_cache_tmpl_hdr_values()
345 fw_dump->tmpl_hdr_size = hdr->size; in qlcnic_83xx_cache_tmpl_hdr_values()
346 fw_dump->version = hdr->version; in qlcnic_83xx_cache_tmpl_hdr_values()
347 fw_dump->num_entries = hdr->num_entries; in qlcnic_83xx_cache_tmpl_hdr_values()
348 fw_dump->offset = hdr->offset; in qlcnic_83xx_cache_tmpl_hdr_values()
351 fw_dump->cap_mask = hdr->cap_mask; in qlcnic_83xx_cache_tmpl_hdr_values()
353 fw_dump->use_pex_dma = (fw_dump->version & 0xfffff) >= in qlcnic_83xx_cache_tmpl_hdr_values()
406 void *hdr = adapter->ahw->fw_dump.tmpl_hdr; in qlcnic_dump_ctrl()
728 tmpl_hdr = adapter->ahw->fw_dump.tmpl_hdr; in qlcnic_start_pex_dma()
771 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump; in qlcnic_read_memory_pexdma() local
779 tmpl_hdr = fw_dump->tmpl_hdr; in qlcnic_read_memory_pexdma()
807 dma_phys_addr = fw_dump->phys_addr; in qlcnic_read_memory_pexdma()
808 dma_buffer = fw_dump->dma_buffer; in qlcnic_read_memory_pexdma()
857 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump; in qlcnic_read_memory() local
863 if (fw_dump->use_pex_dma) { in qlcnic_read_memory()
1209 struct qlcnic_fw_dump *fw_dump; in qlcnic_fw_cmd_get_minidump_temp() local
1217 fw_dump = &ahw->fw_dump; in qlcnic_fw_cmd_get_minidump_temp()
1226 fw_dump->tmpl_hdr = vzalloc(temp_size); in qlcnic_fw_cmd_get_minidump_temp()
1227 if (!fw_dump->tmpl_hdr) in qlcnic_fw_cmd_get_minidump_temp()
1230 tmp_buf = (u32 *)fw_dump->tmpl_hdr; in qlcnic_fw_cmd_get_minidump_temp()
1245 vfree(fw_dump->tmpl_hdr); in qlcnic_fw_cmd_get_minidump_temp()
1246 fw_dump->tmpl_hdr = NULL; in qlcnic_fw_cmd_get_minidump_temp()
1256 vfree(fw_dump->tmpl_hdr); in qlcnic_fw_cmd_get_minidump_temp()
1257 fw_dump->tmpl_hdr = NULL; in qlcnic_fw_cmd_get_minidump_temp()
1261 qlcnic_cache_tmpl_hdr_values(adapter, fw_dump); in qlcnic_fw_cmd_get_minidump_temp()
1263 if (fw_dump->use_pex_dma) { in qlcnic_fw_cmd_get_minidump_temp()
1264 fw_dump->dma_buffer = NULL; in qlcnic_fw_cmd_get_minidump_temp()
1267 &fw_dump->phys_addr, in qlcnic_fw_cmd_get_minidump_temp()
1270 fw_dump->use_pex_dma = false; in qlcnic_fw_cmd_get_minidump_temp()
1272 fw_dump->dma_buffer = temp_buffer; in qlcnic_fw_cmd_get_minidump_temp()
1278 fw_dump->cap_mask); in qlcnic_fw_cmd_get_minidump_temp()
1287 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump; in qlcnic_dump_fw() local
1302 tmpl_hdr = fw_dump->tmpl_hdr; in qlcnic_dump_fw()
1313 if (fw_dump->clr) { in qlcnic_dump_fw()
1322 if (i & fw_dump->cap_mask) in qlcnic_dump_fw()
1328 fw_dump->data = vzalloc(dump_size); in qlcnic_dump_fw()
1329 if (!fw_dump->data) in qlcnic_dump_fw()
1332 buffer = fw_dump->data; in qlcnic_dump_fw()
1333 fw_dump->size = dump_size; in qlcnic_dump_fw()
1334 no_entries = fw_dump->num_entries; in qlcnic_dump_fw()
1335 entry_offset = fw_dump->offset; in qlcnic_dump_fw()
1353 if (!(entry->hdr.mask & fw_dump->cap_mask)) { in qlcnic_dump_fw()
1385 buffer = fw_dump->data + buf_offset; in qlcnic_dump_fw()
1388 fw_dump->clr = 1; in qlcnic_dump_fw()
1392 fw_dump->size, fw_dump->data, fw_dump->tmpl_hdr_size, in qlcnic_dump_fw()
1393 fw_dump->tmpl_hdr); in qlcnic_dump_fw()
1417 struct qlcnic_fw_dump *fw_dump = &ahw->fw_dump; in qlcnic_83xx_get_minidump_template() local
1425 if (fw_dump->tmpl_hdr == NULL || current_version > prev_version) { in qlcnic_83xx_get_minidump_template()
1426 vfree(fw_dump->tmpl_hdr); in qlcnic_83xx_get_minidump_template()
1444 hdr = fw_dump->tmpl_hdr; in qlcnic_83xx_get_minidump_template()
1446 fw_dump->cap_mask = 0x1f; in qlcnic_83xx_get_minidump_template()