Lines Matching refs:ald
588 u8 ald[3], ctl[3]; in rx8130_read_alarm() local
592 ret = regmap_bulk_read(ds1307->regmap, RX8130_REG_ALARM_MIN, ald, in rx8130_read_alarm()
593 sizeof(ald)); in rx8130_read_alarm()
608 t->time.tm_min = bcd2bin(ald[0] & 0x7f); in rx8130_read_alarm()
609 t->time.tm_hour = bcd2bin(ald[1] & 0x7f); in rx8130_read_alarm()
611 t->time.tm_mday = bcd2bin(ald[2] & 0x7f); in rx8130_read_alarm()
627 u8 ald[3], ctl[3]; in rx8130_set_alarm() local
652 ald[0] = bin2bcd(t->time.tm_min); in rx8130_set_alarm()
653 ald[1] = bin2bcd(t->time.tm_hour); in rx8130_set_alarm()
654 ald[2] = bin2bcd(t->time.tm_mday); in rx8130_set_alarm()
656 ret = regmap_bulk_write(ds1307->regmap, RX8130_REG_ALARM_MIN, ald, in rx8130_set_alarm()
657 sizeof(ald)); in rx8130_set_alarm()