Lines Matching refs:atr
178 int atr = i2c_smbus_read_byte_data(client, ISL1208_REG_ATR); in isl1208_i2c_get_atr() local
179 if (atr < 0) in isl1208_i2c_get_atr()
180 return atr; in isl1208_i2c_get_atr()
193 atr &= 0x3f; /* mask out lsb */ in isl1208_i2c_get_atr()
194 atr ^= 1 << 5; /* invert 6th bit */ in isl1208_i2c_get_atr()
195 atr += 2 * 9; /* add offset of 4.5pF; unit[atr] = 0.25pF */ in isl1208_i2c_get_atr()
197 return atr; in isl1208_i2c_get_atr()
268 int sr, dtr, atr, usr; in isl1208_rtc_proc() local
291 atr = isl1208_i2c_get_atr(client); in isl1208_rtc_proc()
292 if (atr >= 0) in isl1208_rtc_proc()
294 atr >> 2, (atr & 0x3) * 25); in isl1208_rtc_proc()
661 int atr = isl1208_i2c_get_atr(to_i2c_client(dev->parent)); in isl1208_sysfs_show_atrim() local
662 if (atr < 0) in isl1208_sysfs_show_atrim()
663 return atr; in isl1208_sysfs_show_atrim()
665 return sprintf(buf, "%d.%.2d pF\n", atr >> 2, (atr & 0x3) * 25); in isl1208_sysfs_show_atrim()