Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dpipe.c294 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_init()
304 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_erif_table_fini()
747 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_init()
774 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host4_table_fini()
824 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_init()
851 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_host6_table_fini()
1227 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init()
1254 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini()
1262 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init()
1293 devlink_dpipe_headers_unregister(priv_to_devlink(mlxsw_sp->core)); in mlxsw_sp_dpipe_init()
[all …]
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()
Dcore.c450 trace_devlink_hwmsg(priv_to_devlink(mlxsw_core), false, 0, in mlxsw_emad_transmit()
536 trace_devlink_hwmsg(priv_to_devlink(mlxsw_core), true, 0, in mlxsw_emad_rx_listener_func()
1084 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_bus_device_unregister()
1662 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_port_init()
Dspectrum_buffers.c593 err = devlink_sb_register(priv_to_devlink(mlxsw_sp->core), 0, sb_size, in mlxsw_sp_buffers_init()
615 devlink_sb_unregister(priv_to_devlink(mlxsw_sp->core), 0); in mlxsw_sp_buffers_fini()
Dspectrum_router.c301 devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_rif_counters_alloc()
1908 devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_neigh_counter_should_alloc()
2616 devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_nexthop_counter_alloc()
Dspectrum.c3984 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp1_resources_kvd_register()
4063 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_kvd_sizes_get()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_shared_buf.c110 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_register()
173 struct devlink *devlink = priv_to_devlink(pf); in nfp_shared_buf_unregister()
Dnfp_app.h370 trace_devlink_hwmsg(priv_to_devlink(app->pf), false, 0, in __nfp_app_ctrl_tx()
378 trace_devlink_hwmsg(priv_to_devlink(app->pf), false, 0, in nfp_app_ctrl_tx()
386 trace_devlink_hwmsg(priv_to_devlink(app->pf), true, 0, in nfp_app_ctrl_rx()
398 trace_devlink_hwmsg(priv_to_devlink(app->pf), true, 0, data, len); in nfp_app_ctrl_rx_raw()
Dnfp_devlink.c218 devlink = priv_to_devlink(app->pf); in nfp_devlink_port_register()
Dnfp_net_main.c670 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_pci_probe()
800 devlink_unregister(priv_to_devlink(pf)); in nfp_net_pci_remove()
Dnfp_main.c736 devlink_free(priv_to_devlink(pf)); in nfp_pci_remove()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dcrdump.c160 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_collect()
202 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_crdump_init()
Dmain.c3016 struct devlink *devlink = priv_to_devlink(mlx4_priv(dev)); in mlx4_init_port_info()
4093 struct devlink *devlink = priv_to_devlink(priv); in mlx4_remove_one()
/Linux-v4.19/include/net/
Ddevlink.h467 static inline struct devlink *priv_to_devlink(void *priv) in priv_to_devlink() function
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Dmain.c1479 struct devlink *devlink = priv_to_devlink(dev); in remove_one()