Lines Matching defs:the_tps

502 static struct tps65010 *the_tps;
515 the_tps = NULL;
525 if (the_tps) {
587 the_tps = tps;
683 if (!the_tps)
694 the_tps->vbus = mA;
695 if ((the_tps->chgstatus & TPS_CHG_USB)
697 FLAG_VBUS_CHANGED, &the_tps->flags)) {
699 queue_delayed_work(system_power_efficient_wq, &the_tps->work,
718 if (!the_tps)
723 mutex_lock(&the_tps->lock);
725 defgpio = i2c_smbus_read_byte_data(the_tps->client, TPS_DEFGPIO);
741 status = i2c_smbus_write_byte_data(the_tps->client,
746 i2c_smbus_read_byte_data(the_tps->client, TPS_DEFGPIO));
748 mutex_unlock(&the_tps->lock);
763 if (!the_tps)
773 mutex_lock(&the_tps->lock);
776 i2c_smbus_read_byte_data(the_tps->client,
780 i2c_smbus_read_byte_data(the_tps->client,
799 mutex_unlock(&the_tps->lock);
803 status = i2c_smbus_write_byte_data(the_tps->client,
809 mutex_unlock(&the_tps->lock);
814 i2c_smbus_read_byte_data(the_tps->client, TPS_LED1_ON + offs));
816 status = i2c_smbus_write_byte_data(the_tps->client,
822 mutex_unlock(&the_tps->lock);
827 i2c_smbus_read_byte_data(the_tps->client,
830 mutex_unlock(&the_tps->lock);
845 if (!the_tps)
848 mutex_lock(&the_tps->lock);
850 vdcdc2 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC2);
854 status = i2c_smbus_write_byte_data(the_tps->client,
859 mutex_unlock(&the_tps->lock);
873 if (!the_tps)
876 mutex_lock(&the_tps->lock);
880 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1));
882 vdcdc1 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1);
894 status = i2c_smbus_write_byte_data(the_tps->client,
902 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1));
904 mutex_unlock(&the_tps->lock);
919 if (!the_tps)
922 mutex_lock(&the_tps->lock);
925 i2c_smbus_read_byte_data(the_tps->client, TPS_VREGS1));
927 status = i2c_smbus_write_byte_data(the_tps->client,
935 i2c_smbus_read_byte_data(the_tps->client, TPS_VREGS1));
937 mutex_unlock(&the_tps->lock);
948 if (!the_tps)
951 c = the_tps->client;
952 mutex_lock(&the_tps->lock);
966 mutex_unlock(&the_tps->lock);
984 if (!the_tps || the_tps->por)
987 mutex_lock(&the_tps->lock);
992 i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG),
993 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1));
995 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
996 vdcdc1 = i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1);
1010 status = i2c_smbus_write_byte_data(the_tps->client,
1015 mutex_unlock(&the_tps->lock);
1019 chgconfig = i2c_smbus_read_byte_data(the_tps->client, TPS_CHGCONFIG);
1020 the_tps->chgconf = chgconfig;
1023 status = i2c_smbus_write_byte_data(the_tps->client,
1031 i2c_smbus_read_byte_data(the_tps->client, TPS_VDCDC1));
1033 mutex_unlock(&the_tps->lock);