Searched refs:dek_pool (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ktls.c | 12 struct mlx5_crypto_dek *mlx5_ktls_create_key(struct mlx5_crypto_dek_pool *dek_pool, in mlx5_ktls_create_key() argument 39 return mlx5_crypto_dek_create(dek_pool, key, sz_bytes); in mlx5_ktls_create_key() 42 void mlx5_ktls_destroy_key(struct mlx5_crypto_dek_pool *dek_pool, in mlx5_ktls_destroy_key() argument 45 mlx5_crypto_dek_destroy(dek_pool, dek); in mlx5_ktls_destroy_key()
|
H A D | ktls.h | 16 struct mlx5_crypto_dek *mlx5_ktls_create_key(struct mlx5_crypto_dek_pool *dek_pool, 18 void mlx5_ktls_destroy_key(struct mlx5_crypto_dek_pool *dek_pool, 90 struct mlx5_crypto_dek_pool *dek_pool; member
|
H A D | ktls_tx.c | 488 dek = mlx5_ktls_create_key(priv->tls->dek_pool, crypto_info); in mlx5e_ktls_add_tx() 521 mlx5_ktls_destroy_key(priv->tls->dek_pool, priv_tx->dek); in mlx5e_ktls_del_tx() 911 struct mlx5_crypto_dek_pool *dek_pool; in mlx5e_ktls_init_tx() local 921 dek_pool = mlx5_crypto_dek_pool_create(priv->mdev, MLX5_ACCEL_OBJ_TLS_KEY); in mlx5e_ktls_init_tx() 922 if (IS_ERR(dek_pool)) in mlx5e_ktls_init_tx() 923 return PTR_ERR(dek_pool); in mlx5e_ktls_init_tx() 924 tls->dek_pool = dek_pool; in mlx5e_ktls_init_tx() 940 mlx5_crypto_dek_pool_destroy(dek_pool); in mlx5e_ktls_init_tx() 957 mlx5_crypto_dek_pool_destroy(priv->tls->dek_pool); in mlx5e_ktls_cleanup_tx()
|
H A D | ktls_rx.c | 638 dek = mlx5_ktls_create_key(priv->tls->dek_pool, crypto_info); in mlx5e_ktls_add_rx() 679 mlx5_ktls_destroy_key(priv->tls->dek_pool, priv_rx->dek); in mlx5e_ktls_add_rx() 711 mlx5_ktls_destroy_key(priv->tls->dek_pool, priv_rx->dek); in mlx5e_ktls_del_rx()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | crypto.h | 26 struct mlx5_crypto_dek *mlx5_crypto_dek_create(struct mlx5_crypto_dek_pool *dek_pool, 28 void mlx5_crypto_dek_destroy(struct mlx5_crypto_dek_pool *dek_pool,
|
H A D | crypto.c | 603 struct mlx5_crypto_dek *mlx5_crypto_dek_create(struct mlx5_crypto_dek_pool *dek_pool, in mlx5_crypto_dek_create() argument 606 struct mlx5_crypto_dek_priv *dek_priv = dek_pool->mdev->mlx5e_res.dek_priv; in mlx5_crypto_dek_create() 607 struct mlx5_core_dev *mdev = dek_pool->mdev; in mlx5_crypto_dek_create() 608 u32 key_purpose = dek_pool->key_purpose; in mlx5_crypto_dek_create() 624 bulk = mlx5_crypto_dek_pool_pop(dek_pool, &obj_offset); in mlx5_crypto_dek_create() 635 mlx5_crypto_dek_pool_push(dek_pool, dek); in mlx5_crypto_dek_create() 648 void mlx5_crypto_dek_destroy(struct mlx5_crypto_dek_pool *dek_pool, in mlx5_crypto_dek_destroy() argument 651 struct mlx5_crypto_dek_priv *dek_priv = dek_pool->mdev->mlx5e_res.dek_priv; in mlx5_crypto_dek_destroy() 652 struct mlx5_core_dev *mdev = dek_pool->mdev; in mlx5_crypto_dek_destroy() 658 mlx5_crypto_dek_pool_push(dek_pool, dek); in mlx5_crypto_dek_destroy()
|