Home
last modified time | relevance | path

Searched refs:osc (Results 1 – 3 of 3) sorted by relevance

/drivers/rtc/
Drtc-rs5c372.c244 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
249 if (osc) in rs5c372_get_trim()
250 *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; in rs5c372_get_trim()
445 int err, osc, trim; in rs5c372_rtc_proc() local
447 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
450 osc / 1000, osc % 1000); in rs5c372_rtc_proc()
488 int err, osc; in rs5c372_sysfs_show_osc() local
490 err = rs5c372_get_trim(to_i2c_client(dev), &osc, NULL); in rs5c372_sysfs_show_osc()
494 return sprintf(buf, "%d.%03d KHz\n", osc / 1000, osc % 1000); in rs5c372_sysfs_show_osc()
496 static DEVICE_ATTR(osc, S_IRUGO, rs5c372_sysfs_show_osc, NULL);
/drivers/mfd/
Dtwl4030-core.c655 struct clk *osc; in clocks_init() local
661 osc = clk_get(dev, "osc_ck"); in clocks_init()
663 osc = clk_get(dev, "osc_sys_ck"); in clocks_init()
665 if (IS_ERR(osc)) { in clocks_init()
671 rate = clk_get_rate(osc); in clocks_init()
672 clk_put(osc); in clocks_init()
678 osc = ERR_PTR(-EIO); in clocks_init()
/drivers/char/
Dsynclink_gt.c3784 static unsigned int osc = 14745600; in set_rate() local
3793 div = osc/rate; in set_rate()
3794 if (!(osc % rate) && div) in set_rate()