Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.c17 devlink_net(priv_to_devlink(mdev)), dev); in mlx5e_create_devlink()
26 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_destroy_devlink()
45 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_devlink_port_register()
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic_devlink.c72 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_free()
79 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_register()
98 struct devlink *dl = priv_to_devlink(ionic); in ionic_devlink_unregister()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
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()
170 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_counter_pool_fini()
245 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp_counter_resources_register()
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()
1231 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init()
1258 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini()
1266 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init()
1295 devl_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()
334 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_init()
362 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp1_kvdl_fini()
387 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_sp1_kvdl_resources_register()
Dspectrum_port_range.c183 devl_resource_occ_get_register(priv_to_devlink(core), in mlxsw_sp_port_range_init()
195 devl_resource_occ_get_unregister(priv_to_devlink(mlxsw_sp->core), in mlxsw_sp_port_range_fini()
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()
Dspectrum_trap.c104 devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_rx_drop_listener()
130 devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_rx_acl_drop_listener()
157 devlink = priv_to_devlink(mlxsw_sp->core); in __mlxsw_sp_rx_no_mark_listener()
1315 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_init()
1346 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_policers_fini()
1398 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_init()
1427 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_trap_groups_fini()
1485 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_init()
1515 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_traps_fini()
Dcore.c124 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_resources_ports_register()
142 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_ports_init()
175 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_ports_fini()
179 devl_resources_unregister(priv_to_devlink(mlxsw_core)); in mlxsw_ports_fini()
726 trace_devlink_hwmsg(priv_to_devlink(mlxsw_core), false, 0, in mlxsw_emad_transmit()
817 trace_devlink_hwmsg(priv_to_devlink(mlxsw_core), true, 0, in mlxsw_emad_rx_listener_func()
1222 .devlink = priv_to_devlink(mlxsw_core), in mlxsw_core_dev_fw_flash()
1246 err = devl_param_driverinit_value_get(priv_to_devlink(mlxsw_core), in mlxsw_core_fw_rev_validate()
1315 struct devlink *devlink = priv_to_devlink(mlxsw_core); in mlxsw_core_fw_params_register()
1333 devl_params_unregister(priv_to_devlink(mlxsw_core), mlxsw_core_fw_devlink_params, in mlxsw_core_fw_params_unregister()
[all …]
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_app.h179 devl_assert_locked(priv_to_devlink(app->pf)); in assert_nfp_app_locked()
184 return devl_lock_is_held(priv_to_devlink(app->pf)); in nfp_app_is_locked()
348 trace_devlink_hwmsg(priv_to_devlink(app->pf), false, 0, in __nfp_app_ctrl_tx()
356 trace_devlink_hwmsg(priv_to_devlink(app->pf), false, 0, in nfp_app_ctrl_tx()
364 trace_devlink_hwmsg(priv_to_devlink(app->pf), true, 0, in nfp_app_ctrl_rx()
376 trace_devlink_hwmsg(priv_to_devlink(app->pf), true, 0, data, len); in nfp_app_ctrl_rx_raw()
Dnfp_net_main.c299 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_pf_app_init()
347 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_pf_app_clean()
594 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_refresh_port_table_sync()
649 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_refresh_vnics()
692 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_pci_probe()
808 struct devlink *devlink = priv_to_devlink(pf); in nfp_net_pci_remove()
811 devlink_unregister(priv_to_devlink(pf)); in nfp_net_pci_remove()
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()
Ddevlink_param.c229 struct devlink *devlink = priv_to_devlink(pf); in nfp_devlink_params_register()
248 devl_params_unregister(priv_to_devlink(pf), nfp_devlink_params, in nfp_devlink_params_unregister()
/linux-6.6.21/drivers/net/netdevsim/
Ddev.c62 !devl_lock_is_held(priv_to_devlink(nsim_dev))); in nsim_dev_get_vfs()
106 devlink = priv_to_devlink(nsim_dev); in nsim_dev_take_snapshot_write()
275 devl_lock(priv_to_devlink(nsim_dev)); in nsim_bus_dev_max_vfs_write()
285 devl_unlock(priv_to_devlink(nsim_dev)); in nsim_bus_dev_max_vfs_write()
585 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_esw_legacy_enable()
785 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report()
838 if (!devl_trylock(priv_to_devlink(nsim_dev))) { in nsim_dev_trap_report_work()
852 devl_unlock(priv_to_devlink(nsim_dev)); in nsim_dev_trap_report_work()
1381 err = devl_port_register(priv_to_devlink(nsim_dev), devlink_port, in __nsim_dev_port_add()
1464 devlink = priv_to_devlink(nsim_dev); in nsim_dev_reload_create()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Ddev.c138 err = devl_param_driverinit_value_get(priv_to_devlink(dev), in is_vnet_enabled()
203 err = devl_param_driverinit_value_get(priv_to_devlink(dev), in is_ib_enabled()
340 devl_assert_locked(priv_to_devlink(dev)); in mlx5_attach_device()
398 devl_assert_locked(priv_to_devlink(dev)); in mlx5_detach_device()
436 devl_assert_locked(priv_to_devlink(dev)); in mlx5_register_device()
449 devl_assert_locked(priv_to_devlink(dev)); in mlx5_unregister_device()
Dmain.c513 struct devlink *devlink = priv_to_devlink(dev); in max_uc_list_get_devlink_param()
528 struct devlink *devlink = priv_to_devlink(dev); in mlx5_is_roce_on()
1377 err = mlx5_devlink_traps_register(priv_to_devlink(dev)); in mlx5_load()
1414 mlx5_devlink_traps_unregister(priv_to_devlink(dev)); in mlx5_unload()
1457 err = mlx5_devlink_params_register(priv_to_devlink(dev)); in mlx5_init_one_devl_locked()
1480 mlx5_devlink_params_unregister(priv_to_devlink(dev)); in mlx5_init_one_devl_locked()
1493 struct devlink *devlink = priv_to_devlink(dev); in mlx5_init_one()
1504 struct devlink *devlink = priv_to_devlink(dev); in mlx5_uninit_one()
1514 mlx5_devlink_params_unregister(priv_to_devlink(dev)); in mlx5_uninit_one()
1521 mlx5_devlink_params_unregister(priv_to_devlink(dev)); in mlx5_uninit_one()
[all …]
Ddevlink.h62 err = devl_param_driverinit_value_get(priv_to_devlink(dev), in mlx5_core_is_eth_enabled()
Dsriov.c182 struct devlink *devlink = priv_to_devlink(dev); in mlx5_sriov_enable()
204 struct devlink *devlink = priv_to_devlink(dev); in mlx5_sriov_disable()
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c396 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_free()
403 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_register()
410 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_unregister()
418 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_port_register()
447 struct devlink *devlink = priv_to_devlink(sw); in prestera_devlink_traps_register()
585 struct devlink *dl = priv_to_devlink(sw); in prestera_devlink_traps_unregister()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
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()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dmlx5.h50 return devlink_net(priv_to_devlink(dev)); in mlx5_core_net()
/linux-6.6.21/net/devlink/
Dcore.c25 struct devlink *priv_to_devlink(void *priv) in priv_to_devlink() function
29 EXPORT_SYMBOL_GPL(priv_to_devlink);
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_fw_update.c413 devlink = priv_to_devlink(pf); in ice_write_nvm_module()
492 devlink = priv_to_devlink(pf); in ice_erase_nvm_module()
707 devlink = priv_to_devlink(pf); in ice_finalize_update()
910 struct devlink *devlink = priv_to_devlink(pf); in ice_cancel_pending_update()
Dice_devlink.c751 devlink = priv_to_devlink(pf); in ice_tear_down_devlink_rate_tree()
1433 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_register()
1446 devlink_unregister(priv_to_devlink(pf)); in ice_devlink_unregister()
1468 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_register_params()
1476 devlink_params_unregister(priv_to_devlink(pf), ice_devlink_params, in ice_devlink_unregister_params()
1555 devlink = priv_to_devlink(pf); in ice_devlink_create_pf_port()
1612 devlink = priv_to_devlink(pf); in ice_devlink_create_vf_port()
1869 struct devlink *devlink = priv_to_devlink(pf); in ice_devlink_init_regions()
/linux-6.6.21/drivers/net/ethernet/amd/pds_core/
Dmain.c186 dl = priv_to_devlink(vf); in pdsc_init_vf()
265 dl = priv_to_devlink(pdsc); in pdsc_init_pf()
400 dl = priv_to_devlink(pdsc); in pdsc_remove()

123