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