Lines Matching refs:value
198 u8 value, v2; in dbg_show() local
225 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG); in dbg_show()
226 dbg_chgconf(tps->por, buf, sizeof buf, value); in dbg_show()
229 value = i2c_smbus_read_byte_data(tps->client, TPS_CHGSTATUS); in dbg_show()
230 dbg_chgstat(buf, sizeof buf, value); in dbg_show()
232 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK1); in dbg_show()
233 dbg_chgstat(buf, sizeof buf, value); in dbg_show()
237 value = i2c_smbus_read_byte_data(tps->client, TPS_REGSTATUS); in dbg_show()
238 dbg_regstat(buf, sizeof buf, value); in dbg_show()
240 value = i2c_smbus_read_byte_data(tps->client, TPS_MASK2); in dbg_show()
241 dbg_regstat(buf, sizeof buf, value); in dbg_show()
249 value = i2c_smbus_read_byte_data(tps->client, TPS_VDCDC1); in dbg_show()
250 seq_printf(s, "vdcdc1 %02x\n", value); in dbg_show()
253 value = i2c_smbus_read_byte_data(tps->client, TPS_VDCDC2); in dbg_show()
254 seq_printf(s, "vdcdc2 %02x\n", value); in dbg_show()
257 value = i2c_smbus_read_byte_data(tps->client, TPS_VREGS1); in dbg_show()
258 seq_printf(s, "vregs1 %02x\n\n", value); in dbg_show()
262 value = i2c_smbus_read_byte_data(tps->client, TPS_LED1_ON); in dbg_show()
265 (value & 0x80) in dbg_show()
268 value, v2, in dbg_show()
269 (value & 0x7f) * 10, (v2 & 0x7f) * 100); in dbg_show()
271 value = i2c_smbus_read_byte_data(tps->client, TPS_LED2_ON); in dbg_show()
274 (value & 0x80) in dbg_show()
277 value, v2, in dbg_show()
278 (value & 0x7f) * 10, (v2 & 0x7f) * 100); in dbg_show()
280 value = i2c_smbus_read_byte_data(tps->client, TPS_DEFGPIO); in dbg_show()
282 seq_printf(s, "defgpio %02x mask3 %02x\n", value, v2); in dbg_show()
285 if (value & (1 << (4 + i))) in dbg_show()
287 (value & (1 << i)) ? "low" : "hi "); in dbg_show()
290 (value & (1 << i)) ? "hi " : "low", in dbg_show()
463 tps65010_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in tps65010_gpio_set() argument
466 tps65010_set_gpio_out_value(offset + 1, value); in tps65010_gpio_set()
468 tps65010_set_led(offset - 3, value ? ON : OFF); in tps65010_gpio_set()
470 tps65010_set_vib(value); in tps65010_gpio_set()
474 tps65010_output(struct gpio_chip *chip, unsigned offset, int value) in tps65010_output() argument
483 tps65010_set_gpio_out_value(offset + 1, value); in tps65010_output()
485 tps65010_set_led(offset - 3, value ? ON : OFF); in tps65010_output()
487 tps65010_set_vib(value); in tps65010_output()
494 int value; in tps65010_gpio_get() local
500 value = i2c_smbus_read_byte_data(tps->client, TPS_DEFGPIO); in tps65010_gpio_get()
501 if (value < 0) in tps65010_gpio_get()
503 if (value & (1 << (offset + 4))) /* output */ in tps65010_gpio_get()
504 return !(value & (1 << offset)); in tps65010_gpio_get()
506 return (value & (1 << offset)); in tps65010_gpio_get()
732 int tps65010_set_gpio_out_value(unsigned gpio, unsigned value) in tps65010_set_gpio_out_value() argument
750 switch (value) { in tps65010_set_gpio_out_value()
764 gpio, value ? "high" : "low", in tps65010_set_gpio_out_value()
859 int tps65010_set_vib(unsigned value) in tps65010_set_vib() argument
871 if (value) in tps65010_set_vib()
876 pr_debug("%s: vibrator %s\n", DRIVER_NAME, value ? "on" : "off"); in tps65010_set_vib()
934 int tps65010_config_vregs1(unsigned value) in tps65010_config_vregs1() argument
947 TPS_VREGS1, value); in tps65010_config_vregs1()
962 int tps65010_config_vdcdc2(unsigned value) in tps65010_config_vdcdc2() argument
976 status = i2c_smbus_write_byte_data(c, TPS_VDCDC2, value); in tps65010_config_vdcdc2()