Lines Matching +defs:error +defs:value
108 int error;
111 if ((error = iic_acquire_bus(sc->tag, 0)) != 0)
112 return error;
117 error = iic_exec(sc->tag, I2C_OP_WRITE_WITH_STOP, sc->addr,
122 return error;
128 int error;
133 if ((error = iic_acquire_bus(sc->tag, 0)) != 0)
134 return error;
136 error = iic_exec(sc->tag, I2C_OP_READ_WITH_STOP, sc->addr,
144 return error;
234 uint16_t value;
242 value = 0;
243 e = cx24227_readreg(sc, 0x04, &value);
250 device_printf(parent, "cx24227: chipid %04x\n", value);
254 value = 0x0001; /* open the i2c gate */
255 e = cx24227_writereg(sc, 0xf3, value);