Lines Matching refs:prof
104 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_alloc_tx_queue_per_tc()
1773 priv->prof->tx_pause, in mlx4_en_start_port()
1774 priv->prof->tx_ppp, in mlx4_en_start_port()
1775 priv->prof->rx_pause, in mlx4_en_start_port()
1776 priv->prof->rx_ppp); in mlx4_en_start_port()
2144 priv->prof->rx_ring_size, priv->stride); in mlx4_en_free_resources()
2153 struct mlx4_en_port_profile *prof = priv->prof; in mlx4_en_alloc_resources() local
2162 prof->tx_ring_size, i, t, node)) in mlx4_en_alloc_resources()
2166 prof->tx_ring_size, in mlx4_en_alloc_resources()
2176 prof->rx_ring_size, i, RX, node)) in mlx4_en_alloc_resources()
2180 prof->rx_ring_size, priv->stride, in mlx4_en_alloc_resources()
2197 prof->rx_ring_size, in mlx4_en_alloc_resources()
2217 struct mlx4_en_port_profile *prof) in mlx4_en_copy_priv() argument
2221 memcpy(&dst->hwtstamp_config, &prof->hwtstamp_config, in mlx4_en_copy_priv()
2223 dst->num_tx_rings_p_up = prof->num_tx_rings_p_up; in mlx4_en_copy_priv()
2224 dst->rx_ring_num = prof->rx_ring_num; in mlx4_en_copy_priv()
2225 dst->flags = prof->flags; in mlx4_en_copy_priv()
2229 dst->prof = prof; in mlx4_en_copy_priv()
2234 dst->tx_ring_num[t] = prof->tx_ring_num[t]; in mlx4_en_copy_priv()
2280 memcpy(dst->prof, src->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_update_priv()
2285 struct mlx4_en_port_profile *prof, in mlx4_en_try_alloc_resources() argument
2291 ret = mlx4_en_copy_priv(tmp, priv, prof); in mlx4_en_try_alloc_resources()
2779 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_xdp_set()
2785 MAX_TX_RINGS - ALIGN(xdp_ring_num, priv->prof->num_up); in mlx4_xdp_set()
3162 struct mlx4_en_port_profile *prof) in mlx4_en_init_netdev() argument
3174 netif_set_real_num_tx_queues(dev, prof->tx_ring_num[TX]); in mlx4_en_init_netdev()
3175 netif_set_real_num_rx_queues(dev, prof->rx_ring_num); in mlx4_en_init_netdev()
3201 priv->prof = prof; in mlx4_en_init_netdev()
3204 priv->flags = prof->flags; in mlx4_en_init_netdev()
3213 priv->tx_ring_num[t] = prof->tx_ring_num[t]; in mlx4_en_init_netdev()
3232 priv->rx_ring_num = prof->rx_ring_num; in mlx4_en_init_netdev()
3429 en_warn(priv, "Using %d TX rings\n", prof->tx_ring_num[TX]); in mlx4_en_init_netdev()
3430 en_warn(priv, "Using %d RX rings\n", prof->rx_ring_num); in mlx4_en_init_netdev()
3438 prof->tx_pause, prof->tx_ppp, in mlx4_en_init_netdev()
3439 prof->rx_pause, prof->rx_ppp); in mlx4_en_init_netdev()
3472 mdev->profile.prof[priv->port].rx_ppp, in mlx4_en_init_netdev()
3473 mdev->profile.prof[priv->port].rx_pause, in mlx4_en_init_netdev()
3474 mdev->profile.prof[priv->port].tx_ppp, in mlx4_en_init_netdev()
3475 mdev->profile.prof[priv->port].tx_pause); in mlx4_en_init_netdev()
3524 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_reset_config()