Lines Matching refs:dump_header
352 struct nfp_dump_error *dump_header = dump->p; in nfp_dump_error_tlv() local
357 total_size = ALIGN8(sizeof(*dump_header) + total_spec_size); in nfp_dump_error_tlv()
363 dump_header->error = cpu_to_be32(error); in nfp_dump_error_tlv()
364 memcpy(dump_header->spec, spec, total_spec_size); in nfp_dump_error_tlv()
371 struct nfp_dump_tl *dump_header = dump->p; in nfp_dump_fwname() local
378 total_size = sizeof(*dump_header) + ALIGN8(fwname_len + 1); in nfp_dump_fwname()
384 memcpy(dump_header->data, fwname, fwname_len); in nfp_dump_fwname()
393 struct nfp_dump_tl *dump_header = dump->p; in nfp_dump_hwinfo() local
400 total_size = sizeof(*dump_header) + ALIGN8(hwinfo_size); in nfp_dump_hwinfo()
406 memcpy(dump_header->data, hwinfo, hwinfo_size); in nfp_dump_hwinfo()
414 struct nfp_dump_tl *dump_header = dump->p; in nfp_dump_hwinfo_field() local
431 total_size = sizeof(*dump_header) + ALIGN8(key_len + val_len + 2); in nfp_dump_hwinfo_field()
436 memcpy(dump_header->data, key, key_len + 1); in nfp_dump_hwinfo_field()
437 memcpy(dump_header->data + key_len + 1, value, val_len + 1); in nfp_dump_hwinfo_field()
452 struct nfp_dump_csr *dump_header = dump->p; in nfp_dump_csr_range() local
464 header_size = ALIGN8(sizeof(*dump_header)); in nfp_dump_csr_range()
473 dump_header->cpp = spec_csr->cpp; in nfp_dump_csr_range()
474 dump_header->register_width = spec_csr->register_width; in nfp_dump_csr_range()
489 dump_header->error = cpu_to_be32(err); in nfp_dump_csr_range()
490 dump_header->error_offset = cpu_to_be32(cpp_rd_addr); in nfp_dump_csr_range()
555 struct nfp_dump_csr *dump_header = dump->p; in nfp_dump_indirect_csr_range() local
566 header_size = ALIGN8(sizeof(*dump_header)); in nfp_dump_indirect_csr_range()
576 dump_header->cpp = spec_csr->cpp; in nfp_dump_indirect_csr_range()
577 dump_header->register_width = spec_csr->register_width; in nfp_dump_indirect_csr_range()
585 dump_header->error = cpu_to_be32(err); in nfp_dump_indirect_csr_range()
586 dump_header->error_offset = cpu_to_be32(cpp_rd_addr); in nfp_dump_indirect_csr_range()
600 struct nfp_dump_rtsym *dump_header = dump->p; in nfp_dump_single_rtsym() local
629 dump_header->padded_name_length = in nfp_dump_single_rtsym()
631 memcpy(dump_header->rtsym, spec->rtsym, key_len + 1); in nfp_dump_single_rtsym()
632 dump_header->cpp.dump_length = cpu_to_be32(sym_size); in nfp_dump_single_rtsym()
639 dump_header->cpp.cpp_id = cpp_params; in nfp_dump_single_rtsym()
640 dump_header->cpp.offset = cpu_to_be32(sym->addr); in nfp_dump_single_rtsym()
647 dump_header->error = cpu_to_be32(bytes_read); in nfp_dump_single_rtsym()