Lines Matching refs:ald
286 u8 ald[2]; in rx8025_read_alarm() local
292 err = rx8025_read_regs(client, RX8025_REG_ALDMIN, 2, ald); in rx8025_read_alarm()
301 __func__, ald[0], ald[1], ctrl2); in rx8025_read_alarm()
305 t->time.tm_min = bcd2bin(ald[0] & 0x7f); in rx8025_read_alarm()
307 t->time.tm_hour = bcd2bin(ald[1] & 0x3f); in rx8025_read_alarm()
309 t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12 in rx8025_read_alarm()
310 + (ald[1] & 0x20 ? 12 : 0); in rx8025_read_alarm()
323 u8 ald[2]; in rx8025_set_alarm() local
340 ald[0] = bin2bcd(t->time.tm_min); in rx8025_set_alarm()
342 ald[1] = bin2bcd(t->time.tm_hour); in rx8025_set_alarm()
344 ald[1] = (t->time.tm_hour >= 12 ? 0x20 : 0) in rx8025_set_alarm()
347 dev_dbg(dev, "%s: write 0x%02x 0x%02x\n", __func__, ald[0], ald[1]); in rx8025_set_alarm()
356 err = rx8025_write_regs(client, RX8025_REG_ALDMIN, 2, ald); in rx8025_set_alarm()