Lines Matching refs:td_status
85 u16 td_status = in_be16(&ep->empty_td->status); in fhci_push_dummy_bd() local
89 ep->empty_td = next_bd(ep->td_base, ep->empty_td, td_status); in fhci_push_dummy_bd()
283 u16 td_status; in fhci_td_transaction_confirm() local
294 td_status = in_be16(&td->status); in fhci_td_transaction_confirm()
300 if (!(!(td_status & TD_R) && ((td_status & ~TD_W) || buf))) in fhci_td_transaction_confirm()
303 else if ((buf == DUMMY_BD_BUFFER) && !(td_status & ~TD_W)) in fhci_td_transaction_confirm()
312 ep->conf_td = next_bd(ep->td_base, ep->conf_td, td_status); in fhci_td_transaction_confirm()
315 if ((buf == DUMMY2_BD_BUFFER) && !(td_status & ~TD_W)) in fhci_td_transaction_confirm()
322 if (td_status & TD_ERRORS) { in fhci_td_transaction_confirm()
323 if (td_status & TD_RXER) { in fhci_td_transaction_confirm()
324 if (td_status & TD_CR) in fhci_td_transaction_confirm()
326 else if (td_status & TD_AB) in fhci_td_transaction_confirm()
328 else if (td_status & TD_OV) in fhci_td_transaction_confirm()
330 else if (td_status & TD_BOV) in fhci_td_transaction_confirm()
332 else if (td_status & TD_NO) in fhci_td_transaction_confirm()
337 } else if (td_status & TD_NAK) in fhci_td_transaction_confirm()
339 else if (td_status & TD_TO) in fhci_td_transaction_confirm()
341 else if (td_status & TD_UN) in fhci_td_transaction_confirm()
343 else if (td_status & TD_STAL) in fhci_td_transaction_confirm()
388 u16 td_status; in fhci_host_transaction() local
393 td_status = in_be16(&td->status); in fhci_host_transaction()
395 if (td_status & TD_R && in_be16(&td->length)) { in fhci_host_transaction()
402 ep->empty_td = next_bd(ep->td_base, ep->empty_td, td_status); in fhci_host_transaction()
424 td_status = ((td_status & TD_W) | TD_R | TD_L | TD_I | TD_CNF); in fhci_host_transaction()
426 td_status |= TD_TC; in fhci_host_transaction()
437 td_status |= TD_PID_DATA1; in fhci_host_transaction()
440 td_status |= TD_PID_DATA0; in fhci_host_transaction()
448 td_status |= TD_LSP; in fhci_host_transaction()
450 out_be16(&td->status, td_status); in fhci_host_transaction()
470 u16 td_status; in fhci_flush_bds() local
476 td_status = in_be16(&td->status); in fhci_flush_bds()
481 if (td_status & TD_R) in fhci_flush_bds()
482 out_be16(&td->status, (td_status & ~TD_R) | TD_TO); in fhci_flush_bds()
487 if (td_status & TD_W) in fhci_flush_bds()
525 u16 td_status; in fhci_flush_actual_frame() local
536 td_status = in_be16(&td->status); in fhci_flush_actual_frame()
540 if (td_status & TD_R) { in fhci_flush_actual_frame()
541 out_be16(&td->status, (td_status & ~TD_R) | TD_TO); in fhci_flush_actual_frame()
549 td = next_bd(ep->td_base, td, td_status); in fhci_flush_actual_frame()
550 td_status = in_be16(&td->status); in fhci_flush_actual_frame()
553 } while ((td_status & TD_R) || buf_ptr); in fhci_flush_actual_frame()
590 u16 td_status; in fhci_host_transmit_actual_frame() local
601 td_status = in_be16(&td->status); in fhci_host_transmit_actual_frame()
603 td = next_bd(ep->td_base, td, td_status); in fhci_host_transmit_actual_frame()
614 td_status); in fhci_host_transmit_actual_frame()