Lines Matching refs:data_year
139 const struct sunxi_rtc_data_year *data_year; member
201 chip->data_year->mask); in sunxi_rtc_getalarm()
209 alrm_tm->tm_year += SUNXI_YEAR_OFF(chip->data_year); in sunxi_rtc_getalarm()
239 chip->data_year->mask); in sunxi_rtc_gettime()
247 rtc_tm->tm_year += SUNXI_YEAR_OFF(chip->data_year); in sunxi_rtc_gettime()
340 if (year < chip->data_year->min || year > chip->data_year->max) { in sunxi_rtc_settime()
342 chip->data_year->min, chip->data_year->max); in sunxi_rtc_settime()
346 rtc_tm->tm_year -= SUNXI_YEAR_OFF(chip->data_year); in sunxi_rtc_settime()
352 chip->data_year->mask); in sunxi_rtc_settime()
355 date |= SUNXI_LEAP_SET_VALUE(1, chip->data_year->leap_shift); in sunxi_rtc_settime()
450 chip->data_year = of_device_get_match_data(&pdev->dev); in sunxi_rtc_probe()
451 if (!chip->data_year) { in sunxi_rtc_probe()