Lines Matching refs:mask
112 twsi_control_clear(struct twsi_softc *sc, uint32_t mask)
117 val &= ~mask;
122 twsi_control_set(struct twsi_softc *sc, uint32_t mask)
127 val |= mask;
144 * 0 on successful mask change
148 twsi_poll_ctrl(struct twsi_softc *sc, int timeout, uint32_t mask)
152 while (!(TWSI_READ(sc, sc->reg_control) & mask)) {
164 * (twsi_poll_ctrl() is called twice). 'mask' can be either TWSI_STATUS_START
168 twsi_locked_start(device_t dev, struct twsi_softc *sc, int32_t mask,
176 if (mask == TWSI_STATUS_RPTD_START)
182 if (mask == TWSI_STATUS_RPTD_START && iflg_set) {
195 mask == TWSI_STATUS_START ? "" : "repeated ");
200 if (status != mask) {
202 status, mask == TWSI_STATUS_START ? "" : "repeated ");