Lines Matching refs:offs
413 pqh->offs + offsetof(uhci_qh_t, qh_hlink),
484 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
496 usb_syncmem(&lsqh->dma, lsqh->offs, sizeof(lsqh->qh),
508 usb_syncmem(&bsqh->dma, bsqh->offs, sizeof(bsqh->qh),
520 usb_syncmem(&chsqh->dma, chsqh->offs, sizeof(chsqh->qh),
532 usb_syncmem(&clsqh->dma, clsqh->offs, sizeof(clsqh->qh),
550 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
556 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
807 usb_syncmem(&p->dma, p->offs, sizeof(p->td),
848 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
855 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh), BUS_DMASYNC_PREREAD);
898 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
904 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh), BUS_DMASYNC_PREREAD);
927 usb_syncmem(&td->dma, td->offs + offsetof(uhci_td_t, td_link),
932 usb_syncmem(&td->dma, td->offs + offsetof(uhci_td_t, td_link),
1102 sc->sc_last_qh->offs + offsetof(uhci_qh_t, qh_hlink),
1121 sc->sc_last_qh->offs + offsetof(uhci_qh_t, qh_hlink),
1139 offs + offsetof(uhci_qh_t, qh_hlink),
1144 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
1149 usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
1183 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
1187 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
1192 sqh->offs + offsetof(uhci_qh_t, qh_elink),
1199 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
1203 usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
1222 usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
1226 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
1230 usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
1248 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
1252 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
1257 sqh->offs + offsetof(uhci_qh_t, qh_elink),
1263 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
1267 usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
1287 usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
1291 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
1295 usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
1314 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
1320 sqh->offs + offsetof(uhci_qh_t, qh_elink),
1326 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
1330 usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
1522 lstd->offs + offsetof(uhci_td_t, td_status),
1527 lstd->offs + offsetof(uhci_td_t, td_status),
1547 std->offs + offsetof(uhci_td_t, td_status),
1552 std->offs + offsetof(uhci_td_t, td_status),
1583 usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
1590 std->offs + offsetof(uhci_td_t, td_token),
1662 std->offs + offsetof(uhci_td_t, td_status),
1689 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
1826 int i, offs;
1843 offs = i * UHCI_STD_SIZE;
1844 std = KERNADDR(&dma, offs);
1845 std->physaddr = DMAADDR(&dma, offs);
1847 std->offs = offs;
1892 int i, offs;
1909 offs = i * UHCI_SQH_SIZE;
1910 sqh = KERNADDR(&dma, offs);
1911 sqh->physaddr = DMAADDR(&dma, offs);
1913 sqh->offs = offs;
1951 p->offs + offsetof(uhci_td_t, td_link),
1956 p->offs + offsetof(uhci_td_t, td_link),
1962 p->offs + offsetof(uhci_td_t, td_link),
2080 size_t i, offs;
2102 for (offs = i = 0; len != 0 && i < uxfer->ux_nstd; i++, prev = std) {
2106 const bus_addr_t sbp = DMAADDR(dma, offs);
2107 const bus_addr_t ebp = DMAADDR(dma, offs + l - 1);
2109 l = PAGE_SIZE - (DMAADDR(dma, offs) & PAGE_MASK);
2119 usb_syncmem(&prev->dma, prev->offs, sizeof(prev->td),
2123 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
2135 std->td.td_buffer = htole32(DMAADDR(dma, offs));
2139 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
2143 offs += l;
2167 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
2176 usb_syncmem(&prev->dma, prev->offs, sizeof(prev->td),
2291 dataend->offs + offsetof(uhci_td_t, td_status),
2373 std->offs + offsetof(uhci_td_t, td_status),
2378 std->offs + offsetof(uhci_td_t, td_status),
2520 dataend->offs + offsetof(uhci_td_t, td_link),
2538 usb_syncmem(&setup->dma, setup->offs, sizeof(setup->td),
2548 usb_syncmem(&stat->dma, stat->offs, sizeof(stat->td),
2700 dataend->offs + offsetof(uhci_td_t, td_status),
2720 sqh->offs + offsetof(uhci_qh_t, qh_elink),
2842 uint32_t buf, len, status, offs;
2879 offs = 0;
2885 buf = DMAADDR(&xfer->ux_dmabuf, offs);
2894 usb_syncmem(&xfer->ux_dmabuf, offs, len,
2901 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
2911 offs += len;
2913 DMAADDR(&xfer->ux_dmabuf, offs - 1);
2961 std->offs + offsetof(uhci_td_t, td_status),
2966 std->offs + offsetof(uhci_td_t, td_status),
2970 std->offs + offsetof(uhci_td_t, td_token),
3017 std->offs + offsetof(uhci_td_t, td_status),
3022 std->offs + offsetof(uhci_td_t, td_status),
3043 std->offs + offsetof(uhci_td_t, td_link),
3048 vstd->offs + offsetof(uhci_td_t, td_link),
3087 usb_syncmem(&std->dma, std->offs, sizeof(std->td),
3099 vstd->offs + offsetof(uhci_td_t, td_link),
3105 std->offs + offsetof(uhci_td_t, td_link),
3111 vstd->offs + offsetof(uhci_td_t, td_link),
3157 ux->ux_stdend->offs + offsetof(uhci_td_t, td_status),
3162 ux->ux_stdend->offs + offsetof(uhci_td_t, td_status),
3190 sqh->offs + offsetof(uhci_qh_t, qh_elink),
3267 usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
3271 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
3275 usb_syncmem(&eqh->dma, eqh->offs + offsetof(uhci_qh_t, qh_hlink),
3293 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_elink),
3299 sqh->offs + offsetof(uhci_qh_t, qh_elink),
3306 usb_syncmem(&sqh->dma, sqh->offs + offsetof(uhci_qh_t, qh_hlink),
3311 usb_syncmem(&pqh->dma, pqh->offs + offsetof(uhci_qh_t, qh_hlink),
3325 u_int bestbw, bw, bestoffs, offs;
3348 for (bestoffs = offs = 0, bestbw = ~0; offs < ival; offs++) {
3350 bw += sc->sc_vframes[MOD(i * ival + offs)].bandwidth;
3353 bestoffs = offs;
3356 DPRINTF("bw=%jd offs=%jd", bestbw, bestoffs, 0, 0);
3362 sqh->offs + offsetof(uhci_qh_t, qh_elink),