Searched refs:sa_ctx (Results 1 – 3 of 3) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
D | ipsec_offload.c | 23 struct mlx5_ipsec_sa_ctx *sa_ctx; member 124 WARN_ON(mxfrm->sa_ctx); in mlx5_ipsec_offload_esp_destroy_xfrm() 215 struct mlx5_ipsec_sa_ctx *sa_ctx; in mlx5_ipsec_offload_create_sa_ctx() local 219 sa_ctx = kzalloc(sizeof(*sa_ctx), GFP_KERNEL); in mlx5_ipsec_offload_create_sa_ctx() 220 if (!sa_ctx) in mlx5_ipsec_offload_create_sa_ctx() 223 sa_ctx->dev = mdev; in mlx5_ipsec_offload_create_sa_ctx() 227 sa_ctx->mxfrm = mxfrm; in mlx5_ipsec_offload_create_sa_ctx() 233 &sa_ctx->enc_key_id); in mlx5_ipsec_offload_create_sa_ctx() 242 ipsec_attrs.enc_key_id = sa_ctx->enc_key_id; in mlx5_ipsec_offload_create_sa_ctx() 244 &sa_ctx->ipsec_obj_id); in mlx5_ipsec_offload_create_sa_ctx() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | ipsec.c | 75 struct mlx5_fpga_ipsec_sa_ctx *sa_ctx; member 673 struct mlx5_fpga_ipsec_sa_ctx *sa_ctx; in mlx5_fpga_ipsec_create_sa_ctx() local 683 sa_ctx = kzalloc(sizeof(*sa_ctx), GFP_KERNEL); in mlx5_fpga_ipsec_create_sa_ctx() 684 if (!sa_ctx) in mlx5_fpga_ipsec_create_sa_ctx() 687 sa_ctx->dev = mdev; in mlx5_fpga_ipsec_create_sa_ctx() 692 &sa_ctx->hw_sa); in mlx5_fpga_ipsec_create_sa_ctx() 696 if (fpga_xfrm->sa_ctx) { /* multiple rules for same accel_xfrm */ in mlx5_fpga_ipsec_create_sa_ctx() 698 if (memcmp(&sa_ctx->hw_sa, &fpga_xfrm->sa_ctx->hw_sa, in mlx5_fpga_ipsec_create_sa_ctx() 699 sizeof(sa_ctx->hw_sa))) { in mlx5_fpga_ipsec_create_sa_ctx() 705 context = fpga_xfrm->sa_ctx; in mlx5_fpga_ipsec_create_sa_ctx() [all …]
|
/drivers/crypto/ |
D | sa2ul.c | 1090 struct sa_ctx_info *sa_ctx = req->enc ? &req->ctx->enc : &req->ctx->dec; in sa_run() local 1129 memcpy(cmdl, sa_ctx->cmdl, sa_ctx->cmdl_size); in sa_run() 1131 sa_update_cmdl(req, cmdl, &sa_ctx->cmdl_upd_info); in sa_run() 1142 cmdl[sa_ctx->cmdl_size / sizeof(u32)] = req->type; in sa_run() 1255 rxd->enc_iv_size = sa_ctx->cmdl_upd_info.enc_iv.size; in sa_run() 1275 sa_prepare_tx_desc(mdptr, (sa_ctx->cmdl_size + (SA_PSDATA_CTX_WORDS * in sa_run() 1276 sizeof(u32))), cmdl, sizeof(sa_ctx->epib), in sa_run() 1277 sa_ctx->epib); in sa_run() 1279 ml = sa_ctx->cmdl_size + (SA_PSDATA_CTX_WORDS * sizeof(u32)); in sa_run()
|