Searched refs:alm_tm (Results 1 – 3 of 3) sorted by relevance
193 struct rtc_time *alm_tm = &alrm->time; in pic32_rtc_getalarm() local198 alm_tm->tm_sec = readb(base + PIC32_ALRMSEC); in pic32_rtc_getalarm()199 alm_tm->tm_min = readb(base + PIC32_ALRMMIN); in pic32_rtc_getalarm()200 alm_tm->tm_hour = readb(base + PIC32_ALRMHOUR); in pic32_rtc_getalarm()201 alm_tm->tm_mon = readb(base + PIC32_ALRMMON); in pic32_rtc_getalarm()202 alm_tm->tm_mday = readb(base + PIC32_ALRMDAY); in pic32_rtc_getalarm()203 alm_tm->tm_year = readb(base + PIC32_ALRMYEAR); in pic32_rtc_getalarm()209 dev_dbg(dev, "getalarm: %d, %ptR\n", alm_en, alm_tm); in pic32_rtc_getalarm()211 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in pic32_rtc_getalarm()212 alm_tm->tm_min = bcd2bin(alm_tm->tm_min); in pic32_rtc_getalarm()[all …]
182 struct rtc_time *alm_tm = &alm->time; in hym8563_rtc_read_alarm() local191 alm_tm->tm_sec = 0; in hym8563_rtc_read_alarm()193 alm_tm->tm_min = (buf[0] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()196 alm_tm->tm_hour = (buf[1] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()199 alm_tm->tm_mday = (buf[2] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()202 alm_tm->tm_wday = (buf[3] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()219 struct rtc_time *alm_tm = &alm->time; in hym8563_rtc_set_alarm() local233 buf[0] = (alm_tm->tm_min < 60 && alm_tm->tm_min >= 0) ? in hym8563_rtc_set_alarm()234 bin2bcd(alm_tm->tm_min) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()236 buf[1] = (alm_tm->tm_hour < 24 && alm_tm->tm_hour >= 0) ? in hym8563_rtc_set_alarm()[all …]
227 struct rtc_time *alm_tm = &alrm->time; in s3c_rtc_getalarm() local235 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm()236 alm_tm->tm_min = readb(info->base + S3C2410_ALMMIN); in s3c_rtc_getalarm()237 alm_tm->tm_hour = readb(info->base + S3C2410_ALMHOUR); in s3c_rtc_getalarm()238 alm_tm->tm_mon = readb(info->base + S3C2410_ALMMON); in s3c_rtc_getalarm()239 alm_tm->tm_mday = readb(info->base + S3C2410_ALMDATE); in s3c_rtc_getalarm()240 alm_tm->tm_year = readb(info->base + S3C2410_ALMYEAR); in s3c_rtc_getalarm()248 dev_dbg(dev, "read alarm %d, %ptR\n", alm_en, alm_tm); in s3c_rtc_getalarm()252 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in s3c_rtc_getalarm()255 alm_tm->tm_min = bcd2bin(alm_tm->tm_min); in s3c_rtc_getalarm()[all …]