AT_POLL
if ((flags & (AT_POLL | AT_WAIT)) == 0) {
ata_thread_run(sc->sc_chan, AT_WAIT | AT_POLL,
if ((flags & (AT_WAIT | AT_POLL)) == AT_POLL) {
wait_flags = AT_POLL;
wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
int wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
if (wdc_wait_for_drq(chp, ATA_DELAY, AT_POLL, &tfd) != 0) {
(irq == 0) ? ATA_DELAY : 0, AT_POLL, &tfd) < 0) {
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
ata_thread_run(wd->drvp->chnl_softc, AT_POLL,
wd_flushcache(wd, AT_POLL);
wd_standby(wd, AT_POLL);
wd_standby(wd, AT_POLL);
int wflags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
if (ata_c->flags & AT_POLL)
if (ata_c->flags & AT_POLL) {
if ((ata_c->flags & AT_POLL) == 0) {
int wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
(xfer->c_flags & C_POLL) ? AT_POLL : 0) != 0) {
if (wdc_wait_for_drq(chp, ATA_DELAY, AT_POLL, &tfd) != 0) {
(wdc_wait_for_unbusy(chp, (irq == 0) ? ATA_DELAY : 0, AT_POLL, &tfd)
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
flags |= AT_POLL; /* XXX */
if (ata_c->flags & AT_POLL)
int wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
if (ata_c->flags & AT_POLL)
if ((ata_c->flags & AT_POLL) == 0) {
if ((ata_c->flags & (AT_WAIT | AT_POLL)) == (AT_WAIT | AT_POLL))
wflags = AT_WAIT | AT_POLL;
wflags = AT_POLL;
if ((ata_c->flags & AT_POLL) == 0) {
if ((ata_c->flags & AT_POLL) != 0) {
if ((ata_c->flags & AT_POLL) != 0) {
if (ata_c->flags & AT_POLL) {
const int wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
(irq == 0) ? sc_xfer->timeout : 0, AT_POLL, &tfd) == WDCWAIT_TOUT) {
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
ata_dmaerr(drvp, (xfer->c_flags & C_POLL) ? AT_POLL : 0);
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
if (wdc_wait_for_unbusy(chp, WDC_RESET_WAIT, AT_POLL, &tfd) != 0) {
if (wdcwait(chp, WDCS_DSC, WDCS_DSC, 10, AT_POLL, &tfd) ==
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
ata_recovery_resume(chp, drive, tfd, AT_POLL);
if ((ata_c->flags & AT_POLL) == 0) {
siisata_reset_channel(chp, AT_POLL);
siisata_reset_channel(chp, AT_POLL);
if (ata_c->flags & AT_POLL)
int wflags = poll ? AT_POLL : AT_WAIT;
(flags & (AT_WAIT | AT_POLL)) == AT_POLL)
ata_c->flags |= AT_POLL;
if (ata_c->flags & AT_POLL)
int wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
if (ata_c->flags & AT_POLL) {
if ((ata_c->flags & AT_POLL) == 0) {
wflags = AT_POLL;
if ((ata_c->flags & (AT_WAIT | AT_POLL)) == (AT_WAIT | AT_POLL)) {
wflags = AT_WAIT | AT_POLL;
wflags = AT_POLL;
if ((ata_c->flags & AT_POLL) == 0) {
if ((ata_c->flags & AT_POLL) != 0)
if ((ata_c->flags & AT_POLL) != 0)
if (ata_c->flags & AT_POLL) {
AT_WAIT | AT_POLL);
AT_WAIT | AT_POLL, ¶ms);
AT_WAIT | AT_POLL, ¶ms);
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
AT_POLL, &tfd) == WDCWAIT_TOUT) {
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
if (wdc_wait_for_unbusy(chp, WDC_RESET_WAIT, AT_POLL, &tfd) != 0) {
xfer->c_ata_c.flags = AT_WAIT | AT_POLL;
int wait_flags = (sc_xfer->xs_control & XS_CTL_POLL) ? AT_POLL : 0;
(irq == 0) ? sc_xfer->timeout : 0, AT_POLL, &tfd) == WDCWAIT_TOUT) {
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
ata_dmaerr(drvp, (xfer->c_flags & C_POLL) ? AT_POLL : 0);
(xfer->c_flags & C_POLL) ? AT_POLL : 0);
(xfer->c_flags & C_POLL) ? AT_POLL : 0);