/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | devlink.c | 14 static int mlx5_devlink_flash_update(struct devlink *devlink, in mlx5_devlink_flash_update() 41 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() 171 static int mlx5_devlink_reload_up(struct devlink *devlink, enum devlink_reload_action action, in mlx5_devlink_reload_up() 207 static int mlx5_devlink_trap_init(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_init() 231 static void mlx5_devlink_trap_fini(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_fini() 246 static int mlx5_devlink_trap_action_set(struct devlink *devlink, in mlx5_devlink_trap_action_set() 325 struct devlink *devlink = priv_to_devlink(dev); in mlx5_devlink_trap_report() local [all …]
|
/Linux-v5.15/net/core/ |
D | devlink.c | 106 struct net *devlink_net(const struct devlink *devlink) in devlink_net() 112 static void devlink_put(struct devlink *devlink) in devlink_put() 118 static bool __must_check devlink_try_get(struct devlink *devlink) in devlink_try_get() 126 struct devlink *devlink; in devlink_get_from_attrs() local 155 static struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index() 167 static bool devlink_port_index_exists(struct devlink *devlink, in devlink_port_index_exists() 173 static struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs() 188 static struct devlink_port *devlink_port_get_from_info(struct devlink *devlink, in devlink_port_get_from_info() 207 devlink_rate_leaf_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_leaf_get_from_info() 220 devlink_rate_node_get_by_name(struct devlink *devlink, const char *node_name) in devlink_rate_node_get_by_name() [all …]
|
/Linux-v5.15/drivers/net/netdevsim/ |
D | dev.c | 62 nsim_dev_take_snapshot(struct devlink *devlink, in nsim_dev_take_snapshot() 85 struct devlink *devlink; in nsim_dev_take_snapshot_write() local 350 static int nsim_dev_resources_register(struct devlink *devlink) in nsim_dev_resources_register() 437 struct devlink *devlink) in nsim_devlink_set_params_init_values() 451 static void nsim_devlink_param_load_driverinit_values(struct devlink *devlink) in nsim_devlink_param_load_driverinit_values() 478 struct devlink *devlink) in nsim_dev_dummy_region_init() 495 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_esw_legacy_enable() local 530 static int nsim_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, in nsim_devlink_eswitch_mode_set() 552 static int nsim_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in nsim_devlink_eswitch_mode_get() 701 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report() local [all …]
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_devlink.c | 8 static int hclge_devlink_info_get(struct devlink *devlink, in hclge_devlink_info_get() 37 static int hclge_devlink_reload_down(struct devlink *devlink, bool netns_change, in hclge_devlink_reload_down() 71 static int hclge_devlink_reload_up(struct devlink *devlink, in hclge_devlink_reload_up() 111 struct devlink *devlink; in hclge_devlink_init() local 141 struct devlink *devlink = hdev->devlink; in hclge_devlink_uninit() local
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_devlink.c | 8 static int hclgevf_devlink_info_get(struct devlink *devlink, in hclgevf_devlink_info_get() 37 static int hclgevf_devlink_reload_down(struct devlink *devlink, in hclgevf_devlink_reload_down() 72 static int hclgevf_devlink_reload_up(struct devlink *devlink, in hclgevf_devlink_reload_up() 112 struct devlink *devlink; in hclgevf_devlink_init() local 143 struct devlink *devlink = hdev->devlink; in hclgevf_devlink_uninit() local
|
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/ |
D | nfp_devlink.c | 65 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
|
D | devlink_param.c | 83 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
|
D | nfp_shared_buf.c | 80 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
|
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_devlink.c | 10 static int otx2_dl_mcam_count_validate(struct devlink *devlink, u32 id, in otx2_dl_mcam_count_validate() 34 static int otx2_dl_mcam_count_set(struct devlink *devlink, u32 id, in otx2_dl_mcam_count_set() 49 static int otx2_dl_mcam_count_get(struct devlink *devlink, u32 id, in otx2_dl_mcam_count_get() 81 static int otx2_devlink_info_get(struct devlink *devlink, in otx2_devlink_info_get()
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/ |
D | qed_devlink.c | 22 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() 248 void qed_devlink_unregister(struct devlink *devlink) in qed_devlink_unregister()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_cnt.c | 55 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
|
D | core.c | 109 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_resources_ports_register() local 127 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_ports_init() local 160 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_ports_fini() local 1172 static int mlxsw_core_devlink_param_fw_load_policy_validate(struct devlink *devlink, u32 id, in mlxsw_core_devlink_param_fw_load_policy_validate() 1192 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_fw_params_register() local 1212 static int mlxsw_devlink_port_split(struct devlink *devlink, in mlxsw_devlink_port_split() 1229 static int mlxsw_devlink_port_unsplit(struct devlink *devlink, in mlxsw_devlink_port_unsplit() 1246 mlxsw_devlink_sb_pool_get(struct devlink *devlink, in mlxsw_devlink_sb_pool_get() 1260 mlxsw_devlink_sb_pool_set(struct devlink *devlink, in mlxsw_devlink_sb_pool_set() 1363 static int mlxsw_devlink_sb_occ_snapshot(struct devlink *devlink, in mlxsw_devlink_sb_occ_snapshot() [all …]
|
D | spectrum_dpipe.c | 296 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 1231 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init() local 1258 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini() local 1266 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init() local 1303 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_fini() local
|
D | spectrum1_kvdl.c | 212 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
|
D | spectrum_trap.c | 94 struct devlink *devlink; in mlxsw_sp_rx_drop_listener() local 120 struct devlink *devlink; in mlxsw_sp_rx_acl_drop_listener() local 147 struct devlink *devlink; in __mlxsw_sp_rx_no_mark_listener() local 1290 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_init() local 1321 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_fini() local 1373 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_init() local 1403 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_fini() local 1461 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_init() local 1491 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_fini() local
|
/Linux-v5.15/drivers/net/ethernet/huawei/hinic/ |
D | hinic_devlink.c | 283 static int hinic_devlink_flash_update(struct devlink *devlink, in hinic_devlink_flash_update() 301 void hinic_devlink_free(struct devlink *devlink) in hinic_devlink_free() 308 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_register() local 315 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_unregister() local 550 struct devlink *devlink = priv_to_devlink(priv); in hinic_health_reporters_create() local
|
/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_devlink.c | 270 static int ice_devlink_info_get(struct devlink *devlink, in ice_devlink_info_get() 420 ice_devlink_flash_update(struct devlink *devlink, in ice_devlink_flash_update() 479 struct devlink *devlink; in ice_allocate_pf() local 504 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_register() local 540 struct devlink *devlink; in ice_devlink_create_port() local 600 static int ice_devlink_nvm_snapshot(struct devlink *devlink, in ice_devlink_nvm_snapshot() 657 ice_devlink_devcaps_snapshot(struct devlink *devlink, in ice_devlink_devcaps_snapshot() 707 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_init_regions() local
|
/Linux-v5.15/include/trace/events/ |
D | devlink.h | 223 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()
|
/Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-devlink.c | 33 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()
|
/Linux-v5.15/include/net/ |
D | devlink.h | 34 struct devlink { struct 45 struct devlink_dpipe_headers *dpipe_headers; argument 49 const struct devlink_ops *ops; argument 51 struct devlink_dev_stats stats; argument 54 struct mutex lock; /* Serializes access to devlink instance specific objects such as argument 73 * struct devlink_port_pci_pf_attrs - devlink port's PCI PF attributes argument 141 struct devlink *devlink; member 160 struct devlink *devlink; member 1523 static inline void *devlink_priv(struct devlink *devlink) in devlink_priv()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
D | driver.c | 14 struct devlink *devlink; in mlx5_sf_dev_probe() local 64 struct devlink *devlink; in mlx5_sf_dev_remove() local
|
/Linux-v5.15/drivers/net/ethernet/marvell/prestera/ |
D | prestera_devlink.c | 493 struct devlink *devlink = priv_to_devlink(sw); in prestera_devlink_traps_register() local 563 struct devlink *devlink; in prestera_devlink_trap_report() local 589 static int prestera_trap_init(struct devlink *devlink, in prestera_trap_init() 605 static int prestera_trap_action_set(struct devlink *devlink, in prestera_trap_action_set() 614 static int prestera_drop_counter_get(struct devlink *devlink, in prestera_drop_counter_get()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 74 struct devlink *devlink; in mlx5_esw_offloads_devlink_port_register() local 144 struct devlink *devlink; in mlx5_esw_devlink_sf_port_register() local
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | crdump.c | 170 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
|
D | main.c | 181 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() 3032 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_init_port_info() local 3900 static void mlx4_devlink_param_load_driverinit_values(struct devlink *devlink) in mlx4_devlink_param_load_driverinit_values() 3946 static int mlx4_devlink_reload_down(struct devlink *devlink, bool netns_change, in mlx4_devlink_reload_down() 3965 static int mlx4_devlink_reload_up(struct devlink *devlink, enum devlink_reload_action action, in mlx4_devlink_reload_up() [all …]
|