Lines Matching defs:trb_0
524 xx->xx_trb[idx].trb_0 = parameter;
533 trb->trb_0 = htole64(parameter);
539 xhci_trb_get_idx(struct xhci_ring *xr, uint64_t trb_0, int *idx)
544 /* trb_0 range sanity check */
545 if (trb_0 == 0 || trb_0 < trbp ||
546 (trb_0 - trbp) % sizeof(struct xhci_trb) != 0 ||
547 (trb_0 - trbp) / sizeof(struct xhci_trb) >= xr->xr_ntrb) {
550 *idx = (trb_0 - trbp) / sizeof(struct xhci_trb);
1880 trb.trb_0 = xhci_slot_get_icp(sc, xs, 0);
1923 trb.trb_0 = 0;
1952 trb.trb_0 = 0;
2005 trb.trb_0 = xhci_ring_trbp(xr, 0) | 1; /* XXX */
2171 trb.trb_0 = xhci_slot_get_icp(sc, xs, 0);
2382 uint64_t trb_0;
2394 trb_0 = le64toh(trb->trb_0);
2410 if (xhci_trb_get_idx(xr, trb_0, &idx)) {
2411 DPRINTFN(0, "invalid trb_0 %#jx", trb_0, 0, 0, 0);
2426 DPRINTFN(1, " orig TRB %#jx type %ju", trb_0,
2432 /* When ED != 0, trb_0 is virtual addr of struct xhci_xfer. */
2433 xx = (void *)(uintptr_t)(trb_0 & ~0x3);
2443 DPRINTFN(1, "xx(%#jx)->xx_xfer is NULL trb_0 %#jx",
2444 (uintptr_t)xx, trb_0, 0, 0);
2464 " %02jx", trb_0, XHCI_TRB_2_REM_GET(trb_2), trbcode, 0);
2465 if ((trb_0 & 0x3) == 0x3) {
2484 * + by checking least 3 bits of trb_0 if ED==1.
2505 } else if ((trb_0 & 0x3) == 0x3) {
2544 (trb_0 & 0x3) == 0x0) {
2563 uint64_t trb_0;
2570 trb_0 = le64toh(trb->trb_0);
2574 if (trb_0 == sc->sc_command_addr) {
2577 sc->sc_result_trb.trb_0 = trb_0;
2584 trb_0, trb_2, trb_3, 0);
2589 "0x%08jx 0x%08jx", (uintptr_t)trb, trb_0, trb_2, trb_3);
2601 uint64_t trb_0;
2606 trb_0 = le64toh(trb->trb_0);
2611 (uintptr_t)trb, trb_0, trb_2, trb_3);
2623 if (trb_0 == 0) {
2637 xhci_rhpsc(sc, (uint32_t)((trb_0 >> 24) & 0xff));
3086 trbs[i].trb_0, trbs[i].trb_2, trbs[i].trb_3, 0);
3127 parameter = trbs[i].trb_0;
3237 trb->trb_0, trb->trb_2, trb->trb_3, 0);
3274 trb->trb_0 = sc->sc_result_trb.trb_0;
3279 trb->trb_0, trb->trb_2, trb->trb_3, 0);
3324 trb.trb_0 = 0;
3356 trb.trb_0 = 0;
3398 trb.trb_0 = icp;
3435 trb.trb_0 = xhci_slot_get_icp(sc, xs, 0);