Home
last modified time | relevance | path

Searched refs:priv_to_devlink (Results 1 – 25 of 38) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c45 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_free()
52 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_register()
64 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_unregister()
72 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_port_register()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/pensando/ionic/
H A Dionic_devlink.c74 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_free()
81 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_register()
106 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_unregister()
H A Dionic_fw.c110 dl = priv_to_devlink(ionic); in ionic_firmware_update()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_cnt.c55 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_sub_pools_init()
100 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_sub_pools_fini()
123 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_pool_init()
173 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_pool_fini()
248 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_counter_resources_register()
H A Dspectrum_dpipe.c296 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_init()
306 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_fini()
749 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_init()
776 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_fini()
826 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_init()
853 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_fini()
1229 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init()
1256 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini()
1264 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init()
1295 devlink_dpipe_headers_unregister(priv_to_devlink(mlxsw_sp->core)); in mlxsw_sp_dpipe_init()
[all …]
H A Dspectrum1_kvdl.c212 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_part_init()
335 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_init()
363 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_fini()
388 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp1_kvdl_resources_register()
H A Dspectrum_trap.c98 devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_rx_drop_listener()
124 devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_rx_acl_drop_listener()
151 devlink = priv_to_devlink(mlxsw_sp->core); in __mlxsw_sp_rx_no_mark_listener()
1137 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_init()
1168 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_fini()
1220 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_init()
1250 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_fini()
1308 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_init()
1338 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_fini()
H A Dspectrum_policer.c96 devlink = priv_to_devlink(core); in mlxsw_sp_policer_single_rate_family_init()
108 struct devlink *devlink = priv_to_devlink(family->mlxsw_sp->core); in mlxsw_sp_policer_single_rate_family_fini()
407 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_policer_resources_register()
H A Dcore.c588 trace_devlink_hwmsg(priv_to_devlink(mlxsw_core), false, 0, in mlxsw_emad_transmit()
679 trace_devlink_hwmsg(priv_to_devlink(mlxsw_core), true, 0, in mlxsw_emad_rx_listener_func()
1046 .devlink = priv_to_devlink(mlxsw_core), in mlxsw_core_fw_flash()
1074 err = devlink_param_driverinit_value_get(priv_to_devlink(mlxsw_core), in mlxsw_core_fw_rev_validate()
1152 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_fw_params_register()
1168 devlink_params_unregister(priv_to_devlink(mlxsw_core), mlxsw_core_fw_devlink_params, in mlxsw_core_fw_params_unregister()
1818 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_health_init()
2039 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_bus_device_unregister()
2461 trace_devlink_hwerr(priv_to_devlink(mlxsw_core), in mlxsw_reg_trans_wait()
2720 struct devlink *devlink = priv_to_devlink(mlxsw_core); in __mlxsw_core_port_init()
H A Dspectrum.c2935 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp1_resources_kvd_register()
3001 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp2_resources_kvd_register()
3021 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_resources_span_register()
3062 devlink_resources_unregister(priv_to_devlink(mlxsw_core), NULL); in mlxsw_sp1_resources_register()
3090 devlink_resources_unregister(priv_to_devlink(mlxsw_core), NULL); in mlxsw_sp2_resources_register()
3099 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_kvd_sizes_get()
3182 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp2_params_register()
3200 devlink_params_unregister(priv_to_devlink(mlxsw_core), in mlxsw_sp2_params_unregister()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/
H A Dnfp_app.h339 trace_devlink_hwmsg(priv_to_devlink(app->pf), false, 0, in __nfp_app_ctrl_tx()
347 trace_devlink_hwmsg(priv_to_devlink(app->pf), false, 0, in nfp_app_ctrl_tx()
355 trace_devlink_hwmsg(priv_to_devlink(app->pf), true, 0, in nfp_app_ctrl_rx()
367 trace_devlink_hwmsg(priv_to_devlink(app->pf), true, 0, data, len); in nfp_app_ctrl_rx_raw()
H A Dnfp_shared_buf.c80 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_register()
143 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_unregister()
H A Ddevlink_param.c229 struct devlink *devlink = priv_to_devlink(pf); in nfp_devlink_params_register()
253 devlink_params_unregister(priv_to_devlink(pf), nfp_devlink_params, in nfp_devlink_params_unregister()
H A Dnfp_net_main.c645 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_pci_probe()
782 devlink_unregister(priv_to_devlink(pf)); in nfp_net_pci_remove()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ice/
H A Dice_devlink.c346 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_register()
367 devlink_unregister(priv_to_devlink(pf)); in ice_devlink_unregister()
392 devlink = priv_to_devlink(pf); in ice_devlink_create_port()
549 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_init_regions()
H A Dice_fw_update.c375 devlink = priv_to_devlink(pf); in ice_write_nvm_module()
450 devlink = priv_to_devlink(pf); in ice_erase_nvm_module()
721 struct devlink *devlink = priv_to_devlink(pf); in ice_check_for_pending_update()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/
H A Dcrdump.c170 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_collect()
221 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_init()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Ddevlink.c8 struct devlink *devlink = priv_to_devlink(priv->mdev); in mlx5e_devlink_port_register()
/OK3568_Linux_fs/kernel/drivers/net/netdevsim/
H A Ddev.c71 devlink = priv_to_devlink(nsim_dev); in nsim_dev_take_snapshot_write()
544 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report()
928 err = devlink_port_register(priv_to_devlink(nsim_dev), devlink_port, in __nsim_dev_port_add()
1004 devlink = priv_to_devlink(nsim_dev); in nsim_dev_reload_create()
1151 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_reload_destroy()
1167 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_remove()
H A Dbus.c112 devlink = priv_to_devlink(nsim_dev); in new_port_store()
141 devlink = priv_to_devlink(nsim_dev); in del_port_store()
H A Dnetdevsim.h228 return devlink_net(priv_to_devlink(nsim_dev)); in nsim_dev_net()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmlx5.h95 return devlink_net(priv_to_devlink(dev)); in mlx5_core_net()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/huawei/hinic/
H A Dhinic_devlink.c318 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_register()
325 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_unregister()
560 struct devlink *devlink = priv_to_devlink(priv); in hinic_health_reporters_create()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c89 devlink = priv_to_devlink(dev); in mlx5_esw_offloads_devlink_port_register()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmain.c1223 err = mlx5_devlink_register(priv_to_devlink(dev), dev->device); in mlx5_load_one()
1255 mlx5_devlink_unregister(priv_to_devlink(dev)); in mlx5_unload_one()
1400 struct devlink *devlink = priv_to_devlink(dev); in remove_one()

12