Lines Matching defs:last

604 		 * end TD which hangs from the last QH, to avoid a bug in the PIIX
828 * Let the last QH loop back to the full speed control transfer QH.
892 #define UHCI_APPEND_TD(std,last) (last) = _uhci_append_td(std,last)
894 _uhci_append_td(uhci_td_t *std, uhci_td_t *last)
896 DPRINTFN(11, "%p to %p\n", std, last);
900 std->next = last->next;
901 std->td_next = last->td_next;
903 std->prev = last;
908 * the last->next->prev is never followed: std->next->prev = std;
910 last->next = std;
911 last->td_next = std->td_self;
913 usb_pc_cpu_flush(last->page_cache);
918 #define UHCI_APPEND_QH(sqh,last) (last) = _uhci_append_qh(sqh,last)
920 _uhci_append_qh(uhci_qh_t *sqh, uhci_qh_t *last)
922 DPRINTFN(11, "%p to %p\n", sqh, last);
927 return (last);
931 sqh->h_next = last->h_next;
932 sqh->qh_h_next = last->qh_h_next;
934 sqh->h_prev = last;
939 * The "last->h_next->h_prev" is never followed:
944 last->h_next = sqh;
945 last->qh_h_next = sqh->qh_self;
947 usb_pc_cpu_flush(last->page_cache);
954 #define UHCI_REMOVE_TD(std,last) (last) = _uhci_remove_td(std,last)
956 _uhci_remove_td(uhci_td_t *std, uhci_td_t *last)
958 DPRINTFN(11, "%p from %p\n", std, last);
971 return ((last == std) ? std->prev : last);
974 #define UHCI_REMOVE_QH(sqh,last) (last) = _uhci_remove_qh(sqh,last)
976 _uhci_remove_qh(uhci_qh_t *sqh, uhci_qh_t *last)
978 DPRINTFN(11, "%p from %p\n", sqh, last);
994 last = ((last == sqh) ? sqh->h_prev : last);
1000 return (last);
1124 /* Check for last transfer */
1280 /* last transfer */
1358 * last transfer descriptor makes the transfer done
1370 * check if we reached the last packet
1561 /* send a Zero Length Packet, ZLP, last */
1719 /* check for last frame */
1721 /* no STATUS stage yet, SETUP is last */
1745 /* no STATUS stage yet, DATA is last */
1815 /* Ensure that last TD is terminating: */
2227 /* reuse td_token from last transfer */