Lines Matching defs:qtd

77 				ehci_qtd_t		*qtd);
80 ehci_qtd_t *qtd);
85 ehci_qtd_t *qtd,
93 ehci_qtd_t *qtd);
425 /* Process any QTD's on the active interrupt qtd list */
690 ehci_qtd_t *qtd;
840 /* Get the given new interrupt qtd */
841 qtd = (ehci_qtd_t *)(ehci_qtd_iommu_to_cpu(ehcip,
844 /* Insert this qtd into active interrupt QTD list */
846 qtd);
1303 * Now look up at the QTD's that are in the active qtd list &
1357 ehci_qtd_t *qtd, *next_qtd;
1370 /* Create done qtd list */
1371 qtd = ehci_polled_create_done_qtd_list(ehci_polledp);
1383 while (qtd) {
1386 Get_QTD(qtd->qtd_active_qtd_next));
1390 (uint32_t)Get_QTD(qtd->qtd_trans_wrapper));
1396 ctrl = (uint_t)Get_QTD(qtd->qtd_ctrl) &
1399 error = ehci_check_for_error(ehcip, pp, tw, qtd, ctrl);
1415 qtd);
1418 /* Insert this qtd back into QH's qtd list */
1421 ehci_polled_insert_intr_qtd(ehci_polledp, qtd);
1428 Set_QTD(qtd->qtd_tw_next_qtd, td_addr);
1429 Set_QTD(qtd->qtd_state, EHCI_QTD_DUMMY);
1430 tw->tw_qtd_free_list = qtd;
1432 tw->tw_qtd_free_list = qtd;
1433 Set_QTD(qtd->qtd_tw_next_qtd, NULL);
1434 Set_QTD(qtd->qtd_state, EHCI_QTD_DUMMY);
1438 qtd = next_qtd;
1451 ehci_qtd_t *qtd)
1461 Get_QTD(qtd->qtd_trans_wrapper));
1470 * If "Total bytes of xfer" in control field of qtd is not equal to 0,
1474 residue = ((Get_QTD(qtd->qtd_ctrl) &
1479 length = Get_QTD(qtd->qtd_xfer_offs) +
1480 Get_QTD(qtd->qtd_xfer_len) - residue;
1503 ehci_qtd_t *qtd)
1515 (uint32_t)Get_QTD(qtd->qtd_trans_wrapper));
1527 ASSERT((ehci_qtd_t *)tw->tw_qtd_head == qtd);
1530 ehci_qtd_iommu_to_cpu(ehcip, Get_QTD(qtd->qtd_tw_next_qtd));
1542 bzero((char *)qtd, sizeof (ehci_qtd_t));
1543 Set_QTD(qtd->qtd_state, EHCI_QTD_DUMMY);
1545 /* Rename qtd as new_dummy_qtd */
1546 new_dummy_qtd = qtd;
1554 /* Update QH's dummy qtd field */
1557 /* Update next dummy's next qtd pointer */
1564 * Fill in the current dummy qtd and
1570 /* Insert this qtd onto the tw */
1573 /* Insert this qtd into active interrupt QTD list */
1612 /* Update QH's dummy qtd field */
1615 /* Update next dummy's next qtd pointer */
1622 * Fill in the current dummy qtd and
1628 /* Insert this qtd into active interrupt QTD list */
1656 ehci_qtd_t *qtd,
1668 /* Assert that the qtd to be filled in is a dummy */
1669 ASSERT(Get_QTD(qtd->qtd_state) == EHCI_QTD_DUMMY);
1672 Set_QTD(qtd->qtd_state, EHCI_QTD_ACTIVE);
1690 Set_QTD(qtd->qtd_xfer_offs, qtd_dma_offs);
1691 Set_QTD(qtd->qtd_xfer_len, buf_len);
1726 Set_QTD(qtd->qtd_buf[i], buf_addr);
1744 Set_QTD(qtd->qtd_ctrl, (ctrl | EHCI_QTD_CTRL_ACTIVE_XACT));
1746 Set_QTD(qtd->qtd_trans_wrapper, (uint32_t)tw->tw_id);
1762 ehci_qtd_t *qtd)
1768 Set_QTD(qtd->qtd_tw_next_qtd, NULL);
1772 tw->tw_qtd_head = qtd;
1773 tw->tw_qtd_tail = qtd;
1778 ASSERT(dummy != qtd);
1779 ASSERT(Get_QTD(qtd->qtd_state) != EHCI_QTD_DUMMY);
1781 /* Add the qtd to the end of the list */
1783 ehci_qtd_cpu_to_iommu(ehcip, qtd));
1785 tw->tw_qtd_tail = qtd;
1787 ASSERT(Get_QTD(qtd->qtd_tw_next_qtd) == NULL);
1795 * Create done qtd list from active qtd list.
1812 /* Get next qtd from the active qtd list */
1852 ehci_qtd_t *qtd)
1859 /* Insert this qtd into active intr qtd list */
1870 Set_QTD(qtd->qtd_active_qtd_prev,
1874 ehci_qtd_cpu_to_iommu(ehcip, qtd));
1876 ehci_polledp->ehci_polled_active_intr_qtd_list = qtd;
1877 Set_QTD(qtd->qtd_active_qtd_next, NULL);
1878 Set_QTD(qtd->qtd_active_qtd_prev, NULL);
1891 ehci_qtd_t *qtd)
1896 ASSERT(qtd != NULL);
1900 while ((curr_qtd) && (curr_qtd != qtd)) {
1905 if ((curr_qtd) && (curr_qtd == qtd)) {
1942 ehci_qtd_t *qtd;
1949 qtd = (ehci_qtd_t *)next_tw->tw_qtd_head;
1952 while (qtd) {
1955 ehci_polledp, qtd);
1958 Get_QTD(qtd->qtd_tw_next_qtd));
1961 ehci_deallocate_qtd(ehcip, qtd);
1963 qtd = next_qtd;
1969 /* Clear current qtd pointer */
1972 /* Update the next qtd pointer in the QH */
2015 /* Get the required qtd counts */