Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c11 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()
88 static int mlx5_devlink_reload_fw_activate(struct devlink *devlink, struct netlink_ext_ack *extack) in mlx5_devlink_reload_fw_activate()
114 static int mlx5_devlink_trigger_fw_live_patch(struct devlink *devlink, in mlx5_devlink_trigger_fw_live_patch()
133 static int mlx5_devlink_reload_down(struct devlink *devlink, bool netns_change, in mlx5_devlink_reload_down()
160 static int mlx5_devlink_reload_up(struct devlink *devlink, enum devlink_reload_action action, in mlx5_devlink_reload_up()
210 void mlx5_devlink_free(struct devlink *devlink) in mlx5_devlink_free()
215 static int mlx5_devlink_fs_mode_validate(struct devlink *devlink, u32 id, in mlx5_devlink_fs_mode_validate()
252 static int mlx5_devlink_fs_mode_set(struct devlink *devlink, u32 id, in mlx5_devlink_fs_mode_set()
267 static int mlx5_devlink_fs_mode_get(struct devlink *devlink, u32 id, in mlx5_devlink_fs_mode_get()
[all …]
/kernel/linux/linux-5.10/net/core/
Ddevlink.c102 struct net *devlink_net(const struct devlink *devlink) in devlink_net()
108 static void __devlink_net_set(struct devlink *devlink, struct net *net) in __devlink_net_set()
113 void devlink_net_set(struct devlink *devlink, struct net *net) in devlink_net_set()
124 struct devlink *devlink; in devlink_get_from_attrs() local
151 static struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index()
163 static bool devlink_port_index_exists(struct devlink *devlink, in devlink_port_index_exists()
169 static struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs()
184 static struct devlink_port *devlink_port_get_from_info(struct devlink *devlink, in devlink_port_get_from_info()
205 static struct devlink_sb *devlink_sb_get_by_index(struct devlink *devlink, in devlink_sb_get_by_index()
217 static bool devlink_sb_index_exists(struct devlink *devlink, in devlink_sb_index_exists()
[all …]
/kernel/linux/linux-4.19/net/core/
Ddevlink.c95 static struct net *devlink_net(const struct devlink *devlink) in devlink_net()
100 static void devlink_net_set(struct devlink *devlink, struct net *net) in devlink_net_set()
108 struct devlink *devlink; in devlink_get_from_attrs() local
133 static struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index()
145 static bool devlink_port_index_exists(struct devlink *devlink, int port_index) in devlink_port_index_exists()
150 static struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs()
165 static struct devlink_port *devlink_port_get_from_info(struct devlink *devlink, in devlink_port_get_from_info()
186 static struct devlink_sb *devlink_sb_get_by_index(struct devlink *devlink, in devlink_sb_get_by_index()
198 static bool devlink_sb_index_exists(struct devlink *devlink, in devlink_sb_index_exists()
204 static struct devlink_sb *devlink_sb_get_from_attrs(struct devlink *devlink, in devlink_sb_get_from_attrs()
[all …]
/kernel/linux/linux-4.19/include/net/
Ddevlink.h24 struct devlink { struct
33 struct devlink_dpipe_headers *dpipe_headers; argument
34 const struct devlink_ops *ops; argument
51 struct devlink *devlink; argument
461 static inline void *devlink_priv(struct devlink *devlink) in devlink_priv()
576 static inline int devlink_register(struct devlink *devlink, struct device *dev) in devlink_register()
581 static inline void devlink_unregister(struct devlink *devlink) in devlink_unregister()
585 static inline void devlink_free(struct devlink *devlink) in devlink_free()
590 static inline int devlink_port_register(struct devlink *devlink, in devlink_port_register()
629 static inline int devlink_sb_register(struct devlink *devlink, in devlink_sb_register()
[all …]
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Ddev.c43 nsim_dev_take_snapshot(struct devlink *devlink, in nsim_dev_take_snapshot()
66 struct devlink *devlink; in nsim_dev_take_snapshot_write() local
268 static int nsim_dev_resources_register(struct devlink *devlink) in nsim_dev_resources_register()
349 struct devlink *devlink) in nsim_devlink_set_params_init_values()
363 static void nsim_devlink_param_load_driverinit_values(struct devlink *devlink) in nsim_devlink_param_load_driverinit_values()
390 struct devlink *devlink) in nsim_dev_dummy_region_init()
544 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report() local
613 static int nsim_dev_traps_init(struct devlink *devlink) in nsim_dev_traps_init()
685 static void nsim_dev_traps_exit(struct devlink *devlink) in nsim_dev_traps_exit()
705 static int nsim_dev_reload_down(struct devlink *devlink, bool netns_change, in nsim_dev_reload_down()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c94 nfp_devlink_port_split(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_split()
131 nfp_devlink_port_unsplit(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_unsplit()
165 nfp_devlink_sb_pool_get(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_get()
174 nfp_devlink_sb_pool_set(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_set()
184 static int nfp_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in nfp_devlink_eswitch_mode_get()
191 static int nfp_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode) in nfp_devlink_eswitch_mode_set()
215 struct devlink *devlink; in nfp_devlink_port_register() local
Dnfp_shared_buf.c110 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_register() local
173 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_unregister() local
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c65 nfp_devlink_port_split(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_split()
99 nfp_devlink_port_unsplit(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_unsplit()
133 nfp_devlink_sb_pool_get(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_get()
142 nfp_devlink_sb_pool_set(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_set()
153 static int nfp_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in nfp_devlink_eswitch_mode_get()
160 static int nfp_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, in nfp_devlink_eswitch_mode_set()
255 nfp_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in nfp_devlink_info_get()
332 nfp_devlink_flash_update(struct devlink *devlink, in nfp_devlink_flash_update()
354 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
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_devlink.c22 int qed_report_fatal_error(struct devlink *devlink, enum qed_hw_err_type err_type) in qed_report_fatal_error()
98 void qed_fw_reporters_create(struct devlink *devlink) in qed_fw_reporters_create()
111 void qed_fw_reporters_destroy(struct devlink *devlink) in qed_fw_reporters_destroy()
153 static int qed_devlink_info_get(struct devlink *devlink, in qed_devlink_info_get()
247 void qed_devlink_unregister(struct devlink *devlink) in qed_devlink_unregister()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_devlink.c174 static int ice_devlink_info_get(struct devlink *devlink, in ice_devlink_info_get()
247 ice_devlink_flash_update(struct devlink *devlink, in ice_devlink_flash_update()
321 struct devlink *devlink; in ice_allocate_pf() local
346 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_register() local
382 struct devlink *devlink; in ice_devlink_create_port() local
442 static int ice_devlink_nvm_snapshot(struct devlink *devlink, in ice_devlink_nvm_snapshot()
499 ice_devlink_devcaps_snapshot(struct devlink *devlink, in ice_devlink_devcaps_snapshot()
549 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_init_regions() local
/kernel/linux/linux-4.19/drivers/net/netdevsim/
Ddevlink.c26 static struct net *nsim_devlink_net(struct devlink *devlink) in nsim_devlink_net()
63 static int devlink_resources_register(struct devlink *devlink) in devlink_resources_register()
150 static int nsim_devlink_reload(struct devlink *devlink, in nsim_devlink_reload()
224 struct devlink *devlink; in nsim_devlink_setup() local
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_cnt.c55 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_sub_pools_init() local
100 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_sub_pools_fini() local
123 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_pool_init() local
173 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_pool_fini() local
248 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_counter_resources_register() local
Dspectrum_dpipe.c296 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_init() local
306 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_fini() local
749 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_init() local
776 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_fini() local
826 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_init() local
853 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_fini() local
1229 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init() local
1256 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini() local
1264 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init() local
1301 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_fini() local
Dcore.c1132 static int mlxsw_core_devlink_param_fw_load_policy_validate(struct devlink *devlink, u32 id, in mlxsw_core_devlink_param_fw_load_policy_validate()
1152 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_fw_params_register() local
1172 static int mlxsw_devlink_port_split(struct devlink *devlink, in mlxsw_devlink_port_split()
1189 static int mlxsw_devlink_port_unsplit(struct devlink *devlink, in mlxsw_devlink_port_unsplit()
1206 mlxsw_devlink_sb_pool_get(struct devlink *devlink, in mlxsw_devlink_sb_pool_get()
1220 mlxsw_devlink_sb_pool_set(struct devlink *devlink, in mlxsw_devlink_sb_pool_set()
1323 static int mlxsw_devlink_sb_occ_snapshot(struct devlink *devlink, in mlxsw_devlink_sb_occ_snapshot()
1334 static int mlxsw_devlink_sb_occ_max_clear(struct devlink *devlink, in mlxsw_devlink_sb_occ_max_clear()
1380 mlxsw_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in mlxsw_devlink_info_get()
1420 mlxsw_devlink_core_bus_device_reload_down(struct devlink *devlink, in mlxsw_devlink_core_bus_device_reload_down()
[all …]
Dspectrum_trap.c88 struct devlink *devlink; in mlxsw_sp_rx_drop_listener() local
114 struct devlink *devlink; in mlxsw_sp_rx_acl_drop_listener() local
141 struct devlink *devlink; in __mlxsw_sp_rx_no_mark_listener() local
1137 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_init() local
1168 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_fini() local
1220 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_init() local
1250 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_fini() local
1308 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_init() local
1338 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_fini() local
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_devlink.c283 static int hinic_devlink_flash_update(struct devlink *devlink, in hinic_devlink_flash_update()
311 void hinic_devlink_free(struct devlink *devlink) in hinic_devlink_free()
318 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_register() local
325 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_unregister() local
560 struct devlink *devlink = priv_to_devlink(priv); in hinic_health_reporters_create() local
/kernel/linux/linux-5.10/include/trace/events/
Ddevlink.h223 static inline void trace_devlink_hwmsg(const struct devlink *devlink, in trace_devlink_hwmsg()
229 static inline void trace_devlink_hwerr(const struct devlink *devlink, in trace_devlink_hwerr()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c33 static int dpaa2_eth_dl_info_get(struct devlink *devlink, in dpaa2_eth_dl_info_get()
116 static int dpaa2_eth_dl_trap_init(struct devlink *devlink, in dpaa2_eth_dl_trap_init()
133 static int dpaa2_eth_dl_trap_action_set(struct devlink *devlink, in dpaa2_eth_dl_trap_action_set()
146 static int dpaa2_eth_dl_trap_group_action_set(struct devlink *devlink, in dpaa2_eth_dl_trap_group_action_set()
/kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dpipe.c295 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_init() local
305 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_fini() local
748 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_init() local
775 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_fini() local
825 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_init() local
852 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_fini() local
1228 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init() local
1255 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini() local
1263 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init() local
1300 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_fini() local
/kernel/linux/linux-5.10/include/net/
Ddevlink.h33 struct devlink { struct
43 struct devlink_dpipe_headers *dpipe_headers; argument
47 const struct devlink_ops *ops; argument
49 struct devlink_dev_stats stats; argument
52 struct mutex lock; /* Serializes access to devlink instance specific objects such as argument
70 * struct devlink_port_pci_pf_attrs - devlink port's PCI PF attributes argument
123 struct devlink *devlink; member
1350 static inline void *devlink_priv(struct devlink *devlink) in devlink_priv()
/kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlx4/
Dcrdump.c160 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_collect() local
202 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_init() local
/kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c1081 static int mlx5_devlink_eswitch_check(struct devlink *devlink) in mlx5_devlink_eswitch_check()
1097 int mlx5_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode) in mlx5_devlink_eswitch_mode_set()
1123 int mlx5_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in mlx5_devlink_eswitch_mode_get()
1135 int mlx5_devlink_eswitch_inline_mode_set(struct devlink *devlink, u8 mode) in mlx5_devlink_eswitch_inline_mode_set()
1188 int mlx5_devlink_eswitch_inline_mode_get(struct devlink *devlink, u8 *mode) in mlx5_devlink_eswitch_inline_mode_get()
1237 int mlx5_devlink_eswitch_encap_mode_set(struct devlink *devlink, u8 encap) in mlx5_devlink_eswitch_encap_mode_set()
1280 int mlx5_devlink_eswitch_encap_mode_get(struct devlink *devlink, u8 *encap) in mlx5_devlink_eswitch_encap_mode_get()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dcrdump.c170 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_collect() local
221 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_init() local

123