Lines Matching refs:the_tps
516 static struct tps65010 *the_tps; variable
533 the_tps = NULL; in tps65010_remove()
544 if (the_tps) { in tps65010_probe()
606 the_tps = tps; in tps65010_probe()
702 if (!the_tps) in tps65010_set_vbus_draw()
713 the_tps->vbus = mA; in tps65010_set_vbus_draw()
714 if ((the_tps->chgstatus & TPS_CHG_USB) in tps65010_set_vbus_draw()
716 FLAG_VBUS_CHANGED, &the_tps->flags)) { in tps65010_set_vbus_draw()
718 queue_delayed_work(system_power_efficient_wq, &the_tps->work, in tps65010_set_vbus_draw()
737 if (!the_tps) in tps65010_set_gpio_out_value()
742 mutex_lock(&the_tps->lock); in tps65010_set_gpio_out_value()
744 defgpio = i2c_smbus_read_byte_data(the_tps->client, TPS_DEFGPIO); in tps65010_set_gpio_out_value()
760 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_gpio_out_value()
765 i2c_smbus_read_byte_data(the_tps->client, TPS_DEFGPIO)); in tps65010_set_gpio_out_value()
767 mutex_unlock(&the_tps->lock); in tps65010_set_gpio_out_value()
782 if (!the_tps) in tps65010_set_led()
792 mutex_lock(&the_tps->lock); in tps65010_set_led()
795 i2c_smbus_read_byte_data(the_tps->client, in tps65010_set_led()
799 i2c_smbus_read_byte_data(the_tps->client, in tps65010_set_led()
818 mutex_unlock(&the_tps->lock); in tps65010_set_led()
822 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_led()
828 mutex_unlock(&the_tps->lock); in tps65010_set_led()
833 i2c_smbus_read_byte_data(the_tps->client, TPS_LED1_ON + offs)); in tps65010_set_led()
835 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_led()
841 mutex_unlock(&the_tps->lock); in tps65010_set_led()
846 i2c_smbus_read_byte_data(the_tps->client, in tps65010_set_led()
849 mutex_unlock(&the_tps->lock); in tps65010_set_led()
864 if (!the_tps) in tps65010_set_vib()
867 mutex_lock(&the_tps->lock); in tps65010_set_vib()
869 vdcdc2 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC2); in tps65010_set_vib()
873 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_vib()
878 mutex_unlock(&the_tps->lock); in tps65010_set_vib()
892 if (!the_tps) in tps65010_set_low_pwr()
895 mutex_lock(&the_tps->lock); in tps65010_set_low_pwr()
899 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65010_set_low_pwr()
901 vdcdc1 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1); in tps65010_set_low_pwr()
913 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_low_pwr()
921 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65010_set_low_pwr()
923 mutex_unlock(&the_tps->lock); in tps65010_set_low_pwr()
938 if (!the_tps) in tps65010_config_vregs1()
941 mutex_lock(&the_tps->lock); in tps65010_config_vregs1()
944 i2c_smbus_read_byte_data(the_tps->client, TPS_VREGS1)); in tps65010_config_vregs1()
946 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_config_vregs1()
954 i2c_smbus_read_byte_data(the_tps->client, TPS_VREGS1)); in tps65010_config_vregs1()
956 mutex_unlock(&the_tps->lock); in tps65010_config_vregs1()
967 if (!the_tps) in tps65010_config_vdcdc2()
970 c = the_tps->client; in tps65010_config_vdcdc2()
971 mutex_lock(&the_tps->lock); in tps65010_config_vdcdc2()
985 mutex_unlock(&the_tps->lock); in tps65010_config_vdcdc2()
1003 if (!the_tps || the_tps->por) in tps65013_set_low_pwr()
1006 mutex_lock(&the_tps->lock); in tps65013_set_low_pwr()
1011 i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG), in tps65013_set_low_pwr()
1012 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65013_set_low_pwr()
1014 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1015 vdcdc1 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1); in tps65013_set_low_pwr()
1029 status = i2c_smbus_write_byte_data(the_tps->client, in tps65013_set_low_pwr()
1034 mutex_unlock(&the_tps->lock); in tps65013_set_low_pwr()
1038 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1039 the_tps->chgconf = chgconfig; in tps65013_set_low_pwr()
1042 status = i2c_smbus_write_byte_data(the_tps->client, in tps65013_set_low_pwr()
1050 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65013_set_low_pwr()
1052 mutex_unlock(&the_tps->lock); in tps65013_set_low_pwr()
1070 if (the_tps) in tps_init()