Lines Matching refs:qsz
187 nic->tbufRec = malloc(sizeof(struct TbufRecord) * nic->dev.vq[1].qsz); in InitTxFreelist()
193 for (i = 0; i < nic->dev.vq[1].qsz - 1; i++) { in InitTxFreelist()
198 nic->tFreeNum = nic->dev.vq[1].qsz; in InitTxFreelist()
233 nic->dev.vq[0].avail->ring[nic->dev.vq[0].avail->index % nic->dev.vq[0].qsz] = pc->id; in ReleaseRxEntry()
249 nic->rbufRec = calloc(q->qsz, sizeof(struct RbufRecord)); in ConfigRxBuffer()
257 for (i = 0; i < q->qsz; i++) { in ConfigRxBuffer()
279 uint16_t qsz[VIRTQ_NUM_NET]; in ConfigQueue() local
287 qsz[0] = VIRTMMIO_NETIF_DFT_RXQSZ; in ConfigQueue()
288 qsz[1] = VIRTMMIO_NETIF_DFT_TXQSZ; in ConfigQueue()
289 … size = VirtqSize(qsz[0]) + VirtqSize(qsz[1]) + VIRTQ_RXBUF_ALIGN - 1 + qsz[0] * VIRTQ_RXBUF_SIZE; in ConfigQueue()
297 buf = VirtmmioConfigQueue(&nic->dev, (VADDR_T)base, qsz, VIRTQ_NUM_NET); in ConfigQueue()
358 if (add > trans->qsz) { in LowLevelOutput()
359 PRINT_ERR("packet pbuf_clen %u larger than supported %u\n", add - 1, trans->qsz - 1); in LowLevelOutput()
381 trans->avail->ring[trans->avail->index % trans->qsz] = head; in LowLevelOutput()
439 e = &q->used->ring[q->last % q->qsz]; in VirtnetRxHandle()
459 e = &q->used->ring[q->last % q->qsz]; in VirtnetTxHandle()
510 nic->dev.vq[0].avail->index += nic->dev.vq[0].qsz; in LowLevelInit()