Home | History | Annotate | Download | only in gemini

Lines Matching defs:rptr

569 	size_t rptr;
581 aprint_debug("gmac_hwqueue_sync(%p): entry rptr old=%u new=%u free=%u(%u)\n",
586 for (rptr = old_rptr;
587 rptr != hwq->hwq_rptr;
588 rptr = (rptr + 1) & (hwq->hwq_size - 1)) {
589 gmac_desc_t * const d = hwq->hwq_base + rptr;
592 sizeof(gmac_desc_t [hwq->hwq_qoff + rptr]),
599 sizeof(gmac_desc_t [hwq->hwq_qoff + rptr]),
604 hwq, rptr, d, d->d_desc0, d->d_desc1,
607 sizeof(gmac_desc_t [hwq->hwq_qoff + rptr]),
613 aprint_debug("gmac_hwqueue_sync(%p): exit rptr old=%u new=%u free=%u(%u)\n",
623 uint16_t rptr = bus_space_read_4(hwq->hwq_iot, hwq->hwq_qrwptr_ioh, 0);
629 aprint_debug("gmac_hwqueue_produce(%p, %zu): rptr=%u(%u) wptr old=%u",
630 hwq, count, hwq->hwq_rptr, rptr, hwq->hwq_wptr);
666 * (don't bother writing the rptr since it's RO).
882 uint16_t rptr;
891 rptr = (v >> 0) & 0xffff;
893 KASSERT(rptr == hwq->hwq_rptr);
894 if (rptr == hwq->hwq_wptr)
898 for (; rptr != hwq->hwq_wptr; rptr = (rptr + 1) & (hwq->hwq_size - 1)) {
900 sizeof(gmac_desc_t [hwq->hwq_qoff + rptr]),
903 d.d_desc0 = le32toh(hwq->hwq_base[rptr].d_desc0);
904 d.d_desc1 = le32toh(hwq->hwq_base[rptr].d_desc1);
905 d.d_bufaddr = le32toh(hwq->hwq_base[rptr].d_bufaddr);
906 d.d_desc3 = le32toh(hwq->hwq_base[rptr].d_desc3);
907 hwq->hwq_base[rptr].d_desc0 = 0;
908 hwq->hwq_base[rptr].d_desc1 = 0;
909 hwq->hwq_base[rptr].d_bufaddr = 0xdeadbeef;
910 hwq->hwq_base[rptr].d_desc3 = 0;
912 sizeof(gmac_desc_t [hwq->hwq_qoff + rptr]),
916 aprint_debug("gmac_hwqueue_consume(%p): rptr=%u\n",
917 hwq, rptr);
919 rptr = (rptr + 1) & (hwq->hwq_size - 1);
926 * Update hardware's copy of rptr. (wptr is RO).
928 aprint_debug("gmac_hwqueue_consume(%p): rptr old=%u new=%u wptr=%u\n",
929 hwq, hwq->hwq_rptr, rptr, hwq->hwq_wptr);
930 bus_space_write_4(hwq->hwq_iot, hwq->hwq_qrwptr_ioh, 0, rptr);
931 hwq->hwq_rptr = rptr;
1074 aprint_debug("gmac_hwqueue_create: %p: qrwptr=%zu(%#zx) wptr=%u rptr=%u"