Home
last modified time | relevance | path

Searched refs:TIME_NUM (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/rtc/
H A Drtc-max8925.c54 #define TIME_NUM 8 macro
84 if (len < TIME_NUM) in tm_calc()
115 if (len < TIME_NUM) in data_calc()
154 unsigned char buf[TIME_NUM]; in max8925_rtc_read_time()
157 ret = max8925_bulk_read(info->rtc, MAX8925_RTC_SEC, TIME_NUM, buf); in max8925_rtc_read_time()
160 ret = tm_calc(tm, buf, TIME_NUM); in max8925_rtc_read_time()
168 unsigned char buf[TIME_NUM]; in max8925_rtc_set_time()
171 ret = data_calc(buf, tm, TIME_NUM); in max8925_rtc_set_time()
174 ret = max8925_bulk_write(info->rtc, MAX8925_RTC_SEC, TIME_NUM, buf); in max8925_rtc_set_time()
182 unsigned char buf[TIME_NUM]; in max8925_rtc_read_alarm()
[all …]
H A Drtc-max8907.c30 #define TIME_NUM 8 macro
96 u8 regs[TIME_NUM]; in max8907_rtc_read_time()
100 TIME_NUM); in max8907_rtc_read_time()
112 u8 regs[TIME_NUM]; in max8907_rtc_set_time()
117 TIME_NUM); in max8907_rtc_set_time()
123 u8 regs[TIME_NUM]; in max8907_rtc_read_alarm()
128 TIME_NUM); in max8907_rtc_read_alarm()
146 u8 regs[TIME_NUM]; in max8907_rtc_set_alarm()
157 TIME_NUM); in max8907_rtc_set_alarm()