/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_target.c | 33 static int target_rw(u32 cpp_id, int pp, int start, int len) in target_rw() argument 35 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) { in target_rw() 44 static int nfp6000_nbi_dma(u32 cpp_id) in nfp6000_nbi_dma() argument 46 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) { in nfp6000_nbi_dma() 55 static int nfp6000_nbi_stats(u32 cpp_id) in nfp6000_nbi_stats() argument 57 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) { in nfp6000_nbi_stats() 66 static int nfp6000_nbi_tm(u32 cpp_id) in nfp6000_nbi_tm() argument 68 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) { in nfp6000_nbi_tm() 77 static int nfp6000_nbi_ppc(u32 cpp_id) in nfp6000_nbi_ppc() argument 79 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) { in nfp6000_nbi_ppc() [all …]
|
D | nfp_cpplib.c | 40 int nfp_cpp_readl(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_readl() argument 46 n = nfp_cpp_read(cpp, cpp_id, address, tmp, sizeof(tmp)); in nfp_cpp_readl() 63 int nfp_cpp_writel(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_writel() argument 70 n = nfp_cpp_write(cpp, cpp_id, address, tmp, sizeof(tmp)); in nfp_cpp_writel() 84 int nfp_cpp_readq(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_readq() argument 90 n = nfp_cpp_read(cpp, cpp_id, address, tmp, sizeof(tmp)); in nfp_cpp_readq() 107 int nfp_cpp_writeq(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_writeq() argument 114 n = nfp_cpp_write(cpp, cpp_id, address, tmp, sizeof(tmp)); in nfp_cpp_writeq() 153 int nfp_cpp_explicit_read(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_explicit_read() argument 172 if (NFP_CPP_ID_ACTION_of(cpp_id) == NFP_CPP_ACTION_RW) in nfp_cpp_explicit_read() [all …]
|
D | nfp_rtsym.c | 227 u8 action, u8 token, u64 off, u32 *cpp_id, u64 *addr) in nfp_rtsym_to_dest() argument 243 *cpp_id = NFP_CPP_ISLAND_ID(NFP_CPP_TARGET_MU, action, token, in nfp_rtsym_to_dest() 250 *cpp_id = NFP_CPP_ISLAND_ID(sym->target, action, token, in nfp_rtsym_to_dest() 261 u32 cpp_id; in __nfp_rtsym_read() local 281 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_read() 285 return nfp_cpp_read(cpp, cpp_id, addr, buf, len); in __nfp_rtsym_read() 297 u32 cpp_id; in __nfp_rtsym_readl() local 307 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_readl() 311 return nfp_cpp_readl(cpp, cpp_id, addr, value); in __nfp_rtsym_readl() 323 u32 cpp_id; in __nfp_rtsym_readq() local [all …]
|
D | nfp_cpp.h | 209 u32 cpp_id, 213 struct nfp_cpp_area *nfp_cpp_area_alloc(struct nfp_cpp *cpp, u32 cpp_id, 217 nfp_cpp_area_alloc_acquire(struct nfp_cpp *cpp, const char *name, u32 cpp_id, 252 int nfp_cpp_read(struct nfp_cpp *cpp, u32 cpp_id, 254 int nfp_cpp_write(struct nfp_cpp *cpp, u32 cpp_id, 257 int nfp_cpp_readl(struct nfp_cpp *cpp, u32 cpp_id, 259 int nfp_cpp_writel(struct nfp_cpp *cpp, u32 cpp_id, 261 int nfp_cpp_readq(struct nfp_cpp *cpp, u32 cpp_id, 263 int nfp_cpp_writeq(struct nfp_cpp *cpp, u32 cpp_id, 267 nfp_cpp_map_area(struct nfp_cpp *cpp, const char *name, u32 cpp_id, u64 addr, [all …]
|
D | nfp_mip.c | 43 nfp_mip_try_read(struct nfp_cpp *cpp, u32 cpp_id, u64 addr, struct nfp_mip *mip) in nfp_mip_try_read() argument 47 ret = nfp_cpp_read(cpp, cpp_id, addr, mip, sizeof(*mip)); in nfp_mip_try_read() 71 u32 cpp_id; in nfp_mip_read_resource() local 79 err = nfp_nffw_info_mip_first(nffw_info, &cpp_id, &addr); in nfp_mip_read_resource() 83 err = nfp_mip_try_read(cpp, cpp_id, addr, mip); in nfp_mip_read_resource()
|
D | nfp_resource.c | 63 u32 cpp_id; member 72 u32 cpp_id, key; in nfp_cpp_resource_find() local 75 cpp_id = NFP_CPP_ID(NFP_RESOURCE_TBL_TARGET, 3, 0); /* Atomic read */ in nfp_cpp_resource_find() 88 ret = nfp_cpp_read(cpp, cpp_id, addr, &entry, sizeof(entry)); in nfp_cpp_resource_find() 99 res->cpp_id = NFP_CPP_ID(entry.region.cpp_target, in nfp_cpp_resource_find() 273 return res->cpp_id; in nfp_resource_cpp_id()
|
D | nfp_hwinfo.c | 157 u32 cpp_id; in hwinfo_try_fetch() local 163 cpp_id = nfp_resource_cpp_id(res); in hwinfo_try_fetch() 173 cpp_id = NFP_CPP_ISLAND_ID(NFP_CPP_TARGET_MU, in hwinfo_try_fetch() 185 err = nfp_cpp_read(cpp, cpp_id, cpp_addr, db, *cpp_size); in hwinfo_try_fetch()
|
D | nfp_cppcore.c | 33 u32 cpp_id; member 115 if (tmp->cpp_id > res->cpp_id) in __resource_add() 118 if (tmp->cpp_id == res->cpp_id && tmp->start > res->start) in __resource_add() 185 NFP_CPP_ID_TARGET_of(res->cpp_id), in nfp_cpp_free() 186 NFP_CPP_ID_ACTION_of(res->cpp_id), in nfp_cpp_free() 187 NFP_CPP_ID_TOKEN_of(res->cpp_id), in nfp_cpp_free() 313 area->resource.cpp_id = dest; in nfp_cpp_area_alloc_with_name() 1342 u32 cpp_id, u8 len, u8 mask) in nfp_cpp_explicit_set_target() argument 1344 expl->cmd.cpp_id = cpp_id; in nfp_cpp_explicit_set_target()
|
D | nfp_nsp.c | 443 u32 cpp_id; in nfp_nsp_command_buf_def() local 452 cpp_id = FIELD_GET(NSP_DFLT_BUFFER_CPP, reg) << 8; in nfp_nsp_command_buf_def() 456 err = nfp_cpp_write(cpp, cpp_id, cpp_buf, in nfp_nsp_command_buf_def() 463 err = nfp_cpp_write(cpp, cpp_id, cpp_buf + arg->in_size, in nfp_nsp_command_buf_def() 469 if (!FIELD_FIT(NSP_BUFFER_CPP, cpp_id >> 8) || in nfp_nsp_command_buf_def() 472 cpp_id, cpp_buf); in nfp_nsp_command_buf_def() 476 arg->arg.buf = FIELD_PREP(NSP_BUFFER_CPP, cpp_id >> 8) | in nfp_nsp_command_buf_def() 483 err = nfp_cpp_read(cpp, cpp_id, cpp_buf, in nfp_nsp_command_buf_def()
|
D | nfp_nffw.c | 242 int nfp_nffw_info_mip_first(struct nfp_nffw_info *state, u32 *cpp_id, u64 *off) in nfp_nffw_info_mip_first() argument 250 *cpp_id = nffw_fwinfo_mip_cppid_get(fwinfo); in nfp_nffw_info_mip_first()
|
D | nfp_nffw.h | 19 int nfp_nffw_info_mip_first(struct nfp_nffw_info *state, u32 *cpp_id, u64 *off);
|
D | nfp6000_pcie.c | 1159 NFP_CPP_ID_TOKEN_of(cmd->cpp_id)) | in nfp6000_explicit_do() 1167 NFP_CPP_ID_TARGET_of(cmd->cpp_id)) | in nfp6000_explicit_do() 1169 NFP_CPP_ID_ACTION_of(cmd->cpp_id)) | in nfp6000_explicit_do()
|
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_debugdump.c | 51 struct nfp_dumpspec_cpp_isl_id cpp_id; member 149 static u32 nfp_get_numeric_cpp_id(struct nfp_dumpspec_cpp_isl_id *cpp_id) in nfp_get_numeric_cpp_id() argument 151 return NFP_CPP_ISLAND_ID(cpp_id->target, cpp_id->action, cpp_id->token, in nfp_get_numeric_cpp_id() 152 cpp_id->island); in nfp_get_numeric_cpp_id() 442 static bool is_xpb_read(struct nfp_dumpspec_cpp_isl_id *cpp_id) in is_xpb_read() argument 444 return cpp_id->target == NFP_CPP_TARGET_ISLAND_XPB && in is_xpb_read() 445 cpp_id->action == 0 && cpp_id->token == 0; in is_xpb_read() 457 u32 cpp_id; in nfp_dump_csr_range() local 476 cpp_id = nfp_get_numeric_cpp_id(&spec_csr->cpp.cpp_id); in nfp_dump_csr_range() 481 if (is_xpb_read(&spec_csr->cpp.cpp_id)) { in nfp_dump_csr_range() [all …]
|
D | nfp_net_main.c | 448 u32 min_size, cpp_id; in nfp_net_pci_map_mem() local 497 cpp_id = NFP_CPP_ISLAND_ID(0, NFP_CPP_ACTION_RW, 0, 0); in nfp_net_pci_map_mem() 498 mem = nfp_cpp_map_area(pf->cpp, "net.qc", cpp_id, NFP_PCIE_QUEUE(0), in nfp_net_pci_map_mem()
|
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/ |
D | nfp6000.h | 53 int nfp_target_pushpull(u32 cpp_id, u64 address);
|