Lines Matching refs:stat
65 int control, stat; in ds3232_check_rtc_status() local
67 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_check_rtc_status()
71 if (stat & DS3232_REG_SR_OSF) in ds3232_check_rtc_status()
76 stat &= ~(DS3232_REG_SR_OSF | DS3232_REG_SR_A1F | DS3232_REG_SR_A2F); in ds3232_check_rtc_status()
78 ret = regmap_write(ds3232->regmap, DS3232_REG_SR, stat); in ds3232_check_rtc_status()
184 int control, stat; in ds3232_read_alarm() local
188 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_read_alarm()
204 alarm->pending = !!(stat & DS3232_REG_SR_A1F); in ds3232_read_alarm()
218 int control, stat; in ds3232_set_alarm() local
240 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_set_alarm()
243 stat &= ~(DS3232_REG_SR_A1F | DS3232_REG_SR_A2F); in ds3232_set_alarm()
244 ret = regmap_write(ds3232->regmap, DS3232_REG_SR, stat); in ds3232_set_alarm()
411 int stat, control; in ds3232_irq() local
415 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_irq()
419 if (stat & DS3232_REG_SR_A1F) { in ds3232_irq()
437 stat &= ~DS3232_REG_SR_A1F; in ds3232_irq()
438 ret = regmap_write(ds3232->regmap, DS3232_REG_SR, stat); in ds3232_irq()