Home
last modified time | relevance | path

Searched refs:expl (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_cpplib.c156 struct nfp_cpp_explicit *expl; in nfp_cpp_explicit_read() local
164 expl = nfp_cpp_explicit_acquire(cpp); in nfp_cpp_explicit_read()
165 if (!expl) in nfp_cpp_explicit_read()
178 nfp_cpp_explicit_set_target(expl, cpp_id, in nfp_cpp_explicit_read()
180 nfp_cpp_explicit_set_posted(expl, 1, 0, NFP_SIGNAL_PUSH, in nfp_cpp_explicit_read()
186 nfp_cpp_explicit_set_target(expl, cpp_id, in nfp_cpp_explicit_read()
191 err = nfp_cpp_explicit_do(expl, addr); in nfp_cpp_explicit_read()
195 err = nfp_cpp_explicit_get(expl, tmp, incr); in nfp_cpp_explicit_read()
201 nfp_cpp_explicit_release(expl); in nfp_cpp_explicit_read()
209 struct nfp_cpp_explicit *expl; in nfp_cpp_explicit_write() local
[all …]
Dnfp_cppcore.c1288 #define NFP_EXPL_OP(func, expl, args...) \ argument
1290 struct nfp_cpp *cpp = nfp_cpp_explicit_cpp(expl); \
1294 err = cpp->op->func(expl, ##args); \
1298 #define NFP_EXPL_OP_NR(func, expl, args...) \ argument
1300 struct nfp_cpp *cpp = nfp_cpp_explicit_cpp(expl); \
1303 cpp->op->func(expl, ##args); \
1318 struct nfp_cpp_explicit *expl; in nfp_cpp_explicit_acquire() local
1321 expl = kzalloc(sizeof(*expl) + cpp->op->explicit_priv_size, GFP_KERNEL); in nfp_cpp_explicit_acquire()
1322 if (!expl) in nfp_cpp_explicit_acquire()
1325 expl->cpp = cpp; in nfp_cpp_explicit_acquire()
[all …]
Dnfp_cpp.h363 int (*explicit_acquire)(struct nfp_cpp_explicit *expl);
364 void (*explicit_release)(struct nfp_cpp_explicit *expl);
365 int (*explicit_put)(struct nfp_cpp_explicit *expl,
367 int (*explicit_get)(struct nfp_cpp_explicit *expl,
369 int (*explicit_do)(struct nfp_cpp_explicit *expl,
405 int nfp_cpp_explicit_set_target(struct nfp_cpp_explicit *expl, u32 cpp_id,
407 int nfp_cpp_explicit_set_data(struct nfp_cpp_explicit *expl,
409 int nfp_cpp_explicit_set_signal(struct nfp_cpp_explicit *expl,
411 int nfp_cpp_explicit_set_posted(struct nfp_cpp_explicit *expl, int posted,
416 int nfp_cpp_explicit_put(struct nfp_cpp_explicit *expl,
[all …]
Dnfp6000_pcie.c159 void __iomem *expl[4]; member
173 } expl; member
607 mutex_init(&nfp->expl.mutex); in enable_bars()
609 nfp->expl.master_id = ((NFP_CPP_INTERFACE_UNIT_of(interface) & 3) + 4) in enable_bars()
611 nfp->expl.signal_ref = 0x10; in enable_bars()
627 nfp->expl.data = bar->iomem + NFP_PCIE_SRAM + 0x1000; in enable_bars()
677 nfp->expl.group[i].bitsize = 0; in enable_bars()
690 nfp->expl.group[i].bitsize = bar->bitsize; in enable_bars()
691 nfp->expl.group[i].addr = bar->iomem; in enable_bars()
695 nfp->expl.group[i].free[j] = true; in enable_bars()
[all …]