Lines Matching refs:q
175 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_usecs() local
178 while (q->ptr) { in periodic_usecs()
183 if (q->qh->hw_info2 & CPUToLE32 (1 << uframe)) in periodic_usecs()
184 usecs += q->qh->usecs; in periodic_usecs()
186 if (q->qh->hw_info2 & CPUToLE32 (1 << (8 + uframe))) in periodic_usecs()
187 usecs += q->qh->c_usecs; in periodic_usecs()
188 q = &q->qh->qh_next; in periodic_usecs()
194 if (q->fstn->hw_prev != EHCI_LIST_END) { in periodic_usecs()
197 q = &q->fstn->fstn_next; in periodic_usecs()
203 if (q->itd->hw_transaction [uframe] != 0) in periodic_usecs()
204 usecs += q->itd->usecs; in periodic_usecs()
205 q = &q->itd->itd_next; in periodic_usecs()
211 temp = q->sitd->hw_fullspeed_ep & in periodic_usecs()
216 if (q->sitd->hw_uframe & CPUToLE32 (1 << uframe)) { in periodic_usecs()
224 if (q->sitd->hw_uframe & in periodic_usecs()
231 q = &q->sitd->sitd_next; in periodic_usecs()
1132 union ehci_shadow q, *q_p; in scan_periodic() local
1146 q.ptr = q_p->ptr; in scan_periodic()
1150 while (q.ptr != 0) { in scan_periodic()
1159 last = (q.qh->hw_next == EHCI_LIST_END); in scan_periodic()
1161 temp = q.qh->qh_next; in scan_periodic()
1163 type = Q_NEXT_TYPE (q.qh->hw_next); in scan_periodic()
1166 qh_get (q.qh), regs); in scan_periodic()
1168 qh_put (ehci, q.qh); in scan_periodic()
1169 q = temp; in scan_periodic()
1175 last = (q.fstn->hw_next == EHCI_LIST_END); in scan_periodic()
1177 if (q.fstn->hw_prev != EHCI_LIST_END) { in scan_periodic()
1180 type = Q_NEXT_TYPE (q.fstn->hw_next); in scan_periodic()
1181 q = q.fstn->fstn_next; in scan_periodic()
1188 last = (q.itd->hw_next == EHCI_LIST_END); in scan_periodic()
1193 if (q.itd->hw_transaction [uf] != 0) { in scan_periodic()
1195 temp = q; in scan_periodic()
1196 *q_p = q.itd->itd_next; in scan_periodic()
1197 *hw_p = q.itd->hw_next; in scan_periodic()
1208 q_p = &q.itd->itd_next; in scan_periodic()
1209 hw_p = &q.itd->hw_next; in scan_periodic()
1210 type = Q_NEXT_TYPE (q.itd->hw_next); in scan_periodic()
1213 q = *q_p; in scan_periodic()
1220 last = (q.sitd->hw_next == EHCI_LIST_END); in scan_periodic()
1222 sitd_complete (ehci, q.sitd); in scan_periodic()
1224 type = Q_NEXT_TYPE (q.sitd->hw_next); in scan_periodic()
1227 q = q.sitd->sitd_next; in scan_periodic()
1233 type, frame, q.ptr); in scan_periodic()
1236 q.ptr = 0; in scan_periodic()
1240 if (unlikely (q.ptr == 0 && !last)) in scan_periodic()