Lines Matching defs:cpp_id

33 static int target_rw(u32 cpp_id, int pp, int start, int len)
35 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
44 static int nfp6000_nbi_dma(u32 cpp_id)
46 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
55 static int nfp6000_nbi_stats(u32 cpp_id)
57 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
66 static int nfp6000_nbi_tm(u32 cpp_id)
68 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
77 static int nfp6000_nbi_ppc(u32 cpp_id)
79 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
88 static int nfp6000_nbi(u32 cpp_id, u64 address)
93 return nfp6000_nbi_dma(cpp_id);
95 return nfp6000_nbi_stats(cpp_id);
97 return nfp6000_nbi_tm(cpp_id);
98 return nfp6000_nbi_ppc(cpp_id);
104 static int nfp6000_mu_common(u32 cpp_id)
106 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
154 static int nfp6000_mu_ctm(u32 cpp_id)
156 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
167 return nfp6000_mu_common(cpp_id);
171 static int nfp6000_mu_emu(u32 cpp_id)
173 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
186 return nfp6000_mu_common(cpp_id);
190 static int nfp6000_mu_imu(u32 cpp_id)
192 return nfp6000_mu_common(cpp_id);
195 static int nfp6000_mu(u32 cpp_id, u64 address)
200 pp = nfp6000_mu_ctm(cpp_id);
202 pp = nfp6000_mu_emu(cpp_id);
204 pp = nfp6000_mu_ctm(cpp_id);
206 pp = nfp6000_mu_emu(cpp_id);
208 pp = nfp6000_mu_imu(cpp_id);
210 pp = nfp6000_mu_ctm(cpp_id);
215 static int nfp6000_ila(u32 cpp_id)
217 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
222 return target_rw(cpp_id, P32, 48, 4);
226 static int nfp6000_pci(u32 cpp_id)
228 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
232 return target_rw(cpp_id, P32, 4, 4);
236 static int nfp6000_crypto(u32 cpp_id)
238 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
241 return target_rw(cpp_id, P64, 12, 4);
245 static int nfp6000_cap_xpb(u32 cpp_id)
247 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
262 return target_rw(cpp_id, P32, 1, 63);
266 static int nfp6000_cls(u32 cpp_id)
268 switch (cpp_id & NFP_CPP_ID(0, ~0, ~0)) {
293 return target_rw(cpp_id, P32, 0, 64);
297 int nfp_target_pushpull(u32 cpp_id, u64 address)
299 switch (NFP_CPP_ID_TARGET_of(cpp_id)) {
301 return nfp6000_nbi(cpp_id, address);
303 return target_rw(cpp_id, P32, 24, 4);
305 return nfp6000_ila(cpp_id);
307 return nfp6000_mu(cpp_id, address);
309 return nfp6000_pci(cpp_id);
312 return target_rw(cpp_id, P64, 1, 1);
314 return target_rw(cpp_id, P32, 1, 1);
316 return nfp6000_crypto(cpp_id);
318 return nfp6000_cap_xpb(cpp_id);
320 return nfp6000_cls(cpp_id);
322 return target_rw(cpp_id, P32, 4, 4);