Lines Matching refs:to_rtc_device
41 retval = rtc_read_time(to_rtc_device(dev), &tm); in date_show()
57 retval = rtc_read_time(to_rtc_device(dev), &tm); in time_show()
73 retval = rtc_read_time(to_rtc_device(dev), &tm); in since_epoch_show()
88 return sprintf(buf, "%d\n", to_rtc_device(dev)->max_user_freq); in max_user_freq_show()
95 struct rtc_device *rtc = to_rtc_device(dev); in max_user_freq_store()
123 strcmp(dev_name(&to_rtc_device(dev)->dev), in hctosys_show()
147 retval = rtc_read_alarm(to_rtc_device(dev), &alm); in wakealarm_show()
164 struct rtc_device *rtc = to_rtc_device(dev); in wakealarm_store()
229 retval = rtc_read_offset(to_rtc_device(dev), &offset); in offset_show()
245 retval = rtc_set_offset(to_rtc_device(dev), offset); in offset_store()
254 return sprintf(buf, "[%lld,%llu]\n", to_rtc_device(dev)->range_min, in range_show()
255 to_rtc_device(dev)->range_max); in range_show()
289 struct rtc_device *rtc = to_rtc_device(dev); in rtc_attr_is_visible()