Lines Matching refs:aq

77 	struct nix_cn10k_aq_enq_req *aq;  in cn10k_sq_aq_init()  local
81 aq = otx2_mbox_alloc_msg_nix_cn10k_aq_enq(&pfvf->mbox); in cn10k_sq_aq_init()
82 if (!aq) in cn10k_sq_aq_init()
85 aq->sq.cq = pfvf->hw.rx_queues + qidx; in cn10k_sq_aq_init()
86 aq->sq.max_sqe_size = NIX_MAXSQESZ_W16; /* 128 byte */ in cn10k_sq_aq_init()
87 aq->sq.cq_ena = 1; in cn10k_sq_aq_init()
88 aq->sq.ena = 1; in cn10k_sq_aq_init()
89 aq->sq.smq = otx2_get_smq_idx(pfvf, qidx); in cn10k_sq_aq_init()
90 aq->sq.smq_rr_weight = mtu_to_dwrr_weight(pfvf, pfvf->tx_max_pktlen); in cn10k_sq_aq_init()
91 aq->sq.default_chan = pfvf->hw.tx_chan_base; in cn10k_sq_aq_init()
92 aq->sq.sqe_stype = NIX_STYPE_STF; /* Cache SQB */ in cn10k_sq_aq_init()
93 aq->sq.sqb_aura = sqb_aura; in cn10k_sq_aq_init()
94 aq->sq.sq_int_ena = NIX_SQINT_BITS; in cn10k_sq_aq_init()
95 aq->sq.qint_idx = 0; in cn10k_sq_aq_init()
99 aq->sq.cq_limit = ((SEND_CQ_SKID * 256) / (pfvf->qset.sqe_cnt)); in cn10k_sq_aq_init()
102 aq->qidx = qidx; in cn10k_sq_aq_init()
103 aq->ctype = NIX_AQ_CTYPE_SQ; in cn10k_sq_aq_init()
104 aq->op = NIX_AQ_INSTOP_INIT; in cn10k_sq_aq_init()
302 struct nix_cn10k_aq_enq_req *aq; in cn10k_map_unmap_rq_policer() local
304 aq = otx2_mbox_alloc_msg_nix_cn10k_aq_enq(&pfvf->mbox); in cn10k_map_unmap_rq_policer()
305 if (!aq) in cn10k_map_unmap_rq_policer()
310 aq->rq.policer_ena = 1; in cn10k_map_unmap_rq_policer()
312 aq->rq.policer_ena = 0; in cn10k_map_unmap_rq_policer()
313 aq->rq_mask.policer_ena = 1; in cn10k_map_unmap_rq_policer()
315 aq->rq.band_prof_id = policer; in cn10k_map_unmap_rq_policer()
316 aq->rq_mask.band_prof_id = GENMASK(9, 0); in cn10k_map_unmap_rq_policer()
319 aq->qidx = rq_idx; in cn10k_map_unmap_rq_policer()
320 aq->ctype = NIX_AQ_CTYPE_RQ; in cn10k_map_unmap_rq_policer()
321 aq->op = NIX_AQ_INSTOP_WRITE; in cn10k_map_unmap_rq_policer()
361 struct nix_cn10k_aq_enq_req *aq; in cn10k_set_ipolicer_rate() local
371 aq = otx2_mbox_alloc_msg_nix_cn10k_aq_enq(&pfvf->mbox); in cn10k_set_ipolicer_rate()
372 if (!aq) in cn10k_set_ipolicer_rate()
376 aq->prof.icolor = 0x03; in cn10k_set_ipolicer_rate()
377 aq->prof_mask.icolor = 0x03; in cn10k_set_ipolicer_rate()
380 aq->prof.cir_exponent = rate_exp; in cn10k_set_ipolicer_rate()
381 aq->prof_mask.cir_exponent = 0x1F; in cn10k_set_ipolicer_rate()
383 aq->prof.cir_mantissa = rate_mantissa; in cn10k_set_ipolicer_rate()
384 aq->prof_mask.cir_mantissa = 0xFF; in cn10k_set_ipolicer_rate()
386 aq->prof.cbs_exponent = burst_exp; in cn10k_set_ipolicer_rate()
387 aq->prof_mask.cbs_exponent = 0x1F; in cn10k_set_ipolicer_rate()
389 aq->prof.cbs_mantissa = burst_mantissa; in cn10k_set_ipolicer_rate()
390 aq->prof_mask.cbs_mantissa = 0xFF; in cn10k_set_ipolicer_rate()
392 aq->prof.rdiv = rdiv; in cn10k_set_ipolicer_rate()
393 aq->prof_mask.rdiv = 0xF; in cn10k_set_ipolicer_rate()
409 aq->prof.adjust_exponent = 1; in cn10k_set_ipolicer_rate()
410 aq->prof_mask.adjust_exponent = 0x1F; in cn10k_set_ipolicer_rate()
412 aq->prof.adjust_mantissa = 384; in cn10k_set_ipolicer_rate()
413 aq->prof_mask.adjust_mantissa = 0x1FF; in cn10k_set_ipolicer_rate()
415 aq->prof.lmode = 0x1; in cn10k_set_ipolicer_rate()
416 aq->prof_mask.lmode = 0x1; in cn10k_set_ipolicer_rate()
422 aq->prof.meter_algo = 2; in cn10k_set_ipolicer_rate()
423 aq->prof_mask.meter_algo = 0x3; in cn10k_set_ipolicer_rate()
425 aq->prof.rc_action = NIX_RX_BAND_PROF_ACTIONRESULT_DROP; in cn10k_set_ipolicer_rate()
426 aq->prof_mask.rc_action = 0x3; in cn10k_set_ipolicer_rate()
428 aq->prof.yc_action = NIX_RX_BAND_PROF_ACTIONRESULT_PASS; in cn10k_set_ipolicer_rate()
429 aq->prof_mask.yc_action = 0x3; in cn10k_set_ipolicer_rate()
431 aq->prof.gc_action = NIX_RX_BAND_PROF_ACTIONRESULT_PASS; in cn10k_set_ipolicer_rate()
432 aq->prof_mask.gc_action = 0x3; in cn10k_set_ipolicer_rate()
439 aq->prof.peir_exponent = 24; in cn10k_set_ipolicer_rate()
440 aq->prof_mask.peir_exponent = 0x1F; in cn10k_set_ipolicer_rate()
442 aq->prof.peir_mantissa = 0; in cn10k_set_ipolicer_rate()
443 aq->prof_mask.peir_mantissa = 0xFF; in cn10k_set_ipolicer_rate()
445 aq->prof.pebs_exponent = 24; in cn10k_set_ipolicer_rate()
446 aq->prof_mask.pebs_exponent = 0x1F; in cn10k_set_ipolicer_rate()
448 aq->prof.pebs_mantissa = 0; in cn10k_set_ipolicer_rate()
449 aq->prof_mask.pebs_mantissa = 0xFF; in cn10k_set_ipolicer_rate()
452 aq->qidx = profile; in cn10k_set_ipolicer_rate()
453 aq->ctype = NIX_AQ_CTYPE_BANDPROF; in cn10k_set_ipolicer_rate()
454 aq->op = NIX_AQ_INSTOP_WRITE; in cn10k_set_ipolicer_rate()