Searched refs:wkalrm (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/rtc/ |
A D | rtc-efi.c | 115 static int efi_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in efi_read_alarm() argument 123 status = efi.get_wakeup_time((efi_bool_t *)&wkalrm->enabled, in efi_read_alarm() 124 (efi_bool_t *)&wkalrm->pending, &eft); in efi_read_alarm() 129 if (!convert_from_efi_time(&eft, &wkalrm->time)) in efi_read_alarm() 132 return rtc_valid_tm(&wkalrm->time); in efi_read_alarm() 135 static int efi_set_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in efi_set_alarm() argument 140 convert_to_efi_time(&wkalrm->time, &eft); in efi_set_alarm() 150 status = efi.set_wakeup_time((efi_bool_t)wkalrm->enabled, &eft); in efi_set_alarm()
|
A D | rtc-lpc32xx.c | 87 struct rtc_wkalrm *wkalrm) in lpc32xx_rtc_read_alarm() argument 91 rtc_time64_to_tm(rtc_readl(rtc, LPC32XX_RTC_MATCH0), &wkalrm->time); in lpc32xx_rtc_read_alarm() 92 wkalrm->enabled = rtc->alarm_enabled; in lpc32xx_rtc_read_alarm() 93 wkalrm->pending = !!(rtc_readl(rtc, LPC32XX_RTC_INTSTAT) & in lpc32xx_rtc_read_alarm() 96 return rtc_valid_tm(&wkalrm->time); in lpc32xx_rtc_read_alarm() 100 struct rtc_wkalrm *wkalrm) in lpc32xx_rtc_set_alarm() argument 106 alarmsecs = rtc_tm_to_time64(&wkalrm->time); in lpc32xx_rtc_set_alarm() 116 rtc->alarm_enabled = wkalrm->enabled; in lpc32xx_rtc_set_alarm() 117 if (wkalrm->enabled) { in lpc32xx_rtc_set_alarm()
|
A D | rtc-lpc24xx.c | 111 static int lpc24xx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in lpc24xx_rtc_read_alarm() argument 114 struct rtc_time *tm = &wkalrm->time; in lpc24xx_rtc_read_alarm() 125 wkalrm->enabled = rtc_readl(rtc, LPC24XX_AMR) == 0; in lpc24xx_rtc_read_alarm() 126 wkalrm->pending = !!(rtc_readl(rtc, LPC24XX_ILR) & LPC24XX_RTCCIF); in lpc24xx_rtc_read_alarm() 128 return rtc_valid_tm(&wkalrm->time); in lpc24xx_rtc_read_alarm() 131 static int lpc24xx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in lpc24xx_rtc_set_alarm() argument 134 struct rtc_time *tm = &wkalrm->time; in lpc24xx_rtc_set_alarm() 148 if (wkalrm->enabled) in lpc24xx_rtc_set_alarm()
|
A D | rtc-vr41xx.c | 137 static int vr41xx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in vr41xx_rtc_read_alarm() argument 140 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_read_alarm() 147 wkalrm->enabled = alarm_enabled; in vr41xx_rtc_read_alarm() 156 static int vr41xx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in vr41xx_rtc_set_alarm() argument 160 alarm_sec = rtc_tm_to_time64(&wkalrm->time); in vr41xx_rtc_set_alarm() 171 if (wkalrm->enabled) in vr41xx_rtc_set_alarm() 174 alarm_enabled = wkalrm->enabled; in vr41xx_rtc_set_alarm()
|
A D | rtc-mt7622.c | 247 static int mtk_rtc_getalarm(struct device *dev, struct rtc_wkalrm *wkalrm) in mtk_rtc_getalarm() argument 250 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_getalarm() 254 wkalrm->enabled = !!(mtk_r32(hw, MTK_RTC_AL_CTL) & RTC_AL_EN); in mtk_rtc_getalarm() 255 wkalrm->pending = !!(mtk_r32(hw, MTK_RTC_INT) & RTC_INT_AL_STA); in mtk_rtc_getalarm() 260 static int mtk_rtc_setalarm(struct device *dev, struct rtc_wkalrm *wkalrm) in mtk_rtc_setalarm() argument 263 struct rtc_time *alrm_tm = &wkalrm->time; in mtk_rtc_setalarm()
|
A D | rtc-sunxi.c | 185 static int sunxi_rtc_getalarm(struct device *dev, struct rtc_wkalrm *wkalrm) in sunxi_rtc_getalarm() argument 188 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm() 215 wkalrm->enabled = 1; in sunxi_rtc_getalarm() 254 static int sunxi_rtc_setalarm(struct device *dev, struct rtc_wkalrm *wkalrm) in sunxi_rtc_setalarm() argument 257 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm() 305 sunxi_rtc_setaie(wkalrm->enabled, chip); in sunxi_rtc_setalarm()
|
A D | rtc-sun6i.c | 489 static int sun6i_rtc_getalarm(struct device *dev, struct rtc_wkalrm *wkalrm) in sun6i_rtc_getalarm() argument 501 wkalrm->enabled = !!(alrm_en & SUN6I_ALRM_EN_CNT_EN); in sun6i_rtc_getalarm() 502 wkalrm->pending = !!(alrm_st & SUN6I_ALRM_EN_CNT_EN); in sun6i_rtc_getalarm() 503 rtc_time64_to_tm(chip->alarm, &wkalrm->time); in sun6i_rtc_getalarm() 508 static int sun6i_rtc_setalarm(struct device *dev, struct rtc_wkalrm *wkalrm) in sun6i_rtc_setalarm() argument 511 struct rtc_time *alrm_tm = &wkalrm->time; in sun6i_rtc_setalarm() 545 sun6i_rtc_setaie(wkalrm->enabled, chip); in sun6i_rtc_setalarm()
|
A D | rtc-sh.c | 391 static int sh_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in sh_rtc_read_alarm() argument 394 struct rtc_time *tm = &wkalrm->time; in sh_rtc_read_alarm() 407 wkalrm->enabled = (readb(rtc->regbase + RCR1) & RCR1_AIE) ? 1 : 0; in sh_rtc_read_alarm() 424 static int sh_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in sh_rtc_set_alarm() argument 428 struct rtc_time *tm = &wkalrm->time; in sh_rtc_set_alarm() 449 if (wkalrm->enabled) { in sh_rtc_set_alarm()
|
A D | rtc-st-lpc.c | 123 static int st_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm) in st_rtc_read_alarm() argument 130 memcpy(wkalrm, &rtc->alarm, sizeof(struct rtc_wkalrm)); in st_rtc_read_alarm()
|
Completed in 17 milliseconds