Searched refs:sched_ctx (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | qos.c | 29 u32 sched_ctx[MLX5_ST_SZ_DW(scheduling_context)] = {0}; in mlx5_qos_create_leaf_node() local 34 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_leaf_node() 35 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_leaf_node() 37 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_leaf_node() 38 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_avg_bw); in mlx5_qos_create_leaf_node() 41 sched_ctx, id); in mlx5_qos_create_leaf_node() 47 u32 sched_ctx[MLX5_ST_SZ_DW(scheduling_context)] = {0}; in mlx5_qos_create_inner_node() local 54 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_inner_node() 55 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_inner_node() 57 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_inner_node() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | qos.c | 25 static int esw_qos_tsar_config(struct mlx5_core_dev *dev, u32 *sched_ctx, in esw_qos_tsar_config() argument 33 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_rate); in esw_qos_tsar_config() 34 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in esw_qos_tsar_config() 40 sched_ctx, in esw_qos_tsar_config() 48 u32 sched_ctx[MLX5_ST_SZ_DW(scheduling_context)] = {}; in esw_qos_group_config() local 52 err = esw_qos_tsar_config(dev, sched_ctx, in esw_qos_group_config() 68 u32 sched_ctx[MLX5_ST_SZ_DW(scheduling_context)] = {}; in esw_qos_vport_config() local 75 err = esw_qos_tsar_config(dev, sched_ctx, vport->qos.esw_tsar_ix, in esw_qos_vport_config() 338 u32 sched_ctx[MLX5_ST_SZ_DW(scheduling_context)] = {}; in esw_qos_vport_create_sched_element() local 349 MLX5_SET(scheduling_context, sched_ctx, element_type, in esw_qos_vport_create_sched_element() [all …]
|