Lines Matching refs:flagreg
74 int flagreg, err; in rx8010_irq_1_handler() local
78 err = regmap_read(rx8010->regs, RX8010_FLAG, &flagreg); in rx8010_irq_1_handler()
84 if (flagreg & RX8010_FLAG_VLF) in rx8010_irq_1_handler()
87 if (flagreg & RX8010_FLAG_TF) { in rx8010_irq_1_handler()
88 flagreg &= ~RX8010_FLAG_TF; in rx8010_irq_1_handler()
92 if (flagreg & RX8010_FLAG_AF) { in rx8010_irq_1_handler()
93 flagreg &= ~RX8010_FLAG_AF; in rx8010_irq_1_handler()
97 if (flagreg & RX8010_FLAG_UF) { in rx8010_irq_1_handler()
98 flagreg &= ~RX8010_FLAG_UF; in rx8010_irq_1_handler()
102 err = regmap_write(rx8010->regs, RX8010_FLAG, flagreg); in rx8010_irq_1_handler()
111 int flagreg, err; in rx8010_get_time() local
113 err = regmap_read(rx8010->regs, RX8010_FLAG, &flagreg); in rx8010_get_time()
117 if (flagreg & RX8010_FLAG_VLF) { in rx8010_get_time()
229 int flagreg, err; in rx8010_read_alarm() local
235 err = regmap_read(rx8010->regs, RX8010_FLAG, &flagreg); in rx8010_read_alarm()
247 t->pending = (flagreg & RX8010_FLAG_AF) && t->enabled; in rx8010_read_alarm()
341 int tmp, flagreg, err; in rx8010_ioctl() local
345 err = regmap_read(rx8010->regs, RX8010_FLAG, &flagreg); in rx8010_ioctl()
349 tmp = flagreg & RX8010_FLAG_VLF ? RTC_VL_DATA_INVALID : 0; in rx8010_ioctl()