Lines Matching refs:config
70 const struct da9063_compatible_rtc_regmap *config; member
170 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_data_to_tm() local
172 tm->tm_sec = data[RTC_SEC] & config->rtc_count_sec_mask; in da9063_data_to_tm()
173 tm->tm_min = data[RTC_MIN] & config->rtc_count_min_mask; in da9063_data_to_tm()
174 tm->tm_hour = data[RTC_HOUR] & config->rtc_count_hour_mask; in da9063_data_to_tm()
175 tm->tm_mday = data[RTC_DAY] & config->rtc_count_day_mask; in da9063_data_to_tm()
177 config->rtc_count_month_mask); in da9063_data_to_tm()
179 config->rtc_count_year_mask); in da9063_data_to_tm()
185 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_tm_to_data() local
187 data[RTC_SEC] = tm->tm_sec & config->rtc_count_sec_mask; in da9063_tm_to_data()
188 data[RTC_MIN] = tm->tm_min & config->rtc_count_min_mask; in da9063_tm_to_data()
189 data[RTC_HOUR] = tm->tm_hour & config->rtc_count_hour_mask; in da9063_tm_to_data()
190 data[RTC_DAY] = tm->tm_mday & config->rtc_count_day_mask; in da9063_tm_to_data()
192 config->rtc_count_month_mask; in da9063_tm_to_data()
194 config->rtc_count_year_mask; in da9063_tm_to_data()
200 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_stop_alarm() local
203 config->rtc_alarm_year_reg, in da9063_rtc_stop_alarm()
204 config->rtc_alarm_on_mask, in da9063_rtc_stop_alarm()
211 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_start_alarm() local
214 config->rtc_alarm_year_reg, in da9063_rtc_start_alarm()
215 config->rtc_alarm_on_mask, in da9063_rtc_start_alarm()
216 config->rtc_alarm_on_mask); in da9063_rtc_start_alarm()
222 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_read_time() local
229 config->rtc_count_secs_reg, in da9063_rtc_read_time()
236 if (!(data[RTC_SEC] & config->rtc_ready_to_read_mask)) { in da9063_rtc_read_time()
258 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_set_time() local
264 config->rtc_count_secs_reg, in da9063_rtc_set_time()
275 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_read_alarm() local
282 config->rtc_alarm_secs_reg, in da9063_rtc_read_alarm()
283 &data[config->rtc_data_start], in da9063_rtc_read_alarm()
284 config->rtc_alarm_len); in da9063_rtc_read_alarm()
290 alrm->enabled = !!(data[RTC_YEAR] & config->rtc_alarm_on_mask); in da9063_rtc_read_alarm()
293 config->rtc_event_reg, in da9063_rtc_read_alarm()
298 if (val & config->rtc_event_alarm_mask) in da9063_rtc_read_alarm()
309 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_set_alarm() local
322 config->rtc_alarm_secs_reg, in da9063_rtc_set_alarm()
323 &data[config->rtc_data_start], in da9063_rtc_set_alarm()
324 config->rtc_alarm_len); in da9063_rtc_set_alarm()
355 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_alarm_event() local
358 config->rtc_alarm_year_reg, in da9063_alarm_event()
359 config->rtc_alarm_on_mask, in da9063_alarm_event()
379 const struct da9063_compatible_rtc_regmap *config; in da9063_rtc_probe() local
391 rtc->config = device_get_match_data(&pdev->dev); in da9063_rtc_probe()
396 rtc->config = &da9063_ad_regs; in da9063_rtc_probe()
405 config = rtc->config; in da9063_rtc_probe()
407 config->rtc_enable_reg, in da9063_rtc_probe()
408 config->rtc_enable_mask, in da9063_rtc_probe()
409 config->rtc_enable_mask); in da9063_rtc_probe()
414 config->rtc_enable_32k_crystal_reg, in da9063_rtc_probe()
415 config->rtc_crystal_mask, in da9063_rtc_probe()
416 config->rtc_crystal_mask); in da9063_rtc_probe()
422 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
423 config->rtc_alarm_status_mask, in da9063_rtc_probe()
430 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
438 config->rtc_alarm_year_reg, in da9063_rtc_probe()
439 config->rtc_tick_on_mask, in da9063_rtc_probe()
447 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
448 &data[config->rtc_data_start], in da9063_rtc_probe()
449 config->rtc_alarm_len); in da9063_rtc_probe()
467 if (config->rtc_data_start != RTC_SEC) { in da9063_rtc_probe()