tun_entropy 1105 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c struct mlx5_tun_entropy *tun_entropy = &uplink_priv->tun_entropy; tun_entropy 1109 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c err = mlx5_tun_entropy_refcount_inc(tun_entropy, e->reformat_type); tun_entropy 1119 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5_tun_entropy_refcount_dec(tun_entropy, tun_entropy 1140 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c struct mlx5_tun_entropy *tun_entropy = &uplink_priv->tun_entropy; tun_entropy 1151 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5_tun_entropy_refcount_dec(tun_entropy, e->reformat_type); tun_entropy 1646 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5_init_port_tun_entropy(&uplink_priv->tun_entropy, priv->mdev); tun_entropy 77 drivers/net/ethernet/mellanox/mlx5/core/en_rep.h struct mlx5_tun_entropy tun_entropy; tun_entropy 73 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c void mlx5_init_port_tun_entropy(struct mlx5_tun_entropy *tun_entropy, tun_entropy 78 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->mdev = mdev; tun_entropy 79 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mutex_init(&tun_entropy->lock); tun_entropy 81 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->num_enabling_entries = 0; tun_entropy 82 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->num_disabling_entries = 0; tun_entropy 83 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->enabled = entropy_flags.calc_supported ? tun_entropy 87 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c static int mlx5_set_entropy(struct mlx5_tun_entropy *tun_entropy, tun_entropy 93 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mlx5_query_port_tun_entropy(tun_entropy->mdev, &entropy_flags); tun_entropy 103 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c err = mlx5_set_port_gre_tun_entropy_calc(tun_entropy->mdev, tun_entropy 114 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mlx5_core_warn(tun_entropy->mdev, tun_entropy 123 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c if (tun_entropy->num_enabling_entries) tun_entropy 125 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c err = mlx5_set_port_tun_entropy_calc(tun_entropy->mdev, enable, tun_entropy 129 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->enabled = enable; tun_entropy 132 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c err = mlx5_set_port_tun_entropy_calc(tun_entropy->mdev, 1, 0); tun_entropy 145 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c int mlx5_tun_entropy_refcount_inc(struct mlx5_tun_entropy *tun_entropy, tun_entropy 151 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mutex_lock(&tun_entropy->lock); tun_entropy 153 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->enabled) { tun_entropy 158 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->num_enabling_entries++; tun_entropy 165 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c if (tun_entropy->num_disabling_entries == 0) tun_entropy 166 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c err = mlx5_set_entropy(tun_entropy, reformat_type, 0); tun_entropy 170 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->num_disabling_entries++; tun_entropy 172 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mutex_unlock(&tun_entropy->lock); tun_entropy 177 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c void mlx5_tun_entropy_refcount_dec(struct mlx5_tun_entropy *tun_entropy, tun_entropy 180 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mutex_lock(&tun_entropy->lock); tun_entropy 182 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c tun_entropy->num_enabling_entries--; tun_entropy 184 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c --tun_entropy->num_disabling_entries == 0) tun_entropy 185 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mlx5_set_entropy(tun_entropy, reformat_type, 1); tun_entropy 186 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c mutex_unlock(&tun_entropy->lock); tun_entropy 17 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.h void mlx5_init_port_tun_entropy(struct mlx5_tun_entropy *tun_entropy, tun_entropy 19 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.h int mlx5_tun_entropy_refcount_inc(struct mlx5_tun_entropy *tun_entropy, tun_entropy 21 drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.h void mlx5_tun_entropy_refcount_dec(struct mlx5_tun_entropy *tun_entropy,