Lines Matching refs:token
47 size_t len, int token, int maxpacket) in qtd_fill() argument
79 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill()
162 struct urb *urb, u32 token) in ehci_clear_tt_buffer() argument
177 usb_pipeendpoint(urb->pipe), token); in ehci_clear_tt_buffer()
197 u32 token in qtd_copy_status() argument
203 if (likely (QTD_PID (token) != 2)) in qtd_copy_status()
204 urb->actual_length += length - QTD_LENGTH (token); in qtd_copy_status()
211 if (unlikely (IS_SHORT_READ (token))) in qtd_copy_status()
215 if (token & QTD_STS_HALT) { in qtd_copy_status()
216 if (token & QTD_STS_BABBLE) { in qtd_copy_status()
220 } else if (QTD_CERR(token)) { in qtd_copy_status()
227 } else if (token & QTD_STS_MMF) { in qtd_copy_status()
230 } else if (token & QTD_STS_DBE) { in qtd_copy_status()
231 status = (QTD_PID (token) == 1) /* IN ? */ in qtd_copy_status()
234 } else if (token & QTD_STS_XACT) { in qtd_copy_status()
250 token, status); in qtd_copy_status()
350 u32 token = 0; in qh_completions() local
372 token = hc32_to_cpu(ehci, qtd->hw_token); in qh_completions()
376 if ((token & QTD_STS_ACTIVE) == 0) { in qh_completions()
381 if ((token & QTD_STS_HALT) != 0) { in qh_completions()
386 if ((token & QTD_STS_XACT) && in qh_completions()
387 QTD_CERR(token) == 0 && in qh_completions()
392 qtd->length - QTD_LENGTH(token), qtd->length, qh->xacterrs); in qh_completions()
399 token &= ~QTD_STS_HALT; in qh_completions()
400 token |= QTD_STS_ACTIVE | in qh_completions()
403 token); in qh_completions()
406 token); in qh_completions()
420 } else if (IS_SHORT_READ (token) in qh_completions()
449 token = hc32_to_cpu(ehci, hw->hw_token); in qh_completions()
455 ehci_clear_tt_buffer(ehci, qh, urb, token); in qh_completions()
468 qtd->length, token); in qh_completions()
490 token); in qh_completions()
609 u32 token; in qh_urb_transaction() local
622 token = QTD_STS_ACTIVE; in qh_urb_transaction()
623 token |= (EHCI_TUNE_CERR << 10); in qh_urb_transaction()
632 token | (2 /* "setup" */ << 8), 8); in qh_urb_transaction()
635 token ^= QTD_TOGGLE; in qh_urb_transaction()
646 token |= (1 /* "in" */ << 8); in qh_urb_transaction()
668 token |= (1 /* "in" */ << 8); in qh_urb_transaction()
681 this_qtd_len = qtd_fill(ehci, qtd, buf, this_sg_len, token, in qh_urb_transaction()
697 token ^= QTD_TOGGLE; in qh_urb_transaction()
734 token ^= 0x0100; /* "in" <--> "out" */ in qh_urb_transaction()
735 token |= QTD_TOGGLE; /* force DATA1 */ in qh_urb_transaction()
751 qtd_fill(ehci, qtd, 0, 0, token, 0); in qh_urb_transaction()
1050 __hc32 token; in qh_append_tds() local
1057 token = qtd->hw_token; in qh_append_tds()
1081 dummy->hw_token = token; in qh_append_tds()