Lines Matching refs:cpp

64 	struct nfp_dump_common_cpp cpp;  member
76 struct nfp_dump_common_cpp cpp; member
84 struct nfp_dump_common_cpp cpp; member
161 nfp_net_dump_load_dumpspec(struct nfp_cpp *cpp, struct nfp_rtsym_table *rtbl) in nfp_net_dump_load_dumpspec() argument
179 bytes_read = nfp_rtsym_read(cpp, specsym, 0, dumpspec->data, sym_size); in nfp_net_dump_load_dumpspec()
182 nfp_warn(cpp, "Debug dump specification read failed.\n"); in nfp_net_dump_load_dumpspec()
274 ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length)); in nfp_add_tlv_size()
282 ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length) * in nfp_add_tlv_size()
473 ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length)); in nfp_dump_csr_range()
480 dump_header->cpp = spec_csr->cpp; in nfp_dump_csr_range()
483 cpp_id = nfp_get_numeric_cpp_id(&spec_csr->cpp.cpp_id); in nfp_dump_csr_range()
484 cpp_rd_addr = be32_to_cpu(spec_csr->cpp.offset); in nfp_dump_csr_range()
485 max_rd_addr = cpp_rd_addr + be32_to_cpu(spec_csr->cpp.dump_length); in nfp_dump_csr_range()
488 if (is_xpb_read(&spec_csr->cpp.cpp_id)) { in nfp_dump_csr_range()
489 err = nfp_xpb_readl(pf->cpp, cpp_rd_addr, (u32 *)dest); in nfp_dump_csr_range()
491 bytes_read = nfp_cpp_read(pf->cpp, cpp_id, cpp_rd_addr, in nfp_dump_csr_range()
511 nfp_read_indirect_csr(struct nfp_cpp *cpp, in nfp_read_indirect_csr() argument
523 result = nfp_cpp_writel(cpp, cpp_id, csr_ctx_ptr_offs, context); in nfp_read_indirect_csr()
528 result = nfp_cpp_read(cpp, cpp_id, csr_ctx_ptr_offs, dest, reg_sz); in nfp_read_indirect_csr()
532 result = nfp_cpp_read(cpp, cpp_id, offset, dest, reg_sz); in nfp_read_indirect_csr()
540 nfp_read_all_indirect_csr_ctx(struct nfp_cpp *cpp, in nfp_read_all_indirect_csr_ctx() argument
548 err = nfp_read_indirect_csr(cpp, spec_csr->cpp.cpp_id, address, in nfp_read_all_indirect_csr_ctx()
576 reg_data_length = be32_to_cpu(spec_csr->cpp.dump_length) * in nfp_dump_indirect_csr_range()
585 dump_header->cpp = spec_csr->cpp; in nfp_dump_indirect_csr_range()
588 cpp_rd_addr = be32_to_cpu(spec_csr->cpp.offset); in nfp_dump_indirect_csr_range()
589 max_rd_addr = cpp_rd_addr + be32_to_cpu(spec_csr->cpp.dump_length); in nfp_dump_indirect_csr_range()
591 err = nfp_read_all_indirect_csr_ctx(pf->cpp, spec_csr, in nfp_dump_indirect_csr_range()
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()
654 bytes_read = nfp_rtsym_read(pf->cpp, sym, 0, dest, sym_size); in nfp_dump_single_rtsym()