Home
last modified time | relevance | path

Searched refs:nfp_cpp (Results 1 – 25 of 25) sorted by relevance

/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_cpp.h51 struct nfp_cpp;
202 void nfp_cpp_free(struct nfp_cpp *cpp);
203 u32 nfp_cpp_model(struct nfp_cpp *cpp);
204 u16 nfp_cpp_interface(struct nfp_cpp *cpp);
205 int nfp_cpp_serial(struct nfp_cpp *cpp, const u8 **serial);
206 unsigned int nfp_cpp_mu_locality_lsb(struct nfp_cpp *cpp);
208 struct nfp_cpp_area *nfp_cpp_area_alloc_with_name(struct nfp_cpp *cpp,
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,
231 struct nfp_cpp *nfp_cpp_area_cpp(struct nfp_cpp_area *cpp_area);
[all …]
Dnfp_nffw.h17 struct nfp_nffw_info *nfp_nffw_info_open(struct nfp_cpp *cpp);
25 const struct nfp_mip *nfp_mip_open(struct nfp_cpp *cpp);
65 struct nfp_rtsym_table *nfp_rtsym_table_read(struct nfp_cpp *cpp);
67 __nfp_rtsym_table_read(struct nfp_cpp *cpp, const struct nfp_mip *mip);
74 int __nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym,
76 int nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off,
78 int __nfp_rtsym_readl(struct nfp_cpp *cpp, const struct nfp_rtsym *sym,
80 int nfp_rtsym_readl(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off,
82 int __nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym,
84 int nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off,
[all …]
Dnfp_cppcore.c59 struct nfp_cpp { struct
90 struct nfp_cpp *cpp; argument
102 struct nfp_cpp *cpp;
134 struct nfp_cpp *cpp = nfp_cpp_area_cpp(area); in __release_cpp_area()
161 void nfp_cpp_free(struct nfp_cpp *cpp) in nfp_cpp_free()
212 u32 nfp_cpp_model(struct nfp_cpp *cpp) in nfp_cpp_model()
223 u16 nfp_cpp_interface(struct nfp_cpp *cpp) in nfp_cpp_interface()
235 int nfp_cpp_serial(struct nfp_cpp *cpp, const u8 **serial) in nfp_cpp_serial()
246 static int nfp_cpp_set_mu_locality_lsb(struct nfp_cpp *cpp) in nfp_cpp_set_mu_locality_lsb()
264 unsigned int nfp_cpp_mu_locality_lsb(struct nfp_cpp *cpp) in nfp_cpp_mu_locality_lsb()
[all …]
Dnfp_nsp.h11 struct nfp_cpp;
14 struct nfp_nsp *nfp_nsp_open(struct nfp_cpp *cpp);
189 struct nfp_eth_table *nfp_eth_read_ports(struct nfp_cpp *cpp);
191 __nfp_eth_read_ports(struct nfp_cpp *cpp, struct nfp_nsp *nsp);
193 int nfp_eth_set_mod_enable(struct nfp_cpp *cpp, unsigned int idx, bool enable);
194 int nfp_eth_set_configured(struct nfp_cpp *cpp, unsigned int idx,
197 nfp_eth_set_fec(struct nfp_cpp *cpp, unsigned int idx, enum nfp_eth_fec mode);
210 struct nfp_nsp *nfp_eth_config_start(struct nfp_cpp *cpp, unsigned int idx);
251 int nfp_hwmon_read_sensor(struct nfp_cpp *cpp, enum nfp_nsp_sensor_id id,
Dnfp_rtsym.c41 struct nfp_cpp *cpp;
82 struct nfp_rtsym_table *nfp_rtsym_table_read(struct nfp_cpp *cpp) in nfp_rtsym_table_read()
95 __nfp_rtsym_table_read(struct nfp_cpp *cpp, const struct nfp_mip *mip) in __nfp_rtsym_table_read()
226 nfp_rtsym_to_dest(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, in nfp_rtsym_to_dest()
257 int __nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, in __nfp_rtsym_read()
288 int nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_read()
294 int __nfp_rtsym_readl(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, in __nfp_rtsym_readl()
314 int nfp_rtsym_readl(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_readl()
320 int __nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, in __nfp_rtsym_readq()
345 int nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_readq()
[all …]
Dnfp.h20 struct nfp_hwinfo *nfp_hwinfo_read(struct nfp_cpp *cpp);
29 struct nfp_cpp *nfp_nsp_cpp(struct nfp_nsp *state);
67 int nfp_resource_table_init(struct nfp_cpp *cpp);
70 nfp_resource_acquire(struct nfp_cpp *cpp, const char *name);
74 int nfp_resource_wait(struct nfp_cpp *cpp, const char *name, unsigned int secs);
Dnfp_cpplib.c40 int nfp_cpp_readl(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_readl()
63 int nfp_cpp_writel(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_writel()
84 int nfp_cpp_readq(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_readq()
107 int nfp_cpp_writeq(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_writeq()
122 int nfp_cpp_model_autodetect(struct nfp_cpp *cpp, u32 *model) in nfp_cpp_model_autodetect()
153 int nfp_cpp_explicit_read(struct nfp_cpp *cpp, u32 cpp_id, in nfp_cpp_explicit_read()
206 int nfp_cpp_explicit_write(struct nfp_cpp *cpp, u32 cpp_id, u64 addr, in nfp_cpp_explicit_write()
274 nfp_cpp_map_area(struct nfp_cpp *cpp, const char *name, u32 cpp_id, u64 addr, in nfp_cpp_map_area()
Dnfp_mutex.c15 struct nfp_cpp *cpp;
86 int nfp_cpp_mutex_init(struct nfp_cpp *cpp, in nfp_cpp_mutex_init()
123 struct nfp_cpp_mutex *nfp_cpp_mutex_alloc(struct nfp_cpp *cpp, int target, in nfp_cpp_mutex_alloc()
221 struct nfp_cpp *cpp = mutex->cpp; in nfp_cpp_mutex_unlock()
267 struct nfp_cpp *cpp = mutex->cpp; in nfp_cpp_mutex_trylock()
341 int nfp_cpp_mutex_reclaim(struct nfp_cpp *cpp, int target, in nfp_cpp_mutex_reclaim()
Dnfp_hwinfo.c106 hwinfo_db_walk(struct nfp_cpp *cpp, struct nfp_hwinfo *hwinfo, u32 size) in hwinfo_db_walk()
129 hwinfo_db_validate(struct nfp_cpp *cpp, struct nfp_hwinfo *db, u32 len) in hwinfo_db_validate()
152 hwinfo_try_fetch(struct nfp_cpp *cpp, size_t *cpp_size) in hwinfo_try_fetch()
208 static struct nfp_hwinfo *hwinfo_fetch(struct nfp_cpp *cpp, size_t *hwdb_size) in hwinfo_fetch()
229 struct nfp_hwinfo *nfp_hwinfo_read(struct nfp_cpp *cpp) in nfp_hwinfo_read()
Dnfp_resource.c69 static int nfp_cpp_resource_find(struct nfp_cpp *cpp, struct nfp_resource *res) in nfp_cpp_resource_find()
112 nfp_resource_try_acquire(struct nfp_cpp *cpp, struct nfp_resource *res, in nfp_resource_try_acquire()
150 nfp_resource_acquire(struct nfp_cpp *cpp, const char *name) in nfp_resource_acquire()
231 int nfp_resource_wait(struct nfp_cpp *cpp, const char *name, unsigned int secs) in nfp_resource_wait()
318 int nfp_resource_table_init(struct nfp_cpp *cpp) in nfp_resource_table_init()
Dnfp_nsp_eth.c176 nfp_eth_calc_port_geometry(struct nfp_cpp *cpp, struct nfp_eth_table *table) in nfp_eth_calc_port_geometry()
204 nfp_eth_calc_port_type(struct nfp_cpp *cpp, struct nfp_eth_table_port *entry) in nfp_eth_calc_port_type()
229 struct nfp_eth_table *nfp_eth_read_ports(struct nfp_cpp *cpp) in nfp_eth_read_ports()
245 __nfp_eth_read_ports(struct nfp_cpp *cpp, struct nfp_nsp *nsp) in __nfp_eth_read_ports()
298 struct nfp_nsp *nfp_eth_config_start(struct nfp_cpp *cpp, unsigned int idx) in nfp_eth_config_start()
388 int nfp_eth_set_mod_enable(struct nfp_cpp *cpp, unsigned int idx, bool enable) in nfp_eth_set_mod_enable()
427 int nfp_eth_set_configured(struct nfp_cpp *cpp, unsigned int idx, bool configed) in nfp_eth_set_configured()
548 nfp_eth_set_fec(struct nfp_cpp *cpp, unsigned int idx, enum nfp_eth_fec mode) in nfp_eth_set_fec()
Dnfp_mip.c43 nfp_mip_try_read(struct nfp_cpp *cpp, u32 cpp_id, u64 addr, struct nfp_mip *mip) in nfp_mip_try_read()
68 static int nfp_mip_read_resource(struct nfp_cpp *cpp, struct nfp_mip *mip) in nfp_mip_read_resource()
99 const struct nfp_mip *nfp_mip_open(struct nfp_cpp *cpp) in nfp_mip_open()
Dnfp_nsp.c127 struct nfp_cpp *cpp;
177 struct nfp_cpp *nfp_nsp_cpp(struct nfp_nsp *state) in nfp_nsp_cpp()
229 struct nfp_cpp *cpp = state->cpp; in nfp_nsp_check()
272 struct nfp_nsp *nfp_nsp_open(struct nfp_cpp *cpp) in nfp_nsp_open()
320 nfp_nsp_wait_reg(struct nfp_cpp *cpp, u64 *reg, u32 nsp_cpp, u64 addr, in nfp_nsp_wait_reg()
362 struct nfp_cpp *cpp = state->cpp; in __nfp_nsp_command()
440 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_def()
498 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_dma_sg()
627 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_dma()
660 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf()
Dnfp_nffw.c79 struct nfp_cpp *cpp;
159 struct nfp_nffw_info *nfp_nffw_info_open(struct nfp_cpp *cpp) in nfp_nffw_info_open()
Dnfp6000_pcie.h14 struct nfp_cpp *nfp_cpp_from_nfp6000_pcie(struct pci_dev *pdev);
Dnfp_nsp_cmds.c70 int nfp_hwmon_read_sensor(struct nfp_cpp *cpp, enum nfp_nsp_sensor_id id, in nfp_hwmon_read_sensor()
Dnfp6000_pcie.c1232 static int nfp6000_init(struct nfp_cpp *cpp) in nfp6000_init()
1241 static void nfp6000_free(struct nfp_cpp *cpp) in nfp6000_free()
1314 struct nfp_cpp *nfp_cpp_from_nfp6000_pcie(struct pci_dev *pdev) in nfp_cpp_from_nfp6000_pcie()
/drivers/net/ethernet/netronome/nfp/
Dnfp_main.h25 struct nfp_cpp;
92 struct nfp_cpp *cpp;
177 nfp_net_dump_load_dumpspec(struct nfp_cpp *cpp, struct nfp_rtsym_table *rtbl);
Dnfp_app.h23 struct nfp_cpp;
165 struct nfp_cpp *cpp;
Dnfp_net_debugdump.c156 nfp_net_dump_load_dumpspec(struct nfp_cpp *cpp, struct nfp_rtsym_table *rtbl) in nfp_net_dump_load_dumpspec()
504 nfp_read_indirect_csr(struct nfp_cpp *cpp, in nfp_read_indirect_csr()
533 nfp_read_all_indirect_csr_ctx(struct nfp_cpp *cpp, in nfp_read_all_indirect_csr_ctx()
Dnfp_net_main.c523 nfp_net_eth_port_update(struct nfp_cpp *cpp, struct nfp_port *port, in nfp_net_eth_port_update()
620 struct nfp_cpp *cpp = port->app->cpp; in nfp_net_refresh_eth_port()
Dnfp_net.h106 struct nfp_cpp;
/drivers/net/ethernet/netronome/nfp/abm/
Dctrl.c52 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_ctrl_stat()
77 struct nfp_cpp *cpp = abm->app->cpp; in __nfp_abm_ctrl_set_q_lvl()
111 struct nfp_cpp *cpp = abm->app->cpp; in __nfp_abm_ctrl_set_q_act()
Dqdisc.c48 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_stats_update_red()
519 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_gred_check_params()
664 struct nfp_cpp *cpp = alink->abm->app->cpp; in nfp_abm_red_check_params()
/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c210 struct nfp_cpp *cpp = bpf->app->pf->cpp; in nfp_bpf_parse_cap_adjust_head()
338 struct nfp_cpp *cpp = app->pf->cpp; in nfp_bpf_parse_capabilities()