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
395 rtc->config = match->data; in da9063_rtc_probe()
400 rtc->config = &da9063_ad_regs; in da9063_rtc_probe()
409 config = rtc->config; in da9063_rtc_probe()
411 config->rtc_enable_reg, in da9063_rtc_probe()
412 config->rtc_enable_mask, in da9063_rtc_probe()
413 config->rtc_enable_mask); in da9063_rtc_probe()
420 config->rtc_enable_32k_crystal_reg, in da9063_rtc_probe()
421 config->rtc_crystal_mask, in da9063_rtc_probe()
422 config->rtc_crystal_mask); in da9063_rtc_probe()
429 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
430 config->rtc_alarm_status_mask, in da9063_rtc_probe()
438 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
447 config->rtc_alarm_year_reg, in da9063_rtc_probe()
448 config->rtc_tick_on_mask, in da9063_rtc_probe()
457 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
458 &data[config->rtc_data_start], in da9063_rtc_probe()
459 config->rtc_alarm_len); in da9063_rtc_probe()
479 if (config->rtc_data_start != RTC_SEC) { in da9063_rtc_probe()