Home
last modified time | relevance | path

Searched refs:rtc_time (Results 1 – 25 of 194) sorted by relevance

12345678

/drivers/rtc/
A Drtc-mv.c70 u32 rtc_time, rtc_date; in mv_rtc_read_time() local
73 rtc_time = readl(ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_read_time()
76 second = rtc_time & 0x7f; in mv_rtc_read_time()
79 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_time()
101 u32 rtc_time, rtc_date; in mv_rtc_read_alarm() local
107 second = rtc_time & 0x7f; in mv_rtc_read_alarm()
110 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_alarm()
211 u32 rtc_time; in mv_rtc_probe() local
229 if (rtc_time & RTC_HOURS_12H_MODE) { in mv_rtc_probe()
236 if (rtc_time == 0x01000000) { in mv_rtc_probe()
[all …]
A Dlib.c52 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm()
159 int rtc_valid_tm(struct rtc_time *tm) in rtc_valid_tm()
180 time64_t rtc_tm_to_time64(struct rtc_time *tm) in rtc_tm_to_time64()
190 ktime_t rtc_tm_to_ktime(struct rtc_time tm) in rtc_tm_to_ktime()
199 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm()
202 struct rtc_time ret; in rtc_ktime_to_tm()
A Dinterface.c23 static void rtc_add_offset(struct rtc_device *rtc, struct rtc_time *tm) in rtc_add_offset()
93 memset(tm, 0, sizeof(struct rtc_time)); in __rtc_read_time()
110 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_read_time()
126 int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_set_time()
215 struct rtc_time before, now; in __rtc_read_alarm()
268 memcpy(&before, &now, sizeof(struct rtc_time)); in __rtc_read_alarm()
412 struct rtc_time tm; in __rtc_set_alarm()
497 struct rtc_time now; in rtc_initialize_alarm()
586 struct rtc_time tm; in rtc_update_irq_enable()
806 struct rtc_time tm; in rtc_timer_enqueue()
[all …]
A Drtc-da9052.c56 static int da9052_read_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_read_alarm()
99 static int da9052_set_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_set_alarm()
153 static int da9052_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9052_rtc_read_time()
196 static int da9052_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9052_rtc_set_time()
224 struct rtc_time *tm = &alrm->time; in da9052_rtc_read_alarm()
240 struct rtc_time *tm = &alrm->time; in da9052_rtc_set_alarm()
A Drtc-pl031.c118 struct rtc_time *tm, unsigned long *st_time, in pl031_stv2_tm_to_time()
130 struct rtc_time calc_tm; in pl031_stv2_tm_to_time()
152 struct rtc_time *tm) in pl031_stv2_time_to_tm()
168 static int pl031_stv2_read_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_read_time()
178 static int pl031_stv2_set_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_set_time()
245 static int pl031_read_time(struct device *dev, struct rtc_time *tm) in pl031_read_time()
254 static int pl031_set_time(struct device *dev, struct rtc_time *tm) in pl031_set_time()
A Drtc-bd70528.c56 static inline void tmday2rtc(struct rtc_time *t, struct bd70528_rtc_day *d) in tmday2rtc()
66 static inline void tm2rtc(struct rtc_time *t, struct bd70528_rtc_data *r) in tm2rtc()
88 static inline void rtc2tm(struct bd70528_rtc_data *r, struct rtc_time *t) in rtc2tm()
160 static int bd71828_set_time(struct device *dev, struct rtc_time *t) in bd71828_set_time()
182 static int bd70528_get_time(struct device *dev, struct rtc_time *t) in bd70528_get_time()
301 struct rtc_time t; in bd70528_probe()
A Drtc-da9055.c56 static int da9055_read_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_read_alarm()
77 static int da9055_set_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_set_alarm()
125 static int da9055_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9055_rtc_read_time()
159 static int da9055_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9055_rtc_set_time()
179 struct rtc_time *tm = &alrm->time; in da9055_rtc_read_alarm()
195 struct rtc_time *tm = &alrm->time; in da9055_rtc_set_alarm()
A Drtc-88pm80x.c76 static void rtc_next_alarm_time(struct rtc_time *next, struct rtc_time *now, in rtc_next_alarm_time()
77 struct rtc_time *alrm) in rtc_next_alarm_time()
99 static int pm80x_rtc_read_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_read_time()
120 static int pm80x_rtc_set_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_set_time()
173 struct rtc_time now_tm, alarm_tm; in pm80x_rtc_set_alarm()
A Drtc-mt7622.c152 static void mtk_rtc_get_alarm_or_time(struct mtk_rtc *hw, struct rtc_time *tm, in mtk_rtc_get_alarm_or_time()
184 static void mtk_rtc_set_alarm_or_time(struct mtk_rtc *hw, struct rtc_time *tm, in mtk_rtc_set_alarm_or_time()
220 static int mtk_rtc_gettime(struct device *dev, struct rtc_time *tm) in mtk_rtc_gettime()
229 static int mtk_rtc_settime(struct device *dev, struct rtc_time *tm) in mtk_rtc_settime()
250 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_getalarm()
263 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_setalarm()
A Drtc-mxc.c68 struct rtc_time g_rtc_alarm;
152 static void rtc_update_alarm(struct device *dev, struct rtc_time *alrm) in rtc_update_alarm()
224 static int mxc_rtc_read_time(struct device *dev, struct rtc_time *tm) in mxc_rtc_read_time()
241 static int mxc_rtc_set_time(struct device *dev, struct rtc_time *tm) in mxc_rtc_set_time()
278 memcpy(&pdata->g_rtc_alarm, &alrm->time, sizeof(struct rtc_time)); in mxc_rtc_set_alarm()
318 struct rtc_time tm; in mxc_rtc_probe()
A Drtc-max8907.c57 static void regs_to_tm(u8 *regs, struct rtc_time *tm) in regs_to_tm()
77 static void tm_to_regs(struct rtc_time *tm, u8 *regs) in tm_to_regs()
93 static int max8907_rtc_read_time(struct device *dev, struct rtc_time *tm) in max8907_rtc_read_time()
109 static int max8907_rtc_set_time(struct device *dev, struct rtc_time *tm) in max8907_rtc_set_time()
A Drtc-rzn1.c72 struct rtc_time tm_alarm;
75 static void rzn1_rtc_get_time_snapshot(struct rzn1_rtc *rtc, struct rtc_time *tm) in rzn1_rtc_get_time_snapshot()
91 static int rzn1_rtc_read_time(struct device *dev, struct rtc_time *tm) in rzn1_rtc_read_time()
112 static int rzn1_rtc_set_time(struct device *dev, struct rtc_time *tm) in rzn1_rtc_set_time()
189 struct rtc_time *tm = &rtc->tm_alarm, tm_now; in rzn1_rtc_alarm_irq_enable()
228 struct rtc_time *tm = &alrm->time; in rzn1_rtc_read_alarm()
262 struct rtc_time *tm = &alrm->time, tm_now; in rzn1_rtc_set_alarm()
A Drtc-as3722.c33 static void as3722_time_to_reg(u8 *rbuff, struct rtc_time *tm) in as3722_time_to_reg()
43 static void as3722_reg_to_time(u8 *rbuff, struct rtc_time *tm) in as3722_reg_to_time()
54 static int as3722_rtc_read_time(struct device *dev, struct rtc_time *tm) in as3722_rtc_read_time()
71 static int as3722_rtc_set_time(struct device *dev, struct rtc_time *tm) in as3722_rtc_set_time()
A Drtc-efi.c53 convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) in convert_to_efi_time()
67 convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime) in convert_from_efi_time()
157 static int efi_read_time(struct device *dev, struct rtc_time *tm) in efi_read_time()
177 static int efi_set_time(struct device *dev, struct rtc_time *tm) in efi_set_time()
A Drtc-opal.c21 static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm()
34 static void tm_to_opal(struct rtc_time *tm, u32 *y_m_d, u64 *h_m_s_ms) in tm_to_opal()
46 static int opal_get_rtc_time(struct device *dev, struct rtc_time *tm) in opal_get_rtc_time()
80 static int opal_set_rtc_time(struct device *dev, struct rtc_time *tm) in opal_set_rtc_time()
A Drtc-pcf8583.c49 static int pcf8583_get_datetime(struct i2c_client *client, struct rtc_time *dt) in pcf8583_get_datetime()
87 static int pcf8583_set_datetime(struct i2c_client *client, struct rtc_time *dt, int datetoo) in pcf8583_set_datetime()
172 static int pcf8583_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf8583_rtc_read_time()
222 static int pcf8583_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf8583_rtc_set_time()
A Drtc-rs5c313.c213 static int rs5c313_rtc_read_time(struct device *dev, struct rtc_time *tm) in rs5c313_rtc_read_time()
273 static int rs5c313_rtc_set_time(struct device *dev, struct rtc_time *tm) in rs5c313_rtc_set_time()
333 struct rtc_time tm; in rs5c313_check_xstp_bit()
350 memset(&tm, 0, sizeof(struct rtc_time)); in rs5c313_check_xstp_bit()
A Drtc-mt2712.c139 struct rtc_time *tm, int *sec) in __mt2712_rtc_read_time()
157 static int mt2712_rtc_read_time(struct device *dev, struct rtc_time *tm) in mt2712_rtc_read_time()
172 static int mt2712_rtc_set_time(struct device *dev, struct rtc_time *tm) in mt2712_rtc_set_time()
196 struct rtc_time *tm = &alm->time; in mt2712_rtc_read_alarm()
234 struct rtc_time *tm = &alm->time; in mt2712_rtc_set_alarm()
A Drtc-da9063.c68 struct rtc_time alarm_time;
167 static void da9063_data_to_tm(u8 *data, struct rtc_time *tm, in da9063_data_to_tm()
182 static void da9063_tm_to_data(struct rtc_time *tm, u8 *data, in da9063_tm_to_data()
210 static int da9063_rtc_read_time(struct device *dev, struct rtc_time *tm) in da9063_rtc_read_time()
239 memcpy(tm, &rtc->alarm_time, sizeof(struct rtc_time)); in da9063_rtc_read_time()
246 static int da9063_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9063_rtc_set_time()
A Drtc-s3c.c130 static int s3c_rtc_read_time(struct s3c_rtc *info, struct rtc_time *tm) in s3c_rtc_read_time()
170 static int s3c_rtc_write_time(struct s3c_rtc *info, const struct rtc_time *tm) in s3c_rtc_write_time()
190 static int s3c_rtc_gettime(struct device *dev, struct rtc_time *tm) in s3c_rtc_gettime()
207 static int s3c_rtc_settime(struct device *dev, struct rtc_time *tm) in s3c_rtc_settime()
210 struct rtc_time rtc_tm = *tm; in s3c_rtc_settime()
227 struct rtc_time *alm_tm = &alrm->time; in s3c_rtc_getalarm()
277 struct rtc_time *tm = &alrm->time; in s3c_rtc_setalarm()
A Drtc-ab-b5ze-s3.c205 static int _abb5zes3_rtc_read_time(struct device *dev, struct rtc_time *tm) in _abb5zes3_rtc_read_time()
248 static int abb5zes3_rtc_set_time(struct device *dev, struct rtc_time *tm) in abb5zes3_rtc_set_time()
301 struct rtc_time rtc_tm, *alarm_tm = &alarm->time; in _abb5zes3_rtc_read_timer()
354 struct rtc_time rtc_tm, *alarm_tm = &alarm->time; in _abb5zes3_rtc_read_alarm()
440 struct rtc_time *alarm_tm = &alarm->time; in _abb5zes3_rtc_set_alarm()
442 struct rtc_time rtc_tm; in _abb5zes3_rtc_set_alarm()
544 struct rtc_time *alarm_tm = &alarm->time; in abb5zes3_rtc_set_alarm()
546 struct rtc_time rtc_tm; in abb5zes3_rtc_set_alarm()
A Drtc-imx-sc.c42 static int imx_sc_rtc_read_time(struct device *dev, struct rtc_time *tm) in imx_sc_rtc_read_time()
64 static int imx_sc_rtc_set_time(struct device *dev, struct rtc_time *tm) in imx_sc_rtc_set_time()
88 struct rtc_time *alrm_tm = &alrm->time; in imx_sc_rtc_set_alarm()
A Drtc-imx-sm-bbm.c20 static int scmi_imx_bbm_read_time(struct device *dev, struct rtc_time *tm) in scmi_imx_bbm_read_time()
36 static int scmi_imx_bbm_set_time(struct device *dev, struct rtc_time *tm) in scmi_imx_bbm_set_time()
63 struct rtc_time *alrm_tm = &alrm->time; in scmi_imx_bbm_set_alarm()
A Drtc-hid-sensor-time.c27 struct rtc_time last_time;
30 struct rtc_time time_buf;
81 struct rtc_time *time_buf = &time_state->time_buf; in hid_time_capture_sample()
192 static int hid_rtc_read_time(struct device *dev, struct rtc_time *tm) in hid_rtc_read_time()
/drivers/input/misc/
A Dhp_sdc_rtc.c66 static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_do_read_bbrtc()
102 memset(rtctm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_do_read_bbrtc()
114 static int hp_sdc_rtc_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_read_bbrtc()
116 struct rtc_time tm, tm_last; in hp_sdc_rtc_read_bbrtc()
124 while (memcmp(&tm, &tm_last, sizeof(struct rtc_time))) { in hp_sdc_rtc_read_bbrtc()
126 memcpy(&tm_last, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
130 memcpy(rtctm, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
272 struct rtc_time tm; in hp_sdc_rtc_proc_show()
275 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_show()

Completed in 45 milliseconds

12345678