Lines Matching refs:mask

167 						  uint16_t *mask)  in rtc_numaker_alarm_get_supported_fields()  argument
172 *mask = RTC_ALARM_TIME_MASK_SECOND in rtc_numaker_alarm_get_supported_fields()
182 static int rtc_numaker_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in rtc_numaker_alarm_set_time() argument
197 if ((mask != 0) && (timeptr == NULL)) { in rtc_numaker_alarm_set_time()
201 if (mask & ~mask_capable) { in rtc_numaker_alarm_set_time()
205 if (rtc_utils_validate_rtc_time(timeptr, mask) == false) { in rtc_numaker_alarm_set_time()
212 if ((mask == 0) || (timeptr == NULL)) { in rtc_numaker_alarm_set_time()
214 rtc_base->SPR[0] = mask; in rtc_numaker_alarm_set_time()
234 if (mask & RTC_ALARM_TIME_MASK_YEAR) { in rtc_numaker_alarm_set_time()
238 if (mask & RTC_ALARM_TIME_MASK_MONTH) { in rtc_numaker_alarm_set_time()
242 if (mask & RTC_ALARM_TIME_MASK_MONTHDAY) { in rtc_numaker_alarm_set_time()
246 if (mask & RTC_ALARM_TIME_MASK_HOUR) { in rtc_numaker_alarm_set_time()
250 if (mask & RTC_ALARM_TIME_MASK_MINUTE) { in rtc_numaker_alarm_set_time()
254 if (mask & RTC_ALARM_TIME_MASK_SECOND) { in rtc_numaker_alarm_set_time()
268 rtc_base->SPR[0] = mask; in rtc_numaker_alarm_set_time()
284 static int rtc_numaker_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in rtc_numaker_alarm_get_time() argument
292 if ((id != 0) || (mask == NULL) || (timeptr == NULL)) { in rtc_numaker_alarm_get_time()
302 *mask = rtc_base->SPR[0]; in rtc_numaker_alarm_get_time()
303 if (*mask & RTC_ALARM_TIME_MASK_YEAR) { in rtc_numaker_alarm_get_time()
306 if (*mask & RTC_ALARM_TIME_MASK_MONTH) { in rtc_numaker_alarm_get_time()
309 if (*mask & RTC_ALARM_TIME_MASK_MONTHDAY) { in rtc_numaker_alarm_get_time()
312 if (*mask & RTC_ALARM_TIME_MASK_HOUR) { in rtc_numaker_alarm_get_time()
315 if (*mask & RTC_ALARM_TIME_MASK_MINUTE) { in rtc_numaker_alarm_get_time()
318 if (*mask & RTC_ALARM_TIME_MASK_SECOND) { in rtc_numaker_alarm_get_time()