Lines Matching refs:atr
157 int atr = i2c_smbus_read_byte_data(client, ISL1208_REG_ATR); in isl1208_i2c_get_atr() local
158 if (atr < 0) in isl1208_i2c_get_atr()
159 return atr; in isl1208_i2c_get_atr()
172 atr &= 0x3f; /* mask out lsb */ in isl1208_i2c_get_atr()
173 atr ^= 1 << 5; /* invert 6th bit */ in isl1208_i2c_get_atr()
174 atr += 2 * 9; /* add offset of 4.5pF; unit[atr] = 0.25pF */ in isl1208_i2c_get_atr()
176 return atr; in isl1208_i2c_get_atr()
246 int sr, dtr, atr, usr; in isl1208_rtc_proc() local
269 atr = isl1208_i2c_get_atr(client); in isl1208_rtc_proc()
270 if (atr >= 0) in isl1208_rtc_proc()
272 atr >> 2, (atr & 0x3) * 25); in isl1208_rtc_proc()
566 int atr = isl1208_i2c_get_atr(to_i2c_client(dev)); in isl1208_sysfs_show_atrim() local
567 if (atr < 0) in isl1208_sysfs_show_atrim()
568 return atr; in isl1208_sysfs_show_atrim()
570 return sprintf(buf, "%d.%.2d pF\n", atr >> 2, (atr & 0x3) * 25); in isl1208_sysfs_show_atrim()