/Linux-v6.6/net/devlink/ |
D | port.c | 21 #define ASSERT_DEVLINK_PORT_REGISTERED(devlink_port) \ argument 22 WARN_ON_ONCE(!(devlink_port)->registered) 23 #define ASSERT_DEVLINK_PORT_NOT_REGISTERED(devlink_port) \ argument 24 WARN_ON_ONCE((devlink_port)->registered) 26 struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, in devlink_port_get_by_index() 32 struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink, in devlink_port_get_from_attrs() 37 struct devlink_port *devlink_port; in devlink_port_get_from_attrs() local 39 devlink_port = devlink_port_get_by_index(devlink, port_index); in devlink_port_get_from_attrs() 40 if (!devlink_port) in devlink_port_get_from_attrs() 42 return devlink_port; in devlink_port_get_from_attrs() [all …]
|
D | sb.c | 449 struct devlink_port *devlink_port, in devlink_nl_sb_port_pool_fill() argument 460 err = ops->sb_port_pool_get(devlink_port, devlink_sb->index, in devlink_nl_sb_port_pool_fill() 471 if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, devlink_port->index)) in devlink_nl_sb_port_pool_fill() 484 err = ops->sb_occ_port_pool_get(devlink_port, devlink_sb->index, in devlink_nl_sb_port_pool_fill() 509 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_sb_port_pool_get_doit() local 510 struct devlink *devlink = devlink_port->devlink; in devlink_nl_sb_port_pool_get_doit() 532 err = devlink_nl_sb_port_pool_fill(msg, devlink, devlink_port, in devlink_nl_sb_port_pool_get_doit() 549 struct devlink_port *devlink_port; in __sb_port_pool_get_dumpit() local 555 xa_for_each(&devlink->ports, port_index, devlink_port) { in __sb_port_pool_get_dumpit() 562 devlink_port, in __sb_port_pool_get_dumpit() [all …]
|
D | rate.c | 25 struct devlink_port *devlink_port; in devlink_rate_leaf_get_from_info() local 27 devlink_port = devlink_port_get_from_attrs(devlink, info->attrs); in devlink_rate_leaf_get_from_info() 28 if (IS_ERR(devlink_port)) in devlink_rate_leaf_get_from_info() 29 return ERR_CAST(devlink_port); in devlink_rate_leaf_get_from_info() 30 devlink_rate = devlink_port->devlink_rate; in devlink_rate_leaf_get_from_info() 103 devlink_rate->devlink_port->index)) in devlink_nl_rate_fill() 631 int devl_rate_leaf_create(struct devlink_port *devlink_port, void *priv, in devl_rate_leaf_create() argument 634 struct devlink *devlink = devlink_port->devlink; in devl_rate_leaf_create() 637 devl_assert_locked(devlink_port->devlink); in devl_rate_leaf_create() 639 if (WARN_ON(devlink_port->devlink_rate)) in devl_rate_leaf_create() [all …]
|
D | netlink.c | 130 struct devlink_port *devlink_port; in __devlink_nl_pre_doit() local 140 devlink_port = devlink_port_get_from_info(devlink, info); in __devlink_nl_pre_doit() 141 if (IS_ERR(devlink_port)) { in __devlink_nl_pre_doit() 142 err = PTR_ERR(devlink_port); in __devlink_nl_pre_doit() 145 info->user_ptr[1] = devlink_port; in __devlink_nl_pre_doit() 147 devlink_port = devlink_port_get_from_info(devlink, info); in __devlink_nl_pre_doit() 148 if (!IS_ERR(devlink_port)) in __devlink_nl_pre_doit() 149 info->user_ptr[1] = devlink_port; in __devlink_nl_pre_doit()
|
D | health.c | 59 struct devlink_port *devlink_port; member 100 devlink_port_health_reporter_find_by_name(struct devlink_port *devlink_port, in devlink_port_health_reporter_find_by_name() argument 103 return __devlink_health_reporter_find_by_name(&devlink_port->reporter_list, in devlink_port_health_reporter_find_by_name() 140 devl_port_health_reporter_create(struct devlink_port *port, in devl_port_health_reporter_create() 157 reporter->devlink_port = port; in devl_port_health_reporter_create() 164 devlink_port_health_reporter_create(struct devlink_port *port, in devlink_port_health_reporter_create() 275 if (reporter->devlink_port) { in devlink_nl_health_reporter_fill() 276 if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, reporter->devlink_port->index)) in devlink_nl_health_reporter_fill() 333 struct devlink_port *devlink_port; in devlink_health_reporter_get_from_attrs() local 340 devlink_port = devlink_port_get_from_attrs(devlink, attrs); in devlink_health_reporter_get_from_attrs() [all …]
|
D | devl_internal.h | 171 #define ASSERT_DEVLINK_PORT_INITIALIZED(devlink_port) \ argument 172 WARN_ON_ONCE(!(devlink_port)->initialized) 174 struct devlink_port *devlink_port_get_by_index(struct devlink *devlink, 178 struct devlink_port * 180 struct devlink_port *devlink_port_get_from_attrs(struct devlink *devlink,
|
D | region.c | 11 struct devlink_port *port; 47 devlink_port_region_get_by_name(struct devlink_port *port, in devlink_port_region_get_by_name() 475 struct devlink_port *port = NULL; in devlink_nl_region_get_doit() 519 struct devlink_port *port, in devlink_nl_cmd_region_get_port_dumpit() 551 struct devlink_port *port; in devlink_nl_region_get_dump_one() 595 struct devlink_port *port = NULL; in devlink_nl_cmd_region_del() 640 struct devlink_port *port = NULL; in devlink_nl_cmd_region_new() 874 struct devlink_port *port = NULL; in devlink_nl_cmd_region_read_dumpit() 1113 devlink_port_region_create(struct devlink_port *port, in devlink_port_region_create()
|
/Linux-v6.6/include/net/ |
D | devlink.h | 111 struct devlink_port *devlink_port; member 122 struct devlink_port { struct 700 int (*snapshot)(struct devlink_port *port, 704 int (*read)(struct devlink_port *port, 1288 int (*sb_port_pool_get)(struct devlink_port *devlink_port, 1291 int (*sb_port_pool_set)(struct devlink_port *devlink_port, 1294 int (*sb_tc_pool_bind_get)(struct devlink_port *devlink_port, 1299 int (*sb_tc_pool_bind_set)(struct devlink_port *devlink_port, 1309 int (*sb_occ_port_pool_get)(struct devlink_port *devlink_port, 1312 int (*sb_occ_tc_port_bind_get)(struct devlink_port *devlink_port, [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | sf.h | 24 struct devlink_port **dl_port); 26 struct devlink_port *dl_port, 28 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, 32 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port,
|
D | devlink.c | 169 int mlx5_devlink_sf_port_fn_state_get(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_get() 255 int mlx5_devlink_sf_port_fn_state_set(struct devlink_port *dl_port, in mlx5_devlink_sf_port_fn_state_set() 285 struct devlink_port **dl_port) in mlx5_sf_add() 341 struct devlink_port **dl_port) in mlx5_devlink_sf_port_new() 382 struct devlink_port *dl_port, in mlx5_devlink_sf_port_del()
|
/Linux-v6.6/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-devlink.c | 218 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_add() local 222 devlink_port_attrs_set(devlink_port, &attrs); in dpaa2_eth_dl_port_add() 223 return devlink_port_register(priv->devlink, devlink_port, 0); in dpaa2_eth_dl_port_add() 228 struct devlink_port *devlink_port = &priv->devlink_port; in dpaa2_eth_dl_port_del() local 230 devlink_port_unregister(devlink_port); in dpaa2_eth_dl_port_del()
|
/Linux-v6.6/net/dsa/ |
D | devlink.c | 50 static int dsa_devlink_sb_port_pool_get(struct devlink_port *dlp, in dsa_devlink_sb_port_pool_get() 64 static int dsa_devlink_sb_port_pool_set(struct devlink_port *dlp, in dsa_devlink_sb_port_pool_set() 80 dsa_devlink_sb_tc_pool_bind_get(struct devlink_port *dlp, in dsa_devlink_sb_tc_pool_bind_get() 97 dsa_devlink_sb_tc_pool_bind_set(struct devlink_port *dlp, in dsa_devlink_sb_tc_pool_bind_set() 137 static int dsa_devlink_sb_occ_port_pool_get(struct devlink_port *dlp, in dsa_devlink_sb_occ_port_pool_get() 153 dsa_devlink_sb_occ_tc_port_bind_get(struct devlink_port *dlp, in dsa_devlink_sb_occ_tc_port_bind_get() 279 return devlink_port_region_create(&dp->devlink_port, ops, in dsa_devlink_port_region_create() 293 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_devlink_setup() 346 struct devlink_port *dlp = &dp->devlink_port; in dsa_port_devlink_teardown()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 48 struct devlink_port devlink_port; member 1337 static void *__dl_port(struct devlink_port *devlink_port) in __dl_port() argument 1339 return container_of(devlink_port, struct mlxsw_core_port, devlink_port); in __dl_port() 1343 struct devlink_port *port, in mlxsw_devlink_port_split() 1358 struct devlink_port *port, in mlxsw_devlink_port_unsplit() 1401 static int mlxsw_devlink_sb_port_pool_get(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_get() argument 1405 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_sb_port_pool_get() 1407 struct mlxsw_core_port *mlxsw_core_port = __dl_port(devlink_port); in mlxsw_devlink_sb_port_pool_get() 1416 static int mlxsw_devlink_sb_port_pool_set(struct devlink_port *devlink_port, in mlxsw_devlink_sb_port_pool_set() argument 1421 struct mlxsw_core *mlxsw_core = devlink_priv(devlink_port->devlink); in mlxsw_devlink_sb_port_pool_set() [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.h | 180 struct devlink_port dl_port; 190 static inline struct mlx5_devlink_port *mlx5_devlink_port_get(struct devlink_port *dl_port) in mlx5_devlink_port_get() 195 static inline struct mlx5_vport *mlx5_devlink_port_vport_get(struct devlink_port *dl_port) in mlx5_devlink_port_vport_get() 550 int mlx5_devlink_port_fn_hw_addr_get(struct devlink_port *port, 553 int mlx5_devlink_port_fn_hw_addr_set(struct devlink_port *port, 556 int mlx5_devlink_port_fn_roce_get(struct devlink_port *port, bool *is_enabled, 558 int mlx5_devlink_port_fn_roce_set(struct devlink_port *port, bool enable, 560 int mlx5_devlink_port_fn_migratable_get(struct devlink_port *port, bool *is_enabled, 562 int mlx5_devlink_port_fn_migratable_set(struct devlink_port *port, bool enable, 565 int mlx5_devlink_port_fn_ipsec_crypto_get(struct devlink_port *port, bool *is_enabled, [all …]
|
D | devlink.h | 45 struct devlink_port *dl_port);
|
/Linux-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_devlink.c | 660 ice_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_split() 733 ice_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in ice_devlink_port_unsplit() 756 if (vf->devlink_port.devlink_rate) in ice_tear_down_devlink_rate_tree() 757 devl_rate_leaf_destroy(&vf->devlink_port); in ice_tear_down_devlink_rate_tree() 819 if (!vf->devlink_port.devlink_rate) in ice_traverse_tx_tree() 823 devl_rate_leaf_create(&vf->devlink_port, node, in ice_traverse_tx_tree() 1529 struct devlink_port *devlink_port; in ice_devlink_create_pf_port() local 1537 devlink_port = &pf->devlink_port; in ice_devlink_create_pf_port() 1554 devlink_port_attrs_set(devlink_port, &attrs); in ice_devlink_create_pf_port() 1557 err = devlink_port_register_with_ops(devlink, devlink_port, vsi->idx, in ice_devlink_create_pf_port() [all …]
|
D | ice_vf_lib.h | 135 struct devlink_port devlink_port; member
|
/Linux-v6.6/drivers/net/ethernet/sfc/ |
D | ef100_rep.h | 25 struct devlink_port; 60 struct devlink_port *dl_port;
|
D | efx_devlink.c | 29 static int efx_devlink_port_addr_get(struct devlink_port *port, u8 *hw_addr, in efx_devlink_port_addr_get() 78 static int efx_devlink_port_addr_set(struct devlink_port *port, in efx_devlink_port_addr_set() 132 static void efx_devlink_del_port(struct devlink_port *dl_port) in efx_devlink_del_port() 623 static struct devlink_port *ef100_set_devlink_port(struct efx_nic *efx, u32 idx) in ef100_set_devlink_port()
|
/Linux-v6.6/drivers/net/netdevsim/ |
D | dev.c | 819 &nsim_dev_port->devlink_port, fa_cookie); in nsim_dev_trap_report() 1357 struct devlink_port *devlink_port; in __nsim_dev_port_add() local 1369 devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_add() 1380 devlink_port_attrs_set(devlink_port, &attrs); in __nsim_dev_port_add() 1381 err = devl_port_register(priv_to_devlink(nsim_dev), devlink_port, in __nsim_dev_port_add() 1397 err = devl_rate_leaf_create(&nsim_dev_port->devlink_port, in __nsim_dev_port_add() 1412 devl_port_unregister(devlink_port); in __nsim_dev_port_add() 1420 struct devlink_port *devlink_port = &nsim_dev_port->devlink_port; in __nsim_dev_port_del() local 1424 devl_rate_leaf_destroy(&nsim_dev_port->devlink_port); in __nsim_dev_port_del() 1427 devl_port_unregister(devlink_port); in __nsim_dev_port_del()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 26 struct devlink_port *dl_port) in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 104 struct devlink_port *dl_port, in mlx5_esw_offloads_sf_devlink_port_attrs_set() 200 struct devlink_port *mlx5_esw_offloads_devlink_port(struct mlx5_eswitch *esw, u16 vport_num) in mlx5_esw_offloads_devlink_port()
|
/Linux-v6.6/drivers/net/ethernet/ti/ |
D | am65-cpsw-nuss.h | 58 struct devlink_port devlink_port; member
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/ |
D | nfp_devlink.c | 30 struct devlink_port *dl_port, in nfp_devlink_fill_eth_port_from_id() 64 nfp_devlink_port_split(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_split() 90 nfp_devlink_port_unsplit(struct devlink *devlink, struct devlink_port *port, in nfp_devlink_port_unsplit()
|
/Linux-v6.6/include/linux/mlx4/ |
D | driver.h | 75 struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port);
|
/Linux-v6.6/drivers/net/dsa/mv88e6xxx/ |
D | devlink.c | 623 static int mv88e6xxx_region_port_snapshot(struct devlink_port *devlink_port, in mv88e6xxx_region_port_snapshot() argument 628 struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port); in mv88e6xxx_region_port_snapshot() 629 int port = dsa_devlink_port_to_port(devlink_port); in mv88e6xxx_region_port_snapshot()
|