Searched refs:alrm_tm (Results 1 – 5 of 5) sorted by relevance
88 struct rtc_time *alrm_tm = &alrm->time; in imx_sc_rtc_set_alarm() local95 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()
455 struct rtc_time *alrm_tm = &alrm->time; in ac100_rtc_get_alarm() local470 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() local492 year = alrm_tm->tm_year - AC100_YEAR_OFF; in ac100_rtc_set_alarm()[all …]
186 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm() local194 alrm_tm->tm_sec = SUNXI_ALRM_GET_SEC_VALUE(alrm); in sunxi_rtc_getalarm()195 alrm_tm->tm_min = SUNXI_ALRM_GET_MIN_VALUE(alrm); in sunxi_rtc_getalarm()196 alrm_tm->tm_hour = SUNXI_ALRM_GET_HOUR_VALUE(alrm); in sunxi_rtc_getalarm()198 alrm_tm->tm_mday = SUNXI_DATE_GET_DAY_VALUE(date); in sunxi_rtc_getalarm()199 alrm_tm->tm_mon = SUNXI_DATE_GET_MON_VALUE(date); in sunxi_rtc_getalarm()200 alrm_tm->tm_year = SUNXI_DATE_GET_YEAR_VALUE(date, in sunxi_rtc_getalarm()203 alrm_tm->tm_mon -= 1; in sunxi_rtc_getalarm()209 alrm_tm->tm_year += SUNXI_YEAR_OFF(chip->data_year); in sunxi_rtc_getalarm()255 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm() local[all …]
250 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_getalarm() local252 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() local265 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()
522 struct rtc_time *alrm_tm = &wkalrm->time; in sun6i_rtc_setalarm() local528 time_set = rtc_tm_to_time64(alrm_tm); in sun6i_rtc_setalarm()535 counter_val_hms = SUN6I_TIME_SET_SEC_VALUE(alrm_tm->tm_sec) | in sun6i_rtc_setalarm()536 SUN6I_TIME_SET_MIN_VALUE(alrm_tm->tm_min) | in sun6i_rtc_setalarm()537 SUN6I_TIME_SET_HOUR_VALUE(alrm_tm->tm_hour); in sun6i_rtc_setalarm()539 counter_val = div_u64(rtc_tm_to_time64(alrm_tm), SECS_PER_DAY); in sun6i_rtc_setalarm()