Lines Matching refs:new_prof
96 struct mlx4_en_port_profile new_prof; in mlx4_en_alloc_tx_queue_per_tc() local
107 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_alloc_tx_queue_per_tc()
108 new_prof.num_up = (tc == 0) ? MLX4_EN_NUM_UP_LOW : in mlx4_en_alloc_tx_queue_per_tc()
110 new_prof.tx_ring_num[TX] = new_prof.num_tx_rings_p_up * in mlx4_en_alloc_tx_queue_per_tc()
111 new_prof.num_up; in mlx4_en_alloc_tx_queue_per_tc()
112 total_count = new_prof.tx_ring_num[TX] + new_prof.tx_ring_num[TX_XDP]; in mlx4_en_alloc_tx_queue_per_tc()
120 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, true); in mlx4_en_alloc_tx_queue_per_tc()
2735 struct mlx4_en_port_profile new_prof; in mlx4_xdp_set() local
2777 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_xdp_set()
2778 new_prof.tx_ring_num[TX_XDP] = xdp_ring_num; in mlx4_xdp_set()
2782 new_prof.tx_ring_num[TX] = in mlx4_xdp_set()
2787 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, false); in mlx4_xdp_set()
3521 struct mlx4_en_port_profile new_prof; in mlx4_en_reset_config() local
3545 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_reset_config()
3546 memcpy(&new_prof.hwtstamp_config, &ts_config, sizeof(ts_config)); in mlx4_en_reset_config()
3548 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, true); in mlx4_en_reset_config()