}
static void
-nix_rq_ctx_cn9k(void *qctx, struct plt_tel_data *d)
+nix_rq_ctx_cn9k(volatile void *qctx, struct plt_tel_data *d)
{
- struct nix_rq_ctx_s *ctx = (struct nix_rq_ctx_s *)qctx;
+ volatile struct nix_rq_ctx_s *ctx;
+
+ ctx = (volatile struct nix_rq_ctx_s *)qctx;
/* W0 */
CNXK_TEL_DICT_INT(d, ctx, wqe_aura, w0_);
}
static void
-nix_rq_ctx(void *qctx, struct plt_tel_data *d)
+nix_rq_ctx(volatile void *qctx, struct plt_tel_data *d)
{
- struct nix_cn10k_rq_ctx_s *ctx = (struct nix_cn10k_rq_ctx_s *)qctx;
+ volatile struct nix_cn10k_rq_ctx_s *ctx;
+
+ ctx = (volatile struct nix_cn10k_rq_ctx_s *)qctx;
/* W0 */
CNXK_TEL_DICT_INT(d, ctx, wqe_aura, w0_);
}
if (roc_model_is_cn9k())
- nix_rq_ctx_cn9k(&qctx, d);
+ nix_rq_ctx_cn9k(qctx, d);
else
- nix_rq_ctx(&qctx, d);
+ nix_rq_ctx(qctx, d);
return 0;
}
}
static void
-nix_sq_ctx_cn9k(void *qctx, struct plt_tel_data *d)
+nix_sq_ctx_cn9k(volatile void *qctx, struct plt_tel_data *d)
{
- struct nix_sq_ctx_s *ctx = (struct nix_sq_ctx_s *)qctx;
+ volatile struct nix_sq_ctx_s *ctx;
+
+ ctx = (volatile struct nix_sq_ctx_s *)qctx;
/* W0 */
CNXK_TEL_DICT_INT(d, ctx, sqe_way_mask, w0_);
}
static void
-nix_sq_ctx(void *qctx, struct plt_tel_data *d)
+nix_sq_ctx(volatile void *qctx, struct plt_tel_data *d)
{
- struct nix_cn10k_sq_ctx_s *ctx = (struct nix_cn10k_sq_ctx_s *)qctx;
+ volatile struct nix_cn10k_sq_ctx_s *ctx;
+
+ ctx = (volatile struct nix_cn10k_sq_ctx_s *)qctx;
/* W0 */
CNXK_TEL_DICT_INT(d, ctx, sqe_way_mask, w0_);
}
if (roc_model_is_cn9k())
- nix_sq_ctx_cn9k(&qctx, d);
+ nix_sq_ctx_cn9k(qctx, d);
else
- nix_sq_ctx(&qctx, d);
+ nix_sq_ctx(qctx, d);
return 0;
}