sa_ctx             74 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	struct mlx5_fpga_ipsec_sa_ctx	*sa_ctx;
sa_ctx            671 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	struct mlx5_fpga_ipsec_sa_ctx *sa_ctx;
sa_ctx            681 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	sa_ctx = kzalloc(sizeof(*sa_ctx), GFP_KERNEL);
sa_ctx            682 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	if (!sa_ctx)
sa_ctx            685 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	sa_ctx->dev = mdev;
sa_ctx            690 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 				    &sa_ctx->hw_sa);
sa_ctx            694 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	if (fpga_xfrm->sa_ctx) {        /* multiple rules for same accel_xfrm */
sa_ctx            696 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		if (memcmp(&sa_ctx->hw_sa, &fpga_xfrm->sa_ctx->hw_sa,
sa_ctx            697 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 			   sizeof(sa_ctx->hw_sa))) {
sa_ctx            703 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		context = fpga_xfrm->sa_ctx;
sa_ctx            710 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	err = rhashtable_lookup_insert_fast(&fipsec->sa_hash, &sa_ctx->hash,
sa_ctx            725 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	err = mlx5_fpga_ipsec_update_hw_sa(fdev, &sa_ctx->hw_sa, opcode);
sa_ctx            726 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	sa_ctx->hw_sa.ipsec_sa_v1.cmd = 0;
sa_ctx            735 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	fpga_xfrm->sa_ctx = sa_ctx;
sa_ctx            736 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	sa_ctx->fpga_xfrm = fpga_xfrm;
sa_ctx            740 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	return sa_ctx;
sa_ctx            743 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	WARN_ON(rhashtable_remove_fast(&fipsec->sa_hash, &sa_ctx->hash,
sa_ctx            750 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	kfree(sa_ctx);
sa_ctx            823 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c mlx5_fpga_ipsec_release_sa_ctx(struct mlx5_fpga_ipsec_sa_ctx *sa_ctx)
sa_ctx            825 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	struct mlx5_fpga_device *fdev = sa_ctx->dev->fpga;
sa_ctx            832 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	err = mlx5_fpga_ipsec_update_hw_sa(fdev, &sa_ctx->hw_sa, opcode);
sa_ctx            833 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	sa_ctx->hw_sa.ipsec_sa_v1.cmd = 0;
sa_ctx            840 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	WARN_ON(rhashtable_remove_fast(&fipsec->sa_hash, &sa_ctx->hash,
sa_ctx            852 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		mlx5_fpga_ipsec_release_sa_ctx(fpga_xfrm->sa_ctx);
sa_ctx            853 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		kfree(fpga_xfrm->sa_ctx);
sa_ctx            854 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		fpga_xfrm->sa_ctx = NULL;
sa_ctx           1496 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	if (!fpga_xfrm->sa_ctx)
sa_ctx           1501 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	memcpy(&org_hw_sa, &fpga_xfrm->sa_ctx->hw_sa, sizeof(org_hw_sa));
sa_ctx           1505 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 				       &fpga_xfrm->sa_ctx->hash, rhash_sa));
sa_ctx           1508 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 				      &fpga_xfrm->sa_ctx->hw_sa);
sa_ctx           1511 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 				     &fpga_xfrm->sa_ctx->hash, rhash_sa);
sa_ctx           1516 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	err = mlx5_fpga_ipsec_update_hw_sa(fdev, &fpga_xfrm->sa_ctx->hw_sa,
sa_ctx           1518 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	fpga_xfrm->sa_ctx->hw_sa.ipsec_sa_v1.cmd = 0;
sa_ctx           1521 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 					       &fpga_xfrm->sa_ctx->hash,
sa_ctx           1526 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		memcpy(&fpga_xfrm->sa_ctx->hw_sa, &org_hw_sa,
sa_ctx           1529 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 					       &fpga_xfrm->sa_ctx->hash,