Lines Matching refs:dump_header

357 	struct nfp_dump_error *dump_header = dump->p;  in nfp_dump_error_tlv()  local
362 total_size = ALIGN8(sizeof(*dump_header) + total_spec_size); in nfp_dump_error_tlv()
368 dump_header->error = cpu_to_be32(error); in nfp_dump_error_tlv()
369 memcpy(dump_header->spec, spec, total_spec_size); in nfp_dump_error_tlv()
376 struct nfp_dump_tl *dump_header = dump->p; in nfp_dump_fwname() local
383 total_size = sizeof(*dump_header) + ALIGN8(fwname_len + 1); in nfp_dump_fwname()
389 memcpy(dump_header->data, fwname, fwname_len); in nfp_dump_fwname()
398 struct nfp_dump_tl *dump_header = dump->p; in nfp_dump_hwinfo() local
405 total_size = sizeof(*dump_header) + ALIGN8(hwinfo_size); in nfp_dump_hwinfo()
411 memcpy(dump_header->data, hwinfo, hwinfo_size); in nfp_dump_hwinfo()
419 struct nfp_dump_tl *dump_header = dump->p; in nfp_dump_hwinfo_field() local
436 total_size = sizeof(*dump_header) + ALIGN8(key_len + val_len + 2); in nfp_dump_hwinfo_field()
441 memcpy(dump_header->data, key, key_len + 1); in nfp_dump_hwinfo_field()
442 memcpy(dump_header->data + key_len + 1, value, val_len + 1); in nfp_dump_hwinfo_field()
459 struct nfp_dump_csr *dump_header = dump->p; in nfp_dump_csr_range() local
471 header_size = ALIGN8(sizeof(*dump_header)); in nfp_dump_csr_range()
480 dump_header->cpp = spec_csr->cpp; in nfp_dump_csr_range()
481 dump_header->register_width = spec_csr->register_width; in nfp_dump_csr_range()
496 dump_header->error = cpu_to_be32(err); in nfp_dump_csr_range()
497 dump_header->error_offset = cpu_to_be32(cpp_rd_addr); in nfp_dump_csr_range()
564 struct nfp_dump_csr *dump_header = dump->p; in nfp_dump_indirect_csr_range() local
575 header_size = ALIGN8(sizeof(*dump_header)); in nfp_dump_indirect_csr_range()
585 dump_header->cpp = spec_csr->cpp; in nfp_dump_indirect_csr_range()
586 dump_header->register_width = spec_csr->register_width; in nfp_dump_indirect_csr_range()
594 dump_header->error = cpu_to_be32(err); in nfp_dump_indirect_csr_range()
595 dump_header->error_offset = cpu_to_be32(cpp_rd_addr); in nfp_dump_indirect_csr_range()
611 struct nfp_dump_rtsym *dump_header = dump->p; in nfp_dump_single_rtsym() local
640 dump_header->padded_name_length = in nfp_dump_single_rtsym()
642 memcpy(dump_header->rtsym, spec->rtsym, key_len + 1); in nfp_dump_single_rtsym()
643 dump_header->cpp.dump_length = cpu_to_be32(sym_size); in nfp_dump_single_rtsym()
650 dump_header->cpp.cpp_id = cpp_params; in nfp_dump_single_rtsym()
651 dump_header->cpp.offset = cpu_to_be32(sym->addr); in nfp_dump_single_rtsym()
658 dump_header->error = cpu_to_be32(bytes_read); in nfp_dump_single_rtsym()