Lines Matching refs:sqh
112 static void ehci_dump_sqh(ehci_softc_t *sc, ehci_qh_t *sqh);
970 #define EHCI_APPEND_QH(sqh,last) (last) = _ehci_append_qh(sqh,last) argument
972 _ehci_append_qh(ehci_qh_t *sqh, ehci_qh_t *last) in _ehci_append_qh() argument
974 DPRINTFN(11, "%p to %p\n", sqh, last); in _ehci_append_qh()
976 if (sqh->prev != NULL) { in _ehci_append_qh()
983 sqh->next = last->next; in _ehci_append_qh()
984 sqh->qh_link = last->qh_link; in _ehci_append_qh()
986 sqh->prev = last; in _ehci_append_qh()
988 usb_pc_cpu_flush(sqh->page_cache); in _ehci_append_qh()
994 last->next = sqh; in _ehci_append_qh()
995 last->qh_link = sqh->qh_self; in _ehci_append_qh()
999 return (sqh); in _ehci_append_qh()
1042 #define EHCI_REMOVE_QH(sqh,last) (last) = _ehci_remove_qh(sqh,last) argument
1044 _ehci_remove_qh(ehci_qh_t *sqh, ehci_qh_t *last) in _ehci_remove_qh() argument
1046 DPRINTFN(11, "%p from %p\n", sqh, last); in _ehci_remove_qh()
1051 if (sqh->prev) { in _ehci_remove_qh()
1052 sqh->prev->next = sqh->next; in _ehci_remove_qh()
1053 sqh->prev->qh_link = sqh->qh_link; in _ehci_remove_qh()
1055 usb_pc_cpu_flush(sqh->prev->page_cache); in _ehci_remove_qh()
1057 if (sqh->next) { in _ehci_remove_qh()
1058 sqh->next->prev = sqh->prev; in _ehci_remove_qh()
1059 usb_pc_cpu_flush(sqh->next->page_cache); in _ehci_remove_qh()
1061 last = ((last == sqh) ? sqh->prev : last); in _ehci_remove_qh()
1063 sqh->prev = 0; in _ehci_remove_qh()
1065 usb_pc_cpu_flush(sqh->page_cache); in _ehci_remove_qh()