Lines Matching refs:alm
111 struct bd71828_rtc_alm alm; in bd71828_set_alarm() local
114 ret = regmap_bulk_read(r->regmap, r->bd718xx_alm_block_start, &alm, in bd71828_set_alarm()
115 sizeof(alm)); in bd71828_set_alarm()
121 tm2rtc(&a->time, &alm.alm0); in bd71828_set_alarm()
124 alm.alm_mask &= ~BD70528_MASK_ALM_EN; in bd71828_set_alarm()
126 alm.alm_mask |= BD70528_MASK_ALM_EN; in bd71828_set_alarm()
128 ret = regmap_bulk_write(r->regmap, r->bd718xx_alm_block_start, &alm, in bd71828_set_alarm()
129 sizeof(alm)); in bd71828_set_alarm()
140 struct bd71828_rtc_alm alm; in bd71828_read_alarm() local
143 ret = regmap_bulk_read(r->regmap, r->bd718xx_alm_block_start, &alm, in bd71828_read_alarm()
144 sizeof(alm)); in bd71828_read_alarm()
150 rtc2tm(&alm.alm0, &a->time); in bd71828_read_alarm()
154 a->enabled = !!(alm.alm_mask & BD70528_MASK_ALM_EN); in bd71828_read_alarm()