/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | devlink.c | 18 devlink_net(priv_to_devlink(mdev)), dev); in mlx5e_create_devlink() 22 err = devl_nested_devlink_set(priv_to_devlink(mdev), devlink); in mlx5e_create_devlink() 34 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_destroy_devlink() 53 struct devlink *devlink = priv_to_devlink(mlx5e_dev); in mlx5e_devlink_port_register()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_devlink.c | 72 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/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_devlink.c | 155 struct devlink *devlink = priv_to_devlink(pf); in i40e_free_pf() 168 devlink_register(priv_to_devlink(pf)); in i40e_devlink_register() 179 devlink_unregister(priv_to_devlink(pf)); in i40e_devlink_unregister() 208 struct devlink *devlink = priv_to_devlink(pf); in i40e_devlink_create_port()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_cnt.c | 55 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()
|
H A D | spectrum_dpipe.c | 296 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() 1245 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_init() 1272 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_adj_table_fini() 1280 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core); in mlxsw_sp_dpipe_init() 1309 devl_dpipe_headers_unregister(priv_to_devlink(mlxsw_sp->core)); in mlxsw_sp_dpipe_init() [all …]
|
H A D | spectrum1_kvdl.c | 212 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()
|
H A D | spectrum_port_range.c | 183 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()
|
H A D | spectrum_policer.c | 96 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 D | spectrum_trap.c | 104 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()
|
/linux/drivers/net/ethernet/meta/fbnic/ |
H A D | fbnic_devlink.c | 129 devlink = priv_to_devlink(fbd); in fbnic_pldm_match_record() 210 devlink = priv_to_devlink(fbd); in fbnic_flash_component() 374 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_free() 409 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_register() 416 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_unregister()
|
H A D | fbnic_pci.c | 404 devl_lock(priv_to_devlink(fbd)); in fbnic_pm_suspend() 408 devl_unlock(priv_to_devlink(fbd)); in fbnic_pm_suspend() 440 devl_lock(priv_to_devlink(fbd)); in __fbnic_pm_resume() 444 devl_unlock(priv_to_devlink(fbd)); in __fbnic_pm_resume() 475 devl_lock(priv_to_devlink(fbd)); in __fbnic_pm_resume() 477 devl_unlock(priv_to_devlink(fbd)); in __fbnic_pm_resume()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_app.h | 179 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()
|
H A D | nfp_net_main.c | 299 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()
|
H A D | nfp_shared_buf.c | 80 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 D | devlink_param.c | 230 struct devlink *devlink = priv_to_devlink(pf); in nfp_devlink_params_register() 249 devl_params_unregister(priv_to_devlink(pf), nfp_devlink_params, in nfp_devlink_params_unregister()
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_devlink.c | 396 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/drivers/net/netdevsim/ |
H A D | dev.c | 62 !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() 600 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_esw_legacy_enable() 800 struct devlink *devlink = priv_to_devlink(nsim_dev); in nsim_dev_trap_report() 853 if (!devl_trylock(priv_to_devlink(nsim_dev))) { in nsim_dev_trap_report_work() 869 devl_unlock(priv_to_devlink(nsim_dev)); in nsim_dev_trap_report_work() 1429 err = devl_port_register(priv_to_devlink(nsim_dev), devlink_port, in __nsim_dev_port_add() 1512 devlink = priv_to_devlink(nsim_dev); in nsim_dev_reload_create() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnge/ |
H A D | bnge_devlink.c | 268 struct devlink *devlink = priv_to_devlink(bd); in bnge_devlink_free() 298 struct devlink *devlink = priv_to_devlink(bd); in bnge_devlink_register() 304 struct devlink *devlink = priv_to_devlink(bd); in bnge_devlink_unregister()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | crdump.c | 170 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/drivers/dpll/zl3073x/ |
H A D | devlink.c | 207 struct devlink *devlink = priv_to_devlink(ptr); in zl3073x_devlink_unregister() 231 struct devlink *devlink = priv_to_devlink(zldev); in zl3073x_devlink_register()
|
/linux/drivers/net/ethernet/intel/ice/devlink/ |
H A D | port.c | 334 devlink = priv_to_devlink(pf); in ice_devlink_create_pf_port() 469 devlink = priv_to_devlink(pf); in ice_devlink_create_vf_port() 519 devlink = priv_to_devlink(sf_dev->priv); in ice_devlink_create_sf_dev_port() 878 devlink = priv_to_devlink(pf); in ice_devlink_create_sf_port()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | devlink.h | 62 err = devl_param_driverinit_value_get(priv_to_devlink(dev), in mlx5_core_is_eth_enabled()
|
/linux/drivers/net/can/kvaser_pciefd/ |
H A D | kvaser_pciefd_devlink.c | 47 ret = devlink_port_register(priv_to_devlink(can->kv_pcie), in kvaser_pciefd_devlink_port_register()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_eswitch.c | 511 struct devlink *devlink = priv_to_devlink(pf); in ice_eswitch_attach_vf() 569 struct devlink *devlink = priv_to_devlink(pf); in ice_eswitch_detach() 589 struct devlink *devlink = priv_to_devlink(pf); in ice_eswitch_detach_vf()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_devlink.c | 306 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_register() 313 struct devlink *devlink = priv_to_devlink(priv); in hinic_devlink_unregister() 443 struct devlink *devlink = priv_to_devlink(priv); in hinic_health_reporters_create()
|