Lines Matching refs:trb

179 xhci_dump_trb(struct xhci_trb *trb)  in xhci_dump_trb()  argument
181 DPRINTFN(5, "trb = %p\n", trb); in xhci_dump_trb()
182 DPRINTFN(5, "qwTrb0 = 0x%016llx\n", (long long)le64toh(trb->qwTrb0)); in xhci_dump_trb()
183 DPRINTFN(5, "dwTrb2 = 0x%08x\n", le32toh(trb->dwTrb2)); in xhci_dump_trb()
184 DPRINTFN(5, "dwTrb3 = 0x%08x\n", le32toh(trb->dwTrb3)); in xhci_dump_trb()
852 xhci_check_transfer(struct xhci_softc *sc, struct xhci_trb *trb) in xhci_check_transfer() argument
867 td_event = le64toh(trb->qwTrb0); in xhci_check_transfer()
868 temp = le32toh(trb->dwTrb2); in xhci_check_transfer()
873 temp = le32toh(trb->dwTrb3); in xhci_check_transfer()
1017 xhci_check_command(struct xhci_softc *sc, struct xhci_trb *trb) in xhci_check_command() argument
1019 if (sc->sc_cmd_addr == trb->qwTrb0) { in xhci_check_command()
1021 sc->sc_cmd_result[0] = trb->dwTrb2; in xhci_check_command()
1022 sc->sc_cmd_result[1] = trb->dwTrb3; in xhci_check_command()
1117 xhci_do_command(struct xhci_softc *sc, struct xhci_trb *trb, in xhci_do_command() argument
1145 i, XHCI_TRB_3_TYPE_GET(le32toh(trb->dwTrb3)), in xhci_do_command()
1146 (long long)le64toh(trb->qwTrb0), in xhci_do_command()
1147 (long)le32toh(trb->dwTrb2), in xhci_do_command()
1148 (long)le32toh(trb->dwTrb3)); in xhci_do_command()
1150 phwr->hwr_commands[i].qwTrb0 = trb->qwTrb0; in xhci_do_command()
1151 phwr->hwr_commands[i].dwTrb2 = trb->dwTrb2; in xhci_do_command()
1155 temp = trb->dwTrb3; in xhci_do_command()
1221 temp = le32toh(trb->dwTrb3); in xhci_do_command()
1240 trb->dwTrb2 = 0; in xhci_do_command()
1241 trb->dwTrb3 = 0; in xhci_do_command()
1247 trb->dwTrb2 = sc->sc_cmd_result[0]; in xhci_do_command()
1248 trb->dwTrb3 = sc->sc_cmd_result[1]; in xhci_do_command()
1260 struct xhci_trb trb;
1265 trb.qwTrb0 = 0;
1266 trb.dwTrb2 = 0;
1269 trb.dwTrb3 = htole32(temp);
1271 return (xhci_do_command(sc, &trb, 100 /* ms */));
1278 struct xhci_trb trb; in xhci_cmd_enable_slot() local
1284 trb.qwTrb0 = 0; in xhci_cmd_enable_slot()
1285 trb.dwTrb2 = 0; in xhci_cmd_enable_slot()
1286 trb.dwTrb3 = htole32(XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_ENABLE_SLOT)); in xhci_cmd_enable_slot()
1288 err = xhci_do_command(sc, &trb, 100 /* ms */); in xhci_cmd_enable_slot()
1292 temp = le32toh(trb.dwTrb3); in xhci_cmd_enable_slot()
1303 struct xhci_trb trb; in xhci_cmd_disable_slot() local
1308 trb.qwTrb0 = 0; in xhci_cmd_disable_slot()
1309 trb.dwTrb2 = 0; in xhci_cmd_disable_slot()
1313 trb.dwTrb3 = htole32(temp); in xhci_cmd_disable_slot()
1315 return (xhci_do_command(sc, &trb, 100 /* ms */)); in xhci_cmd_disable_slot()
1322 struct xhci_trb trb; in xhci_cmd_set_address() local
1327 trb.qwTrb0 = htole64(input_ctx); in xhci_cmd_set_address()
1328 trb.dwTrb2 = 0; in xhci_cmd_set_address()
1335 trb.dwTrb3 = htole32(temp); in xhci_cmd_set_address()
1337 return (xhci_do_command(sc, &trb, 500 /* ms */)); in xhci_cmd_set_address()
1472 struct xhci_trb trb; in xhci_cmd_configure_ep() local
1477 trb.qwTrb0 = htole64(input_ctx); in xhci_cmd_configure_ep()
1478 trb.dwTrb2 = 0; in xhci_cmd_configure_ep()
1488 trb.dwTrb3 = htole32(temp); in xhci_cmd_configure_ep()
1490 return (xhci_do_command(sc, &trb, 100 /* ms */)); in xhci_cmd_configure_ep()
1497 struct xhci_trb trb; in xhci_cmd_evaluate_ctx() local
1502 trb.qwTrb0 = htole64(input_ctx); in xhci_cmd_evaluate_ctx()
1503 trb.dwTrb2 = 0; in xhci_cmd_evaluate_ctx()
1506 trb.dwTrb3 = htole32(temp); in xhci_cmd_evaluate_ctx()
1508 return (xhci_do_command(sc, &trb, 100 /* ms */)); in xhci_cmd_evaluate_ctx()
1515 struct xhci_trb trb; in xhci_cmd_reset_ep() local
1520 trb.qwTrb0 = 0; in xhci_cmd_reset_ep()
1521 trb.dwTrb2 = 0; in xhci_cmd_reset_ep()
1529 trb.dwTrb3 = htole32(temp); in xhci_cmd_reset_ep()
1531 return (xhci_do_command(sc, &trb, 100 /* ms */)); in xhci_cmd_reset_ep()
1538 struct xhci_trb trb; in xhci_cmd_set_tr_dequeue_ptr() local
1543 trb.qwTrb0 = htole64(dequeue_ptr); in xhci_cmd_set_tr_dequeue_ptr()
1546 trb.dwTrb2 = htole32(temp); in xhci_cmd_set_tr_dequeue_ptr()
1551 trb.dwTrb3 = htole32(temp); in xhci_cmd_set_tr_dequeue_ptr()
1553 return (xhci_do_command(sc, &trb, 100 /* ms */)); in xhci_cmd_set_tr_dequeue_ptr()
1560 struct xhci_trb trb; in xhci_cmd_stop_ep() local
1565 trb.qwTrb0 = 0; in xhci_cmd_stop_ep()
1566 trb.dwTrb2 = 0; in xhci_cmd_stop_ep()
1574 trb.dwTrb3 = htole32(temp); in xhci_cmd_stop_ep()
1576 return (xhci_do_command(sc, &trb, 100 /* ms */)); in xhci_cmd_stop_ep()
1582 struct xhci_trb trb; in xhci_cmd_reset_dev() local
1587 trb.qwTrb0 = 0; in xhci_cmd_reset_dev()
1588 trb.dwTrb2 = 0; in xhci_cmd_reset_dev()
1592 trb.dwTrb3 = htole32(temp); in xhci_cmd_reset_dev()
1594 return (xhci_do_command(sc, &trb, 100 /* ms */)); in xhci_cmd_reset_dev()
2481 pepext->trb[x * XHCI_MAX_TRANSFERS].dwTrb3 = 0; in xhci_configure_endpoint_by_xfer()
2489 pepext->trb[(XHCI_MAX_TRANSFERS * in xhci_configure_endpoint_by_xfer()
2493 pepext->trb[(XHCI_MAX_TRANSFERS * in xhci_configure_endpoint_by_xfer()
2495 pepext->trb[(XHCI_MAX_TRANSFERS * in xhci_configure_endpoint_by_xfer()
2666 struct xhci_trb *trb; in xhci_alloc_device_ext() local
2718 trb = buf_ep.buffer; in xhci_alloc_device_ext()
2719 trb += XHCI_MAX_TRANSFERS - 1; in xhci_alloc_device_ext()
2725 trb->qwTrb0 = htole64(addr); in xhci_alloc_device_ext()
2726 trb->dwTrb2 = htole32(XHCI_TRB_2_IRQ_SET(0)); in xhci_alloc_device_ext()
2727 trb->dwTrb3 = htole32(XHCI_TRB_3_CYCLE_BIT | in xhci_alloc_device_ext()
2783 pepext->trb = buf_ep.buffer; in xhci_get_endpoint_ext()
2939 pepext->trb[inext].qwTrb0 = 0; in xhci_transfer_insert()
2940 pepext->trb[inext].dwTrb2 = 0; in xhci_transfer_insert()
2941 pepext->trb[inext].dwTrb3 = 0; in xhci_transfer_insert()
2945 pepext->trb[i].qwTrb0 = htole64((uint64_t)td_first->td_self); in xhci_transfer_insert()
2946 pepext->trb[i].dwTrb2 = htole32(XHCI_TRB_2_IRQ_SET(0)); in xhci_transfer_insert()
2949 xhci_dump_trb(&pepext->trb[i]); in xhci_transfer_insert()
2955 pepext->trb[i].dwTrb3 = htole32(XHCI_TRB_3_CYCLE_BIT | in xhci_transfer_insert()