Lines Matching refs:opts
179 struct qm_mcc_initfq opts; in create_caam_req_fq() local
195 memset(&opts, 0, sizeof(opts)); in create_caam_req_fq()
196 opts.we_mask = cpu_to_be16(QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_DESTWQ | in create_caam_req_fq()
199 opts.fqd.fq_ctrl = cpu_to_be16(QM_FQCTRL_CPCSTASH | QM_FQCTRL_CGE); in create_caam_req_fq()
200 qm_fqd_set_destwq(&opts.fqd, qm_channel_caam, 2); in create_caam_req_fq()
201 opts.fqd.context_b = cpu_to_be32(qman_fq_fqid(rsp_fq)); in create_caam_req_fq()
202 qm_fqd_context_a_set64(&opts.fqd, hwdesc); in create_caam_req_fq()
203 opts.fqd.cgid = qipriv.cgr.cgrid; in create_caam_req_fq()
205 ret = qman_init_fq(req_fq, fq_sched_flag, &opts); in create_caam_req_fq()
606 struct qm_mcc_initfq opts; in alloc_rsp_fq_cpu() local
624 memset(&opts, 0, sizeof(opts)); in alloc_rsp_fq_cpu()
625 opts.we_mask = cpu_to_be16(QM_INITFQ_WE_FQCTRL | QM_INITFQ_WE_DESTWQ | in alloc_rsp_fq_cpu()
628 opts.fqd.fq_ctrl = cpu_to_be16(QM_FQCTRL_CTXASTASHING | in alloc_rsp_fq_cpu()
630 qm_fqd_set_destwq(&opts.fqd, qman_affine_channel(cpu), 3); in alloc_rsp_fq_cpu()
631 opts.fqd.cgid = qipriv.cgr.cgrid; in alloc_rsp_fq_cpu()
632 opts.fqd.context_a.stashing.exclusive = QM_STASHING_EXCL_CTX | in alloc_rsp_fq_cpu()
634 qm_fqd_set_stashing(&opts.fqd, 0, 1, 1); in alloc_rsp_fq_cpu()
636 ret = qman_init_fq(fq, QMAN_INITFQ_FLAG_SCHED, &opts); in alloc_rsp_fq_cpu()
652 struct qm_mcc_initcgr opts; in init_cgr() local
663 memset(&opts, 0, sizeof(opts)); in init_cgr()
664 opts.we_mask = cpu_to_be16(QM_CGR_WE_CSCN_EN | QM_CGR_WE_CS_THRES | in init_cgr()
666 opts.cgr.cscn_en = QM_CGR_EN; in init_cgr()
667 opts.cgr.mode = QMAN_CGR_MODE_FRAME; in init_cgr()
668 qm_cgr_cs_thres_set64(&opts.cgr.cs_thres, val, 1); in init_cgr()
670 ret = qman_create_cgr(&qipriv.cgr, QMAN_CGR_FLAG_USE_INIT, &opts); in init_cgr()