Lines Matching refs:mask
268 static bool rtc_mc146818_validate_alarm(const struct rtc_time *timeptr, uint32_t mask) in rtc_mc146818_validate_alarm() argument
270 if ((mask & RTC_ALARM_TIME_MASK_SECOND) && in rtc_mc146818_validate_alarm()
275 if ((mask & RTC_ALARM_TIME_MASK_MINUTE) && in rtc_mc146818_validate_alarm()
280 if ((mask & RTC_ALARM_TIME_MASK_HOUR) && in rtc_mc146818_validate_alarm()
289 uint16_t *mask) in rtc_mc146818_alarm_get_supported_fields() argument
297 (*mask) = (RTC_ALARM_TIME_MASK_SECOND in rtc_mc146818_alarm_get_supported_fields()
304 static int rtc_mc146818_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in rtc_mc146818_alarm_set_time() argument
317 if ((mask > 0) && (timeptr == NULL)) { in rtc_mc146818_alarm_set_time()
323 if (!rtc_mc146818_validate_alarm(timeptr, mask)) { in rtc_mc146818_alarm_set_time()
328 if (mask & RTC_ALARM_TIME_MASK_SECOND) { in rtc_mc146818_alarm_set_time()
334 if (mask & RTC_ALARM_TIME_MASK_MINUTE) { in rtc_mc146818_alarm_set_time()
339 if (mask & RTC_ALARM_TIME_MASK_HOUR) { in rtc_mc146818_alarm_set_time()
352 static int rtc_mc146818_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in rtc_mc146818_alarm_get_time() argument
371 (*mask) = 0; in rtc_mc146818_alarm_get_time()
376 (*mask) |= RTC_ALARM_TIME_MASK_SECOND; in rtc_mc146818_alarm_get_time()
382 (*mask) |= RTC_ALARM_TIME_MASK_MINUTE; in rtc_mc146818_alarm_get_time()
388 (*mask) |= RTC_ALARM_TIME_MASK_HOUR; in rtc_mc146818_alarm_get_time()