Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/rtc/
Drtc-ac100.c463 struct rtc_time *alrm_tm = &alrm->time; in ac100_rtc_get_alarm() local
478 alrm_tm->tm_sec = bcd2bin(reg[0] & AC100_ALM_SEC_MASK); in ac100_rtc_get_alarm()
479 alrm_tm->tm_min = bcd2bin(reg[1] & AC100_ALM_MIN_MASK); in ac100_rtc_get_alarm()
480 alrm_tm->tm_hour = bcd2bin(reg[2] & AC100_ALM_HOU_MASK); in ac100_rtc_get_alarm()
481 alrm_tm->tm_wday = bcd2bin(reg[3] & AC100_ALM_WEE_MASK); in ac100_rtc_get_alarm()
482 alrm_tm->tm_mday = bcd2bin(reg[4] & AC100_ALM_DAY_MASK); in ac100_rtc_get_alarm()
483 alrm_tm->tm_mon = bcd2bin(reg[5] & AC100_ALM_MON_MASK) - 1; in ac100_rtc_get_alarm()
484 alrm_tm->tm_year = bcd2bin(reg[6] & AC100_ALM_YEA_MASK) + in ac100_rtc_get_alarm()
494 struct rtc_time *alrm_tm = &alrm->time; in ac100_rtc_set_alarm() local
500 year = alrm_tm->tm_year - AC100_YEAR_OFF; in ac100_rtc_set_alarm()
[all …]
Drtc-sunxi.c201 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm() local
209 alrm_tm->tm_sec = SUNXI_ALRM_GET_SEC_VALUE(alrm); in sunxi_rtc_getalarm()
210 alrm_tm->tm_min = SUNXI_ALRM_GET_MIN_VALUE(alrm); in sunxi_rtc_getalarm()
211 alrm_tm->tm_hour = SUNXI_ALRM_GET_HOUR_VALUE(alrm); in sunxi_rtc_getalarm()
213 alrm_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_getalarm()
214 alrm_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_getalarm()
215 alrm_tm->tm_year = SUNXI_DATE_GET_YEAR_VALUE(date, in sunxi_rtc_getalarm()
218 alrm_tm->tm_mon -= 1; in sunxi_rtc_getalarm()
224 alrm_tm->tm_year += SUNXI_YEAR_OFF(chip->data_year); in sunxi_rtc_getalarm()
270 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm() local
[all …]
Drtc-mt7622.c259 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_getalarm() local
261 mtk_rtc_get_alarm_or_time(hw, alrm_tm, MTK_AL); in mtk_rtc_getalarm()
272 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_setalarm() local
274 if (!MTK_RTC_TM_YR_VALID(alrm_tm->tm_year)) in mtk_rtc_setalarm()
290 mtk_rtc_set_alarm_or_time(hw, alrm_tm, MTK_AL); in mtk_rtc_setalarm()
Drtc-snvs.c221 struct rtc_time *alrm_tm = &alrm->time; in snvs_rtc_set_alarm() local
225 rtc_tm_to_time(alrm_tm, &time); in snvs_rtc_set_alarm()
Drtc-sun6i.c379 struct rtc_time *alrm_tm = &wkalrm->time; in sun6i_rtc_setalarm() local
392 rtc_tm_to_time(alrm_tm, &time_set); in sun6i_rtc_setalarm()