Home
last modified time | relevance | path

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

1234

/linux-6.6.21/net/devlink/
Ddevl_internal.h30 struct devlink { struct
40 struct devlink_dpipe_headers *dpipe_headers; argument
45 const struct devlink_ops *ops; argument
47 struct devlink_dev_stats stats; argument
50 /* Serializes access to devlink instance specific objects such as argument
64 /* devlink instances are open to the access from the user space after argument
84 #define devlinks_xa_for_each_registered_get(net, index, devlink) \ argument
89 static inline bool devl_is_registered(struct devlink *devlink) in devl_is_registered()
139 devlink_nl_put_handle(struct sk_buff *msg, struct devlink *devlink) in devlink_nl_put_handle()
211 struct devlink *devlink; member
Dcore.c19 void *devlink_priv(struct devlink *devlink) in devlink_priv()
31 struct device *devlink_to_dev(const struct devlink *devlink) in devlink_to_dev()
37 struct net *devlink_net(const struct devlink *devlink) in devlink_net()
43 void devl_assert_locked(struct devlink *devlink) in devl_assert_locked()
51 bool devl_lock_is_held(struct devlink *devlink) in devl_lock_is_held()
58 void devl_lock(struct devlink *devlink) in devl_lock()
64 int devl_trylock(struct devlink *devlink) in devl_trylock()
70 void devl_unlock(struct devlink *devlink) in devl_unlock()
85 struct devlink *__must_check devlink_try_get(struct devlink *devlink) in devlink_try_get()
94 struct devlink *devlink; in devlink_release() local
[all …]
Dtrap.c73 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_cmd_trap_set_doit() local
[all …]
Drate.c22 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
166 void devlink_rates_notify_register(struct devlink *devlink) in devlink_rates_notify_register()
174 void devlink_rates_notify_unregister(struct devlink *devlink) in devlink_rates_notify_unregister()
183 devlink_nl_rate_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_rate_get_dump_one()
[all …]
Ddev.c46 devlink_reload_action_is_supported(struct devlink *devlink, enum devlink_reload_action action) in devlink_reload_action_is_supported()
52 devlink_reload_limit_is_supported(struct devlink *devlink, enum devlink_reload_limit limit) in devlink_reload_limit_is_supported()
78 devlink_reload_stats_put(struct sk_buff *msg, struct devlink *devlink, bool is_remote) in devlink_reload_stats_put()
141 static int devlink_nl_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_fill()
177 static void devlink_notify(struct devlink *devlink, enum devlink_command cmd) in devlink_notify()
201 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_get_doit() local
220 devlink_nl_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_get_dump_one()
233 void devlink_notify_register(struct devlink *devlink) in devlink_notify_register()
246 void devlink_notify_unregister(struct devlink *devlink) in devlink_notify_unregister()
259 static void devlink_reload_failed_set(struct devlink *devlink, in devlink_reload_failed_set()
[all …]
Dparam.c150 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()
237 static int devlink_nl_param_fill(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_param_fill()
330 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 …]
Dregion.c10 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 …]
Dresource.c39 devlink_resource_find(struct devlink *devlink, in devlink_resource_find()
110 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_resource_set() 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_cmd_resource_dump() 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 …]
Dsb.c24 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 …]
Dlinecard.c10 devlink_linecard_get_by_index(struct devlink *devlink, in devlink_linecard_get_by_index()
22 static bool devlink_linecard_index_exists(struct devlink *devlink, in devlink_linecard_index_exists()
29 devlink_linecard_get_from_attrs(struct devlink *devlink, struct nlattr **attrs) in devlink_linecard_get_from_attrs()
44 devlink_linecard_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_linecard_get_from_info()
49 static int devlink_nl_put_nested_handle(struct sk_buff *msg, struct devlink *devlink) in devlink_nl_put_nested_handle()
73 struct devlink *devlink, in devlink_nl_linecard_fill()
129 struct devlink *devlink = linecard->devlink; in devlink_linecard_notify() local
154 void devlink_linecards_notify_register(struct devlink *devlink) in devlink_linecards_notify_register()
162 void devlink_linecards_notify_unregister(struct devlink *devlink) in devlink_linecards_notify_unregister()
172 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_linecard_get_doit() local
[all …]
Ddpipe.c217 struct devlink *devlink = info->user_ptr[0]; in devlink_dpipe_tables_fill() local
294 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_dpipe_table_get() 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_cmd_dpipe_entries_get() 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_cmd_dpipe_headers_get() 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_cmd_dpipe_table_counters_set() local
776 void devl_dpipe_headers_register(struct devlink *devlink, in devl_dpipe_headers_register()
[all …]
Dhealth.c58 struct devlink *devlink; member
92 devlink_health_reporter_find_by_name(struct devlink *devlink, in devlink_health_reporter_find_by_name()
108 __devlink_health_reporter_create(struct devlink *devlink, in __devlink_health_reporter_create()
169 struct devlink *devlink = port->devlink; in devlink_port_health_reporter_create() local
188 devl_health_reporter_create(struct devlink *devlink, in devl_health_reporter_create()
210 devlink_health_reporter_create(struct devlink *devlink, in devlink_health_reporter_create()
250 struct devlink *devlink = reporter->devlink; in devlink_health_reporter_destroy() local
264 struct devlink *devlink = reporter->devlink; in devlink_nl_health_reporter_fill() local
330 devlink_health_reporter_get_from_attrs(struct devlink *devlink, in devlink_health_reporter_get_from_attrs()
350 devlink_health_reporter_get_from_info(struct devlink *devlink, in devlink_health_reporter_get_from_info()
[all …]
Dport.c26 struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index()
32 struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs()
47 struct devlink_port *devlink_port_get_from_info(struct devlink *devlink, in devlink_port_get_from_info()
196 struct devlink *devlink = devlink_port->devlink; in devlink_nl_port_handle_size() local
444 struct devlink *devlink = devlink_port->devlink; in devlink_nl_port_fill() local
502 struct devlink *devlink = devlink_port->devlink; in devlink_port_notify() local
525 static void devlink_ports_notify(struct devlink *devlink, in devlink_ports_notify()
535 void devlink_ports_notify_register(struct devlink *devlink) in devlink_ports_notify_register()
540 void devlink_ports_notify_unregister(struct devlink *devlink) in devlink_ports_notify_unregister()
567 devlink_nl_port_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_port_get_dump_one()
[all …]
Dnetlink.c103 struct devlink *devlink; in devlink_get_from_attrs_lock() local
131 struct devlink *devlink; in __devlink_nl_pre_doit() local
181 struct devlink *devlink; in devlink_nl_post_doit() local
193 struct devlink *devlink; in devlink_nl_inst_single_dumpit() local
214 struct devlink *devlink; in devlink_nl_inst_iter_dumpit() local
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c14 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()
193 static int mlx5_devlink_reload_up(struct devlink *devlink, enum devlink_reload_action action, in mlx5_devlink_reload_up()
239 static int mlx5_devlink_trap_init(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_init()
263 static void mlx5_devlink_trap_fini(struct devlink *devlink, const struct devlink_trap *trap, in mlx5_devlink_trap_fini()
278 static int mlx5_devlink_trap_action_set(struct devlink *devlink, in mlx5_devlink_trap_action_set()
352 struct devlink *devlink = priv_to_devlink(dev); in mlx5_devlink_trap_report() local
[all …]
/linux-6.6.21/drivers/net/netdevsim/
Ddev.c78 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.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c64 nfp_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_split()
90 nfp_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_unsplit()
116 nfp_devlink_sb_pool_get(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_get()
125 nfp_devlink_sb_pool_set(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_set()
136 static int nfp_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) in nfp_devlink_eswitch_mode_get()
143 static int nfp_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, in nfp_devlink_eswitch_mode_set()
233 nfp_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in nfp_devlink_info_get()
306 nfp_devlink_flash_update(struct devlink *devlink, in nfp_devlink_flash_update()
331 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
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_devlink.c8 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.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_devlink.c8 static int hclge_devlink_info_get(struct devlink *devlink, in hclge_devlink_info_get()
32 static int hclge_devlink_reload_down(struct devlink *devlink, bool netns_change, in hclge_devlink_reload_down()
66 static int hclge_devlink_reload_up(struct devlink *devlink, in hclge_devlink_reload_up()
106 struct devlink *devlink; in hclge_devlink_init() local
123 struct devlink *devlink = hdev->devlink; in hclge_devlink_uninit() local
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_devlink.c251 static int ice_devlink_info_get(struct devlink *devlink, in ice_devlink_info_get()
436 ice_devlink_reload_down(struct devlink *devlink, bool netns_change, in ice_devlink_reload_down()
660 ice_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_split()
733 ice_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_unsplit()
747 struct devlink *devlink; in ice_tear_down_devlink_rate_tree() local
806 static void ice_traverse_tx_tree(struct devlink *devlink, struct ice_sched_node *node, in ice_traverse_tx_tree()
846 int ice_devlink_rate_init_tx_topology(struct devlink *devlink, struct ice_vsi *vsi) in ice_devlink_rate_init_tx_topology()
1232 ice_devlink_reload_up(struct devlink *devlink, in ice_devlink_reload_up()
1282 ice_devlink_enable_roce_get(struct devlink *devlink, u32 id, in ice_devlink_enable_roce_get()
1293 ice_devlink_enable_roce_set(struct devlink *devlink, u32 id, in ice_devlink_enable_roce_set()
[all …]
/linux-6.6.21/drivers/net/ethernet/fungible/funeth/
Dfuneth_devlink.c14 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.6.21/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()
230 void qed_devlink_unregister(struct devlink *devlink) in qed_devlink_unregister()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.c14 struct devlink *devlink; in mlx5e_create_devlink() local
26 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_destroy_devlink() local
45 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_devlink_port_register() local
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dcore_linecard_dev.c100 static int mlxsw_linecard_dev_devlink_info_get(struct devlink *devlink, in mlxsw_linecard_dev_devlink_info_get()
111 mlxsw_linecard_dev_devlink_flash_update(struct devlink *devlink, in mlxsw_linecard_dev_devlink_flash_update()
134 struct devlink *devlink; in mlxsw_linecard_bdev_probe() local
153 struct devlink *devlink = priv_to_devlink(linecard_bdev->linecard_dev); in mlxsw_linecard_bdev_remove() local

1234