Lines Matching refs:config

77 	const struct da9063_compatible_rtc_regmap *config;  member
177 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_data_to_tm() local
179 tm->tm_sec = data[RTC_SEC] & config->rtc_count_sec_mask; in da9063_data_to_tm()
180 tm->tm_min = data[RTC_MIN] & config->rtc_count_min_mask; in da9063_data_to_tm()
181 tm->tm_hour = data[RTC_HOUR] & config->rtc_count_hour_mask; in da9063_data_to_tm()
182 tm->tm_mday = data[RTC_DAY] & config->rtc_count_day_mask; in da9063_data_to_tm()
184 config->rtc_count_month_mask); in da9063_data_to_tm()
186 config->rtc_count_year_mask); in da9063_data_to_tm()
192 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_tm_to_data() local
194 data[RTC_SEC] = tm->tm_sec & config->rtc_count_sec_mask; in da9063_tm_to_data()
195 data[RTC_MIN] = tm->tm_min & config->rtc_count_min_mask; in da9063_tm_to_data()
196 data[RTC_HOUR] = tm->tm_hour & config->rtc_count_hour_mask; in da9063_tm_to_data()
197 data[RTC_DAY] = tm->tm_mday & config->rtc_count_day_mask; in da9063_tm_to_data()
199 config->rtc_count_month_mask; in da9063_tm_to_data()
201 config->rtc_count_year_mask; in da9063_tm_to_data()
207 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_stop_alarm() local
210 config->rtc_alarm_year_reg, in da9063_rtc_stop_alarm()
211 config->rtc_alarm_on_mask, in da9063_rtc_stop_alarm()
218 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_start_alarm() local
221 config->rtc_alarm_year_reg, in da9063_rtc_start_alarm()
222 config->rtc_alarm_on_mask, in da9063_rtc_start_alarm()
223 config->rtc_alarm_on_mask); in da9063_rtc_start_alarm()
229 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_read_time() local
236 config->rtc_count_secs_reg, in da9063_rtc_read_time()
243 if (!(data[RTC_SEC] & config->rtc_ready_to_read_mask)) { in da9063_rtc_read_time()
265 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_set_time() local
271 config->rtc_count_secs_reg, in da9063_rtc_set_time()
282 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_read_alarm() local
289 config->rtc_alarm_secs_reg, in da9063_rtc_read_alarm()
290 &data[config->rtc_data_start], in da9063_rtc_read_alarm()
291 config->rtc_alarm_len); in da9063_rtc_read_alarm()
297 alrm->enabled = !!(data[RTC_YEAR] & config->rtc_alarm_on_mask); in da9063_rtc_read_alarm()
300 config->rtc_event_reg, in da9063_rtc_read_alarm()
305 if (val & config->rtc_event_alarm_mask) in da9063_rtc_read_alarm()
316 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_rtc_set_alarm() local
329 config->rtc_alarm_secs_reg, in da9063_rtc_set_alarm()
330 &data[config->rtc_data_start], in da9063_rtc_set_alarm()
331 config->rtc_alarm_len); in da9063_rtc_set_alarm()
362 const struct da9063_compatible_rtc_regmap *config = rtc->config; in da9063_alarm_event() local
365 config->rtc_alarm_year_reg, in da9063_alarm_event()
366 config->rtc_alarm_on_mask, in da9063_alarm_event()
386 const struct da9063_compatible_rtc_regmap *config; in da9063_rtc_probe() local
402 rtc->config = match->data; in da9063_rtc_probe()
407 rtc->config = &da9063_ad_regs; in da9063_rtc_probe()
416 config = rtc->config; in da9063_rtc_probe()
418 config->rtc_enable_reg, in da9063_rtc_probe()
419 config->rtc_enable_mask, in da9063_rtc_probe()
420 config->rtc_enable_mask); in da9063_rtc_probe()
427 config->rtc_enable_32k_crystal_reg, in da9063_rtc_probe()
428 config->rtc_crystal_mask, in da9063_rtc_probe()
429 config->rtc_crystal_mask); in da9063_rtc_probe()
436 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
437 config->rtc_alarm_status_mask, in da9063_rtc_probe()
445 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
454 config->rtc_alarm_year_reg, in da9063_rtc_probe()
455 config->rtc_tick_on_mask, in da9063_rtc_probe()
464 config->rtc_alarm_secs_reg, in da9063_rtc_probe()
465 &data[config->rtc_data_start], in da9063_rtc_probe()
466 config->rtc_alarm_len); in da9063_rtc_probe()
487 if (config->rtc_data_start != RTC_SEC) in da9063_rtc_probe()