/drivers/net/ethernet/intel/ice/ |
D | ice_devlink.c | 539 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 …]
|
D | ice_virtchnl_pf.h | 118 struct devlink_port devlink_port; member
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-devlink.c | 230 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()
|
D | dpaa2-eth.h | 573 struct devlink_port devlink_port; member
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 48 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/ |
D | devlink.c | 22 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()
|
D | devlink.h | 13 struct devlink_port *mlx5e_get_devlink_port(struct net_device *dev); 15 static inline struct devlink_port *
|
/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 24 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/ |
D | dev.c | 735 &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 …]
|
D | netdevsim.h | 210 struct devlink_port devlink_port; member
|
D | netdev.c | 241 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/ |
D | sf.h | 27 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,
|
D | devlink.c | 13 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/ |
D | eswitch.h | 187 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,
|
D | devlink.h | 29 struct devlink_port *dl_port);
|
D | en_rep.c | 536 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/ |
D | am65-cpsw-nuss.h | 55 struct devlink_port devlink_port; member
|
D | am65-cpsw-nuss.c | 1484 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/ |
D | ocelot_net.c | 21 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/ |
D | devlink.c | 544 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/ |
D | prestera_devlink.h | 21 struct devlink_port *prestera_devlink_get_port(struct net_device *dev);
|
D | prestera.h | 76 struct devlink_port dl_port;
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | intf.c | 269 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/ |
D | ionic.h | 42 struct devlink_port dl_port;
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_port.h | 70 struct devlink_port dl_port;
|