rtc_data 731 drivers/rtc/rtc-ab-b5ze-s3.c struct abb5zes3_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 734 drivers/rtc/rtc-ab-b5ze-s3.c if (rtc_data->irq) { rtc_data 735 drivers/rtc/rtc-ab-b5ze-s3.c if (rtc_data->timer_alarm) rtc_data 748 drivers/rtc/rtc-ab-b5ze-s3.c struct abb5zes3_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 749 drivers/rtc/rtc-ab-b5ze-s3.c struct rtc_device *rtc = rtc_data->rtc; rtc_data 753 drivers/rtc/rtc-ab-b5ze-s3.c ret = regmap_bulk_read(rtc_data->regmap, 0, regs, rtc_data 769 drivers/rtc/rtc-ab-b5ze-s3.c _abb5zes3_rtc_battery_low_irq_enable(rtc_data->regmap, false); rtc_data 799 drivers/rtc/rtc-ab-b5ze-s3.c rtc_data->timer_alarm = 0; rtc_data 905 drivers/rtc/rtc-ab-b5ze-s3.c struct abb5zes3_rtc_data *rtc_data = dev_get_drvdata(&client->dev); rtc_data 907 drivers/rtc/rtc-ab-b5ze-s3.c if (rtc_data->irq > 0) rtc_data 916 drivers/rtc/rtc-ab-b5ze-s3.c struct abb5zes3_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 919 drivers/rtc/rtc-ab-b5ze-s3.c return enable_irq_wake(rtc_data->irq); rtc_data 926 drivers/rtc/rtc-ab-b5ze-s3.c struct abb5zes3_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 929 drivers/rtc/rtc-ab-b5ze-s3.c return disable_irq_wake(rtc_data->irq); rtc_data 291 drivers/rtc/rtc-bd70528.c struct bd70528_rtc_data rtc_data; rtc_data 300 drivers/rtc/rtc-bd70528.c BD70528_REG_RTC_START, &rtc_data, rtc_data 301 drivers/rtc/rtc-bd70528.c sizeof(rtc_data)); rtc_data 306 drivers/rtc/rtc-bd70528.c tm2rtc(t, &rtc_data); rtc_data 309 drivers/rtc/rtc-bd70528.c BD70528_REG_RTC_START, &rtc_data, rtc_data 310 drivers/rtc/rtc-bd70528.c sizeof(rtc_data)); rtc_data 339 drivers/rtc/rtc-bd70528.c struct bd70528_rtc_data rtc_data; rtc_data 344 drivers/rtc/rtc-bd70528.c BD70528_REG_RTC_START, &rtc_data, rtc_data 345 drivers/rtc/rtc-bd70528.c sizeof(rtc_data)); rtc_data 351 drivers/rtc/rtc-bd70528.c rtc2tm(&rtc_data, t); rtc_data 50 drivers/rtc/rtc-palmas.c unsigned char rtc_data[PALMAS_NUM_TIME_REGS]; rtc_data 63 drivers/rtc/rtc-palmas.c rtc_data, PALMAS_NUM_TIME_REGS); rtc_data 69 drivers/rtc/rtc-palmas.c tm->tm_sec = bcd2bin(rtc_data[0]); rtc_data 70 drivers/rtc/rtc-palmas.c tm->tm_min = bcd2bin(rtc_data[1]); rtc_data 71 drivers/rtc/rtc-palmas.c tm->tm_hour = bcd2bin(rtc_data[2]); rtc_data 72 drivers/rtc/rtc-palmas.c tm->tm_mday = bcd2bin(rtc_data[3]); rtc_data 73 drivers/rtc/rtc-palmas.c tm->tm_mon = bcd2bin(rtc_data[4]) - 1; rtc_data 74 drivers/rtc/rtc-palmas.c tm->tm_year = bcd2bin(rtc_data[5]) + 100; rtc_data 81 drivers/rtc/rtc-palmas.c unsigned char rtc_data[PALMAS_NUM_TIME_REGS]; rtc_data 85 drivers/rtc/rtc-palmas.c rtc_data[0] = bin2bcd(tm->tm_sec); rtc_data 86 drivers/rtc/rtc-palmas.c rtc_data[1] = bin2bcd(tm->tm_min); rtc_data 87 drivers/rtc/rtc-palmas.c rtc_data[2] = bin2bcd(tm->tm_hour); rtc_data 88 drivers/rtc/rtc-palmas.c rtc_data[3] = bin2bcd(tm->tm_mday); rtc_data 89 drivers/rtc/rtc-palmas.c rtc_data[4] = bin2bcd(tm->tm_mon + 1); rtc_data 90 drivers/rtc/rtc-palmas.c rtc_data[5] = bin2bcd(tm->tm_year - 100); rtc_data 101 drivers/rtc/rtc-palmas.c rtc_data, PALMAS_NUM_TIME_REGS); rtc_data 62 drivers/rtc/rtc-rc5t583.c u8 rtc_data[NUM_TIME_REGS]; rtc_data 65 drivers/rtc/rtc-rc5t583.c ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, rtc_data 72 drivers/rtc/rtc-rc5t583.c tm->tm_sec = bcd2bin(rtc_data[0]); rtc_data 73 drivers/rtc/rtc-rc5t583.c tm->tm_min = bcd2bin(rtc_data[1]); rtc_data 74 drivers/rtc/rtc-rc5t583.c tm->tm_hour = bcd2bin(rtc_data[2]); rtc_data 75 drivers/rtc/rtc-rc5t583.c tm->tm_wday = bcd2bin(rtc_data[3]); rtc_data 76 drivers/rtc/rtc-rc5t583.c tm->tm_mday = bcd2bin(rtc_data[4]); rtc_data 77 drivers/rtc/rtc-rc5t583.c tm->tm_mon = bcd2bin(rtc_data[5]) - 1; rtc_data 78 drivers/rtc/rtc-rc5t583.c tm->tm_year = bcd2bin(rtc_data[6]) + 100; rtc_data 86 drivers/rtc/rtc-rc5t583.c unsigned char rtc_data[NUM_TIME_REGS]; rtc_data 89 drivers/rtc/rtc-rc5t583.c rtc_data[0] = bin2bcd(tm->tm_sec); rtc_data 90 drivers/rtc/rtc-rc5t583.c rtc_data[1] = bin2bcd(tm->tm_min); rtc_data 91 drivers/rtc/rtc-rc5t583.c rtc_data[2] = bin2bcd(tm->tm_hour); rtc_data 92 drivers/rtc/rtc-rc5t583.c rtc_data[3] = bin2bcd(tm->tm_wday); rtc_data 93 drivers/rtc/rtc-rc5t583.c rtc_data[4] = bin2bcd(tm->tm_mday); rtc_data 94 drivers/rtc/rtc-rc5t583.c rtc_data[5] = bin2bcd(tm->tm_mon + 1); rtc_data 95 drivers/rtc/rtc-rc5t583.c rtc_data[6] = bin2bcd(tm->tm_year - 100); rtc_data 97 drivers/rtc/rtc-rc5t583.c ret = regmap_bulk_write(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, rtc_data 101 drivers/rtc/rtc-rk808.c u8 rtc_data[NUM_TIME_REGS]; rtc_data 128 drivers/rtc/rtc-rk808.c rtc_data, NUM_TIME_REGS); rtc_data 134 drivers/rtc/rtc-rk808.c tm->tm_sec = bcd2bin(rtc_data[0] & SECONDS_REG_MSK); rtc_data 135 drivers/rtc/rtc-rk808.c tm->tm_min = bcd2bin(rtc_data[1] & MINUTES_REG_MAK); rtc_data 136 drivers/rtc/rtc-rk808.c tm->tm_hour = bcd2bin(rtc_data[2] & HOURS_REG_MSK); rtc_data 137 drivers/rtc/rtc-rk808.c tm->tm_mday = bcd2bin(rtc_data[3] & DAYS_REG_MSK); rtc_data 138 drivers/rtc/rtc-rk808.c tm->tm_mon = (bcd2bin(rtc_data[4] & MONTHS_REG_MSK)) - 1; rtc_data 139 drivers/rtc/rtc-rk808.c tm->tm_year = (bcd2bin(rtc_data[5] & YEARS_REG_MSK)) + 100; rtc_data 140 drivers/rtc/rtc-rk808.c tm->tm_wday = bcd2bin(rtc_data[6] & WEEKS_REG_MSK); rtc_data 152 drivers/rtc/rtc-rk808.c u8 rtc_data[NUM_TIME_REGS]; rtc_data 157 drivers/rtc/rtc-rk808.c rtc_data[0] = bin2bcd(tm->tm_sec); rtc_data 158 drivers/rtc/rtc-rk808.c rtc_data[1] = bin2bcd(tm->tm_min); rtc_data 159 drivers/rtc/rtc-rk808.c rtc_data[2] = bin2bcd(tm->tm_hour); rtc_data 160 drivers/rtc/rtc-rk808.c rtc_data[3] = bin2bcd(tm->tm_mday); rtc_data 161 drivers/rtc/rtc-rk808.c rtc_data[4] = bin2bcd(tm->tm_mon + 1); rtc_data 162 drivers/rtc/rtc-rk808.c rtc_data[5] = bin2bcd(tm->tm_year - 100); rtc_data 163 drivers/rtc/rtc-rk808.c rtc_data[6] = bin2bcd(tm->tm_wday); rtc_data 175 drivers/rtc/rtc-rk808.c rtc_data, NUM_TIME_REGS); rtc_data 86 drivers/rtc/rtc-sd3078.c unsigned char rtc_data[NUM_TIME_REGS] = {0}; rtc_data 91 drivers/rtc/rtc-sd3078.c ret = regmap_bulk_read(sd3078->regmap, SD3078_REG_SC, rtc_data, rtc_data 98 drivers/rtc/rtc-sd3078.c tm->tm_sec = bcd2bin(rtc_data[SD3078_REG_SC] & 0x7F); rtc_data 99 drivers/rtc/rtc-sd3078.c tm->tm_min = bcd2bin(rtc_data[SD3078_REG_MN] & 0x7F); rtc_data 106 drivers/rtc/rtc-sd3078.c hour = rtc_data[SD3078_REG_HR]; rtc_data 108 drivers/rtc/rtc-sd3078.c tm->tm_hour = bcd2bin(rtc_data[SD3078_REG_HR] & 0x3F); rtc_data 110 drivers/rtc/rtc-sd3078.c tm->tm_hour = bcd2bin(rtc_data[SD3078_REG_HR] & 0x1F) + 12; rtc_data 112 drivers/rtc/rtc-sd3078.c tm->tm_hour = bcd2bin(rtc_data[SD3078_REG_HR] & 0x1F); rtc_data 114 drivers/rtc/rtc-sd3078.c tm->tm_mday = bcd2bin(rtc_data[SD3078_REG_DM] & 0x3F); rtc_data 115 drivers/rtc/rtc-sd3078.c tm->tm_wday = rtc_data[SD3078_REG_DW] & 0x07; rtc_data 116 drivers/rtc/rtc-sd3078.c tm->tm_mon = bcd2bin(rtc_data[SD3078_REG_MO] & 0x1F) - 1; rtc_data 117 drivers/rtc/rtc-sd3078.c tm->tm_year = bcd2bin(rtc_data[SD3078_REG_YR]) + 100; rtc_data 124 drivers/rtc/rtc-sd3078.c unsigned char rtc_data[NUM_TIME_REGS]; rtc_data 129 drivers/rtc/rtc-sd3078.c rtc_data[SD3078_REG_SC] = bin2bcd(tm->tm_sec); rtc_data 130 drivers/rtc/rtc-sd3078.c rtc_data[SD3078_REG_MN] = bin2bcd(tm->tm_min); rtc_data 131 drivers/rtc/rtc-sd3078.c rtc_data[SD3078_REG_HR] = bin2bcd(tm->tm_hour) | 0x80; rtc_data 132 drivers/rtc/rtc-sd3078.c rtc_data[SD3078_REG_DM] = bin2bcd(tm->tm_mday); rtc_data 133 drivers/rtc/rtc-sd3078.c rtc_data[SD3078_REG_DW] = tm->tm_wday & 0x07; rtc_data 134 drivers/rtc/rtc-sd3078.c rtc_data[SD3078_REG_MO] = bin2bcd(tm->tm_mon) + 1; rtc_data 135 drivers/rtc/rtc-sd3078.c rtc_data[SD3078_REG_YR] = bin2bcd(tm->tm_year - 100); rtc_data 141 drivers/rtc/rtc-sd3078.c ret = regmap_bulk_write(sd3078->regmap, SD3078_REG_SC, rtc_data, rtc_data 80 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 83 drivers/rtc/rtc-stmp3xxx.c writel(timeout, rtc_data->io + STMP3XXX_RTC_WATCHDOG); rtc_data 85 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_SET); rtc_data 87 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_PERSISTENT1 + STMP_OFFSET_REG_SET); rtc_data 90 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_CLR); rtc_data 92 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_PERSISTENT1 + STMP_OFFSET_REG_CLR); rtc_data 122 drivers/rtc/rtc-stmp3xxx.c static int stmp3xxx_wait_time(struct stmp3xxx_rtc_data *rtc_data) rtc_data 136 drivers/rtc/rtc-stmp3xxx.c if (!(readl(rtc_data->io + STMP3XXX_RTC_STAT) & rtc_data 141 drivers/rtc/rtc-stmp3xxx.c return (readl(rtc_data->io + STMP3XXX_RTC_STAT) & rtc_data 149 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 151 drivers/rtc/rtc-stmp3xxx.c ret = stmp3xxx_wait_time(rtc_data); rtc_data 155 drivers/rtc/rtc-stmp3xxx.c rtc_time64_to_tm(readl(rtc_data->io + STMP3XXX_RTC_SECONDS), rtc_tm); rtc_data 161 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 163 drivers/rtc/rtc-stmp3xxx.c writel(rtc_tm_to_time64(rtc_tm), rtc_data->io + STMP3XXX_RTC_SECONDS); rtc_data 164 drivers/rtc/rtc-stmp3xxx.c return stmp3xxx_wait_time(rtc_data); rtc_data 170 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev_id); rtc_data 171 drivers/rtc/rtc-stmp3xxx.c u32 status = readl(rtc_data->io + STMP3XXX_RTC_CTRL); rtc_data 175 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_CLR); rtc_data 176 drivers/rtc/rtc-stmp3xxx.c rtc_update_irq(rtc_data->rtc, 1, RTC_AF | RTC_IRQF); rtc_data 185 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 190 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_PERSISTENT0 + rtc_data 193 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_SET); rtc_data 197 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_PERSISTENT0 + rtc_data 200 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_CLR); rtc_data 207 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 209 drivers/rtc/rtc-stmp3xxx.c rtc_time64_to_tm(readl(rtc_data->io + STMP3XXX_RTC_ALARM), &alm->time); rtc_data 215 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 217 drivers/rtc/rtc-stmp3xxx.c writel(rtc_tm_to_time64(&alm->time), rtc_data->io + STMP3XXX_RTC_ALARM); rtc_data 235 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = platform_get_drvdata(pdev); rtc_data 237 drivers/rtc/rtc-stmp3xxx.c if (!rtc_data) rtc_data 241 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_CLR); rtc_data 248 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data; rtc_data 255 drivers/rtc/rtc-stmp3xxx.c rtc_data = devm_kzalloc(&pdev->dev, sizeof(*rtc_data), GFP_KERNEL); rtc_data 256 drivers/rtc/rtc-stmp3xxx.c if (!rtc_data) rtc_data 265 drivers/rtc/rtc-stmp3xxx.c rtc_data->io = devm_ioremap(&pdev->dev, r->start, resource_size(r)); rtc_data 266 drivers/rtc/rtc-stmp3xxx.c if (!rtc_data->io) { rtc_data 271 drivers/rtc/rtc-stmp3xxx.c rtc_data->irq_alarm = platform_get_irq(pdev, 0); rtc_data 273 drivers/rtc/rtc-stmp3xxx.c rtc_stat = readl(rtc_data->io + STMP3XXX_RTC_STAT); rtc_data 279 drivers/rtc/rtc-stmp3xxx.c platform_set_drvdata(pdev, rtc_data); rtc_data 286 drivers/rtc/rtc-stmp3xxx.c if (readl(rtc_data->io + STMP3XXX_RTC_CTRL) & rtc_data 291 drivers/rtc/rtc-stmp3xxx.c err = stmp_reset_block(rtc_data->io); rtc_data 342 drivers/rtc/rtc-stmp3xxx.c writel(pers0_set, rtc_data->io + STMP3XXX_RTC_PERSISTENT0 + rtc_data 348 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_PERSISTENT0 + STMP_OFFSET_REG_CLR); rtc_data 352 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_CLR); rtc_data 354 drivers/rtc/rtc-stmp3xxx.c rtc_data->rtc = devm_rtc_allocate_device(&pdev->dev); rtc_data 355 drivers/rtc/rtc-stmp3xxx.c if (IS_ERR(rtc_data->rtc)) rtc_data 356 drivers/rtc/rtc-stmp3xxx.c return PTR_ERR(rtc_data->rtc); rtc_data 358 drivers/rtc/rtc-stmp3xxx.c err = devm_request_irq(&pdev->dev, rtc_data->irq_alarm, rtc_data 362 drivers/rtc/rtc-stmp3xxx.c rtc_data->irq_alarm); rtc_data 366 drivers/rtc/rtc-stmp3xxx.c rtc_data->rtc->ops = &stmp3xxx_rtc_ops; rtc_data 367 drivers/rtc/rtc-stmp3xxx.c rtc_data->rtc->range_max = U32_MAX; rtc_data 369 drivers/rtc/rtc-stmp3xxx.c err = rtc_register_device(rtc_data->rtc); rtc_data 385 drivers/rtc/rtc-stmp3xxx.c struct stmp3xxx_rtc_data *rtc_data = dev_get_drvdata(dev); rtc_data 387 drivers/rtc/rtc-stmp3xxx.c stmp_reset_block(rtc_data->io); rtc_data 391 drivers/rtc/rtc-stmp3xxx.c rtc_data->io + STMP3XXX_RTC_PERSISTENT0 + STMP_OFFSET_REG_CLR); rtc_data 69 drivers/rtc/rtc-tps65910.c unsigned char rtc_data[NUM_TIME_REGS]; rtc_data 81 drivers/rtc/rtc-tps65910.c ret = regmap_bulk_read(tps->regmap, TPS65910_SECONDS, rtc_data, rtc_data 88 drivers/rtc/rtc-tps65910.c tm->tm_sec = bcd2bin(rtc_data[0]); rtc_data 89 drivers/rtc/rtc-tps65910.c tm->tm_min = bcd2bin(rtc_data[1]); rtc_data 90 drivers/rtc/rtc-tps65910.c tm->tm_hour = bcd2bin(rtc_data[2]); rtc_data 91 drivers/rtc/rtc-tps65910.c tm->tm_mday = bcd2bin(rtc_data[3]); rtc_data 92 drivers/rtc/rtc-tps65910.c tm->tm_mon = bcd2bin(rtc_data[4]) - 1; rtc_data 93 drivers/rtc/rtc-tps65910.c tm->tm_year = bcd2bin(rtc_data[5]) + 100; rtc_data 100 drivers/rtc/rtc-tps65910.c unsigned char rtc_data[NUM_TIME_REGS]; rtc_data 104 drivers/rtc/rtc-tps65910.c rtc_data[0] = bin2bcd(tm->tm_sec); rtc_data 105 drivers/rtc/rtc-tps65910.c rtc_data[1] = bin2bcd(tm->tm_min); rtc_data 106 drivers/rtc/rtc-tps65910.c rtc_data[2] = bin2bcd(tm->tm_hour); rtc_data 107 drivers/rtc/rtc-tps65910.c rtc_data[3] = bin2bcd(tm->tm_mday); rtc_data 108 drivers/rtc/rtc-tps65910.c rtc_data[4] = bin2bcd(tm->tm_mon + 1); rtc_data 109 drivers/rtc/rtc-tps65910.c rtc_data[5] = bin2bcd(tm->tm_year - 100); rtc_data 120 drivers/rtc/rtc-tps65910.c ret = regmap_bulk_write(tps->regmap, TPS65910_SECONDS, rtc_data, rtc_data 261 drivers/rtc/rtc-twl.c unsigned char rtc_data[ALL_TIME_REGS]; rtc_data 298 drivers/rtc/rtc-twl.c ret = twl_i2c_read(TWL_MODULE_RTC, rtc_data, rtc_data 316 drivers/rtc/rtc-twl.c tm->tm_sec = bcd2bin(rtc_data[0]); rtc_data 317 drivers/rtc/rtc-twl.c tm->tm_min = bcd2bin(rtc_data[1]); rtc_data 318 drivers/rtc/rtc-twl.c tm->tm_hour = bcd2bin(rtc_data[2]); rtc_data 319 drivers/rtc/rtc-twl.c tm->tm_mday = bcd2bin(rtc_data[3]); rtc_data 320 drivers/rtc/rtc-twl.c tm->tm_mon = bcd2bin(rtc_data[4]) - 1; rtc_data 321 drivers/rtc/rtc-twl.c tm->tm_year = bcd2bin(rtc_data[5]) + 100; rtc_data 330 drivers/rtc/rtc-twl.c unsigned char rtc_data[ALL_TIME_REGS]; rtc_data 333 drivers/rtc/rtc-twl.c rtc_data[0] = bin2bcd(tm->tm_sec); rtc_data 334 drivers/rtc/rtc-twl.c rtc_data[1] = bin2bcd(tm->tm_min); rtc_data 335 drivers/rtc/rtc-twl.c rtc_data[2] = bin2bcd(tm->tm_hour); rtc_data 336 drivers/rtc/rtc-twl.c rtc_data[3] = bin2bcd(tm->tm_mday); rtc_data 337 drivers/rtc/rtc-twl.c rtc_data[4] = bin2bcd(tm->tm_mon + 1); rtc_data 338 drivers/rtc/rtc-twl.c rtc_data[5] = bin2bcd(tm->tm_year - 100); rtc_data 351 drivers/rtc/rtc-twl.c ret = twl_i2c_write(TWL_MODULE_RTC, rtc_data, rtc_data 372 drivers/rtc/rtc-twl.c unsigned char rtc_data[ALL_TIME_REGS]; rtc_data 375 drivers/rtc/rtc-twl.c ret = twl_i2c_read(TWL_MODULE_RTC, rtc_data, rtc_data 383 drivers/rtc/rtc-twl.c alm->time.tm_sec = bcd2bin(rtc_data[0]); rtc_data 384 drivers/rtc/rtc-twl.c alm->time.tm_min = bcd2bin(rtc_data[1]); rtc_data 385 drivers/rtc/rtc-twl.c alm->time.tm_hour = bcd2bin(rtc_data[2]); rtc_data 386 drivers/rtc/rtc-twl.c alm->time.tm_mday = bcd2bin(rtc_data[3]); rtc_data 387 drivers/rtc/rtc-twl.c alm->time.tm_mon = bcd2bin(rtc_data[4]) - 1; rtc_data 388 drivers/rtc/rtc-twl.c alm->time.tm_year = bcd2bin(rtc_data[5]) + 100;