Lines Matching full:atr
212 int atr = i2c_smbus_read_byte_data(client, ISL1208_REG_ATR); in isl1208_i2c_get_atr() local
213 if (atr < 0) in isl1208_i2c_get_atr()
214 return atr; in isl1208_i2c_get_atr()
216 /* The 6bit value in the ATR register controls the load in isl1208_i2c_get_atr()
219 * bit (1<<5) of the ATR register is inverted in isl1208_i2c_get_atr()
221 * C_load(ATR=0x20) = 4.50pF in isl1208_i2c_get_atr()
222 * C_load(ATR=0x00) = 12.50pF in isl1208_i2c_get_atr()
223 * C_load(ATR=0x1f) = 20.25pF in isl1208_i2c_get_atr()
227 atr &= 0x3f; /* mask out lsb */ in isl1208_i2c_get_atr()
228 atr ^= 1 << 5; /* invert 6th bit */ in isl1208_i2c_get_atr()
229 atr += 2 * 9; /* add offset of 4.5pF; unit[atr] = 0.25pF */ in isl1208_i2c_get_atr()
231 return atr; in isl1208_i2c_get_atr()
302 int sr, dtr, atr, usr; in isl1208_rtc_proc() local
325 atr = isl1208_i2c_get_atr(client); in isl1208_rtc_proc()
326 if (atr >= 0) in isl1208_rtc_proc()
328 atr >> 2, (atr & 0x3) * 25); in isl1208_rtc_proc()
708 int atr = isl1208_i2c_get_atr(to_i2c_client(dev->parent)); in isl1208_sysfs_show_atrim() local
709 if (atr < 0) in isl1208_sysfs_show_atrim()
710 return atr; in isl1208_sysfs_show_atrim()
712 return sprintf(buf, "%d.%.2d pF\n", atr >> 2, (atr & 0x3) * 25); in isl1208_sysfs_show_atrim()