spec_csr 214 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c static bool nfp_csr_spec_valid(struct nfp_dumpspec_csr *spec_csr) spec_csr 216 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c u32 required_read_sz = sizeof(*spec_csr) - sizeof(spec_csr->tl); spec_csr 217 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c u32 available_sz = be32_to_cpu(spec_csr->tl.length); spec_csr 223 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c reg_width = be32_to_cpu(spec_csr->register_width); spec_csr 253 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c struct nfp_dumpspec_csr *spec_csr; spec_csr 264 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c spec_csr = (struct nfp_dumpspec_csr *)tl; spec_csr 265 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c if (!nfp_csr_spec_valid(spec_csr)) spec_csr 269 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length)); spec_csr 272 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c spec_csr = (struct nfp_dumpspec_csr *)tl; spec_csr 273 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c if (!nfp_csr_spec_valid(spec_csr)) spec_csr 277 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length) * spec_csr 449 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c nfp_dump_csr_range(struct nfp_pf *pf, struct nfp_dumpspec_csr *spec_csr, spec_csr 460 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c if (!nfp_csr_spec_valid(spec_csr)) spec_csr 461 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c return nfp_dump_error_tlv(&spec_csr->tl, -EINVAL, dump); spec_csr 463 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c reg_sz = be32_to_cpu(spec_csr->register_width) / BITS_PER_BYTE; spec_csr 466 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length)); spec_csr 469 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c err = nfp_add_tlv(be32_to_cpu(spec_csr->tl.type), total_size, dump); spec_csr 473 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c dump_header->cpp = spec_csr->cpp; spec_csr 474 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c dump_header->register_width = spec_csr->register_width; spec_csr 476 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c cpp_id = nfp_get_numeric_cpp_id(&spec_csr->cpp.cpp_id); spec_csr 477 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c cpp_rd_addr = be32_to_cpu(spec_csr->cpp.offset); spec_csr 478 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c max_rd_addr = cpp_rd_addr + be32_to_cpu(spec_csr->cpp.dump_length); spec_csr 481 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c if (is_xpb_read(&spec_csr->cpp.cpp_id)) { spec_csr 534 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c struct nfp_dumpspec_csr *spec_csr, u32 address, spec_csr 541 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c err = nfp_read_indirect_csr(cpp, spec_csr->cpp.cpp_id, address, spec_csr 552 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c struct nfp_dumpspec_csr *spec_csr, spec_csr 562 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c if (!nfp_csr_spec_valid(spec_csr)) spec_csr 563 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c return nfp_dump_error_tlv(&spec_csr->tl, -EINVAL, dump); spec_csr 565 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c reg_sz = be32_to_cpu(spec_csr->register_width) / BITS_PER_BYTE; spec_csr 567 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c reg_data_length = be32_to_cpu(spec_csr->cpp.dump_length) * spec_csr 572 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c err = nfp_add_tlv(be32_to_cpu(spec_csr->tl.type), total_size, dump); spec_csr 576 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c dump_header->cpp = spec_csr->cpp; spec_csr 577 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c dump_header->register_width = spec_csr->register_width; spec_csr 579 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c cpp_rd_addr = be32_to_cpu(spec_csr->cpp.offset); spec_csr 580 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c max_rd_addr = cpp_rd_addr + be32_to_cpu(spec_csr->cpp.dump_length); spec_csr 582 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c err = nfp_read_all_indirect_csr_ctx(pf->cpp, spec_csr, spec_csr 658 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c struct nfp_dumpspec_csr *spec_csr; spec_csr 670 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c spec_csr = (struct nfp_dumpspec_csr *)tl; spec_csr 671 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c err = nfp_dump_csr_range(pf, spec_csr, dump); spec_csr 676 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c spec_csr = (struct nfp_dumpspec_csr *)tl; spec_csr 677 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c err = nfp_dump_indirect_csr_range(pf, spec_csr, dump);