Home
last modified time | relevance | path

Searched refs:dek_pool (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls.c12 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()
Dktls.h15 struct mlx5_crypto_dek *mlx5_ktls_create_key(struct mlx5_crypto_dek_pool *dek_pool,
17 void mlx5_ktls_destroy_key(struct mlx5_crypto_dek_pool *dek_pool,
88 struct mlx5_crypto_dek_pool *dek_pool; member
Dktls_tx.c488 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()
Dktls_rx.c640 dek = mlx5_ktls_create_key(priv->tls->dek_pool, crypto_info); in mlx5e_ktls_add_rx()
681 mlx5_ktls_destroy_key(priv->tls->dek_pool, priv_rx->dek); in mlx5e_ktls_add_rx()
713 mlx5_ktls_destroy_key(priv->tls->dek_pool, priv_rx->dek); in mlx5e_ktls_del_rx()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dcrypto.h26 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,
Dcrypto.c603 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()