Searched refs:rtc_readl (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.6/drivers/rtc/ |
D | rtc-lpc24xx.c | 58 #define rtc_readl(dev, reg) readl((dev)->rtc_base + (reg)) macro 94 ct0 = rtc_readl(rtc, LPC24XX_CTIME0); in lpc24xx_rtc_read_time() 95 ct1 = rtc_readl(rtc, LPC24XX_CTIME1); in lpc24xx_rtc_read_time() 96 ct2 = rtc_readl(rtc, LPC24XX_CTIME2); in lpc24xx_rtc_read_time() 115 tm->tm_sec = rtc_readl(rtc, LPC24XX_ALSEC); in lpc24xx_rtc_read_alarm() 116 tm->tm_min = rtc_readl(rtc, LPC24XX_ALMIN); in lpc24xx_rtc_read_alarm() 117 tm->tm_hour = rtc_readl(rtc, LPC24XX_ALHOUR); in lpc24xx_rtc_read_alarm() 118 tm->tm_mday = rtc_readl(rtc, LPC24XX_ALDOM); in lpc24xx_rtc_read_alarm() 119 tm->tm_wday = rtc_readl(rtc, LPC24XX_ALDOW); in lpc24xx_rtc_read_alarm() 120 tm->tm_yday = rtc_readl(rtc, LPC24XX_ALDOY); in lpc24xx_rtc_read_alarm() [all …]
|
D | rtc-lpc32xx.c | 42 #define rtc_readl(dev, reg) \ macro 60 elapsed_sec = rtc_readl(rtc, LPC32XX_RTC_UCOUNT); in lpc32xx_rtc_read_time() 75 tmp = rtc_readl(rtc, LPC32XX_RTC_CTRL); in lpc32xx_rtc_set_time() 91 rtc_time64_to_tm(rtc_readl(rtc, LPC32XX_RTC_MATCH0), &wkalrm->time); in lpc32xx_rtc_read_alarm() 93 wkalrm->pending = !!(rtc_readl(rtc, LPC32XX_RTC_INTSTAT) & in lpc32xx_rtc_read_alarm() 111 tmp = rtc_readl(rtc, LPC32XX_RTC_CTRL); in lpc32xx_rtc_set_alarm() 136 tmp = rtc_readl(rtc, LPC32XX_RTC_CTRL); in lpc32xx_rtc_alarm_irq_enable() 160 rtc_readl(rtc, LPC32XX_RTC_CTRL) & in lpc32xx_rtc_alarm_interrupt() 207 tmp = rtc_readl(rtc, LPC32XX_RTC_CTRL); in lpc32xx_rtc_probe() 208 if (rtc_readl(rtc, LPC32XX_RTC_KEY) != LPC32XX_RTC_KEY_ONSW_LOADVAL) { in lpc32xx_rtc_probe() [all …]
|
D | rtc-pxa.c | 68 #define rtc_readl(pxa_rtc, reg) \ macro 113 rtsr = rtc_readl(pxa_rtc, RTSR); in rtsr_clear_bits() 123 rtsr = rtc_readl(pxa_rtc, RTSR); in rtsr_set_bits() 138 rtsr = rtc_readl(pxa_rtc, RTSR); in pxa_rtc_irq() 225 rycr = rtc_readl(pxa_rtc, RYCR); in pxa_rtc_read_time() 226 rdcr = rtc_readl(pxa_rtc, RDCR); in pxa_rtc_read_time() 247 ryar = rtc_readl(pxa_rtc, RYAR1); in pxa_rtc_read_alarm() 248 rdar = rtc_readl(pxa_rtc, RDAR1); in pxa_rtc_read_alarm() 251 rtsr = rtc_readl(pxa_rtc, RTSR); in pxa_rtc_read_alarm() 267 rtsr = rtc_readl(pxa_rtc, RTSR); in pxa_rtc_set_alarm() [all …]
|
D | rtc-fsl-ftm-alarm.c | 45 static inline u32 rtc_readl(struct ftm_rtc *dev, u32 reg) in rtc_readl() function 66 val = rtc_readl(rtc, FTM_SC); in ftm_counter_enable() 77 val = rtc_readl(rtc, FTM_SC); in ftm_counter_disable() 107 while ((FTM_SC_TOF & rtc_readl(rtc, FTM_SC)) && timeout--) in ftm_irq_acknowledge() 108 rtc_writel(rtc, FTM_SC, rtc_readl(rtc, FTM_SC) & (~FTM_SC_TOF)); in ftm_irq_acknowledge() 115 val = rtc_readl(rtc, FTM_SC); in ftm_irq_enable() 124 val = rtc_readl(rtc, FTM_SC); in ftm_irq_disable()
|
D | rtc-omap.c | 160 static inline u32 rtc_readl(struct omap_rtc *rtc, unsigned int reg) in rtc_readl() function 421 val = rtc_readl(rtc, OMAP_RTC_PMIC_REG); in omap_rtc_power_off_program() 491 val = rtc_readl(omap_rtc_power_off_rtc, OMAP_RTC_PMIC_REG); in omap_rtc_power_off() 606 val = rtc_readl(rtc, OMAP_RTC_PMIC_REG); in rtc_pinconf_get() 636 val = rtc_readl(rtc, OMAP_RTC_PMIC_REG); in rtc_pinconf_set() 696 val[i] = rtc_readl(rtc, in omap_rtc_scratch_read()
|