Lines Matching refs:hdr
230 struct qlcnic_common_entry_hdr hdr; member
273 struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr; in qlcnic_82xx_get_saved_state() local
275 return hdr->saved_state[index]; in qlcnic_82xx_get_saved_state()
281 struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr; in qlcnic_82xx_set_saved_state() local
283 hdr->saved_state[index] = value; in qlcnic_82xx_set_saved_state()
288 struct qlcnic_82xx_dump_template_hdr *hdr; in qlcnic_82xx_cache_tmpl_hdr_values() local
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()
296 hdr->drv_cap_mask = hdr->cap_mask; 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()
304 struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr; in qlcnic_82xx_get_cap_size() local
306 return hdr->cap_sizes[index]; in qlcnic_82xx_get_cap_size()
311 struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr; in qlcnic_82xx_set_sys_info() local
313 hdr->sys_info[idx] = value; in qlcnic_82xx_set_sys_info()
318 struct qlcnic_82xx_dump_template_hdr *hdr = tmpl_hdr; in qlcnic_82xx_store_cap_mask() local
320 hdr->drv_cap_mask = mask; in qlcnic_82xx_store_cap_mask()
325 struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr; in qlcnic_83xx_get_saved_state() local
327 return hdr->saved_state[index]; in qlcnic_83xx_get_saved_state()
333 struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr; in qlcnic_83xx_set_saved_state() local
335 hdr->saved_state[index] = value; in qlcnic_83xx_set_saved_state()
342 struct qlcnic_83xx_dump_template_hdr *hdr; in qlcnic_83xx_cache_tmpl_hdr_values() local
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()
350 hdr->drv_cap_mask = hdr->cap_mask; in qlcnic_83xx_cache_tmpl_hdr_values()
351 fw_dump->cap_mask = hdr->cap_mask; in qlcnic_83xx_cache_tmpl_hdr_values()
359 struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr; in qlcnic_83xx_get_cap_size() local
361 return hdr->cap_sizes[index]; in qlcnic_83xx_get_cap_size()
366 struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr; in qlcnic_83xx_set_sys_info() local
368 hdr->sys_info[idx] = value; in qlcnic_83xx_set_sys_info()
373 struct qlcnic_83xx_dump_template_hdr *hdr; in qlcnic_83xx_store_cap_mask() local
375 hdr = tmpl_hdr; in qlcnic_83xx_store_cap_mask()
376 hdr->drv_cap_mask = mask; in qlcnic_83xx_store_cap_mask()
406 void *hdr = adapter->ahw->fw_dump.tmpl_hdr; in qlcnic_dump_ctrl() local
456 hdr, in qlcnic_dump_ctrl()
459 qlcnic_set_saved_state(adapter, hdr, in qlcnic_dump_ctrl()
466 hdr, in qlcnic_dump_ctrl()
474 hdr, in qlcnic_dump_ctrl()
479 data = qlcnic_get_saved_state(adapter, hdr, in qlcnic_dump_ctrl()
487 qlcnic_set_saved_state(adapter, hdr, in qlcnic_dump_ctrl()
869 entry->hdr.mask); in qlcnic_read_memory()
878 entry->hdr.mask); in qlcnic_read_memory()
888 entry->hdr.flags |= QLCNIC_DUMP_SKIP; in qlcnic_dump_nop()
896 if (size != entry->hdr.cap_size) { in qlcnic_valid_dump_entry()
899 entry->hdr.type, entry->hdr.mask, size, in qlcnic_valid_dump_entry()
900 entry->hdr.cap_size); in qlcnic_valid_dump_entry()
1353 if (!(entry->hdr.mask & fw_dump->cap_mask)) { in qlcnic_dump_fw()
1354 entry->hdr.flags |= QLCNIC_DUMP_SKIP; in qlcnic_dump_fw()
1355 entry_offset += entry->hdr.offset; in qlcnic_dump_fw()
1362 if (entry->hdr.type == fw_dump_ops[ops_index].opcode) in qlcnic_dump_fw()
1369 entry->hdr.type); in qlcnic_dump_fw()
1370 entry->hdr.flags |= QLCNIC_DUMP_SKIP; in qlcnic_dump_fw()
1371 entry_offset += entry->hdr.offset; in qlcnic_dump_fw()
1378 entry->hdr.flags |= QLCNIC_DUMP_SKIP; in qlcnic_dump_fw()
1379 entry_offset += entry->hdr.offset; in qlcnic_dump_fw()
1383 buf_offset += entry->hdr.cap_size; in qlcnic_dump_fw()
1384 entry_offset += entry->hdr.offset; in qlcnic_dump_fw()