Lines Matching refs:fqid
185 __be32 fqid; /* 24-bit */ member
230 __be32 fqid; /* 24-bit */ member
509 DPAA_ASSERT(!(be32_to_cpu(eqcr->cursor->fqid) & ~QM_FQID_MASK)); in eqcr_commit_checks()
1137 static struct qman_fq *fqid_to_fq(u32 fqid) in fqid_to_fq() argument
1139 return idx_to_fq(fqid * 2); in fqid_to_fq()
1798 int qman_create_fq(u32 fqid, u32 flags, struct qman_fq *fq) in qman_create_fq() argument
1801 int ret = qman_alloc_fqid(&fqid); in qman_create_fq()
1806 fq->fqid = fqid; in qman_create_fq()
1812 if (fqid == 0 || fqid >= num_fqids) { in qman_create_fq()
1813 WARN(1, "bad fqid %d\n", fqid); in qman_create_fq()
1817 fq->idx = fqid * 2; in qman_create_fq()
1838 qman_release_fqid(fq->fqid); in qman_destroy_fq()
1852 return fq->fqid; in qman_fq_fqid()
1890 qm_fqid_set(&mcc->fq, fq->fqid); in qman_init_fq()
1990 qm_fqid_set(&mcc->fq, fq->fqid); in qman_schedule_fq()
2033 qm_fqid_set(&mcc->fq, fq->fqid); in qman_retire_fq()
2076 qm_fqid_set(&msg.fq, fq->fqid); in qman_retire_fq()
2112 qm_fqid_set(&mcc->fq, fq->fqid); in qman_oos_fq()
2138 qm_fqid_set(&mcc->fq, fq->fqid); in qman_query_fq()
2163 qm_fqid_set(&mcc->fq, fq->fqid); in qman_query_fq_np()
2281 vdqcr = (vdqcr & ~QM_VDQCR_FQID_MASK) | fq->fqid; in qman_volatile_dequeue()
2345 qm_fqid_set(eq, fq->fqid); in qman_enqueue()
2642 static int _qm_dqrr_consume_and_match(struct qm_portal *p, u32 fqid, int s, in _qm_dqrr_consume_and_match() argument
2656 if (qm_fqid_get(dqrr) == fqid && (dqrr->stat & s)) in _qm_dqrr_consume_and_match()
2678 int qman_shutdown_fq(u32 fqid) in qman_shutdown_fq() argument
2692 qm_fqid_set(&mcc->fq, fqid); in qman_shutdown_fq()
2707 qm_fqid_set(&mcc->fq, fqid); in qman_shutdown_fq()
2738 qm_fqid_set(&mcc->fq, fqid); in qman_shutdown_fq()
2771 fqid, channel); in qman_shutdown_fq()
2801 fqid, res); in qman_shutdown_fq()
2819 u32 vdqcr = fqid | QM_VDQCR_NUMFRAMES_SET(3); in qman_shutdown_fq()
2826 } while (!qm_dqrr_drain_wait(&p->p, fqid, FQ_EMPTY)); in qman_shutdown_fq()
2835 qm_fqid_set(&mcc->fq, fqid); in qman_shutdown_fq()
2846 fqid, mcr->result); in qman_shutdown_fq()
2855 qm_fqid_set(&mcc->fq, fqid); in qman_shutdown_fq()
2866 fqid, mcr->result); in qman_shutdown_fq()
2930 int qman_release_fqid(u32 fqid) in qman_release_fqid() argument
2932 int ret = qman_shutdown_fq(fqid); in qman_release_fqid()
2935 pr_debug("FQID %d leaked\n", fqid); in qman_release_fqid()
2939 gen_pool_free(qm_fqalloc, fqid | DPAA_GENALLOC_OFF, 1); in qman_release_fqid()
2953 .fqid = QM_FQID_RANGE_START in qpool_cleanup()
2975 err = qman_shutdown_fq(fq.fqid); in qpool_cleanup()
2985 fq.fqid++; in qpool_cleanup()
3011 .fqid = QM_FQID_RANGE_START in cgr_cleanup()
3034 cgrid, fq.fqid); in cgr_cleanup()
3039 fq.fqid++; in cgr_cleanup()