/linux-6.12.1/net/devlink/ |
D | devl_internal.h | 33 struct devlink { struct 43 struct devlink_dpipe_headers *dpipe_headers; argument 48 const struct devlink_ops *ops; argument 50 struct devlink_dev_stats stats; argument 53 /* Serializes access to devlink instance specific objects such as argument 61 struct devlink_rel *rel; argument 69 /* devlink instances are open to the access from the user space after argument 89 #define devlinks_xa_for_each_registered_get(net, index, devlink) \ argument 94 static inline bool __devl_is_registered(struct devlink *devlink) in __devl_is_registered() 99 static inline bool devl_is_registered(struct devlink *devlink) in devl_is_registered() [all …]
|
D | core.c | 21 struct devlink *devlink; in devlinks_xa_get() local 74 struct devlink *devlink; in devlink_rel_nested_in_notify_work() local 131 static void devlink_rel_put(struct devlink *devlink) in devlink_rel_put() 151 struct devlink *devlink) in devlink_rel_nested_in_add() 185 void devlink_rel_nested_in_notify(struct devlink *devlink) in devlink_rel_nested_in_notify() 217 int devlink_rel_devlink_handle_put(struct sk_buff *msg, struct devlink *devlink, in devlink_rel_devlink_handle_put() 235 void *devlink_priv(struct devlink *devlink) in devlink_priv() 247 struct device *devlink_to_dev(const struct devlink *devlink) in devlink_to_dev() 253 struct net *devlink_net(const struct devlink *devlink) in devlink_net() 259 void devl_assert_locked(struct devlink *devlink) in devl_assert_locked() [all …]
|
D | trap.c | 73 devlink_trap_policer_item_lookup(struct devlink *devlink, u32 id) in devlink_trap_policer_item_lookup() 86 devlink_trap_item_lookup(struct devlink *devlink, const char *name) in devlink_trap_item_lookup() 99 devlink_trap_item_get_from_info(struct devlink *devlink, in devlink_trap_item_get_from_info() 211 static int devlink_trap_stats_put(struct sk_buff *msg, struct devlink *devlink, in devlink_trap_stats_put() 257 static int devlink_nl_trap_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_trap_fill() 310 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_trap_get_doit() local 342 struct devlink *devlink, in devlink_nl_trap_get_dump_one() 374 static int __devlink_trap_action_set(struct devlink *devlink, in __devlink_trap_action_set() 397 static int devlink_trap_action_set(struct devlink *devlink, in devlink_trap_action_set() 420 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_trap_set_doit() local [all …]
|
D | dev.c | 47 devlink_reload_action_is_supported(struct devlink *devlink, enum devlink_reload_action action) in devlink_reload_action_is_supported() 53 devlink_reload_limit_is_supported(struct devlink *devlink, enum devlink_reload_limit limit) in devlink_reload_limit_is_supported() 79 devlink_reload_stats_put(struct sk_buff *msg, struct devlink *devlink, bool is_remote) in devlink_reload_stats_put() 142 static int devlink_nl_nested_fill(struct sk_buff *msg, struct devlink *devlink) in devlink_nl_nested_fill() 159 static int devlink_nl_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_fill() 199 static void devlink_notify(struct devlink *devlink, enum devlink_command cmd) in devlink_notify() 225 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_get_doit() local 244 devlink_nl_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_get_dump_one() 257 static void devlink_rel_notify_cb(struct devlink *devlink, u32 obj_index) in devlink_rel_notify_cb() 262 static void devlink_rel_cleanup_cb(struct devlink *devlink, u32 obj_index, in devlink_rel_cleanup_cb() [all …]
|
D | rate.c | 22 devlink_rate_leaf_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_leaf_get_from_info() 35 devlink_rate_node_get_by_name(struct devlink *devlink, const char *node_name) in devlink_rate_node_get_by_name() 48 devlink_rate_node_get_from_attrs(struct devlink *devlink, struct nlattr **attrs) in devlink_rate_node_get_from_attrs() 65 devlink_rate_node_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_node_get_from_info() 71 devlink_rate_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_get_from_info() 88 struct devlink *devlink = devlink_rate->devlink; in devlink_nl_rate_fill() local 143 struct devlink *devlink = devlink_rate->devlink; in devlink_rate_notify() local 165 void devlink_rates_notify_register(struct devlink *devlink) in devlink_rates_notify_register() 173 void devlink_rates_notify_unregister(struct devlink *devlink) in devlink_rates_notify_unregister() 182 devlink_nl_rate_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_rate_get_dump_one() [all …]
|
D | param.c | 150 static int devlink_param_get(struct devlink *devlink, in devlink_param_get() 159 static int devlink_param_set(struct devlink *devlink, in devlink_param_set() 238 static int devlink_nl_param_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_param_fill() 331 static void devlink_param_notify(struct devlink *devlink, in devlink_param_notify() 363 static void devlink_params_notify(struct devlink *devlink, in devlink_params_notify() 373 void devlink_params_notify_register(struct devlink *devlink) in devlink_params_notify_register() 378 void devlink_params_notify_unregister(struct devlink *devlink) in devlink_params_notify_unregister() 384 struct devlink *devlink, in devlink_nl_param_get_dump_one() 505 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_param_get_doit() local 529 static int __devlink_nl_cmd_param_set_doit(struct devlink *devlink, in __devlink_nl_cmd_param_set_doit() [all …]
|
D | region.c | 10 struct devlink *devlink; member 35 devlink_region_get_by_name(struct devlink *devlink, const char *region_name) in devlink_region_get_by_name() 72 struct devlink *devlink, in devlink_nl_region_snapshot_id_put() 95 struct devlink *devlink, in devlink_nl_region_snapshots_id_put() 121 static int devlink_nl_region_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_region_fill() 176 struct devlink *devlink = region->devlink; in devlink_nl_region_notify_build() local 233 struct devlink *devlink = region->devlink; in devlink_nl_region_notify() local 248 void devlink_regions_notify_register(struct devlink *devlink) in devlink_regions_notify_register() 256 void devlink_regions_notify_unregister(struct devlink *devlink) in devlink_regions_notify_unregister() 279 static int __devlink_snapshot_id_increment(struct devlink *devlink, u32 id) in __devlink_snapshot_id_increment() [all …]
|
D | resource.c | 39 devlink_resource_find(struct devlink *devlink, in devlink_resource_find() 110 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_resource_set_doit() local 165 static int devlink_resource_put(struct devlink *devlink, struct sk_buff *skb, in devlink_resource_put() 222 struct devlink *devlink = info->user_ptr[0]; in devlink_resource_fill() local 290 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_resource_dump_doit() local 298 int devlink_resources_validate(struct devlink *devlink, in devlink_resources_validate() 334 int devl_resource_register(struct devlink *devlink, in devl_resource_register() 403 int devlink_resource_register(struct devlink *devlink, in devlink_resource_register() 420 static void devlink_resource_unregister(struct devlink *devlink, in devlink_resource_unregister() 438 void devl_resources_unregister(struct devlink *devlink) in devl_resources_unregister() [all …]
|
D | sb.c | 24 static struct devlink_sb *devlink_sb_get_by_index(struct devlink *devlink, in devlink_sb_get_by_index() 36 static bool devlink_sb_index_exists(struct devlink *devlink, in devlink_sb_index_exists() 42 static struct devlink_sb *devlink_sb_get_from_attrs(struct devlink *devlink, in devlink_sb_get_from_attrs() 57 static struct devlink_sb *devlink_sb_get_from_info(struct devlink *devlink, in devlink_sb_get_from_info() 167 static int devlink_nl_sb_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_sb_fill() 207 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_get_doit() local 232 devlink_nl_sb_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_sb_get_dump_one() 264 static int devlink_nl_sb_pool_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_sb_pool_fill() 309 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_pool_get_doit() local 343 struct devlink *devlink, in __sb_pool_get_dumpit() [all …]
|
D | linecard.c | 11 struct devlink *devlink; member 29 devlink_linecard_get_by_index(struct devlink *devlink, in devlink_linecard_get_by_index() 41 static bool devlink_linecard_index_exists(struct devlink *devlink, in devlink_linecard_index_exists() 48 devlink_linecard_get_from_attrs(struct devlink *devlink, struct nlattr **attrs) in devlink_linecard_get_from_attrs() 63 devlink_linecard_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_linecard_get_from_info() 74 struct devlink *devlink, in devlink_nl_linecard_fill() 132 struct devlink *devlink = linecard->devlink; in devlink_linecard_notify() local 156 void devlink_linecards_notify_register(struct devlink *devlink) in devlink_linecards_notify_register() 164 void devlink_linecards_notify_unregister(struct devlink *devlink) in devlink_linecards_notify_unregister() 174 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_linecard_get_doit() local [all …]
|
D | dpipe.c | 217 struct devlink *devlink = info->user_ptr[0]; in devlink_dpipe_tables_fill() local 294 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_table_get_doit() local 453 const char *table_name, struct devlink *devlink) in devlink_dpipe_table_find() 467 struct devlink *devlink; in devlink_dpipe_entry_ctx_prepare() local 568 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_entries_get_doit() local 655 struct devlink *devlink = info->user_ptr[0]; in devlink_dpipe_headers_fill() local 718 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_headers_get_doit() local 726 static int devlink_dpipe_table_counters_set(struct devlink *devlink, in devlink_dpipe_table_counters_set() 752 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_dpipe_table_counters_set_doit() local 776 void devl_dpipe_headers_register(struct devlink *devlink, in devl_dpipe_headers_register() [all …]
|
D | health.c | 59 struct devlink *devlink; member 93 devlink_health_reporter_find_by_name(struct devlink *devlink, in devlink_health_reporter_find_by_name() 109 __devlink_health_reporter_create(struct devlink *devlink, in __devlink_health_reporter_create() 170 struct devlink *devlink = port->devlink; in devlink_port_health_reporter_create() local 189 devl_health_reporter_create(struct devlink *devlink, in devl_health_reporter_create() 211 devlink_health_reporter_create(struct devlink *devlink, in devlink_health_reporter_create() 251 struct devlink *devlink = reporter->devlink; in devlink_health_reporter_destroy() local 265 struct devlink *devlink = reporter->devlink; in devlink_nl_health_reporter_fill() local 331 devlink_health_reporter_get_from_attrs(struct devlink *devlink, in devlink_health_reporter_get_from_attrs() 351 devlink_health_reporter_get_from_info(struct devlink *devlink, in devlink_health_reporter_get_from_info() [all …]
|
D | port.c | 27 struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index() 33 struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs() 48 struct devlink_port *devlink_port_get_from_info(struct devlink *devlink, in devlink_port_get_from_info() 221 struct devlink *devlink = devlink_port->devlink; in devlink_nl_port_handle_size() local 491 struct devlink *devlink = devlink_port->devlink; in devlink_nl_port_fill() local 549 struct devlink *devlink = devlink_port->devlink; in devlink_port_notify() local 574 static void devlink_ports_notify(struct devlink *devlink, in devlink_ports_notify() 584 void devlink_ports_notify_register(struct devlink *devlink) in devlink_ports_notify_register() 589 void devlink_ports_notify_unregister(struct devlink *devlink) in devlink_ports_notify_unregister() 616 devlink_nl_port_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_port_get_dump_one() [all …]
|
/linux-6.12.1/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() 84 static int mlx5_devlink_reload_fw_activate(struct devlink *devlink, struct netlink_ext_ack *extack) in mlx5_devlink_reload_fw_activate() 115 static int mlx5_devlink_trigger_fw_live_patch(struct devlink *devlink, in mlx5_devlink_trigger_fw_live_patch() 134 static int mlx5_devlink_reload_down(struct devlink *devlink, bool netns_change, in mlx5_devlink_reload_down() 188 static int mlx5_devlink_reload_up(struct devlink *devlink, enum devlink_reload_action action, in mlx5_devlink_reload_up() 234 static int mlx5_devlink_trap_init(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_init() 258 static void mlx5_devlink_trap_fini(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_fini() 273 static int mlx5_devlink_trap_action_set(struct devlink *devlink, in mlx5_devlink_trap_action_set() 347 struct devlink *devlink = priv_to_devlink(dev); in mlx5_devlink_trap_report() local [all …]
|
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_devlink.c | 8 static int hclge_devlink_scc_info_get(struct devlink *devlink, in hclge_devlink_scc_info_get() 36 static int hclge_devlink_info_get(struct devlink *devlink, in hclge_devlink_info_get() 70 static int hclge_devlink_reload_down(struct devlink *devlink, bool netns_change, in hclge_devlink_reload_down() 104 static int hclge_devlink_reload_up(struct devlink *devlink, in hclge_devlink_reload_up() 144 struct devlink *devlink; in hclge_devlink_init() local 161 struct devlink *devlink = hdev->devlink; in hclge_devlink_uninit() local
|
/linux-6.12.1/drivers/net/netdevsim/ |
D | dev.c | 78 nsim_dev_take_snapshot(struct devlink *devlink, in nsim_dev_take_snapshot() 101 struct devlink *devlink; in nsim_dev_take_snapshot_write() local 429 static int nsim_dev_resources_register(struct devlink *devlink) in nsim_dev_resources_register() 522 struct devlink *devlink) in nsim_devlink_set_params_init_values() 536 static void nsim_devlink_param_load_driverinit_values(struct devlink *devlink) in nsim_devlink_param_load_driverinit_values() 563 struct devlink *devlink) in nsim_dev_dummy_region_init() 585 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_esw_legacy_enable() local 620 static int nsim_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, in nsim_devlink_eswitch_mode_set() 636 static int nsim_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in nsim_devlink_eswitch_mode_get() 785 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report() local [all …]
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/ |
D | nfp_devlink.c | 64 nfp_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_split() 92 nfp_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_unsplit() 120 nfp_devlink_sb_pool_get(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_get() 129 nfp_devlink_sb_pool_set(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_set() 140 static int nfp_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in nfp_devlink_eswitch_mode_get() 147 static int nfp_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, in nfp_devlink_eswitch_mode_set() 238 nfp_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in nfp_devlink_info_get() 311 nfp_devlink_flash_update(struct devlink *devlink, in nfp_devlink_flash_update() 336 struct devlink *devlink; in nfp_devlink_port_register() local
|
/linux-6.12.1/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() 67 static int otx2_dl_ucast_flt_cnt_set(struct devlink *devlink, u32 id, in otx2_dl_ucast_flt_cnt_set() 85 static int otx2_dl_ucast_flt_cnt_get(struct devlink *devlink, u32 id, in otx2_dl_ucast_flt_cnt_get() 96 static int otx2_dl_ucast_flt_cnt_validate(struct devlink *devlink, u32 id, in otx2_dl_ucast_flt_cnt_validate()
|
/linux-6.12.1/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() 32 static int hclgevf_devlink_reload_down(struct devlink *devlink, in hclgevf_devlink_reload_down() 67 static int hclgevf_devlink_reload_up(struct devlink *devlink, in hclgevf_devlink_reload_up() 107 struct devlink *devlink; in hclgevf_devlink_init() local 125 struct devlink *devlink = hdev->devlink; in hclgevf_devlink_uninit() local
|
/linux-6.12.1/drivers/net/ethernet/meta/fbnic/ |
D | fbnic_devlink.c | 63 static int fbnic_devlink_info_get(struct devlink *devlink, in fbnic_devlink_info_get() 118 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_free() local 126 struct devlink *devlink; in fbnic_devlink_alloc() local 153 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_register() local 160 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_unregister() local
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/devlink/ |
D | devlink.c | 271 static int ice_devlink_info_get(struct devlink *devlink, in ice_devlink_info_get() 470 ice_devlink_reload_down(struct devlink *devlink, bool netns_change, in ice_devlink_reload_down() 611 static int ice_devlink_tx_sched_layers_get(struct devlink *devlink, u32 id, in ice_devlink_tx_sched_layers_get() 633 static int ice_devlink_tx_sched_layers_set(struct devlink *devlink, u32 id, in ice_devlink_tx_sched_layers_set() 665 static int ice_devlink_tx_sched_layers_validate(struct devlink *devlink, u32 id, in ice_devlink_tx_sched_layers_validate() 686 struct devlink *devlink; in ice_tear_down_devlink_rate_tree() local 745 static void ice_traverse_tx_tree(struct devlink *devlink, struct ice_sched_node *node, in ice_traverse_tx_tree() 802 int ice_devlink_rate_init_tx_topology(struct devlink *devlink, struct ice_vsi *vsi) in ice_devlink_rate_init_tx_topology() 1247 ice_devlink_reload_up(struct devlink *devlink, in ice_devlink_reload_up() 1301 ice_devlink_enable_roce_get(struct devlink *devlink, u32 id, in ice_devlink_enable_roce_get() [all …]
|
D | devlink_port.c | 180 ice_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_split() 253 ice_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_unsplit() 327 struct devlink *devlink; in ice_devlink_create_pf_port() local 418 struct devlink *devlink = port->devlink; in ice_devlink_port_set_vf_fn_mac() local 446 struct devlink *devlink; in ice_devlink_create_vf_port() local 506 struct devlink *devlink; in ice_devlink_create_sf_dev_port() local 665 ice_devlink_port_del(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_del() 862 struct devlink *devlink; in ice_devlink_create_sf_port() local 980 ice_devlink_port_new(struct devlink *devlink, in ice_devlink_port_new()
|
/linux-6.12.1/drivers/net/ethernet/fungible/funeth/ |
D | funeth_devlink.c | 14 void fun_devlink_free(struct devlink *devlink) in fun_devlink_free() 19 void fun_devlink_register(struct devlink *devlink) in fun_devlink_register() 24 void fun_devlink_unregister(struct devlink *devlink) in fun_devlink_unregister()
|
/linux-6.12.1/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() 154 static int qed_devlink_info_get(struct devlink *devlink, in qed_devlink_info_get() 231 void qed_devlink_unregister(struct devlink *devlink) in qed_devlink_unregister()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | devlink.c | 14 struct devlink *devlink; in mlx5e_create_devlink() local 34 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_destroy_devlink() local 53 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_devlink_port_register() local
|