Lines Matching refs:phase

431 sunscpal_pio_out(struct sunscpal_softc *sc, int phase, int count, uint8_t *data)  in sunscpal_pio_out()  argument
446 phase) in sunscpal_pio_out()
451 SUNSCPAL_BYTE_WRITE(sc, phase, *data++); in sunscpal_pio_out()
453 SUNSCPAL_BYTE_WRITE(sc, phase, 0); in sunscpal_pio_out()
464 sunscpal_pio_in(struct sunscpal_softc *sc, int phase, int count, uint8_t *data) in sunscpal_pio_in() argument
480 phase) in sunscpal_pio_in()
485 *data++ = SUNSCPAL_BYTE_READ(sc, phase); in sunscpal_pio_in()
487 (void)SUNSCPAL_BYTE_READ(sc, phase); in sunscpal_pio_in()
1296 int n, phase; in sunscpal_msg_in() local
1337 phase = SUNSCPAL_BUS_PHASE(SUNSCPAL_READ_2(sc, sunscpal_icr)); in sunscpal_msg_in()
1338 if (phase != SUNSCPAL_PHASE_MSG_IN) { in sunscpal_msg_in()
1555 sunscpal_data_xfer(struct sunscpal_softc *sc, int phase) in sunscpal_data_xfer() argument
1567 device_xname(sc->sc_dev), phase_names[(phase >> 8) & 7]); in sunscpal_data_xfer()
1574 if (phase != expected_phase) { in sunscpal_data_xfer()
1582 if (phase == SUNSCPAL_PHASE_DATA_IN) in sunscpal_data_xfer()
1583 sunscpal_pio_in(sc, phase, 4096, NULL); in sunscpal_data_xfer()
1585 sunscpal_pio_out(sc, phase, 4096, NULL); in sunscpal_data_xfer()
1588 phase) { in sunscpal_data_xfer()
1618 if (phase == SUNSCPAL_PHASE_DATA_OUT) { in sunscpal_data_xfer()
1619 len = sunscpal_pio_out(sc, phase, in sunscpal_data_xfer()
1622 len = sunscpal_pio_in(sc, phase, in sunscpal_data_xfer()
1670 int act_flags, phase, timo; in sunscpal_machine() local
1728 phase = SUNSCPAL_BUS_PHASE(SUNSCPAL_READ_2(sc, sunscpal_icr)); in sunscpal_machine()
1730 (long)phase_names[(phase >> 8) & 7]); in sunscpal_machine()
1737 switch (phase) { in sunscpal_machine()
1741 act_flags = sunscpal_data_xfer(sc, phase); in sunscpal_machine()
1761 printf("%s: Unexpected phase 0x%x\n", __func__, phase); in sunscpal_machine()
1767 sc->sc_prevphase = phase; in sunscpal_machine()