octiic_reg_write
if (octiic_reg_write(sc, TWSI_IA_RST, 0) != 0) {
error = octiic_reg_write(sc, TWSI_IA_CTL, TWSI_CTL_ENAB | TWSI_CTL_STA);
return octiic_reg_write(sc, TWSI_IA_CTL, TWSI_CTL_ENAB | TWSI_CTL_STP);
octiic_reg_write(sc, TWSI_IA_DATA, ((addr >> 7) << 1) | mode);
octiic_reg_write(sc, TWSI_IA_CTL, TWSI_CTL_ENAB);
octiic_reg_write(sc, TWSI_IA_DATA, ((addr & 0x7f) << 1) | mode);
octiic_reg_write(sc, TWSI_IA_CTL, TWSI_CTL_ENAB);
octiic_reg_write(sc, TWSI_IA_CTL, ctl);
octiic_reg_write(sc, TWSI_IA_DATA, data);
octiic_reg_write(sc, TWSI_IA_CTL, TWSI_CTL_ENAB);
octiic_reg_write(sc, TWSI_IA_CLKCTL, (best_m << 3) | best_n);
int octiic_reg_write(struct octiic_softc *, uint8_t, uint8_t);