Lines Matching refs:iaq
318 cfg_itype_and_nqueues(struct adapter *sc, struct intrs_and_queues *iaq)
330 bzero(iaq, sizeof(*iaq));
344 iaq->intr_type = itype;
359 iaq->nirq = T4VF_EXTRA_INTR;
366 iq_avail = vfres->niqflint - iaq->nirq;
380 if (iaq->nirq + nports <= navail) {
381 if (iq_avail > navail - iaq->nirq)
382 iq_avail = navail - iaq->nirq;
435 iaq->nirq += nrxq;
436 iaq->ntxq = ntxq;
437 iaq->nrxq = nrxq;
438 if (iaq->nirq <= navail &&
439 (itype != INTR_MSI || powerof2(iaq->nirq))) {
440 navail = iaq->nirq;
448 itype, rc, iaq->nirq, navail);
451 if (navail == iaq->nirq) {
458 iaq->nirq = 1;
459 navail = iaq->nirq;
467 itype, rc, iaq->nirq, navail);
485 struct intrs_and_queues iaq;
690 rc = cfg_itype_and_nqueues(sc, &iaq);
694 sc->intr_type = iaq.intr_type;
695 sc->intr_count = iaq.nirq;
698 s->nrxq = sc->params.nports * iaq.nrxq;
699 s->ntxq = sc->params.nports * iaq.ntxq;
741 vi->nrxq = j == 0 ? iaq.nrxq: 1;
742 vi->ntxq = j == 0 ? iaq.ntxq: 1;