Home
last modified time | relevance | path

Searched defs:devlink (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/net/core/
Ddevlink.c98 static struct net *devlink_net(const struct devlink *devlink) in devlink_net()
103 static void devlink_net_set(struct devlink *devlink, struct net *net) in devlink_net_set()
111 struct devlink *devlink; in devlink_get_from_attrs() local
138 static struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index()
150 static bool devlink_port_index_exists(struct devlink *devlink, in devlink_port_index_exists()
156 static struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs()
171 static struct devlink_port *devlink_port_get_from_info(struct devlink *devlink, in devlink_port_get_from_info()
192 static struct devlink_sb *devlink_sb_get_by_index(struct devlink *devlink, in devlink_sb_get_by_index()
204 static bool devlink_sb_index_exists(struct devlink *devlink, in devlink_sb_index_exists()
210 static struct devlink_sb *devlink_sb_get_from_attrs(struct devlink *devlink, in devlink_sb_get_from_attrs()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c10 static int mlx5_devlink_flash_update(struct devlink *devlink, in mlx5_devlink_flash_update()
47 mlx5_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in mlx5_devlink_info_get()
106 void mlx5_devlink_free(struct devlink *devlink) in mlx5_devlink_free()
111 static int mlx5_devlink_fs_mode_validate(struct devlink *devlink, u32 id, in mlx5_devlink_fs_mode_validate()
148 static int mlx5_devlink_fs_mode_set(struct devlink *devlink, u32 id, in mlx5_devlink_fs_mode_set()
163 static int mlx5_devlink_fs_mode_get(struct devlink *devlink, u32 id, in mlx5_devlink_fs_mode_get()
188 static void mlx5_devlink_set_params_init_values(struct devlink *devlink) in mlx5_devlink_set_params_init_values()
202 int mlx5_devlink_register(struct devlink *devlink, struct device *dev) in mlx5_devlink_register()
223 void mlx5_devlink_unregister(struct devlink *devlink) in mlx5_devlink_unregister()
Deswitch_offloads.c2299 static int mlx5_devlink_eswitch_check(struct devlink *devlink) in mlx5_devlink_eswitch_check()
2316 int mlx5_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, in mlx5_devlink_eswitch_mode_set()
2343 int mlx5_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in mlx5_devlink_eswitch_mode_get()
2355 int mlx5_devlink_eswitch_inline_mode_set(struct devlink *devlink, u8 mode, in mlx5_devlink_eswitch_inline_mode_set()
2411 int mlx5_devlink_eswitch_inline_mode_get(struct devlink *devlink, u8 *mode) in mlx5_devlink_eswitch_inline_mode_get()
2461 int mlx5_devlink_eswitch_encap_mode_set(struct devlink *devlink, in mlx5_devlink_eswitch_encap_mode_set()
2511 int mlx5_devlink_eswitch_encap_mode_get(struct devlink *devlink, in mlx5_devlink_eswitch_encap_mode_get()
Dmain.c1320 struct devlink *devlink; in init_one() local
1383 struct devlink *devlink = priv_to_devlink(dev); in remove_one() local
Dhealth.c638 struct devlink *devlink = priv_to_devlink(dev); in mlx5_fw_reporters_create() local
/Linux-v5.4/drivers/net/netdevsim/
Ddev.c126 static struct net *nsim_devlink_net(struct devlink *devlink) in nsim_devlink_net()
159 static int nsim_dev_resources_register(struct devlink *devlink) in nsim_dev_resources_register()
262 struct devlink *devlink) in nsim_devlink_set_params_init_values()
276 static void nsim_devlink_param_load_driverinit_values(struct devlink *devlink) in nsim_devlink_param_load_driverinit_values()
297 struct devlink *devlink) in nsim_dev_dummy_region_init()
409 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report() local
471 static int nsim_dev_traps_init(struct devlink *devlink) in nsim_dev_traps_init()
516 static void nsim_dev_traps_exit(struct devlink *devlink) in nsim_dev_traps_exit()
527 static int nsim_dev_reload_down(struct devlink *devlink, in nsim_dev_reload_down()
533 static int nsim_dev_reload_up(struct devlink *devlink, in nsim_dev_reload_up()
[all …]
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c65 nfp_devlink_port_split(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_split()
102 nfp_devlink_port_unsplit(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_unsplit()
136 nfp_devlink_sb_pool_get(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_get()
145 nfp_devlink_sb_pool_set(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_set()
156 static int nfp_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in nfp_devlink_eswitch_mode_get()
163 static int nfp_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, in nfp_devlink_eswitch_mode_set()
258 nfp_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in nfp_devlink_info_get()
335 nfp_devlink_flash_update(struct devlink *devlink, const char *path, in nfp_devlink_flash_update()
357 struct devlink *devlink; in nfp_devlink_port_register() local
Ddevlink_param.c83 nfp_devlink_param_u8_get(struct devlink *devlink, u32 id, in nfp_devlink_param_u8_get()
134 nfp_devlink_param_u8_set(struct devlink *devlink, u32 id, in nfp_devlink_param_u8_set()
170 nfp_devlink_param_u8_validate(struct devlink *devlink, u32 id, in nfp_devlink_param_u8_validate()
229 struct devlink *devlink = priv_to_devlink(pf); in nfp_devlink_params_register() local
Dnfp_shared_buf.c80 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_register() local
143 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_unregister() local
Dnfp_net_main.c645 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_pci_probe() local
Dnfp_main.c685 struct devlink *devlink; in nfp_pci_probe() local
/Linux-v5.4/include/net/
Ddevlink.h23 struct devlink { struct
34 struct devlink_dpipe_headers *dpipe_headers; argument
37 const struct devlink_ops *ops; argument
46 struct devlink_port_phys_attrs { argument
79 struct devlink *devlink; member
744 static inline void *devlink_priv(struct devlink *devlink) in devlink_priv()
Ddsa.h263 struct devlink *devlink; member
/Linux-v5.4/include/trace/events/
Ddevlink.h186 static inline void trace_devlink_hwmsg(const struct devlink *devlink, in trace_devlink_hwmsg()
192 static inline void trace_devlink_hwerr(const struct devlink *devlink, in trace_devlink_hwerr()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dpipe.c294 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_init() local
304 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_fini() local
747 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_init() local
774 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_fini() local
824 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_init() local
851 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_fini() local
1227 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init() local
1254 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini() local
1262 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init() local
1299 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_fini() local
Dspectrum_trap.c91 struct devlink *devlink; in mlxsw_sp_rx_drop_listener() local
109 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_devlink_traps_init() local
122 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_devlink_traps_fini() local
Dcore.c739 static int mlxsw_devlink_port_split(struct devlink *devlink, in mlxsw_devlink_port_split()
756 static int mlxsw_devlink_port_unsplit(struct devlink *devlink, in mlxsw_devlink_port_unsplit()
773 mlxsw_devlink_sb_pool_get(struct devlink *devlink, in mlxsw_devlink_sb_pool_get()
787 mlxsw_devlink_sb_pool_set(struct devlink *devlink, in mlxsw_devlink_sb_pool_set()
890 static int mlxsw_devlink_sb_occ_snapshot(struct devlink *devlink, in mlxsw_devlink_sb_occ_snapshot()
901 static int mlxsw_devlink_sb_occ_max_clear(struct devlink *devlink, in mlxsw_devlink_sb_occ_max_clear()
947 mlxsw_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in mlxsw_devlink_info_get()
987 mlxsw_devlink_core_bus_device_reload_down(struct devlink *devlink, in mlxsw_devlink_core_bus_device_reload_down()
1000 mlxsw_devlink_core_bus_device_reload_up(struct devlink *devlink, in mlxsw_devlink_core_bus_device_reload_up()
1011 static int mlxsw_devlink_flash_update(struct devlink *devlink, in mlxsw_devlink_flash_update()
[all …]
Dspectrum1_kvdl.c212 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_part_init() local
335 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_init() local
363 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_fini() local
388 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp1_kvdl_resources_register() local
Dspectrum.c5084 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp1_resources_kvd_register() local
5150 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp2_resources_kvd_register() local
5183 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_kvd_sizes_get() local
5234 mlxsw_sp_devlink_param_fw_load_policy_validate(struct devlink *devlink, u32 id, in mlxsw_sp_devlink_param_fw_load_policy_validate()
5256 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_params_register() local
5280 mlxsw_sp_params_acl_region_rehash_intrvl_get(struct devlink *devlink, u32 id, in mlxsw_sp_params_acl_region_rehash_intrvl_get()
5291 mlxsw_sp_params_acl_region_rehash_intrvl_set(struct devlink *devlink, u32 id, in mlxsw_sp_params_acl_region_rehash_intrvl_set()
5312 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp2_params_register() local
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Dcrdump.c157 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_collect() local
199 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_init() local
Dmain.c181 static int mlx4_devlink_ierr_reset_get(struct devlink *devlink, u32 id, in mlx4_devlink_ierr_reset_get()
188 static int mlx4_devlink_ierr_reset_set(struct devlink *devlink, u32 id, in mlx4_devlink_ierr_reset_set()
195 static int mlx4_devlink_crdump_snapshot_get(struct devlink *devlink, u32 id, in mlx4_devlink_crdump_snapshot_get()
205 static int mlx4_devlink_crdump_snapshot_set(struct devlink *devlink, u32 id, in mlx4_devlink_crdump_snapshot_set()
216 mlx4_devlink_max_macs_validate(struct devlink *devlink, u32 id, in mlx4_devlink_max_macs_validate()
263 static void mlx4_devlink_set_params_init_values(struct devlink *devlink) in mlx4_devlink_set_params_init_values()
3026 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_init_port_info() local
3891 static void mlx4_devlink_param_load_driverinit_values(struct devlink *devlink) in mlx4_devlink_param_load_driverinit_values()
3937 static int mlx4_devlink_reload_down(struct devlink *devlink, in mlx4_devlink_reload_down()
3950 static int mlx4_devlink_reload_up(struct devlink *devlink, in mlx4_devlink_reload_up()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_vfr.c472 int bnxt_dl_eswitch_mode_get(struct devlink *devlink, u16 *mode) in bnxt_dl_eswitch_mode_get()
480 int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode, in bnxt_dl_eswitch_mode_set()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dreporter_tx.c288 struct devlink *devlink; in mlx5e_reporter_tx_create() local
Dreporter_rx.c382 struct devlink *devlink = priv_to_devlink(priv->mdev); in mlx5e_reporter_rx_create() local
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c3136 liquidio_eswitch_mode_get(struct devlink *devlink, u16 *mode) in liquidio_eswitch_mode_get()
3150 liquidio_eswitch_mode_set(struct devlink *devlink, u16 mode, in liquidio_eswitch_mode_set()
3365 struct devlink *devlink; in setup_nic_devices() local

12