Home
last modified time | relevance | path

Searched refs:devlink (Results 1 – 25 of 92) sorted by relevance

1234

/drivers/net/ethernet/mellanox/mlx5/core/
Ddevlink.c14 static int mlx5_devlink_flash_update(struct devlink *devlink, in mlx5_devlink_flash_update() argument
18 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_devlink_flash_update()
41 mlx5_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req, in mlx5_devlink_info_get() argument
44 struct mlx5_core_dev *dev = devlink_priv(devlink); 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() argument
90 struct mlx5_core_dev *dev = devlink_priv(devlink); 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() argument
117 struct mlx5_core_dev *dev = devlink_priv(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() argument
138 struct mlx5_core_dev *dev = devlink_priv(devlink); in mlx5_devlink_reload_down()
[all …]
Ddevlink.h34 struct devlink *mlx5_devlink_alloc(struct device *dev);
35 void mlx5_devlink_free(struct devlink *devlink);
36 int mlx5_devlink_register(struct devlink *devlink);
37 void mlx5_devlink_unregister(struct devlink *devlink);
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_devlink.c8 static int hclge_devlink_info_get(struct devlink *devlink, in hclge_devlink_info_get() argument
13 struct hclge_devlink_priv *priv = devlink_priv(devlink); in hclge_devlink_info_get()
37 static int hclge_devlink_reload_down(struct devlink *devlink, bool netns_change, in hclge_devlink_reload_down() argument
42 struct hclge_devlink_priv *priv = devlink_priv(devlink); in hclge_devlink_reload_down()
71 static int hclge_devlink_reload_up(struct devlink *devlink, in hclge_devlink_reload_up() argument
77 struct hclge_devlink_priv *priv = devlink_priv(devlink); in hclge_devlink_reload_up()
111 struct devlink *devlink; in hclge_devlink_init() local
114 devlink = devlink_alloc(&hclge_devlink_ops, in hclge_devlink_init()
116 if (!devlink) in hclge_devlink_init()
119 priv = devlink_priv(devlink); in hclge_devlink_init()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_devlink.c8 static int hclgevf_devlink_info_get(struct devlink *devlink, in hclgevf_devlink_info_get() argument
13 struct hclgevf_devlink_priv *priv = devlink_priv(devlink); in hclgevf_devlink_info_get()
37 static int hclgevf_devlink_reload_down(struct devlink *devlink, in hclgevf_devlink_reload_down() argument
43 struct hclgevf_devlink_priv *priv = devlink_priv(devlink); in hclgevf_devlink_reload_down()
72 static int hclgevf_devlink_reload_up(struct devlink *devlink, in hclgevf_devlink_reload_up() argument
78 struct hclgevf_devlink_priv *priv = devlink_priv(devlink); in hclgevf_devlink_reload_up()
112 struct devlink *devlink; in hclgevf_devlink_init() local
115 devlink = in hclgevf_devlink_init()
118 if (!devlink) in hclgevf_devlink_init()
121 priv = devlink_priv(devlink); in hclgevf_devlink_init()
[all …]
/drivers/net/netdevsim/
Ddev.c62 nsim_dev_take_snapshot(struct devlink *devlink, in nsim_dev_take_snapshot() argument
85 struct devlink *devlink; in nsim_dev_take_snapshot_write() local
90 devlink = priv_to_devlink(nsim_dev); in nsim_dev_take_snapshot_write()
92 err = nsim_dev_take_snapshot(devlink, NULL, NULL, &dummy_data); in nsim_dev_take_snapshot_write()
96 err = devlink_region_snapshot_id_get(devlink, &id); in nsim_dev_take_snapshot_write()
104 devlink_region_snapshot_id_put(devlink, id); in nsim_dev_take_snapshot_write()
350 static int nsim_dev_resources_register(struct devlink *devlink) in nsim_dev_resources_register() argument
360 err = devlink_resource_register(devlink, "IPv4", (u64)-1, in nsim_dev_resources_register()
369 err = devlink_resource_register(devlink, "fib", (u64)-1, in nsim_dev_resources_register()
377 err = devlink_resource_register(devlink, "fib-rules", (u64)-1, in nsim_dev_resources_register()
[all …]
Dfib.c54 struct devlink *devlink; member
357 struct net *net = devlink_net(data->devlink); in nsim_fib4_rt_add()
384 struct net *net = devlink_net(data->devlink); in nsim_fib4_rt_replace()
464 struct net *net = devlink_net(data->devlink); in nsim_fib4_event()
646 struct net *net = devlink_net(data->devlink); in nsim_fib6_rt_offload_failed_flag_set()
665 struct net *net = devlink_net(data->devlink); in nsim_fib6_rt_hw_flags_set()
1041 struct devlink *devlink = data->devlink; in nsim_fib4_rt_free() local
1045 nsim_fib4_rt_hw_flags_set(devlink_net(devlink), fib4_rt, false); in nsim_fib4_rt_free()
1191 struct net *net = devlink_net(data->devlink); in nsim_nexthop_add()
1219 struct net *net = devlink_net(data->devlink); in nsim_nexthop_replace()
[all …]
/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() argument
24 struct qed_devlink *qdl = devlink_priv(devlink); in qed_report_fatal_error()
98 void qed_fw_reporters_create(struct devlink *devlink) in qed_fw_reporters_create() argument
100 struct qed_devlink *dl = devlink_priv(devlink); in qed_fw_reporters_create()
102 dl->fw_reporter = devlink_health_reporter_create(devlink, &qed_fw_fatal_reporter_ops, in qed_fw_reporters_create()
111 void qed_fw_reporters_destroy(struct devlink *devlink) in qed_fw_reporters_destroy() argument
113 struct qed_devlink *dl = devlink_priv(devlink); in qed_fw_reporters_destroy()
122 static int qed_dl_param_get(struct devlink *dl, u32 id, in qed_dl_param_get()
134 static int qed_dl_param_set(struct devlink *dl, u32 id, in qed_dl_param_set()
153 static int qed_devlink_info_get(struct devlink *devlink, in qed_devlink_info_get() argument
[all …]
Dqed_devlink.h12 struct devlink *qed_devlink_register(struct qed_dev *cdev);
13 void qed_devlink_unregister(struct devlink *devlink);
15 void qed_fw_reporters_create(struct devlink *devlink);
16 void qed_fw_reporters_destroy(struct devlink *devlink);
18 int qed_report_fatal_error(struct devlink *dl, enum qed_hw_err_type err_type);
/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c65 nfp_devlink_port_split(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_split() argument
68 struct nfp_pf *pf = devlink_priv(devlink); in nfp_devlink_port_split()
99 nfp_devlink_port_unsplit(struct devlink *devlink, unsigned int port_index, in nfp_devlink_port_unsplit() argument
102 struct nfp_pf *pf = devlink_priv(devlink); in nfp_devlink_port_unsplit()
133 nfp_devlink_sb_pool_get(struct devlink *devlink, unsigned int sb_index, in nfp_devlink_sb_pool_get() argument
136 struct nfp_pf *pf = devlink_priv(devlink); 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() argument
147 struct nfp_pf *pf = devlink_priv(devlink); 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() argument
155 struct nfp_pf *pf = devlink_priv(devlink); in nfp_devlink_eswitch_mode_get()
[all …]
Ddevlink_param.c83 nfp_devlink_param_u8_get(struct devlink *devlink, u32 id, in nfp_devlink_param_u8_get() argument
87 struct nfp_pf *pf = devlink_priv(devlink); in nfp_devlink_param_u8_get()
134 nfp_devlink_param_u8_set(struct devlink *devlink, u32 id, in nfp_devlink_param_u8_set() argument
138 struct nfp_pf *pf = devlink_priv(devlink); in nfp_devlink_param_u8_set()
170 nfp_devlink_param_u8_validate(struct devlink *devlink, u32 id, in nfp_devlink_param_u8_validate() argument
229 struct devlink *devlink = priv_to_devlink(pf); in nfp_devlink_params_register() local
236 err = devlink_params_register(devlink, nfp_devlink_params, in nfp_devlink_params_register()
241 devlink_params_publish(devlink); in nfp_devlink_params_register()
Dnfp_shared_buf.c80 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_register() local
115 err = devlink_sb_register(devlink, in nfp_shared_buf_register()
133 devlink_sb_unregister(devlink, in nfp_shared_buf_register()
143 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_unregister() local
147 devlink_sb_unregister(devlink, in nfp_shared_buf_unregister()
/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() argument
37 struct dpaa2_eth_devlink_priv *dl_priv = devlink_priv(devlink); in dpaa2_eth_dl_info_get()
116 static int dpaa2_eth_dl_trap_init(struct devlink *devlink, in dpaa2_eth_dl_trap_init() argument
120 struct dpaa2_eth_devlink_priv *dl_priv = devlink_priv(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() argument
146 static int dpaa2_eth_dl_trap_group_action_set(struct devlink *devlink, in dpaa2_eth_dl_trap_group_action_set() argument
151 struct dpaa2_eth_devlink_priv *dl_priv = devlink_priv(devlink); in dpaa2_eth_dl_trap_group_action_set()
199 priv->devlink = in dpaa2_eth_dl_register()
201 if (!priv->devlink) { in dpaa2_eth_dl_register()
205 dl_priv = devlink_priv(priv->devlink); in dpaa2_eth_dl_register()
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_devlink.c10 static int otx2_dl_mcam_count_validate(struct devlink *devlink, u32 id, in otx2_dl_mcam_count_validate() argument
14 struct otx2_devlink *otx2_dl = devlink_priv(devlink); 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() argument
37 struct otx2_devlink *otx2_dl = devlink_priv(devlink); 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() argument
52 struct otx2_devlink *otx2_dl = devlink_priv(devlink); in otx2_dl_mcam_count_get()
81 static int otx2_devlink_info_get(struct devlink *devlink, in otx2_devlink_info_get() argument
85 struct otx2_devlink *otx2_dl = devlink_priv(devlink); in otx2_devlink_info_get()
101 struct devlink *dl; in otx2_register_dl()
144 struct devlink *dl; in otx2_unregister_dl()
/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c350 static int prestera_drop_counter_get(struct devlink *devlink,
354 static int prestera_dl_info_get(struct devlink *dl, in prestera_dl_info_get()
376 static int prestera_trap_init(struct devlink *devlink,
379 static int prestera_trap_action_set(struct devlink *devlink,
395 struct devlink *dl; in prestera_devlink_alloc()
405 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_free()
412 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_register()
435 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_unregister()
447 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_port_register()
493 struct devlink *devlink = priv_to_devlink(sw); in prestera_devlink_traps_register() local
[all …]
/drivers/net/ethernet/intel/ice/
Dice_devlink.c270 static int ice_devlink_info_get(struct devlink *devlink, in ice_devlink_info_get() argument
274 struct ice_pf *pf = devlink_priv(devlink); in ice_devlink_info_get()
420 ice_devlink_flash_update(struct devlink *devlink, in ice_devlink_flash_update() argument
424 struct ice_pf *pf = devlink_priv(devlink); in ice_devlink_flash_update()
453 devlink_flash_update_status_notify(devlink, "Preparing to flash", NULL, 0, 0); in ice_devlink_flash_update()
466 devlink_free((struct devlink *)devlink_ptr); in ice_devlink_free()
479 struct devlink *devlink; in ice_allocate_pf() local
481 devlink = devlink_alloc(&ice_devlink_ops, sizeof(struct ice_pf), dev); in ice_allocate_pf()
482 if (!devlink) in ice_allocate_pf()
486 if (devm_add_action(dev, ice_devlink_free, devlink)) { in ice_allocate_pf()
[all …]
Dice_fw_update.c367 struct devlink *devlink; in ice_write_nvm_module() local
375 devlink = priv_to_devlink(pf); in ice_write_nvm_module()
377 devlink_flash_update_status_notify(devlink, "Flashing", in ice_write_nvm_module()
403 devlink_flash_update_status_notify(devlink, "Flashing", in ice_write_nvm_module()
410 devlink_flash_update_status_notify(devlink, "Flashing failed", in ice_write_nvm_module()
413 devlink_flash_update_status_notify(devlink, "Flashing done", in ice_write_nvm_module()
447 struct devlink *devlink; in ice_erase_nvm_module() local
455 devlink = priv_to_devlink(pf); in ice_erase_nvm_module()
457 devlink_flash_update_timeout_notify(devlink, "Erasing", component, ICE_FW_ERASE_TIMEOUT); in ice_erase_nvm_module()
501 devlink_flash_update_status_notify(devlink, "Erasing failed", in ice_erase_nvm_module()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
Ddriver.c14 struct devlink *devlink; in mlx5_sf_dev_probe() local
17 devlink = mlx5_devlink_alloc(&adev->dev); in mlx5_sf_dev_probe()
18 if (!devlink) in mlx5_sf_dev_probe()
21 mdev = devlink_priv(devlink); in mlx5_sf_dev_probe()
49 devlink_reload_enable(devlink); in mlx5_sf_dev_probe()
57 mlx5_devlink_free(devlink); in mlx5_sf_dev_probe()
64 struct devlink *devlink; in mlx5_sf_dev_remove() local
66 devlink = priv_to_devlink(sf_dev->mdev); in mlx5_sf_dev_remove()
67 devlink_reload_disable(devlink); in mlx5_sf_dev_remove()
71 mlx5_devlink_free(devlink); in mlx5_sf_dev_remove()
/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
70 err = devlink_resource_size_get(devlink, in mlxsw_sp_counter_sub_pools_init()
76 devlink_resource_occ_get_register(devlink, in mlxsw_sp_counter_sub_pools_init()
91 devlink_resource_occ_get_unregister(devlink, in mlxsw_sp_counter_sub_pools_init()
100 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_sub_pools_fini() local
108 devlink_resource_occ_get_unregister(devlink, in mlxsw_sp_counter_sub_pools_fini()
123 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_pool_init() local
138 err = devlink_resource_size_get(devlink, MLXSW_SP_RESOURCE_COUNTERS, in mlxsw_sp_counter_pool_init()
142 devlink_resource_occ_get_register(devlink, MLXSW_SP_RESOURCE_COUNTERS, in mlxsw_sp_counter_pool_init()
160 devlink_resource_occ_get_unregister(devlink, in mlxsw_sp_counter_pool_init()
[all …]
Dcore.c109 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_resources_ports_register() local
118 return devlink_resource_register(devlink, in mlxsw_core_resources_ports_register()
127 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_ports_init() local
148 devlink_resource_occ_get_register(devlink, MLXSW_CORE_RESOURCE_PORTS, in mlxsw_ports_init()
160 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_ports_fini() local
162 devlink_resource_occ_get_unregister(devlink, MLXSW_CORE_RESOURCE_PORTS); in mlxsw_ports_fini()
1095 .devlink = priv_to_devlink(mlxsw_core), in mlxsw_core_fw_flash()
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() argument
1192 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_fw_params_register() local
1196 err = devlink_params_register(devlink, mlxsw_core_fw_devlink_params, in mlxsw_core_fw_params_register()
[all …]
Dspectrum1_kvdl.c212 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_part_init() local
220 err = devlink_resource_size_get(devlink, info->resource_id, in mlxsw_sp1_kvdl_part_init()
335 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_init() local
342 devlink_resource_occ_get_register(devlink, in mlxsw_sp1_kvdl_init()
346 devlink_resource_occ_get_register(devlink, in mlxsw_sp1_kvdl_init()
350 devlink_resource_occ_get_register(devlink, in mlxsw_sp1_kvdl_init()
354 devlink_resource_occ_get_register(devlink, in mlxsw_sp1_kvdl_init()
363 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_fini() local
366 devlink_resource_occ_get_unregister(devlink, in mlxsw_sp1_kvdl_fini()
368 devlink_resource_occ_get_unregister(devlink, in mlxsw_sp1_kvdl_fini()
[all …]
Dspectrum_dpipe.c296 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_init() local
298 return devlink_dpipe_table_register(devlink, in mlxsw_sp_dpipe_erif_table_init()
306 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_fini() local
308 devlink_dpipe_table_unregister(devlink, MLXSW_SP_DPIPE_TABLE_NAME_ERIF); in mlxsw_sp_dpipe_erif_table_fini()
749 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_init() local
752 err = devlink_dpipe_table_register(devlink, in mlxsw_sp_dpipe_host4_table_init()
759 err = devlink_dpipe_table_resource_set(devlink, in mlxsw_sp_dpipe_host4_table_init()
769 devlink_dpipe_table_unregister(devlink, in mlxsw_sp_dpipe_host4_table_init()
776 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_fini() local
778 devlink_dpipe_table_unregister(devlink, in mlxsw_sp_dpipe_host4_table_fini()
[all …]
/drivers/net/ethernet/huawei/hinic/
Dhinic_devlink.c283 static int hinic_devlink_flash_update(struct devlink *devlink, in hinic_devlink_flash_update() argument
287 struct hinic_devlink_priv *priv = devlink_priv(devlink); in hinic_devlink_flash_update()
296 struct devlink *hinic_devlink_alloc(struct device *dev) in hinic_devlink_alloc()
301 void hinic_devlink_free(struct devlink *devlink) in hinic_devlink_free() argument
303 devlink_free(devlink); in hinic_devlink_free()
308 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_register() local
310 return devlink_register(devlink); in hinic_devlink_register()
315 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_unregister() local
317 devlink_unregister(devlink); in hinic_devlink_unregister()
550 struct devlink *devlink = priv_to_devlink(priv); in hinic_health_reporters_create() local
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dcrdump.c170 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_collect() local
197 err = devlink_region_snapshot_id_get(devlink, &id); in mlx4_crdump_collect()
211 devlink_region_snapshot_id_put(devlink, id); in mlx4_crdump_collect()
221 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_init() local
229 devlink_region_create(devlink, in mlx4_crdump_init()
240 devlink_region_create(devlink, in mlx4_crdump_init()
/drivers/net/ethernet/pensando/ionic/
Dionic_devlink.c12 static int ionic_dl_flash_update(struct devlink *dl, in ionic_dl_flash_update()
21 static int ionic_dl_info_get(struct devlink *dl, struct devlink_info_req *req, in ionic_dl_info_get()
65 struct devlink *dl; in ionic_devlink_alloc()
76 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_free()
83 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_register()
108 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_unregister()
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c74 struct devlink *devlink; in mlx5_esw_offloads_devlink_port_register() local
88 devlink = priv_to_devlink(dev); in mlx5_esw_offloads_devlink_port_register()
90 err = devlink_port_register(devlink, dl_port, dl_port_index); in mlx5_esw_offloads_devlink_port_register()
144 struct devlink *devlink; in mlx5_esw_devlink_sf_port_register() local
157 devlink = priv_to_devlink(dev); in mlx5_esw_devlink_sf_port_register()
159 err = devlink_port_register(devlink, dl_port, dl_port_index); in mlx5_esw_devlink_sf_port_register()

1234