Lines Matching refs:aq_req
966 struct nix_cn10k_aq_enq_req *aq_req; in nix_get_aq_req_smq() local
969 aq_req = (struct nix_cn10k_aq_enq_req *)req; in nix_get_aq_req_smq()
970 *smq = aq_req->sq.smq; in nix_get_aq_req_smq()
971 *smq_mask = aq_req->sq_mask.smq; in nix_get_aq_req_smq()
1218 struct nix_cn10k_aq_enq_req aq_req; in rvu_nix_verify_aq_ctx() local
1225 rc = nix_aq_context_read(rvu, nix_hw, &aq_req, &aq_rsp, in rvu_nix_verify_aq_ctx()
1238 memcpy(&aq_req.cq_mask, &req->cq_mask, sizeof(struct nix_cq_ctx_s)); in rvu_nix_verify_aq_ctx()
1239 memcpy(&aq_req.cq, &req->cq, sizeof(struct nix_cq_ctx_s)); in rvu_nix_verify_aq_ctx()
1242 aq_req.cq_mask.cq_err = 0; in rvu_nix_verify_aq_ctx()
1243 aq_req.cq_mask.wrptr = 0; in rvu_nix_verify_aq_ctx()
1244 aq_req.cq_mask.tail = 0; in rvu_nix_verify_aq_ctx()
1245 aq_req.cq_mask.head = 0; in rvu_nix_verify_aq_ctx()
1246 aq_req.cq_mask.avg_level = 0; in rvu_nix_verify_aq_ctx()
1247 aq_req.cq_mask.update_time = 0; in rvu_nix_verify_aq_ctx()
1248 aq_req.cq_mask.substream = 0; in rvu_nix_verify_aq_ctx()
1261 (*(u64 *)((u8 *)&aq_req.cq_mask + word * 8)); in rvu_nix_verify_aq_ctx()
1262 *(u64 *)((u8 *)&aq_req.cq + word * 8) &= in rvu_nix_verify_aq_ctx()
1263 (*(u64 *)((u8 *)&aq_req.cq_mask + word * 8)); in rvu_nix_verify_aq_ctx()
1266 if (memcmp(&aq_req.cq, &aq_rsp.cq, sizeof(struct nix_cq_ctx_s))) in rvu_nix_verify_aq_ctx()
1325 struct nix_aq_enq_req aq_req; in nix_lf_hwctx_disable() local
1333 memset(&aq_req, 0, sizeof(struct nix_aq_enq_req)); in nix_lf_hwctx_disable()
1334 aq_req.hdr.pcifunc = req->hdr.pcifunc; in nix_lf_hwctx_disable()
1337 aq_req.cq.ena = 0; in nix_lf_hwctx_disable()
1338 aq_req.cq_mask.ena = 1; in nix_lf_hwctx_disable()
1339 aq_req.cq.bp_ena = 0; in nix_lf_hwctx_disable()
1340 aq_req.cq_mask.bp_ena = 1; in nix_lf_hwctx_disable()
1345 aq_req.sq.ena = 0; in nix_lf_hwctx_disable()
1346 aq_req.sq_mask.ena = 1; in nix_lf_hwctx_disable()
1351 aq_req.rq.ena = 0; in nix_lf_hwctx_disable()
1352 aq_req.rq_mask.ena = 1; in nix_lf_hwctx_disable()
1357 aq_req.ctype = req->ctype; in nix_lf_hwctx_disable()
1358 aq_req.op = NIX_AQ_INSTOP_WRITE; in nix_lf_hwctx_disable()
1363 aq_req.qidx = qidx; in nix_lf_hwctx_disable()
1364 rc = rvu_nix_aq_enq_inst(rvu, &aq_req, NULL); in nix_lf_hwctx_disable()
3108 struct nix_aq_enq_req aq_req; in nix_blk_setup_mce() local
3111 aq_req.hdr.pcifunc = 0; in nix_blk_setup_mce()
3112 aq_req.ctype = NIX_AQ_CTYPE_MCE; in nix_blk_setup_mce()
3113 aq_req.op = op; in nix_blk_setup_mce()
3114 aq_req.qidx = mce; in nix_blk_setup_mce()
3117 aq_req.mce.op = mce_op; in nix_blk_setup_mce()
3118 aq_req.mce.index = index; in nix_blk_setup_mce()
3119 aq_req.mce.eol = eol; in nix_blk_setup_mce()
3120 aq_req.mce.pf_func = pcifunc; in nix_blk_setup_mce()
3121 aq_req.mce.next = next; in nix_blk_setup_mce()
3124 *(u64 *)(&aq_req.mce_mask) = ~0ULL; in nix_blk_setup_mce()
3126 err = rvu_nix_blk_aq_enq_inst(rvu, nix_hw, &aq_req, NULL); in nix_blk_setup_mce()
5604 struct nix_cn10k_aq_enq_req aq_req; in nix_init_policer_context() local
5607 memset(&aq_req, 0, sizeof(struct nix_cn10k_aq_enq_req)); in nix_init_policer_context()
5609 aq_req.qidx = (prof_idx & 0x3FFF) | (layer << 14); in nix_init_policer_context()
5610 aq_req.ctype = NIX_AQ_CTYPE_BANDPROF; in nix_init_policer_context()
5611 aq_req.op = NIX_AQ_INSTOP_INIT; in nix_init_policer_context()
5615 (struct nix_aq_enq_req *)&aq_req, NULL); in nix_init_policer_context()
5909 struct nix_cn10k_aq_enq_req *aq_req, in nix_aq_context_read() argument
5913 memset(aq_req, 0, sizeof(struct nix_cn10k_aq_enq_req)); in nix_aq_context_read()
5914 aq_req->hdr.pcifunc = pcifunc; in nix_aq_context_read()
5915 aq_req->ctype = ctype; in nix_aq_context_read()
5916 aq_req->op = NIX_AQ_INSTOP_READ; in nix_aq_context_read()
5917 aq_req->qidx = qidx; in nix_aq_context_read()
5920 (struct nix_aq_enq_req *)aq_req, in nix_aq_context_read()
5926 struct nix_cn10k_aq_enq_req *aq_req, in nix_ipolicer_map_leaf_midprofs() argument
5930 memset(aq_req, 0, sizeof(struct nix_cn10k_aq_enq_req)); in nix_ipolicer_map_leaf_midprofs()
5931 aq_req->hdr.pcifunc = 0x00; in nix_ipolicer_map_leaf_midprofs()
5932 aq_req->ctype = NIX_AQ_CTYPE_BANDPROF; in nix_ipolicer_map_leaf_midprofs()
5933 aq_req->op = NIX_AQ_INSTOP_WRITE; in nix_ipolicer_map_leaf_midprofs()
5934 aq_req->qidx = leaf_prof; in nix_ipolicer_map_leaf_midprofs()
5936 aq_req->prof.band_prof_id = mid_prof; in nix_ipolicer_map_leaf_midprofs()
5937 aq_req->prof_mask.band_prof_id = GENMASK(6, 0); in nix_ipolicer_map_leaf_midprofs()
5938 aq_req->prof.hl_en = 1; in nix_ipolicer_map_leaf_midprofs()
5939 aq_req->prof_mask.hl_en = 1; in nix_ipolicer_map_leaf_midprofs()
5942 (struct nix_aq_enq_req *)aq_req, in nix_ipolicer_map_leaf_midprofs()
5950 struct nix_cn10k_aq_enq_req aq_req; in rvu_nix_setup_ratelimit_aggr() local
5964 rc = nix_aq_context_read(rvu, nix_hw, &aq_req, &aq_rsp, pcifunc, in rvu_nix_setup_ratelimit_aggr()
5999 rc = nix_aq_context_read(rvu, nix_hw, &aq_req, &aq_rsp, 0x00, in rvu_nix_setup_ratelimit_aggr()
6017 &aq_req, &aq_rsp, in rvu_nix_setup_ratelimit_aggr()
6048 rc = nix_aq_context_read(rvu, nix_hw, &aq_req, &aq_rsp, 0x00, in rvu_nix_setup_ratelimit_aggr()
6057 memset(&aq_req, 0, sizeof(struct nix_cn10k_aq_enq_req)); in rvu_nix_setup_ratelimit_aggr()
6058 aq_req.hdr.pcifunc = 0x00; in rvu_nix_setup_ratelimit_aggr()
6059 aq_req.qidx = (mid_prof & 0x3FFF) | (BAND_PROF_MID_LAYER << 14); in rvu_nix_setup_ratelimit_aggr()
6060 aq_req.ctype = NIX_AQ_CTYPE_BANDPROF; in rvu_nix_setup_ratelimit_aggr()
6061 aq_req.op = NIX_AQ_INSTOP_WRITE; in rvu_nix_setup_ratelimit_aggr()
6062 memcpy(&aq_req.prof, &aq_rsp.prof, sizeof(struct nix_bandprof_s)); in rvu_nix_setup_ratelimit_aggr()
6063 memset((char *)&aq_req.prof_mask, 0xff, sizeof(struct nix_bandprof_s)); in rvu_nix_setup_ratelimit_aggr()
6065 aq_req.prof.hl_en = 0; in rvu_nix_setup_ratelimit_aggr()
6066 aq_req.prof_mask.hl_en = 1; in rvu_nix_setup_ratelimit_aggr()
6069 (struct nix_aq_enq_req *)&aq_req, NULL); in rvu_nix_setup_ratelimit_aggr()
6079 &aq_req, &aq_rsp, in rvu_nix_setup_ratelimit_aggr()
6093 &aq_req, &aq_rsp, in rvu_nix_setup_ratelimit_aggr()
6115 struct nix_cn10k_aq_enq_req aq_req; in nix_clear_ratelimit_aggr() local
6123 rc = nix_aq_context_read(rvu, nix_hw, &aq_req, &aq_rsp, 0x00, in nix_clear_ratelimit_aggr()