Lines Matching refs:ctrl2
537 unsigned int ctrl2; in pcf2127_rtc_read_alarm() local
540 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_read_alarm()
553 alrm->enabled = ctrl2 & PCF2127_BIT_CTRL2_AIE; in pcf2127_rtc_read_alarm()
554 alrm->pending = ctrl2 & PCF2127_BIT_CTRL2_AF; in pcf2127_rtc_read_alarm()
670 unsigned int ctrl2; in pcf2127_rtc_irq() local
673 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL2, &ctrl2); in pcf2127_rtc_irq()
685 if (!(ctrl1 & PCF2127_CTRL1_IRQ_MASK || ctrl2 & PCF2127_CTRL2_IRQ_MASK)) in pcf2127_rtc_irq()
688 if (ctrl1 & PCF2127_BIT_CTRL1_TSF1 || ctrl2 & PCF2127_BIT_CTRL2_TSF2) in pcf2127_rtc_irq()
695 if (ctrl2 & PCF2127_CTRL2_IRQ_MASK) in pcf2127_rtc_irq()
697 ctrl2 & ~PCF2127_CTRL2_IRQ_MASK); in pcf2127_rtc_irq()
706 if (!(ctrl4 & PCF2131_CTRL4_IRQ_MASK || ctrl2 & PCF2131_CTRL2_IRQ_MASK)) in pcf2127_rtc_irq()
724 if (ctrl2 & PCF2131_CTRL2_IRQ_MASK) in pcf2127_rtc_irq()
726 ctrl2 & ~PCF2131_CTRL2_IRQ_MASK); in pcf2127_rtc_irq()
729 if (ctrl2 & PCF2127_BIT_CTRL2_AF) in pcf2127_rtc_irq()