Home
last modified time | relevance | path

Searched refs:rtc_regs (Results 1 – 9 of 9) sorted by relevance

/freebsd-14.2/sys/dev/iicbus/pmic/rockchip/
H A Drk8xx_rtc.c54 ctrl &= ~(sc->rtc_regs.ctrl_ampm_mask | sc->rtc_regs.ctrl_gettime_mask); in rk8xx_gettime()
86 bct.mon = data[sc->rtc_regs.months] & sc->rtc_regs.months_mask; in rk8xx_gettime()
87 bct.day = data[sc->rtc_regs.days] & sc->rtc_regs.days_mask; in rk8xx_gettime()
88 bct.hour = data[sc->rtc_regs.hours] & sc->rtc_regs.hours_mask; in rk8xx_gettime()
89 bct.min = data[sc->rtc_regs.minutes] & sc->rtc_regs.minutes_mask; in rk8xx_gettime()
90 bct.sec = data[sc->rtc_regs.secs] & sc->rtc_regs.secs_mask; in rk8xx_gettime()
91 bct.dow = data[sc->rtc_regs.weeks] & sc->rtc_regs.weeks_mask; in rk8xx_gettime()
130 data[sc->rtc_regs.days] = bct.day; in rk8xx_settime()
133 data[sc->rtc_regs.secs] = bct.sec; in rk8xx_settime()
136 if (data[sc->rtc_regs.weeks] == 0) in rk8xx_settime()
[all …]
H A Drk805.c160 sc->rtc_regs.secs = RK805_RTC_SECS; in rk805_attach()
161 sc->rtc_regs.secs_mask = RK805_RTC_SECS_MASK; in rk805_attach()
162 sc->rtc_regs.minutes = RK805_RTC_MINUTES; in rk805_attach()
164 sc->rtc_regs.hours = RK805_RTC_HOURS; in rk805_attach()
165 sc->rtc_regs.hours_mask = RK805_RTC_HOURS_MASK; in rk805_attach()
166 sc->rtc_regs.days = RK805_RTC_DAYS; in rk805_attach()
167 sc->rtc_regs.days_mask = RK805_RTC_DAYS_MASK; in rk805_attach()
168 sc->rtc_regs.months = RK805_RTC_MONTHS; in rk805_attach()
170 sc->rtc_regs.years = RK805_RTC_YEARS; in rk805_attach()
171 sc->rtc_regs.weeks = RK805_RTC_WEEKS_MASK; in rk805_attach()
[all …]
H A Drk808.c235 sc->rtc_regs.secs = RK808_RTC_SECS; in rk808_attach()
236 sc->rtc_regs.secs_mask = RK808_RTC_SECS_MASK; in rk808_attach()
237 sc->rtc_regs.minutes = RK808_RTC_MINUTES; in rk808_attach()
239 sc->rtc_regs.hours = RK808_RTC_HOURS; in rk808_attach()
240 sc->rtc_regs.hours_mask = RK808_RTC_HOURS_MASK; in rk808_attach()
241 sc->rtc_regs.days = RK808_RTC_DAYS; in rk808_attach()
242 sc->rtc_regs.days_mask = RK808_RTC_DAYS_MASK; in rk808_attach()
243 sc->rtc_regs.months = RK808_RTC_MONTHS; in rk808_attach()
245 sc->rtc_regs.years = RK808_RTC_YEARS; in rk808_attach()
246 sc->rtc_regs.weeks = RK808_RTC_WEEKS_MASK; in rk808_attach()
[all …]
H A Drk817.c491 sc->rtc_regs.secs = RK817_RTC_SECONDS; in rk817_attach()
492 sc->rtc_regs.secs_mask = RK817_RTC_SECONDS_MASK; in rk817_attach()
493 sc->rtc_regs.minutes = RK817_RTC_MINUTES; in rk817_attach()
495 sc->rtc_regs.hours = RK817_RTC_HOURS; in rk817_attach()
496 sc->rtc_regs.hours_mask = RK817_RTC_HOURS_MASK; in rk817_attach()
497 sc->rtc_regs.days = RK817_RTC_DAYS; in rk817_attach()
498 sc->rtc_regs.days_mask = RK817_RTC_DAYS_MASK; in rk817_attach()
499 sc->rtc_regs.months = RK817_RTC_MONTHS; in rk817_attach()
501 sc->rtc_regs.years = RK817_RTC_YEARS; in rk817_attach()
502 sc->rtc_regs.weeks = RK817_RTC_WEEKS_MASK; in rk817_attach()
[all …]
H A Drk8xx.h111 struct rk8xx_rtc_reg rtc_regs; member
/freebsd-14.2/sys/contrib/ncsw/inc/flib/
H A Dfsl_fman_rtc.h130 struct rtc_regs { struct
187 uint32_t fman_rtc_get_events(struct rtc_regs *regs);
195 uint32_t fman_rtc_get_interrupt_mask(struct rtc_regs *regs);
220 uint32_t fman_rtc_check_and_clear_event(struct rtc_regs *regs);
227 void fman_rtc_ack_event(struct rtc_regs *regs, uint32_t events);
249 uint32_t fman_rtc_get_timer_ctrl(struct rtc_regs *regs);
320 static inline uint64_t fman_rtc_get_timer(struct rtc_regs *regs) in fman_rtc_get_timer()
348 void fman_rtc_timers_soft_reset(struct rtc_regs *regs);
368 void fman_rtc_enable(struct rtc_regs *regs, bool reset_clock);
376 bool fman_rtc_is_enabled(struct rtc_regs *regs);
[all …]
/freebsd-14.2/sys/contrib/ncsw/Peripherals/FM/Rtc/
H A Dfman_rtc.c48 uint32_t fman_rtc_get_events(struct rtc_regs *regs) in fman_rtc_get_events()
58 uint32_t fman_rtc_get_interrupt_mask(struct rtc_regs *regs) in fman_rtc_get_interrupt_mask()
68 void fman_rtc_ack_event(struct rtc_regs *regs, uint32_t events) in fman_rtc_ack_event()
73 uint32_t fman_rtc_check_and_clear_event(struct rtc_regs *regs) in fman_rtc_check_and_clear_event()
121 void fman_rtc_set_timer_offset(struct rtc_regs *regs, int64_t val) in fman_rtc_set_timer_offset()
138 uint32_t fman_rtc_get_timer_ctrl(struct rtc_regs *regs) in fman_rtc_get_timer_ctrl()
143 void fman_rtc_set_timer_ctrl(struct rtc_regs *regs, uint32_t val) in fman_rtc_set_timer_ctrl()
148 void fman_rtc_timers_soft_reset(struct rtc_regs *regs) in fman_rtc_timers_soft_reset()
227 bool fman_rtc_is_enabled(struct rtc_regs *regs) in fman_rtc_is_enabled()
232 void fman_rtc_enable(struct rtc_regs *regs, bool reset_clock) in fman_rtc_enable()
[all …]
H A Dfm_rtc.h85 struct rtc_regs *p_MemMap;
H A Dfm_rtc.c95 struct rtc_regs *p_MemMap; in RtcExceptions()
185 p_Rtc->p_MemMap = (struct rtc_regs *)UINT_TO_PTR(p_FmRtcParam->baseAddress); in FM_RTC_Config()
196 struct rtc_regs *p_MemMap; in FM_RTC_Init()