Lines Matching refs:the_tps

502 static struct tps65010 *the_tps;  variable
519 the_tps = NULL; in tps65010_remove()
530 if (the_tps) { in tps65010_probe()
592 the_tps = tps; in tps65010_probe()
688 if (!the_tps) in tps65010_set_vbus_draw()
699 the_tps->vbus = mA; in tps65010_set_vbus_draw()
700 if ((the_tps->chgstatus & TPS_CHG_USB) in tps65010_set_vbus_draw()
702 FLAG_VBUS_CHANGED, &the_tps->flags)) { in tps65010_set_vbus_draw()
704 queue_delayed_work(system_power_efficient_wq, &the_tps->work, in tps65010_set_vbus_draw()
723 if (!the_tps) in tps65010_set_gpio_out_value()
728 mutex_lock(&the_tps->lock); in tps65010_set_gpio_out_value()
730 defgpio = i2c_smbus_read_byte_data(the_tps->client, TPS_DEFGPIO); in tps65010_set_gpio_out_value()
746 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_gpio_out_value()
751 i2c_smbus_read_byte_data(the_tps->client, TPS_DEFGPIO)); in tps65010_set_gpio_out_value()
753 mutex_unlock(&the_tps->lock); in tps65010_set_gpio_out_value()
768 if (!the_tps) in tps65010_set_led()
778 mutex_lock(&the_tps->lock); in tps65010_set_led()
781 i2c_smbus_read_byte_data(the_tps->client, in tps65010_set_led()
785 i2c_smbus_read_byte_data(the_tps->client, in tps65010_set_led()
804 mutex_unlock(&the_tps->lock); in tps65010_set_led()
808 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_led()
814 mutex_unlock(&the_tps->lock); in tps65010_set_led()
819 i2c_smbus_read_byte_data(the_tps->client, TPS_LED1_ON + offs)); in tps65010_set_led()
821 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_led()
827 mutex_unlock(&the_tps->lock); in tps65010_set_led()
832 i2c_smbus_read_byte_data(the_tps->client, in tps65010_set_led()
835 mutex_unlock(&the_tps->lock); in tps65010_set_led()
850 if (!the_tps) in tps65010_set_vib()
853 mutex_lock(&the_tps->lock); in tps65010_set_vib()
855 vdcdc2 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC2); in tps65010_set_vib()
859 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_vib()
864 mutex_unlock(&the_tps->lock); in tps65010_set_vib()
878 if (!the_tps) in tps65010_set_low_pwr()
881 mutex_lock(&the_tps->lock); in tps65010_set_low_pwr()
885 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65010_set_low_pwr()
887 vdcdc1 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1); in tps65010_set_low_pwr()
899 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_set_low_pwr()
907 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65010_set_low_pwr()
909 mutex_unlock(&the_tps->lock); in tps65010_set_low_pwr()
924 if (!the_tps) in tps65010_config_vregs1()
927 mutex_lock(&the_tps->lock); in tps65010_config_vregs1()
930 i2c_smbus_read_byte_data(the_tps->client, TPS_VREGS1)); in tps65010_config_vregs1()
932 status = i2c_smbus_write_byte_data(the_tps->client, in tps65010_config_vregs1()
940 i2c_smbus_read_byte_data(the_tps->client, TPS_VREGS1)); in tps65010_config_vregs1()
942 mutex_unlock(&the_tps->lock); in tps65010_config_vregs1()
953 if (!the_tps) in tps65010_config_vdcdc2()
956 c = the_tps->client; in tps65010_config_vdcdc2()
957 mutex_lock(&the_tps->lock); in tps65010_config_vdcdc2()
971 mutex_unlock(&the_tps->lock); in tps65010_config_vdcdc2()
989 if (!the_tps || the_tps->por) in tps65013_set_low_pwr()
992 mutex_lock(&the_tps->lock); in tps65013_set_low_pwr()
997 i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG), in tps65013_set_low_pwr()
998 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65013_set_low_pwr()
1000 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1001 vdcdc1 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1); in tps65013_set_low_pwr()
1015 status = i2c_smbus_write_byte_data(the_tps->client, in tps65013_set_low_pwr()
1020 mutex_unlock(&the_tps->lock); in tps65013_set_low_pwr()
1024 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG); in tps65013_set_low_pwr()
1025 the_tps->chgconf = chgconfig; in tps65013_set_low_pwr()
1028 status = i2c_smbus_write_byte_data(the_tps->client, in tps65013_set_low_pwr()
1036 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1)); in tps65013_set_low_pwr()
1038 mutex_unlock(&the_tps->lock); in tps65013_set_low_pwr()