Home
last modified time | relevance | path

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

1234

/openbmc/linux/net/devlink/
H A Dcore.c19 void *devlink_priv(struct devlink *devlink) in devlink_priv()
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()
94 struct devlink *devlink; in devlink_release() local
103 void devlink_put(struct devlink *devlink) in devlink_put()
111 struct devlink *devlink = NULL; in devlinks_xa_find_get() local
138 int devl_register(struct devlink *devlink) in devl_register()
196 struct devlink *devlink; in devlink_alloc_ns() local
248 void devlink_free(struct devlink *devlink) in devlink_free()
[all …]
H A 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
H A Dtrap.c310 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()
420 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_trap_set_doit() local
519 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_trap_group_get_doit() local
551 struct devlink *devlink, in devlink_nl_trap_group_get_dump_one()
691 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_trap_group_set_doit() local
814 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_trap_policer_get_doit() local
845 struct devlink *devlink, in devlink_nl_trap_policer_get_dump_one()
934 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_trap_policer_set_doit() local
1272 devlink_trap_register(struct devlink *devlink, in devlink_trap_register()
[all …]
H A Drate.c88 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()
218 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_rate_get_doit() local
259 struct devlink *devlink = devlink_rate->devlink; in devlink_nl_rate_parent_node_set() local
463 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_rate_set_doit() local
485 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_rate_new_doit() local
541 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_rate_del_doit() local
634 struct devlink *devlink = devlink_port->devlink; in devl_rate_leaf_create() local
[all …]
H A Ddev.c201 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_get_doit() local
233 void devlink_notify_register(struct devlink *devlink) in devlink_notify_register()
447 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_reload() local
613 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_eswitch_get_doit() local
634 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_eswitch_set_doit() local
836 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_info_get_doit() local
876 struct devlink *devlink, in devlink_nl_flash_update_fill()
1065 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_flash_update() local
1237 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_selftests_get_doit() local
1259 struct devlink *devlink, in devlink_nl_selftests_get_dump_one()
[all …]
H A 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()
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()
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
586 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_param_set_doit() local
677 int devl_params_register(struct devlink *devlink, in devl_params_register()
703 int devlink_params_register(struct devlink *devlink, in devlink_params_register()
722 void devl_params_unregister(struct devlink *devlink, in devl_params_unregister()
[all …]
H A 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
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()
438 void devl_resources_unregister(struct devlink *devlink) in devl_resources_unregister()
460 void devlink_resources_unregister(struct devlink *devlink) in devlink_resources_unregister()
475 int devl_resource_size_get(struct devlink *devlink, in devl_resource_size_get()
[all …]
H A Dregion.c10 struct devlink *devlink; member
72 struct devlink *devlink, in devlink_nl_region_snapshot_id_put()
95 struct devlink *devlink, in devlink_nl_region_snapshots_id_put()
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
420 struct devlink *devlink = region->devlink; in __devlink_region_snapshot_create() local
460 struct devlink *devlink = region->devlink; in devlink_region_snapshot_del() local
545 struct devlink *devlink, in devlink_nl_region_get_dump_one()
878 struct devlink *devlink; in devlink_nl_cmd_region_read_dumpit() local
1117 struct devlink *devlink = port->devlink; in devlink_port_region_create() local
[all …]
H A Dsb.c207 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_sb_get_doit() local
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()
418 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_pool_set_doit() local
448 struct devlink *devlink, in devlink_nl_sb_port_pool_fill()
545 struct devlink *devlink, in __sb_port_pool_get_dumpit()
577 struct devlink *devlink, in devlink_nl_sb_port_pool_get_dump_one()
628 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_port_pool_set_doit() local
762 struct devlink *devlink, in __sb_tc_pool_bind_get_dumpit()
813 struct devlink *devlink, in devlink_nl_sb_tc_pool_bind_get_dump_one()
[all …]
H A 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()
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
200 struct devlink *devlink, in devlink_nl_linecard_get_dump_one()
[all …]
H A 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
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()
840 int devl_dpipe_table_register(struct devlink *devlink, in devl_dpipe_table_register()
[all …]
H A Dhealth.c58 struct devlink *devlink; member
169 struct devlink *devlink = port->devlink; in devlink_port_health_reporter_create() local
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
359 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_health_reporter_get_doit() local
385 struct devlink *devlink, in devlink_nl_health_reporter_get_dump_one()
457 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_health_reporter_set_doit() local
491 struct devlink *devlink = reporter->devlink; in devlink_recover_notify() local
597 struct devlink *devlink = reporter->devlink; in devlink_health_report() local
1267 struct devlink *devlink; in devlink_health_reporter_get_from_cb_lock() local
[all …]
H A Dport.c196 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()
797 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_split_doit() local
829 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_unsplit_doit() local
840 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_new_doit() local
904 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_del_doit() local
959 void devlink_port_init(struct devlink *devlink, in devlink_port_init()
1090 struct devlink *devlink = devlink_port->devlink; in devlink_port_unregister() local
[all …]
H A 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
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Ddevlink.c14 static int mlx5_devlink_flash_update(struct devlink *devlink, in mlx5_devlink_flash_update()
115 static int mlx5_devlink_trigger_fw_live_patch(struct devlink *devlink, in mlx5_devlink_trigger_fw_live_patch()
284 static int mlx5_devlink_trap_action_set(struct devlink *devlink, in mlx5_devlink_trap_action_set()
358 struct devlink *devlink = priv_to_devlink(dev); in mlx5_devlink_trap_report() local
409 void mlx5_devlink_free(struct devlink *devlink) in mlx5_devlink_free()
570 static int mlx5_devlink_eth_params_register(struct devlink *devlink) in mlx5_devlink_eth_params_register()
772 mlx5_devlink_max_uc_list_params_unregister(struct devlink *devlink) in mlx5_devlink_max_uc_list_params_unregister()
797 int mlx5_devlink_traps_register(struct devlink *devlink) in mlx5_devlink_traps_register()
819 void mlx5_devlink_traps_unregister(struct devlink *devlink) in mlx5_devlink_traps_unregister()
826 int mlx5_devlink_params_register(struct devlink *devlink) in mlx5_devlink_params_register()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A 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
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A 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
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A 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
H A 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
/openbmc/linux/drivers/net/netdevsim/
H A 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
522 struct devlink *devlink) in nsim_devlink_set_params_init_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
785 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report() local
991 static int nsim_dev_info_get(struct devlink *devlink, in nsim_dev_info_get()
1464 struct devlink *devlink; in nsim_dev_reload_create() local
1530 struct devlink *devlink; in nsim_drv_probe() local
1649 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_reload_destroy() local
[all …]
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A 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()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_devlink.c251 static int ice_devlink_info_get(struct devlink *devlink, in ice_devlink_info_get()
747 struct devlink *devlink; in ice_tear_down_devlink_rate_tree() local
1232 ice_devlink_reload_up(struct devlink *devlink, in ice_devlink_reload_up()
1410 struct devlink *devlink; in ice_allocate_pf() local
1433 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_register() local
1468 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_register_params() local
1530 struct devlink *devlink; in ice_devlink_create_pf_port() local
1591 struct devlink *devlink; in ice_devlink_create_vf_port() local
1746 static int ice_devlink_nvm_read(struct devlink *devlink, in ice_devlink_nvm_read()
1811 ice_devlink_devcaps_snapshot(struct devlink *devlink, in ice_devlink_devcaps_snapshot()
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A 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