Home
last modified time | relevance | path

Searched refs:devlink_port (Results 1 – 25 of 47) sorted by relevance

12

/drivers/net/ethernet/intel/ice/
Dice_devlink.c539 struct devlink_port *devlink_port; in ice_devlink_create_pf_port() local
547 devlink_port = &pf->devlink_port; in ice_devlink_create_pf_port()
555 devlink_port_attrs_set(devlink_port, &attrs); in ice_devlink_create_pf_port()
558 err = devlink_port_register(devlink, devlink_port, vsi->idx); in ice_devlink_create_pf_port()
576 struct devlink_port *devlink_port; in ice_devlink_destroy_pf_port() local
578 devlink_port = &pf->devlink_port; in ice_devlink_destroy_pf_port()
580 devlink_port_type_clear(devlink_port); in ice_devlink_destroy_pf_port()
581 devlink_port_unregister(devlink_port); in ice_devlink_destroy_pf_port()
595 struct devlink_port *devlink_port; in ice_devlink_create_vf_port() local
605 devlink_port = &vf->devlink_port; in ice_devlink_create_vf_port()
[all …]
Dice_virtchnl_pf.h118 struct devlink_port devlink_port; member
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c230 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_add() local
235 devlink_port_attrs_set(devlink_port, &attrs); in dpaa2_eth_dl_port_add()
237 err = devlink_port_register(priv->devlink, devlink_port, 0); in dpaa2_eth_dl_port_add()
241 devlink_port_type_eth_set(devlink_port, priv->net_dev); in dpaa2_eth_dl_port_add()
248 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_del() local
250 devlink_port_type_clear(devlink_port); in dpaa2_eth_dl_port_del()
251 devlink_port_unregister(devlink_port); in dpaa2_eth_dl_port_del()
Ddpaa2-eth.h573 struct devlink_port devlink_port; member
/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c48 struct devlink_port devlink_port; member
1275 static void *__dl_port(struct devlink_port *devlink_port) in __dl_port() argument
1277 return container_of(devlink_port, struct mlxsw_core_port, devlink_port); in __dl_port()
1280 static int mlxsw_devlink_port_type_set(struct devlink_port *devlink_port, in mlxsw_devlink_port_type_set() argument
1283 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_port_type_set()
1285 struct mlxsw_core_port *mlxsw_core_port = __dl_port(devlink_port); in mlxsw_devlink_port_type_set()
1295 static int mlxsw_devlink_sb_port_pool_get(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_get() argument
1299 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_sb_port_pool_get()
1301 struct mlxsw_core_port *mlxsw_core_port = __dl_port(devlink_port); in mlxsw_devlink_sb_port_pool_get()
1310 static int mlxsw_devlink_sb_port_pool_set(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_set() argument
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.c22 struct devlink_port *dl_port; in mlx5e_devlink_port_register()
49 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_devlink_port_type_eth_set()
56 struct devlink_port *dl_port = mlx5e_devlink_get_dl_port(priv); in mlx5e_devlink_port_unregister()
61 struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev) in mlx5e_get_devlink_port()
Ddevlink.h13 struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev);
15 static inline struct devlink_port *
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c24 static struct devlink_port *mlx5_esw_dl_port_alloc(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_dl_port_alloc()
29 struct devlink_port *dl_port; in mlx5_esw_dl_port_alloc()
63 static void mlx5_esw_dl_port_free(struct devlink_port *dl_port) in mlx5_esw_dl_port_free()
71 struct devlink_port *dl_port; in mlx5_esw_offloads_devlink_port_register()
129 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port()
137 int mlx5_esw_devlink_sf_port_register(struct mlx5_eswitch *esw, struct devlink_port *dl_port, in mlx5_esw_devlink_sf_port_register()
/drivers/net/netdevsim/
Ddev.c735 &nsim_dev_port->devlink_port, fa_cookie); in nsim_dev_trap_report()
1279 struct devlink_port *devlink_port; in __nsim_dev_port_add() local
1291 devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_add()
1302 devlink_port_attrs_set(devlink_port, &attrs); in __nsim_dev_port_add()
1303 err = devlink_port_register(priv_to_devlink(nsim_dev), devlink_port, in __nsim_dev_port_add()
1319 err = devlink_rate_leaf_create(&nsim_dev_port->devlink_port, in __nsim_dev_port_add()
1325 devlink_port_type_eth_set(devlink_port, nsim_dev_port->ns->netdev); in __nsim_dev_port_add()
1335 devlink_port_unregister(devlink_port); in __nsim_dev_port_add()
1343 struct devlink_port *devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_del() local
1347 devlink_rate_leaf_destroy(&nsim_dev_port->devlink_port); in __nsim_dev_port_del()
[all …]
Dnetdevsim.h210 struct devlink_port devlink_port; member
Dnetdev.c241 static struct devlink_port *nsim_get_devlink_port(struct net_device *dev) in nsim_get_devlink_port()
245 return &ns->nsim_dev_port->devlink_port; in nsim_get_devlink_port()
/drivers/net/ethernet/mellanox/mlx5/core/sf/
Dsf.h27 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port,
31 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port,
Ddevlink.c13 struct devlink_port dl_port;
167 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_get()
251 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_set()
/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h187 struct devlink_port *dl_port;
487 int mlx5_devlink_port_function_hw_addr_get(struct devlink_port *port,
490 int mlx5_devlink_port_function_hw_addr_set(struct devlink_port *port,
682 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num);
684 int mlx5_esw_devlink_sf_port_register(struct mlx5_eswitch *esw, struct devlink_port *dl_port,
688 int mlx5_esw_offloads_sf_vport_enable(struct mlx5_eswitch *esw, struct devlink_port *dl_port,
Ddevlink.h29 struct devlink_port *dl_port);
Den_rep.c536 static struct devlink_port *mlx5e_rep_get_devlink_port(struct net_device *netdev) in mlx5e_rep_get_devlink_port()
1138 struct devlink_port *dl_port; in mlx5e_vport_uplink_rep_load()
1159 struct devlink_port *dl_port; in mlx5e_vport_uplink_rep_unload()
1177 struct devlink_port *dl_port; in mlx5e_vport_vf_rep_load()
1272 struct devlink_port *dl_port; in mlx5e_vport_rep_unload()
/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.h55 struct devlink_port devlink_port; member
Dam65-cpsw-nuss.c1484 static struct devlink_port *am65_cpsw_ndo_get_devlink_port(struct net_device *ndev) in am65_cpsw_ndo_get_devlink_port()
1488 return &port->devlink_port; in am65_cpsw_ndo_get_devlink_port()
2443 struct devlink_port *dl_port; in am65_cpsw_nuss_register_devlink()
2479 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink()
2500 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_devlink()
2514 struct devlink_port *dl_port; in am65_cpsw_unregister_devlink()
2520 dl_port = &port->devlink_port; in am65_cpsw_unregister_devlink()
2539 struct devlink_port *dl_port; in am65_cpsw_nuss_register_ndevs()
2573 dl_port = &port->devlink_port; in am65_cpsw_nuss_register_ndevs()
/drivers/net/ethernet/mscc/
Docelot_net.c21 static struct ocelot *devlink_port_to_ocelot(struct devlink_port *dlp) in devlink_port_to_ocelot()
26 static int devlink_port_to_port(struct devlink_port *dlp) in devlink_port_to_port()
53 static int ocelot_devlink_sb_port_pool_get(struct devlink_port *dlp, in ocelot_devlink_sb_port_pool_get()
64 static int ocelot_devlink_sb_port_pool_set(struct devlink_port *dlp, in ocelot_devlink_sb_port_pool_set()
77 ocelot_devlink_sb_tc_pool_bind_get(struct devlink_port *dlp, in ocelot_devlink_sb_tc_pool_bind_get()
91 ocelot_devlink_sb_tc_pool_bind_set(struct devlink_port *dlp, in ocelot_devlink_sb_tc_pool_bind_set()
121 static int ocelot_devlink_sb_occ_port_pool_get(struct devlink_port *dlp, in ocelot_devlink_sb_occ_port_pool_get()
134 ocelot_devlink_sb_occ_tc_port_bind_get(struct devlink_port *dlp, in ocelot_devlink_sb_occ_tc_port_bind_get()
163 struct devlink_port *dlp = &ocelot->devlink_ports[port]; in ocelot_port_devlink_init()
181 struct devlink_port *dlp = &ocelot->devlink_ports[port]; in ocelot_port_devlink_teardown()
[all …]
/drivers/net/dsa/mv88e6xxx/
Ddevlink.c544 static int mv88e6xxx_region_port_snapshot(struct devlink_port *devlink_port, in mv88e6xxx_region_port_snapshot() argument
549 struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port); in mv88e6xxx_region_port_snapshot()
550 int port = dsa_devlink_port_to_port(devlink_port); in mv88e6xxx_region_port_snapshot()
/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.h21 struct devlink_port *prestera_devlink_get_port(struct net_device *dev);
Dprestera.h76 struct devlink_port dl_port;
/drivers/net/ethernet/mellanox/mlx4/
Dintf.c269 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port) in mlx4_get_devlink_port()
273 return &info->devlink_port; in mlx4_get_devlink_port()
/drivers/net/ethernet/pensando/ionic/
Dionic.h42 struct devlink_port dl_port;
/drivers/net/ethernet/netronome/nfp/
Dnfp_port.h70 struct devlink_port dl_port;

12