Lines Matching refs:mask

229 static int rv3028_update_reg8(const struct device *dev, uint8_t addr, uint8_t mask, uint8_t val)  in rv3028_update_reg8()  argument
234 err = i2c_reg_update_byte_dt(&config->i2c, addr, mask, val); in rv3028_update_reg8()
237 mask, val, err); in rv3028_update_reg8()
350 static int rv3028_update_cfg(const struct device *dev, uint8_t addr, uint8_t mask, uint8_t val) in rv3028_update_cfg() argument
360 val_new = (val_old & ~mask) | (val & mask); in rv3028_update_cfg()
546 static int rv3028_alarm_get_supported_fields(const struct device *dev, uint16_t id, uint16_t *mask) in rv3028_alarm_get_supported_fields() argument
555 *mask = RV3028_RTC_ALARM_TIME_MASK; in rv3028_alarm_get_supported_fields()
560 static int rv3028_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, in rv3028_alarm_set_time() argument
570 if (mask & ~(RV3028_RTC_ALARM_TIME_MASK)) { in rv3028_alarm_set_time()
571 LOG_ERR("unsupported alarm field mask 0x%04x", mask); in rv3028_alarm_set_time()
575 if (!rtc_utils_validate_rtc_time(timeptr, mask)) { in rv3028_alarm_set_time()
580 if (mask & RTC_ALARM_TIME_MASK_MINUTE) { in rv3028_alarm_set_time()
586 if (mask & RTC_ALARM_TIME_MASK_HOUR) { in rv3028_alarm_set_time()
592 if (mask & RTC_ALARM_TIME_MASK_MONTHDAY) { in rv3028_alarm_set_time()
599 timeptr->tm_mday, timeptr->tm_hour, timeptr->tm_min, mask); in rv3028_alarm_set_time()
605 static int rv3028_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, in rv3028_alarm_get_time() argument
623 *mask = 0U; in rv3028_alarm_get_time()
627 *mask |= RTC_ALARM_TIME_MASK_MINUTE; in rv3028_alarm_get_time()
632 *mask |= RTC_ALARM_TIME_MASK_HOUR; in rv3028_alarm_get_time()
637 *mask |= RTC_ALARM_TIME_MASK_MONTHDAY; in rv3028_alarm_get_time()
641 timeptr->tm_mday, timeptr->tm_hour, timeptr->tm_min, *mask); in rv3028_alarm_get_time()