Home
last modified time | relevance | path

Searched refs:alrm_tm (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/rtc/
Drtc-imx-sc.c88 struct rtc_time *alrm_tm = &alrm->time; in imx_sc_rtc_set_alarm() local
95 msg.year = alrm_tm->tm_year + 1900; in imx_sc_rtc_set_alarm()
96 msg.mon = alrm_tm->tm_mon + 1; in imx_sc_rtc_set_alarm()
97 msg.day = alrm_tm->tm_mday; in imx_sc_rtc_set_alarm()
98 msg.hour = alrm_tm->tm_hour; in imx_sc_rtc_set_alarm()
99 msg.min = alrm_tm->tm_min; in imx_sc_rtc_set_alarm()
100 msg.sec = alrm_tm->tm_sec; in imx_sc_rtc_set_alarm()
Drtc-ac100.c455 struct rtc_time *alrm_tm = &alrm->time; in ac100_rtc_get_alarm() local
470 alrm_tm->tm_sec = bcd2bin(reg[0] & AC100_ALM_SEC_MASK); in ac100_rtc_get_alarm()
471 alrm_tm->tm_min = bcd2bin(reg[1] & AC100_ALM_MIN_MASK); in ac100_rtc_get_alarm()
472 alrm_tm->tm_hour = bcd2bin(reg[2] & AC100_ALM_HOU_MASK); in ac100_rtc_get_alarm()
473 alrm_tm->tm_wday = bcd2bin(reg[3] & AC100_ALM_WEE_MASK); in ac100_rtc_get_alarm()
474 alrm_tm->tm_mday = bcd2bin(reg[4] & AC100_ALM_DAY_MASK); in ac100_rtc_get_alarm()
475 alrm_tm->tm_mon = bcd2bin(reg[5] & AC100_ALM_MON_MASK) - 1; in ac100_rtc_get_alarm()
476 alrm_tm->tm_year = bcd2bin(reg[6] & AC100_ALM_YEA_MASK) + in ac100_rtc_get_alarm()
486 struct rtc_time *alrm_tm = &alrm->time; in ac100_rtc_set_alarm() local
492 year = alrm_tm->tm_year - AC100_YEAR_OFF; in ac100_rtc_set_alarm()
[all …]
Drtc-sunxi.c188 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm() local
196 alrm_tm->tm_sec = SUNXI_ALRM_GET_SEC_VALUE(alrm); in sunxi_rtc_getalarm()
197 alrm_tm->tm_min = SUNXI_ALRM_GET_MIN_VALUE(alrm); in sunxi_rtc_getalarm()
198 alrm_tm->tm_hour = SUNXI_ALRM_GET_HOUR_VALUE(alrm); in sunxi_rtc_getalarm()
200 alrm_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_getalarm()
201 alrm_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_getalarm()
202 alrm_tm->tm_year = SUNXI_DATE_GET_YEAR_VALUE(date, in sunxi_rtc_getalarm()
205 alrm_tm->tm_mon -= 1; in sunxi_rtc_getalarm()
211 alrm_tm->tm_year += SUNXI_YEAR_OFF(chip->data_year); in sunxi_rtc_getalarm()
257 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm() local
[all …]
Drtc-mt7622.c250 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_getalarm() local
252 mtk_rtc_get_alarm_or_time(hw, alrm_tm, MTK_AL); in mtk_rtc_getalarm()
263 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_setalarm() local
265 if (!MTK_RTC_TM_YR_VALID(alrm_tm->tm_year)) in mtk_rtc_setalarm()
281 mtk_rtc_set_alarm_or_time(hw, alrm_tm, MTK_AL); in mtk_rtc_setalarm()
Drtc-sun6i.c530 struct rtc_time *alrm_tm = &wkalrm->time; in sun6i_rtc_setalarm() local
536 time_set = rtc_tm_to_time64(alrm_tm); in sun6i_rtc_setalarm()
543 counter_val_hms = SUN6I_TIME_SET_SEC_VALUE(alrm_tm->tm_sec) | in sun6i_rtc_setalarm()
544 SUN6I_TIME_SET_MIN_VALUE(alrm_tm->tm_min) | in sun6i_rtc_setalarm()
545 SUN6I_TIME_SET_HOUR_VALUE(alrm_tm->tm_hour); in sun6i_rtc_setalarm()
547 counter_val = div_u64(rtc_tm_to_time64(alrm_tm), SECS_PER_DAY); in sun6i_rtc_setalarm()