Lines Matching defs:ctl
569 u8 ctl[3];
575 ret = regmap_bulk_read(ds1307->regmap, RX8130_REG_EXTENSION, ctl,
576 sizeof(ctl));
579 if (!(ctl[1] & RX8130_REG_FLAG_AF))
581 ctl[1] &= ~RX8130_REG_FLAG_AF;
582 ctl[2] &= ~RX8130_REG_CONTROL0_AIE;
584 ret = regmap_bulk_write(ds1307->regmap, RX8130_REG_EXTENSION, ctl,
585 sizeof(ctl));
600 u8 ald[3], ctl[3];
613 ret = regmap_bulk_read(ds1307->regmap, RX8130_REG_EXTENSION, ctl,
614 sizeof(ctl));
618 t->enabled = !!(ctl[2] & RX8130_REG_CONTROL0_AIE);
619 t->pending = !!(ctl[1] & RX8130_REG_FLAG_AF);
642 u8 ald[3], ctl[3];
655 ret = regmap_bulk_read(ds1307->regmap, RX8130_REG_EXTENSION, ctl,
656 sizeof(ctl));
660 ctl[0] &= RX8130_REG_EXTENSION_WADA;
661 ctl[1] &= ~RX8130_REG_FLAG_AF;
662 ctl[2] &= ~RX8130_REG_CONTROL0_AIE;
664 ret = regmap_bulk_write(ds1307->regmap, RX8130_REG_EXTENSION, ctl,
665 sizeof(ctl));
682 ctl[2] |= RX8130_REG_CONTROL0_AIE;
684 return regmap_write(ds1307->regmap, RX8130_REG_CONTROL0, ctl[2]);