Home
last modified time | relevance | path

Searched refs:alm_tm (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/rtc/
Drtc-hym8563.c182 struct rtc_time *alm_tm = &alm->time; in hym8563_rtc_read_alarm() local
191 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() local
226 if (alm_tm->tm_sec) { in hym8563_rtc_set_alarm()
227 alm_tm->tm_sec = 0; in hym8563_rtc_set_alarm()
228 alm_tm->tm_min++; in hym8563_rtc_set_alarm()
[all …]
Drtc-pic32.c193 struct rtc_time *alm_tm = &alrm->time; in pic32_rtc_getalarm() local
198 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 …]
Drtc-s3c.c252 struct rtc_time *alm_tm = &alrm->time; in s3c_rtc_getalarm() local
260 alm_tm->tm_sec = readb(info->base + S3C2410_ALMSEC); in s3c_rtc_getalarm()
261 alm_tm->tm_min = readb(info->base + S3C2410_ALMMIN); in s3c_rtc_getalarm()
262 alm_tm->tm_hour = readb(info->base + S3C2410_ALMHOUR); in s3c_rtc_getalarm()
263 alm_tm->tm_mon = readb(info->base + S3C2410_ALMMON); in s3c_rtc_getalarm()
264 alm_tm->tm_mday = readb(info->base + S3C2410_ALMDATE); in s3c_rtc_getalarm()
265 alm_tm->tm_year = readb(info->base + S3C2410_ALMYEAR); in s3c_rtc_getalarm()
273 dev_dbg(dev, "read alarm %d, %ptR\n", alm_en, alm_tm); in s3c_rtc_getalarm()
277 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in s3c_rtc_getalarm()
280 alm_tm->tm_min = bcd2bin(alm_tm->tm_min); in s3c_rtc_getalarm()
[all …]