Lines Matching refs:state
325 } state; member
416 enum dbgp_state state) in dbgp_issue_command() argument
435 else if ( dbgp->state != dbgp_unsafe ) in dbgp_issue_command()
437 dbgp->state = dbgp_unsafe; in dbgp_issue_command()
444 if ( dbgp->state != dbgp_unsafe ) in dbgp_issue_command()
445 dbgp->state = state; in dbgp_issue_command()
454 if ( dbgp->state == dbgp_idle ) in dbgp_check_for_completion()
465 dbgp->state = dbgp_unsafe; in dbgp_check_for_completion()
484 else if ( dbgp->state == dbgp_in ) in dbgp_check_for_completion()
507 if ( dbgp->state != dbgp_unsafe ) in dbgp_check_for_completion()
508 dbgp->state = dbgp_idle; in dbgp_check_for_completion()
526 dbgp->state = dbgp_unsafe; in dbgp_wait_until_complete()
570 dbgp->state = dbgp_unsafe; in dbgp_wait_until_done()
992 dbgp->state = dbgp_idle; in ehci_dbgp_external_startup()
1175 if ( !dbgp->out.chunk || !dbgp->ehci_debug || dbgp->state == dbgp_unsafe ) in ehci_dbgp_flush()
1178 if ( dbgp->state == dbgp_idle || !port->sync ) in ehci_dbgp_flush()
1183 if ( dbgp->state == dbgp_idle ) in ehci_dbgp_flush()
1216 if ( unlikely(!dbgp->ehci_debug) || unlikely(dbgp->state == dbgp_unsafe) ) in ehci_dbgp_tx_ready()
1224 if ( dbgp->state != dbgp_idle && dbgp->out.chunk >= DBGP_MAX_PACKET ) in ehci_dbgp_tx_ready()
1228 (dbgp->state == dbgp_idle) * DBGP_MAX_PACKET; in ehci_dbgp_tx_ready()
1261 if ( dbgp->state != dbgp_unsafe ) in _ehci_dbgp_poll()
1263 if ( dbgp->state == dbgp_idle && dbgp->out.chunk ) in _ehci_dbgp_poll()
1265 if ( dbgp->state == dbgp_idle || dbgp->out.chunk < DBGP_MAX_PACKET ) in _ehci_dbgp_poll()
1278 if ( dbgp->state == dbgp_idle && !dbgp->in.chunk && in _ehci_dbgp_poll()
1431 dbgp->state = dbgp_unsafe; in ehci_dbgp_suspend()
1462 static struct ehci_dbgp ehci_dbgp = { .state = dbgp_unsafe, .phys_port = 1 };
1566 ehci_dbgp.state = dbgp_unsafe; in dbgp_op()