std 396 dev/usb/ohci.c ohci_soft_td_t *std; std 411 dev/usb/ohci.c std = KERNADDR(&dma, offs); std 412 dev/usb/ohci.c std->physaddr = DMAADDR(&dma, offs); std 413 dev/usb/ohci.c std->nexttd = sc->sc_freetds; std 414 dev/usb/ohci.c sc->sc_freetds = std; std 420 dev/usb/ohci.c std = sc->sc_freetds; std 421 dev/usb/ohci.c sc->sc_freetds = std->nexttd; std 422 dev/usb/ohci.c memset(&std->td, 0, sizeof(ohci_td_t)); std 423 dev/usb/ohci.c std->nexttd = NULL; std 424 dev/usb/ohci.c std->xfer = NULL; std 425 dev/usb/ohci.c ohci_hash_add_td(sc, std); std 428 dev/usb/ohci.c return (std); std 432 dev/usb/ohci.c ohci_free_std(ohci_softc_t *sc, ohci_soft_td_t *std) std 437 dev/usb/ohci.c ohci_hash_rem_td(sc, std); std 438 dev/usb/ohci.c std->nexttd = sc->sc_freetds; std 439 dev/usb/ohci.c sc->sc_freetds = std; std 539 dev/usb/ohci.c ohci_free_std_chain(ohci_softc_t *sc, ohci_soft_td_t *std, std 544 dev/usb/ohci.c for (; std != stdend; std = p) { std 545 dev/usb/ohci.c p = std->nexttd; std 546 dev/usb/ohci.c ohci_free_std(sc, std); std 1263 dev/usb/ohci.c ohci_soft_td_t *std, *sdone, **p; std 1267 dev/usb/ohci.c std = ohci_hash_find_td(sc, done); std 1268 dev/usb/ohci.c if (std != NULL) { std 1269 dev/usb/ohci.c std->dnext = sdone; std 1270 dev/usb/ohci.c done = letoh32(std->td.td_nexttd); std 1271 dev/usb/ohci.c sdone = std; std 1272 dev/usb/ohci.c DPRINTFN(10,("add TD %p\n", std)); std 1301 dev/usb/ohci.c ohci_soft_td_t *std, *sdone, *stdnext; std 1327 dev/usb/ohci.c for (std = sdone; std; std = stdnext) { std 1328 dev/usb/ohci.c xfer = std->xfer; std 1329 dev/usb/ohci.c stdnext = std->dnext; std 1331 dev/usb/ohci.c std, xfer, xfer ? xfer->hcpriv : 0)); std 1350 dev/usb/ohci.c len = std->len; std 1351 dev/usb/ohci.c if (std->td.td_cbp != 0) std 1352 dev/usb/ohci.c len -= letoh32(std->td.td_be) - std 1353 dev/usb/ohci.c letoh32(std->td.td_cbp) + 1; std 1355 dev/usb/ohci.c std->flags)); std 1356 dev/usb/ohci.c if (std->flags & OHCI_ADD_LEN) std 1359 dev/usb/ohci.c cc = OHCI_TD_GET_CC(letoh32(std->td.td_flags)); std 1361 dev/usb/ohci.c if (std->flags & OHCI_CALL_DONE) { std 1367 dev/usb/ohci.c ohci_free_std(sc, std); std 1378 dev/usb/ohci.c OHCI_TD_GET_CC(letoh32(std->td.td_flags)), std 1379 dev/usb/ohci.c ohci_cc_strs[OHCI_TD_GET_CC(letoh32(std->td.td_flags))])); std 1382 dev/usb/ohci.c for (p = std; p->xfer == xfer; p = n) { std 1700 dev/usb/ohci.c ohci_soft_td_t *std = stat; std 1703 dev/usb/ohci.c std, &stat); std 1708 dev/usb/ohci.c std->td.td_flags &= htole32(~OHCI_TD_TOGGLE_MASK); std 1709 dev/usb/ohci.c std->td.td_flags |= htole32(OHCI_TD_TOGGLE_1); std 1827 dev/usb/ohci.c ohci_hash_add_td(ohci_softc_t *sc, ohci_soft_td_t *std) std 1829 dev/usb/ohci.c int h = HASH(std->physaddr); std 1833 dev/usb/ohci.c LIST_INSERT_HEAD(&sc->sc_hash_tds[h], std, hnext); std 1838 dev/usb/ohci.c ohci_hash_rem_td(ohci_softc_t *sc, ohci_soft_td_t *std) std 1842 dev/usb/ohci.c LIST_REMOVE(std, hnext); std 1849 dev/usb/ohci.c ohci_soft_td_t *std; std 1851 dev/usb/ohci.c for (std = LIST_FIRST(&sc->sc_hash_tds[h]); std 1852 dev/usb/ohci.c std != NULL; std 1853 dev/usb/ohci.c std = LIST_NEXT(std, hnext)) std 1854 dev/usb/ohci.c if (std->physaddr == a) std 1855 dev/usb/ohci.c return (std); std 1933 dev/usb/ohci.c ohci_dump_tds(ohci_soft_td_t *std) std 1935 dev/usb/ohci.c for (; std; std = std->nexttd) std 1936 dev/usb/ohci.c ohci_dump_td(std); std 1940 dev/usb/ohci.c ohci_dump_td(ohci_soft_td_t *std) std 1944 dev/usb/ohci.c bitmask_snprintf((u_int32_t)letoh32(std->td.td_flags), std 1950 dev/usb/ohci.c std, (u_long)std->physaddr, sbuf, std 1951 dev/usb/ohci.c OHCI_TD_GET_DI(letoh32(std->td.td_flags)), std 1952 dev/usb/ohci.c OHCI_TD_GET_EC(letoh32(std->td.td_flags)), std 1953 dev/usb/ohci.c OHCI_TD_GET_CC(letoh32(std->td.td_flags)), std 1954 dev/usb/ohci.c (u_long)letoh32(std->td.td_cbp), std 1955 dev/usb/ohci.c (u_long)letoh32(std->td.td_nexttd), std 1956 dev/usb/ohci.c (u_long)letoh32(std->td.td_be)); std 2020 dev/usb/ohci.c ohci_soft_td_t *std; std 2034 dev/usb/ohci.c std = NULL; std 2065 dev/usb/ohci.c std = ohci_alloc_std(sc); std 2066 dev/usb/ohci.c if (std == NULL) std 2068 dev/usb/ohci.c opipe->tail.td = std; std 2069 dev/usb/ohci.c tdphys = std->physaddr; std 2113 dev/usb/ohci.c if (std != NULL) std 2114 dev/usb/ohci.c ohci_free_std(sc, std); std 2140 dev/usb/ohci.c ohci_soft_td_t *std; std 2141 dev/usb/ohci.c std = ohci_hash_find_td(sc, letoh32(sed->ed.ed_headp)); std 2146 dev/usb/ohci.c pipe, std); std 2152 dev/usb/ohci.c if (std) std 2153 dev/usb/ohci.c ohci_dump_td(std); std 375 dev/usb/uhci.c uhci_soft_td_t *std; std 411 dev/usb/uhci.c std = uhci_alloc_std(sc); std 412 dev/usb/uhci.c if (std == NULL) std 414 dev/usb/uhci.c std->link.std = NULL; std 415 dev/usb/uhci.c std->td.td_link = htole32(UHCI_PTR_T); std 416 dev/usb/uhci.c std->td.td_status = htole32(0); /* inactive */ std 417 dev/usb/uhci.c std->td.td_token = htole32(0); std 418 dev/usb/uhci.c std->td.td_buffer = htole32(0); std 426 dev/usb/uhci.c lsqh->elink = std; std 427 dev/usb/uhci.c lsqh->qh.qh_elink = htole32(std->physaddr | UHCI_PTR_TD); std 466 dev/usb/uhci.c std = uhci_alloc_std(sc); std 468 dev/usb/uhci.c if (std == NULL || sqh == NULL) std 470 dev/usb/uhci.c std->link.sqh = sqh; std 471 dev/usb/uhci.c std->td.td_link = htole32(sqh->physaddr | UHCI_PTR_QH); std 472 dev/usb/uhci.c std->td.td_status = htole32(UHCI_TD_IOS); /* iso, inactive */ std 473 dev/usb/uhci.c std->td.td_token = htole32(0); std 474 dev/usb/uhci.c std->td.td_buffer = htole32(0); std 479 dev/usb/uhci.c sc->sc_vframes[i].htd = std; std 480 dev/usb/uhci.c sc->sc_vframes[i].etd = std; std 486 dev/usb/uhci.c sc->sc_pframes[j] = htole32(std->physaddr); std 849 dev/usb/uhci.c uhci_dump_tds(uhci_soft_td_t *std) std 853 dev/usb/uhci.c for(td = std; td != NULL; td = td->link.std) { std 1272 dev/usb/uhci.c uhci_soft_td_t *std, *lstd; std 1304 dev/usb/uhci.c for (std = ii->stdstart; std != lstd; std = std->link.std) { std 1305 dev/usb/uhci.c status = letoh32(std->td.td_status); std 1315 dev/usb/uhci.c UHCI_TD_GET_MAXLEN(letoh32(std->td.td_token))) std 1334 dev/usb/uhci.c uhci_soft_td_t *std; std 1368 dev/usb/uhci.c std = stds[n]; std 1372 dev/usb/uhci.c uhci_dump_td(std); std 1377 dev/usb/uhci.c status = letoh32(std->td.td_status); std 1397 dev/usb/uhci.c for (std = ii->stdstart; std != NULL; std = std->link.std) { std 1398 dev/usb/uhci.c nstatus = letoh32(std->td.td_status); std 1403 dev/usb/uhci.c if (UHCI_TD_GET_PID(letoh32(std->td.td_token)) != std 1417 dev/usb/uhci.c if (std != NULL) std 1418 dev/usb/uhci.c upipe->nexttoggle = UHCI_TD_GET_DT(letoh32(std->td.td_token)); std 1597 dev/usb/uhci.c uhci_soft_td_t *std; std 1610 dev/usb/uhci.c std = KERNADDR(&dma, offs); std 1611 dev/usb/uhci.c std->physaddr = DMAADDR(&dma, offs); std 1612 dev/usb/uhci.c std->link.std = sc->sc_freetds; std 1613 dev/usb/uhci.c sc->sc_freetds = std; std 1616 dev/usb/uhci.c std = sc->sc_freetds; std 1617 dev/usb/uhci.c sc->sc_freetds = std->link.std; std 1618 dev/usb/uhci.c memset(&std->td, 0, sizeof(uhci_td_t)); std 1619 dev/usb/uhci.c return std; std 1623 dev/usb/uhci.c uhci_free_std(uhci_softc_t *sc, uhci_soft_td_t *std) std 1627 dev/usb/uhci.c if (letoh32(std->td.td_token) == TD_IS_FREE) { std 1628 dev/usb/uhci.c printf("uhci_free_std: freeing free TD %p\n", std); std 1631 dev/usb/uhci.c std->td.td_token = htole32(TD_IS_FREE); std 1633 dev/usb/uhci.c std->link.std = sc->sc_freetds; std 1634 dev/usb/uhci.c sc->sc_freetds = std; std 1673 dev/usb/uhci.c uhci_free_std_chain(uhci_softc_t *sc, uhci_soft_td_t *std, std 1678 dev/usb/uhci.c for (; std != stdend; std = p) { std 1679 dev/usb/uhci.c p = std->link.std; std 1680 dev/usb/uhci.c uhci_free_std(sc, std); std 1731 dev/usb/uhci.c p->link.std = lastp; std 1893 dev/usb/uhci.c uhci_soft_td_t *std; std 1918 dev/usb/uhci.c for (std = ii->stdstart; std != NULL; std = std->link.std) std 1919 dev/usb/uhci.c std->td.td_status &= htole32(~(UHCI_TD_ACTIVE | UHCI_TD_IOC)); std 2194 dev/usb/uhci.c dataend->link.std = stat; std 2203 dev/usb/uhci.c setup->link.std = next; std 2210 dev/usb/uhci.c stat->link.std = NULL; std 2248 dev/usb/uhci.c uhci_soft_td_t *std; std 2254 dev/usb/uhci.c for (std = sc->sc_vframes[0].htd, link = 0; std 2256 dev/usb/uhci.c std = std->link.std) { std 2257 dev/usb/uhci.c link = letoh32(std->td.td_link); std 2258 dev/usb/uhci.c uhci_dump_td(std); std 2260 dev/usb/uhci.c sxqh = (uhci_soft_qh_t *)std; std 2317 dev/usb/uhci.c uhci_soft_td_t *std; std 2356 dev/usb/uhci.c std = iso->stds[next]; std 2360 dev/usb/uhci.c std->td.td_buffer = htole32(buf); std 2363 dev/usb/uhci.c std->td.td_status = htole32(status); std 2364 dev/usb/uhci.c std->td.td_token &= htole32(~UHCI_TD_MAXLEN_MASK); std 2365 dev/usb/uhci.c std->td.td_token |= htole32(UHCI_TD_SET_MAXLEN(len)); std 2369 dev/usb/uhci.c uhci_dump_td(std); std 2435 dev/usb/uhci.c uhci_soft_td_t *std; std 2455 dev/usb/uhci.c std = stds[n]; std 2456 dev/usb/uhci.c std->td.td_status &= htole32(~(UHCI_TD_ACTIVE | UHCI_TD_IOC)); std 2457 dev/usb/uhci.c len = UHCI_TD_GET_MAXLEN(letoh32(std->td.td_token)); std 2482 dev/usb/uhci.c uhci_soft_td_t *std, *vstd; std 2500 dev/usb/uhci.c std = iso->stds[i]; std 2502 dev/usb/uhci.c vstd != NULL && vstd->link.std != std; std 2503 dev/usb/uhci.c vstd = vstd->link.std) std 2507 dev/usb/uhci.c printf("uhci_device_isoc_close: %p not found\n", std); std 2511 dev/usb/uhci.c vstd->link = std->link; std 2512 dev/usb/uhci.c vstd->td.td_link = std->td.td_link; std 2513 dev/usb/uhci.c uhci_free_std(sc, std); std 2529 dev/usb/uhci.c uhci_soft_td_t *std, *vstd; std 2543 dev/usb/uhci.c std = uhci_alloc_std(sc); std 2544 dev/usb/uhci.c if (std == 0) std 2546 dev/usb/uhci.c std->td.td_status = htole32(UHCI_TD_IOS); /* iso, inactive */ std 2547 dev/usb/uhci.c std->td.td_token = htole32(token); std 2548 dev/usb/uhci.c iso->stds[i] = std; std 2554 dev/usb/uhci.c std = iso->stds[i]; std 2556 dev/usb/uhci.c std->link = vstd->link; std 2557 dev/usb/uhci.c std->td.td_link = vstd->td.td_link; std 2558 dev/usb/uhci.c vstd->link.std = std; std 2559 dev/usb/uhci.c vstd->td.td_link = htole32(std->physaddr | UHCI_PTR_TD); std 2695 dev/usb/uhci.c uhci_free_std_chain(sc, ii->stdstart->link.std, ii->stdend); std 63 dev/usb/uhcivar.h struct uhci_soft_td *std;