Lines Matching refs:value
185 u8 value, v2; in dbg_show() local
212 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG); in dbg_show()
213 dbg_chgconf(tps->por, buf, sizeof buf, value); in dbg_show()
216 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGSTATUS); in dbg_show()
217 dbg_chgstat(buf, sizeof buf, value); in dbg_show()
219 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK1); in dbg_show()
220 dbg_chgstat(buf, sizeof buf, value); in dbg_show()
224 value = i2c_smbus_read_byte_data(tps->client, TPS_REGSTATUS); in dbg_show()
225 dbg_regstat(buf, sizeof buf, value); in dbg_show()
227 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK2); in dbg_show()
228 dbg_regstat(buf, sizeof buf, value); in dbg_show()
236 value = i2c_smbus_read_byte_data(tps->client, TPS_VDCDC1); in dbg_show()
237 seq_printf(s, "vdcdc1 %02x\n", value); in dbg_show()
240 value = i2c_smbus_read_byte_data(tps->client, TPS_VDCDC2); in dbg_show()
241 seq_printf(s, "vdcdc2 %02x\n", value); in dbg_show()
244 value = i2c_smbus_read_byte_data(tps->client, TPS_VREGS1); in dbg_show()
245 seq_printf(s, "vregs1 %02x\n\n", value); in dbg_show()
249 value = i2c_smbus_read_byte_data(tps->client, TPS_LED1_ON); in dbg_show()
252 (value & 0x80) in dbg_show()
255 value, v2, in dbg_show()
256 (value & 0x7f) * 10, (v2 & 0x7f) * 100); in dbg_show()
258 value = i2c_smbus_read_byte_data(tps->client, TPS_LED2_ON); in dbg_show()
261 (value & 0x80) in dbg_show()
264 value, v2, in dbg_show()
265 (value & 0x7f) * 10, (v2 & 0x7f) * 100); in dbg_show()
267 value = i2c_smbus_read_byte_data(tps->client, TPS_DEFGPIO); in dbg_show()
269 seq_printf(s, "defgpio %02x mask3 %02x\n", value, v2); in dbg_show()
272 if (value & (1 << (4 + i))) in dbg_show()
274 (value & (1 << i)) ? "low" : "hi "); in dbg_show()
277 (value & (1 << i)) ? "hi " : "low", in dbg_show()
449 tps65010_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in tps65010_gpio_set() argument
452 tps65010_set_gpio_out_value(offset + 1, value); in tps65010_gpio_set()
454 tps65010_set_led(offset - 3, value ? ON : OFF); in tps65010_gpio_set()
456 tps65010_set_vib(value); in tps65010_gpio_set()
460 tps65010_output(struct gpio_chip *chip, unsigned offset, int value) in tps65010_output() argument
469 tps65010_set_gpio_out_value(offset + 1, value); in tps65010_output()
471 tps65010_set_led(offset - 3, value ? ON : OFF); in tps65010_output()
473 tps65010_set_vib(value); in tps65010_output()
480 int value; in tps65010_gpio_get() local
486 value = i2c_smbus_read_byte_data(tps->client, TPS_DEFGPIO); in tps65010_gpio_get()
487 if (value < 0) in tps65010_gpio_get()
488 return value; in tps65010_gpio_get()
489 if (value & (1 << (offset + 4))) /* output */ in tps65010_gpio_get()
490 return !(value & (1 << offset)); in tps65010_gpio_get()
492 return !!(value & (1 << offset)); in tps65010_gpio_get()
713 int tps65010_set_gpio_out_value(unsigned gpio, unsigned value) in tps65010_set_gpio_out_value() argument
731 switch (value) { in tps65010_set_gpio_out_value()
745 gpio, value ? "high" : "low", in tps65010_set_gpio_out_value()
840 int tps65010_set_vib(unsigned value) in tps65010_set_vib() argument
852 if (value) in tps65010_set_vib()
857 pr_debug("%s: vibrator %s\n", DRIVER_NAME, value ? "on" : "off"); in tps65010_set_vib()
915 int tps65010_config_vregs1(unsigned value) in tps65010_config_vregs1() argument
928 TPS_VREGS1, value); in tps65010_config_vregs1()
943 int tps65010_config_vdcdc2(unsigned value) in tps65010_config_vdcdc2() argument
957 status = i2c_smbus_write_byte_data(c, TPS_VDCDC2, value); in tps65010_config_vdcdc2()