Lines Matching refs:cpp
59 struct nfp_dump_common_cpp cpp; member
71 struct nfp_dump_common_cpp cpp; member
79 struct nfp_dump_common_cpp cpp; member
156 nfp_net_dump_load_dumpspec(struct nfp_cpp *cpp, struct nfp_rtsym_table *rtbl) in nfp_net_dump_load_dumpspec() argument
174 bytes_read = nfp_rtsym_read(cpp, specsym, 0, dumpspec->data, sym_size); in nfp_net_dump_load_dumpspec()
177 nfp_warn(cpp, "Debug dump specification read failed.\n"); in nfp_net_dump_load_dumpspec()
269 ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length)); in nfp_add_tlv_size()
277 ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length) * in nfp_add_tlv_size()
466 ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length)); in nfp_dump_csr_range()
473 dump_header->cpp = spec_csr->cpp; in nfp_dump_csr_range()
476 cpp_id = nfp_get_numeric_cpp_id(&spec_csr->cpp.cpp_id); in nfp_dump_csr_range()
477 cpp_rd_addr = be32_to_cpu(spec_csr->cpp.offset); in nfp_dump_csr_range()
478 max_rd_addr = cpp_rd_addr + be32_to_cpu(spec_csr->cpp.dump_length); in nfp_dump_csr_range()
481 if (is_xpb_read(&spec_csr->cpp.cpp_id)) { in nfp_dump_csr_range()
482 err = nfp_xpb_readl(pf->cpp, cpp_rd_addr, (u32 *)dest); in nfp_dump_csr_range()
484 bytes_read = nfp_cpp_read(pf->cpp, cpp_id, cpp_rd_addr, in nfp_dump_csr_range()
504 nfp_read_indirect_csr(struct nfp_cpp *cpp, in nfp_read_indirect_csr() argument
516 result = nfp_cpp_writel(cpp, cpp_id, csr_ctx_ptr_offs, context); in nfp_read_indirect_csr()
521 result = nfp_cpp_read(cpp, cpp_id, csr_ctx_ptr_offs, dest, reg_sz); in nfp_read_indirect_csr()
525 result = nfp_cpp_read(cpp, cpp_id, offset, dest, reg_sz); in nfp_read_indirect_csr()
533 nfp_read_all_indirect_csr_ctx(struct nfp_cpp *cpp, in nfp_read_all_indirect_csr_ctx() argument
541 err = nfp_read_indirect_csr(cpp, spec_csr->cpp.cpp_id, address, in nfp_read_all_indirect_csr_ctx()
567 reg_data_length = be32_to_cpu(spec_csr->cpp.dump_length) * in nfp_dump_indirect_csr_range()
576 dump_header->cpp = spec_csr->cpp; in nfp_dump_indirect_csr_range()
579 cpp_rd_addr = be32_to_cpu(spec_csr->cpp.offset); in nfp_dump_indirect_csr_range()
580 max_rd_addr = cpp_rd_addr + be32_to_cpu(spec_csr->cpp.dump_length); in nfp_dump_indirect_csr_range()
582 err = nfp_read_all_indirect_csr_ctx(pf->cpp, spec_csr, in nfp_dump_indirect_csr_range()
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()
643 bytes_read = nfp_rtsym_read(pf->cpp, sym, 0, dest, sym_size); in nfp_dump_single_rtsym()