Lines Matching refs:profile

124 		if (priv->profile->update_carrier)  in mlx5e_update_carrier_work()
125 priv->profile->update_carrier(priv); in mlx5e_update_carrier_work()
135 priv->profile->update_stats(priv); in mlx5e_update_stats_work()
141 if (!priv->profile->update_stats) in mlx5e_queue_update_stats()
3039 priv->profile->update_rx(priv); in mlx5e_switch_priv_channels()
3135 err = priv->profile->update_rx(priv); in mlx5e_open_locked()
3142 if (priv->profile->update_carrier) in mlx5e_open_locked()
3143 priv->profile->update_carrier(priv); in mlx5e_open_locked()
3324 for (tc = 0; tc < priv->profile->max_tc; tc++) in mlx5e_destroy_tises()
3339 for (tc = 0; tc < priv->profile->max_tc; tc++) { in mlx5e_create_tises()
3362 tc = priv->profile->max_tc; in mlx5e_create_tises()
4460 if (!mlx5e_profile_feature_cap(priv->profile, PTP_RX)) in mlx5e_hwstamp_set()
5302 fs = mlx5e_fs_init(priv->profile, mdev, in mlx5e_nic_init()
5371 err = mlx5e_create_flow_steering(priv->fs, priv->rx_res, priv->profile, in mlx5e_init_nic_rx()
5396 priv->profile); in mlx5e_init_nic_rx()
5413 priv->profile); in mlx5e_cleanup_nic_rx()
5564 const struct mlx5e_profile *profile) in mlx5e_profile_max_num_channels() argument
5570 if (profile->max_nch_limit) in mlx5e_profile_max_num_channels()
5571 nch = min_t(int, nch, profile->max_nch_limit(mdev)); in mlx5e_profile_max_num_channels()
5577 const struct mlx5e_profile *profile) in mlx5e_calc_max_nch() argument
5583 max_nch = mlx5e_profile_max_num_channels(mdev, profile); in mlx5e_calc_max_nch()
5593 tmp -= profile->max_tc; in mlx5e_calc_max_nch()
5594 tmp = tmp / profile->max_tc; in mlx5e_calc_max_nch()
5619 const struct mlx5e_profile *profile, in mlx5e_priv_init() argument
5627 nch = mlx5e_calc_max_nch(mdev, netdev, profile); in mlx5e_priv_init()
5707 const struct mlx5e_profile *profile) in mlx5e_get_max_num_txqs() argument
5711 nch = mlx5e_profile_max_num_channels(mdev, profile); in mlx5e_get_max_num_txqs()
5714 mlx5e_profile_feature_cap(profile, PTP_TX) ? in mlx5e_get_max_num_txqs()
5715 profile->max_tc : 0; in mlx5e_get_max_num_txqs()
5718 mlx5e_profile_feature_cap(profile, QOS_HTB) ? in mlx5e_get_max_num_txqs()
5721 return nch * profile->max_tc + ptp_txqs + qos_txqs; in mlx5e_get_max_num_txqs()
5725 const struct mlx5e_profile *profile) in mlx5e_get_max_num_rxqs() argument
5727 return mlx5e_profile_max_num_channels(mdev, profile); in mlx5e_get_max_num_rxqs()
5731 mlx5e_create_netdev(struct mlx5_core_dev *mdev, const struct mlx5e_profile *profile) in mlx5e_create_netdev() argument
5737 txqs = mlx5e_get_max_num_txqs(mdev, profile); in mlx5e_create_netdev()
5738 rxqs = mlx5e_get_max_num_rxqs(mdev, profile); in mlx5e_create_netdev()
5746 err = mlx5e_priv_init(netdev_priv(netdev), profile, netdev, mdev); in mlx5e_create_netdev()
5782 const struct mlx5e_profile *profile = priv->profile; in mlx5e_attach_netdev() local
5799 max_nch = mlx5e_calc_max_nch(priv->mdev, priv->netdev, profile); in mlx5e_attach_netdev()
5835 err = profile->init_tx(priv); in mlx5e_attach_netdev()
5839 err = profile->init_rx(priv); in mlx5e_attach_netdev()
5843 if (profile->enable) in mlx5e_attach_netdev()
5844 profile->enable(priv); in mlx5e_attach_netdev()
5851 profile->cleanup_tx(priv); in mlx5e_attach_netdev()
5865 const struct mlx5e_profile *profile = priv->profile; in mlx5e_detach_netdev() local
5872 if (profile->disable) in mlx5e_detach_netdev()
5873 profile->disable(priv); in mlx5e_detach_netdev()
5876 profile->cleanup_rx(priv); in mlx5e_detach_netdev()
5877 profile->cleanup_tx(priv); in mlx5e_detach_netdev()
5895 priv->profile = new_profile; in mlx5e_netdev_init_profile()
5933 const struct mlx5e_profile *orig_profile = priv->profile; in mlx5e_netdev_change_profile()
5941 priv->profile->cleanup(priv); in mlx5e_netdev_change_profile()
6026 const struct mlx5e_profile *profile = &mlx5e_nic_profile; in mlx5e_probe() local
6045 netdev = mlx5e_create_netdev(mdev, profile); in mlx5e_probe()
6058 priv->profile = profile; in mlx5e_probe()
6061 err = profile->init(mdev, netdev); in mlx5e_probe()
6087 profile->cleanup(priv); in mlx5e_probe()
6107 priv->profile->cleanup(priv); in mlx5e_remove()