Lines Matching refs:mask
177 uint16_t id, uint16_t *mask) in ambiq_rtc_alarm_get_supported_fields() argument
186 *mask = AMBIQ_RTC_ALARM_TIME_MASK; in ambiq_rtc_alarm_get_supported_fields()
192 static int ambiq_rtc_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in ambiq_rtc_alarm_get_time() argument
213 *mask = data->alarm_set_mask; in ambiq_rtc_alarm_get_time()
217 timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, *mask); in ambiq_rtc_alarm_get_time()
224 static int ambiq_rtc_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in ambiq_rtc_alarm_set_time() argument
236 if (rtc_utils_validate_rtc_time(timeptr, mask) == false) { in ambiq_rtc_alarm_set_time()
243 if (mask & ~mask_available) { in ambiq_rtc_alarm_set_time()
247 data->alarm_set_mask = mask; in ambiq_rtc_alarm_set_time()
261 if (mask == 0) { in ambiq_rtc_alarm_set_time()
269 timeptr->tm_mon, timeptr->tm_wday, mask); in ambiq_rtc_alarm_set_time()