Lines Matching refs:new_prof
93 struct mlx4_en_port_profile new_prof; in mlx4_en_alloc_tx_queue_per_tc() local
103 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_alloc_tx_queue_per_tc()
104 new_prof.num_up = (tc == 0) ? MLX4_EN_NUM_UP_LOW : in mlx4_en_alloc_tx_queue_per_tc()
106 new_prof.tx_ring_num[TX] = new_prof.num_tx_rings_p_up * in mlx4_en_alloc_tx_queue_per_tc()
107 new_prof.num_up; in mlx4_en_alloc_tx_queue_per_tc()
108 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, true); in mlx4_en_alloc_tx_queue_per_tc()
2787 struct mlx4_en_port_profile new_prof; in mlx4_xdp_set() local
2836 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_xdp_set()
2837 new_prof.tx_ring_num[TX_XDP] = xdp_ring_num; in mlx4_xdp_set()
2841 new_prof.tx_ring_num[TX] = in mlx4_xdp_set()
2846 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, false); in mlx4_xdp_set()
3578 struct mlx4_en_port_profile new_prof; in mlx4_en_reset_config() local
3602 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_reset_config()
3603 memcpy(&new_prof.hwtstamp_config, &ts_config, sizeof(ts_config)); in mlx4_en_reset_config()
3605 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, true); in mlx4_en_reset_config()