Lines Matching defs:ox

541 	struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
556 ox->ox_stds = kmem_zalloc(sizeof(ohci_soft_td_t *) * nstd,
558 ox->ox_nstd = nstd;
562 for (size_t j = 0; j < ox->ox_nstd; j++) {
567 ox->ox_stds[j] = cur;
568 cur->held = &ox->ox_stds[j];
571 DPRINTFN(10, "xfer=%#jx new std=%#jx held at %#jx", (uintptr_t)ox,
578 ohci_free_stds(sc, ox);
579 kmem_free(ox->ox_stds, sizeof(ohci_soft_td_t *) * nstd);
585 ohci_free_stds(ohci_softc_t *sc, struct ohci_xfer *ox)
588 DPRINTF("ox=%#jx", (uintptr_t)ox, 0, 0, 0);
591 for (size_t i = 0; i < ox->ox_nstd; i++) {
592 ohci_soft_td_t *std = ox->ox_stds[i];
604 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
642 if (j == ox->ox_nstd)
645 next = ox->ox_stds[j++];
1362 struct ohci_xfer *ox, *tmp;
1363 TAILQ_FOREACH_SAFE(ox, &sc->sc_abortingxfers, ox_abnext, tmp) {
1365 (uintptr_t)ox, 0, 0);
1366 ox->ox_abintrs &= ~OHCI_SF;
1367 KASSERT(ox->ox_abintrs == 0);
1368 TAILQ_REMOVE(&sc->sc_abortingxfers, ox, ox_abnext);
2312 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
2313 ox->ox_abintrs = OHCI_SF;
2316 TAILQ_INSERT_TAIL(&sc->sc_abortingxfers, ox, ox_abnext);
2328 while (ox->ox_abintrs != 0) {
2331 (uintptr_t)ox->ox_abintrs, 0);
2703 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
2722 ox->ox_setup = setup;
2723 ox->ox_stat = stat;
2724 ox->ox_nstd = 0;
2725 setup->held = &ox->ox_setup;
2726 stat->held = &ox->ox_stat;
2728 DPRINTFN(10, "xfer=%#jx setup=%#jx held at %#jx", (uintptr_t)ox,
2730 DPRINTFN(10, "xfer=%#jx stat= %#jx held at %#jx", (uintptr_t)ox,
2753 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
2758 DPRINTFN(8, "xfer %#jx nstd %jd", (uintptr_t)xfer, ox->ox_nstd, 0, 0);
2761 if (ox->ox_setup != opipe->tail.td) {
2762 ohci_free_std_locked(sc, ox->ox_setup);
2764 for (size_t i = 0; i < ox->ox_nstd; i++) {
2765 ohci_soft_td_t *std = ox->ox_stds[i];
2770 ohci_free_std_locked(sc, ox->ox_stat);
2773 if (ox->ox_nstd) {
2774 const size_t sz = sizeof(ohci_soft_td_t *) * ox->ox_nstd;
2775 kmem_free(ox->ox_stds, sz);
2791 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
2823 opipe->tail.td = ox->ox_setup;
2824 ox->ox_setup = setup;
2825 setup->held = &ox->ox_setup;
2827 DPRINTFN(10, "xfer=%#jx new setup=%#jx held at %#jx", (uintptr_t)ox,
2830 stat = ox->ox_stat;
2837 DPRINTFN(10, "xfer=%#jx new tail=%#jx held at %#jx", (uintptr_t)ox,
2857 next = ox->ox_stds[0];
2868 std = ox->ox_stds[0];
2880 (uintptr_t)(len != 0 ? ox->ox_stds[0] : NULL), (uintptr_t)stat,
3039 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3043 DPRINTFN(8, "xfer %#jx nstd %jd", (uintptr_t)xfer, ox->ox_nstd, 0, 0);
3046 for (size_t i = 0; i < ox->ox_nstd; i++) {
3047 ohci_soft_td_t *std = ox->ox_stds[i];
3055 if (ox->ox_nstd) {
3056 const size_t sz = sizeof(ohci_soft_td_t *) * ox->ox_nstd;
3057 kmem_free(ox->ox_stds, sz);
3072 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3103 opipe->tail.td = ox->ox_stds[0];
3104 ox->ox_stds[0] = data;
3105 data->held = &ox->ox_stds[0];
3108 (uintptr_t)ox, (uintptr_t)data, (uintptr_t)data->held, 0);
3117 (uintptr_t)ox, (uintptr_t)tail, (uintptr_t)tail->held, 0);
3123 (uintptr_t)ox->ox_stds[0], (uintptr_t)tail, 0);
3204 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3220 ox->ox_nstd = 0;
3234 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3238 DPRINTFN(8, "xfer %#jx nstd %jd", (uintptr_t)xfer, ox->ox_nstd, 0, 0);
3241 for (size_t i = 0; i < ox->ox_nstd; i++) {
3242 ohci_soft_td_t *std = ox->ox_stds[i];
3250 if (ox->ox_nstd) {
3251 const size_t sz = sizeof(ohci_soft_td_t *) * ox->ox_nstd;
3252 kmem_free(ox->ox_stds, sz);
3267 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3295 opipe->tail.td = ox->ox_stds[0];
3296 ox->ox_stds[0] = data;
3297 data->held = &ox->ox_stds[0];
3300 (uintptr_t)ox, (uintptr_t)data, (uintptr_t)data->held, 0);
3309 (uintptr_t)ox, (uintptr_t)tail, (uintptr_t)tail->held, 0);
3314 DPRINTFN(8, "data %#jx tail %#jx", (uintptr_t)ox->ox_stds[0],
3485 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3500 ox->ox_sitds = kmem_zalloc(sizeof(ohci_soft_itd_t *) * nsitd,
3502 ox->ox_nsitd = nsitd;
3511 ox->ox_sitds[i] = sitd;
3512 sitd->held = &ox->ox_sitds[i];
3516 // (uintptr_t)ox, (uintptr_t)tail, (uintptr_t)tail->held, 0);
3522 ohci_free_sitd(sc, ox->ox_sitds[--i]);
3530 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3537 for (size_t i = 0; i < ox->ox_nsitd; i++) {
3538 if (ox->ox_sitds[i] != opipe->tail.itd) {
3539 ohci_free_sitd_locked(sc, ox->ox_sitds[i]);
3544 if (ox->ox_nsitd) {
3545 const size_t sz = sizeof(ohci_soft_itd_t *) * ox->ox_nsitd;
3546 kmem_free(ox->ox_sitds, sz);
3568 struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
3608 opipe->tail.itd = ox->ox_sitds[0];
3609 ox->ox_sitds[0] = sitd;
3610 sitd->held = &ox->ox_sitds[0];
3651 nsitd = ox->ox_sitds[j++];
3653 KASSERT(j < ox->ox_nsitd);
3684 KASSERT(j <= ox->ox_nsitd);