Lines Matching refs:osc
324 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
329 if (osc) { in rs5c372_get_trim()
331 *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; in rs5c372_get_trim()
333 *osc = 32768; in rs5c372_get_trim()
478 int err, osc, trim; in rs5c372_rtc_proc() local
480 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
483 osc / 1000, osc % 1000); in rs5c372_rtc_proc()
694 int err, osc; in rs5c372_sysfs_show_osc() local
696 err = rs5c372_get_trim(to_i2c_client(dev), &osc, NULL); in rs5c372_sysfs_show_osc()
700 return sprintf(buf, "%d.%03d KHz\n", osc / 1000, osc % 1000); in rs5c372_sysfs_show_osc()
702 static DEVICE_ATTR(osc, S_IRUGO, rs5c372_sysfs_show_osc, NULL);