alm 279 drivers/char/efirtc.c efi_time_t eft, alm; alm 285 drivers/char/efirtc.c memset(&alm, 0, sizeof(alm)); alm 291 drivers/char/efirtc.c efi.get_wakeup_time(&enabled, &pending, &alm); alm 316 drivers/char/efirtc.c alm.hour, alm.minute, alm.second, alm.nanosecond, alm 317 drivers/char/efirtc.c alm.year, alm.month, alm.day, alm 318 drivers/char/efirtc.c alm.daylight, alm 326 drivers/char/efirtc.c seq_printf(m, "Timezone : %u\n", alm.timezone); alm 141 drivers/clocksource/timer-atmel-st.c u32 alm; alm 156 drivers/clocksource/timer-atmel-st.c alm = read_CRTR(); alm 159 drivers/clocksource/timer-atmel-st.c regmap_write(regmap_st, AT91_ST_RTAR, alm); alm 163 drivers/clocksource/timer-atmel-st.c alm += delta; alm 164 drivers/clocksource/timer-atmel-st.c regmap_write(regmap_st, AT91_ST_RTAR, alm); alm 219 drivers/rtc/rtc-bd70528.c struct bd70528_rtc_alm alm; alm 232 drivers/rtc/rtc-bd70528.c &alm, sizeof(alm)); alm 238 drivers/rtc/rtc-bd70528.c tm2rtc(&a->time, &alm.data); alm 242 drivers/rtc/rtc-bd70528.c alm.alm_mask &= ~BD70528_MASK_ALM_EN; alm 245 drivers/rtc/rtc-bd70528.c alm.alm_mask |= BD70528_MASK_ALM_EN; alm 257 drivers/rtc/rtc-bd70528.c &alm, sizeof(alm)); alm 266 drivers/rtc/rtc-bd70528.c struct bd70528_rtc_alm alm; alm 272 drivers/rtc/rtc-bd70528.c &alm, sizeof(alm)); alm 278 drivers/rtc/rtc-bd70528.c rtc2tm(&alm.data, &a->time); alm 282 drivers/rtc/rtc-bd70528.c a->enabled = !(alm.alm_mask & BD70528_MASK_ALM_EN); alm 371 drivers/rtc/rtc-davinci.c static int davinci_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 378 drivers/rtc/rtc-davinci.c alm->time.tm_sec = 0; alm 383 drivers/rtc/rtc-davinci.c alm->time.tm_min = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AMIN)); alm 386 drivers/rtc/rtc-davinci.c alm->time.tm_hour = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AHOUR)); alm 399 drivers/rtc/rtc-davinci.c if (convertfromdays(days, &alm->time) < 0) alm 402 drivers/rtc/rtc-davinci.c alm->pending = !!(rtcss_read(davinci_rtc, alm 405 drivers/rtc/rtc-davinci.c alm->enabled = alm->pending && device_may_wakeup(dev); alm 410 drivers/rtc/rtc-davinci.c static int davinci_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 416 drivers/rtc/rtc-davinci.c if (alm->time.tm_mday <= 0 && alm->time.tm_mon < 0 alm 417 drivers/rtc/rtc-davinci.c && alm->time.tm_year < 0) { alm 424 drivers/rtc/rtc-davinci.c alm->time.tm_mday = tm.tm_mday; alm 425 drivers/rtc/rtc-davinci.c alm->time.tm_mon = tm.tm_mon; alm 426 drivers/rtc/rtc-davinci.c alm->time.tm_year = tm.tm_year; alm 427 drivers/rtc/rtc-davinci.c rtc_tm_to_time(&alm->time, &then); alm 431 drivers/rtc/rtc-davinci.c alm->time.tm_mday = tm.tm_mday; alm 432 drivers/rtc/rtc-davinci.c alm->time.tm_mon = tm.tm_mon; alm 433 drivers/rtc/rtc-davinci.c alm->time.tm_year = tm.tm_year; alm 437 drivers/rtc/rtc-davinci.c if (convert2days(&days, &alm->time) < 0) alm 443 drivers/rtc/rtc-davinci.c rtcss_write(davinci_rtc, bin2bcd(alm->time.tm_min), PRTCSS_RTC_AMIN); alm 446 drivers/rtc/rtc-davinci.c rtcss_write(davinci_rtc, bin2bcd(alm->time.tm_hour), PRTCSS_RTC_AHOUR); alm 262 drivers/rtc/rtc-ds1286.c static int ds1286_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 272 drivers/rtc/rtc-ds1286.c alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; alm 273 drivers/rtc/rtc-ds1286.c alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; alm 274 drivers/rtc/rtc-ds1286.c alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; alm 278 drivers/rtc/rtc-ds1286.c alm->time.tm_min = bcd2bin(alm->time.tm_min); alm 279 drivers/rtc/rtc-ds1286.c alm->time.tm_hour = bcd2bin(alm->time.tm_hour); alm 280 drivers/rtc/rtc-ds1286.c alm->time.tm_sec = 0; alm 284 drivers/rtc/rtc-ds1286.c static int ds1286_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 289 drivers/rtc/rtc-ds1286.c hrs = alm->time.tm_hour; alm 290 drivers/rtc/rtc-ds1286.c min = alm->time.tm_min; alm 291 drivers/rtc/rtc-ds1286.c sec = alm->time.tm_sec; alm 266 drivers/rtc/rtc-ds1305.c static int ds1305_get_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 285 drivers/rtc/rtc-ds1305.c alm->enabled = !!(ds1305->ctrl[0] & DS1305_AEI0); alm 286 drivers/rtc/rtc-ds1305.c alm->pending = !!(ds1305->ctrl[1] & DS1305_AEI0); alm 308 drivers/rtc/rtc-ds1305.c alm->time.tm_sec = bcd2bin(buf[DS1305_SEC]); alm 309 drivers/rtc/rtc-ds1305.c alm->time.tm_min = bcd2bin(buf[DS1305_MIN]); alm 310 drivers/rtc/rtc-ds1305.c alm->time.tm_hour = bcd2hour(buf[DS1305_HOUR]); alm 318 drivers/rtc/rtc-ds1305.c static int ds1305_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 328 drivers/rtc/rtc-ds1305.c status = rtc_tm_to_time(&alm->time, &later); alm 359 drivers/rtc/rtc-ds1305.c buf[1 + DS1305_SEC] = bin2bcd(alm->time.tm_sec); alm 360 drivers/rtc/rtc-ds1305.c buf[1 + DS1305_MIN] = bin2bcd(alm->time.tm_min); alm 361 drivers/rtc/rtc-ds1305.c buf[1 + DS1305_HOUR] = hour2bcd(ds1305->hr12, alm->time.tm_hour); alm 373 drivers/rtc/rtc-ds1305.c if (alm->enabled) { alm 191 drivers/rtc/rtc-efi.c efi_time_t eft, alm; alm 196 drivers/rtc/rtc-efi.c memset(&alm, 0, sizeof(alm)); alm 200 drivers/rtc/rtc-efi.c efi.get_wakeup_time(&enabled, &pending, &alm); alm 222 drivers/rtc/rtc-efi.c alm.hour, alm.minute, alm.second, alm.nanosecond, alm 223 drivers/rtc/rtc-efi.c alm.year, alm.month, alm.day, alm 224 drivers/rtc/rtc-efi.c alm.daylight, alm 232 drivers/rtc/rtc-efi.c seq_printf(seq, "Timezone\t: %u\n", alm.timezone); alm 191 drivers/rtc/rtc-fsl-ftm-alarm.c static int ftm_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 207 drivers/rtc/rtc-fsl-ftm-alarm.c static int ftm_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 215 drivers/rtc/rtc-fsl-ftm-alarm.c rtc_tm_to_time(&alm->time, &alm_time); alm 183 drivers/rtc/rtc-hym8563.c static int hym8563_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 186 drivers/rtc/rtc-hym8563.c struct rtc_time *alm_tm = &alm->time; alm 215 drivers/rtc/rtc-hym8563.c alm->enabled = 1; alm 220 drivers/rtc/rtc-hym8563.c static int hym8563_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 223 drivers/rtc/rtc-hym8563.c struct rtc_time *alm_tm = &alm->time; alm 271 drivers/rtc/rtc-hym8563.c return hym8563_rtc_alarm_irq_enable(dev, alm->enabled); alm 260 drivers/rtc/rtc-mcp795.c static int mcp795_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 274 drivers/rtc/rtc-mcp795.c later = rtc_tm_to_time64(&alm->time); alm 279 drivers/rtc/rtc-mcp795.c (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) alm 290 drivers/rtc/rtc-mcp795.c alm->time.tm_year = -1; alm 291 drivers/rtc/rtc-mcp795.c alm->time.tm_isdst = -1; alm 292 drivers/rtc/rtc-mcp795.c alm->time.tm_yday = -1; alm 294 drivers/rtc/rtc-mcp795.c tmp[0] = (tmp[0] & 0x80) | bin2bcd(alm->time.tm_sec); alm 295 drivers/rtc/rtc-mcp795.c tmp[1] = (tmp[1] & 0x80) | bin2bcd(alm->time.tm_min); alm 296 drivers/rtc/rtc-mcp795.c tmp[2] = (tmp[2] & 0xE0) | bin2bcd(alm->time.tm_hour); alm 297 drivers/rtc/rtc-mcp795.c tmp[3] = (tmp[3] & 0x80) | bin2bcd(alm->time.tm_wday + 1); alm 300 drivers/rtc/rtc-mcp795.c tmp[4] = (tmp[4] & 0xC0) | bin2bcd(alm->time.tm_mday); alm 301 drivers/rtc/rtc-mcp795.c tmp[5] = (tmp[5] & 0xE0) | bin2bcd(alm->time.tm_mon + 1); alm 308 drivers/rtc/rtc-mcp795.c if (alm->enabled) { alm 315 drivers/rtc/rtc-mcp795.c &alm->time, alm->time.tm_wday, &alm->time); alm 319 drivers/rtc/rtc-mcp795.c static int mcp795_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 329 drivers/rtc/rtc-mcp795.c alm->time.tm_sec = bcd2bin(data[0] & 0x7F); alm 330 drivers/rtc/rtc-mcp795.c alm->time.tm_min = bcd2bin(data[1] & 0x7F); alm 331 drivers/rtc/rtc-mcp795.c alm->time.tm_hour = bcd2bin(data[2] & 0x1F); alm 332 drivers/rtc/rtc-mcp795.c alm->time.tm_wday = bcd2bin(data[3] & 0x07) - 1; alm 333 drivers/rtc/rtc-mcp795.c alm->time.tm_mday = bcd2bin(data[4] & 0x3F); alm 334 drivers/rtc/rtc-mcp795.c alm->time.tm_mon = bcd2bin(data[5] & 0x1F) - 1; alm 335 drivers/rtc/rtc-mcp795.c alm->time.tm_year = -1; alm 336 drivers/rtc/rtc-mcp795.c alm->time.tm_isdst = -1; alm 337 drivers/rtc/rtc-mcp795.c alm->time.tm_yday = -1; alm 340 drivers/rtc/rtc-mcp795.c &alm->time, alm->time.tm_wday, &alm->time); alm 211 drivers/rtc/rtc-mt6397.c static int mtk_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 213 drivers/rtc/rtc-mt6397.c struct rtc_time *tm = &alm->time; alm 232 drivers/rtc/rtc-mt6397.c alm->enabled = !!(irqen & RTC_IRQ_EN_AL); alm 233 drivers/rtc/rtc-mt6397.c alm->pending = !!(pdn2 & RTC_PDN2_PWRON_ALARM); alm 252 drivers/rtc/rtc-mt6397.c static int mtk_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 254 drivers/rtc/rtc-mt6397.c struct rtc_time *tm = &alm->time; alm 281 drivers/rtc/rtc-mt6397.c if (alm->enabled) { alm 97 drivers/rtc/rtc-mv.c static int mv_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 116 drivers/rtc/rtc-mv.c alm->time.tm_sec = bcd2bin(second); alm 117 drivers/rtc/rtc-mv.c alm->time.tm_min = bcd2bin(minute); alm 118 drivers/rtc/rtc-mv.c alm->time.tm_hour = bcd2bin(hour); alm 119 drivers/rtc/rtc-mv.c alm->time.tm_mday = bcd2bin(day); alm 120 drivers/rtc/rtc-mv.c alm->time.tm_wday = bcd2bin(wday); alm 121 drivers/rtc/rtc-mv.c alm->time.tm_mon = bcd2bin(month) - 1; alm 123 drivers/rtc/rtc-mv.c alm->time.tm_year = bcd2bin(year) + 100; alm 125 drivers/rtc/rtc-mv.c alm->enabled = !!readl(ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS); alm 127 drivers/rtc/rtc-mv.c return rtc_valid_tm(&alm->time); alm 130 drivers/rtc/rtc-mv.c static int mv_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 136 drivers/rtc/rtc-mv.c if (alm->time.tm_sec >= 0) alm 137 drivers/rtc/rtc-mv.c rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_sec)) alm 139 drivers/rtc/rtc-mv.c if (alm->time.tm_min >= 0) alm 140 drivers/rtc/rtc-mv.c rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_min)) alm 142 drivers/rtc/rtc-mv.c if (alm->time.tm_hour >= 0) alm 143 drivers/rtc/rtc-mv.c rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_hour)) alm 148 drivers/rtc/rtc-mv.c if (alm->time.tm_mday >= 0) alm 149 drivers/rtc/rtc-mv.c rtc_reg = (RTC_ALARM_VALID | bin2bcd(alm->time.tm_mday)) alm 154 drivers/rtc/rtc-mv.c if (alm->time.tm_mon >= 0) alm 155 drivers/rtc/rtc-mv.c rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_mon + 1)) alm 158 drivers/rtc/rtc-mv.c if (alm->time.tm_year >= 0) alm 159 drivers/rtc/rtc-mv.c rtc_reg |= (RTC_ALARM_VALID | bin2bcd(alm->time.tm_year - 100)) alm 164 drivers/rtc/rtc-mv.c writel(alm->enabled ? 1 : 0, alm 340 drivers/rtc/rtc-omap.c static int omap_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 348 drivers/rtc/rtc-omap.c alm->time.tm_sec = rtc_read(rtc, OMAP_RTC_ALARM_SECONDS_REG); alm 349 drivers/rtc/rtc-omap.c alm->time.tm_min = rtc_read(rtc, OMAP_RTC_ALARM_MINUTES_REG); alm 350 drivers/rtc/rtc-omap.c alm->time.tm_hour = rtc_read(rtc, OMAP_RTC_ALARM_HOURS_REG); alm 351 drivers/rtc/rtc-omap.c alm->time.tm_mday = rtc_read(rtc, OMAP_RTC_ALARM_DAYS_REG); alm 352 drivers/rtc/rtc-omap.c alm->time.tm_mon = rtc_read(rtc, OMAP_RTC_ALARM_MONTHS_REG); alm 353 drivers/rtc/rtc-omap.c alm->time.tm_year = rtc_read(rtc, OMAP_RTC_ALARM_YEARS_REG); alm 357 drivers/rtc/rtc-omap.c bcd2tm(&alm->time); alm 360 drivers/rtc/rtc-omap.c alm->enabled = !!(interrupts & OMAP_RTC_INTERRUPTS_IT_ALARM); alm 365 drivers/rtc/rtc-omap.c static int omap_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 370 drivers/rtc/rtc-omap.c tm2bcd(&alm->time); alm 376 drivers/rtc/rtc-omap.c rtc_write(rtc, OMAP_RTC_ALARM_YEARS_REG, alm->time.tm_year); alm 377 drivers/rtc/rtc-omap.c rtc_write(rtc, OMAP_RTC_ALARM_MONTHS_REG, alm->time.tm_mon); alm 378 drivers/rtc/rtc-omap.c rtc_write(rtc, OMAP_RTC_ALARM_DAYS_REG, alm->time.tm_mday); alm 379 drivers/rtc/rtc-omap.c rtc_write(rtc, OMAP_RTC_ALARM_HOURS_REG, alm->time.tm_hour); alm 380 drivers/rtc/rtc-omap.c rtc_write(rtc, OMAP_RTC_ALARM_MINUTES_REG, alm->time.tm_min); alm 381 drivers/rtc/rtc-omap.c rtc_write(rtc, OMAP_RTC_ALARM_SECONDS_REG, alm->time.tm_sec); alm 387 drivers/rtc/rtc-omap.c if (alm->enabled) { alm 125 drivers/rtc/rtc-palmas.c static int palmas_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 140 drivers/rtc/rtc-palmas.c alm->time.tm_sec = bcd2bin(alarm_data[0]); alm 141 drivers/rtc/rtc-palmas.c alm->time.tm_min = bcd2bin(alarm_data[1]); alm 142 drivers/rtc/rtc-palmas.c alm->time.tm_hour = bcd2bin(alarm_data[2]); alm 143 drivers/rtc/rtc-palmas.c alm->time.tm_mday = bcd2bin(alarm_data[3]); alm 144 drivers/rtc/rtc-palmas.c alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; alm 145 drivers/rtc/rtc-palmas.c alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; alm 155 drivers/rtc/rtc-palmas.c alm->enabled = 1; alm 159 drivers/rtc/rtc-palmas.c static int palmas_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 171 drivers/rtc/rtc-palmas.c alarm_data[0] = bin2bcd(alm->time.tm_sec); alm 172 drivers/rtc/rtc-palmas.c alarm_data[1] = bin2bcd(alm->time.tm_min); alm 173 drivers/rtc/rtc-palmas.c alarm_data[2] = bin2bcd(alm->time.tm_hour); alm 174 drivers/rtc/rtc-palmas.c alarm_data[3] = bin2bcd(alm->time.tm_mday); alm 175 drivers/rtc/rtc-palmas.c alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); alm 176 drivers/rtc/rtc-palmas.c alarm_data[5] = bin2bcd(alm->time.tm_year - 100); alm 185 drivers/rtc/rtc-palmas.c if (alm->enabled) alm 247 drivers/rtc/rtc-pcf2123.c static int pcf2123_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 259 drivers/rtc/rtc-pcf2123.c alm->time.tm_min = bcd2bin(rxbuf[0] & 0x7F); alm 260 drivers/rtc/rtc-pcf2123.c alm->time.tm_hour = bcd2bin(rxbuf[1] & 0x3F); alm 261 drivers/rtc/rtc-pcf2123.c alm->time.tm_mday = bcd2bin(rxbuf[2] & 0x3F); alm 262 drivers/rtc/rtc-pcf2123.c alm->time.tm_wday = bcd2bin(rxbuf[3] & 0x07); alm 264 drivers/rtc/rtc-pcf2123.c dev_dbg(dev, "%s: alm is %ptR\n", __func__, &alm->time); alm 270 drivers/rtc/rtc-pcf2123.c alm->enabled = !!(val & CTRL2_AIE); alm 275 drivers/rtc/rtc-pcf2123.c static int pcf2123_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 281 drivers/rtc/rtc-pcf2123.c dev_dbg(dev, "%s: alm is %ptR\n", __func__, &alm->time); alm 294 drivers/rtc/rtc-pcf2123.c txbuf[0] = bin2bcd(alm->time.tm_min & 0x7F); alm 295 drivers/rtc/rtc-pcf2123.c txbuf[1] = bin2bcd(alm->time.tm_hour & 0x3F); alm 296 drivers/rtc/rtc-pcf2123.c txbuf[2] = bin2bcd(alm->time.tm_mday & 0x3F); alm 304 drivers/rtc/rtc-pcf2123.c return pcf2123_rtc_alarm_irq_enable(dev, alm->enabled); alm 107 drivers/rtc/rtc-rc5t583.c static int rc5t583_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 121 drivers/rtc/rtc-rc5t583.c alm->time.tm_sec = 0; alm 122 drivers/rtc/rtc-rc5t583.c alm->time.tm_min = bcd2bin(alarm_data[0]); alm 123 drivers/rtc/rtc-rc5t583.c alm->time.tm_hour = bcd2bin(alarm_data[1]); alm 124 drivers/rtc/rtc-rc5t583.c alm->time.tm_mday = bcd2bin(alarm_data[2]); alm 125 drivers/rtc/rtc-rc5t583.c alm->time.tm_mon = bcd2bin(alarm_data[3]) - 1; alm 126 drivers/rtc/rtc-rc5t583.c alm->time.tm_year = bcd2bin(alarm_data[4]) + 100; alm 134 drivers/rtc/rtc-rc5t583.c alm->enabled = 1; alm 139 drivers/rtc/rtc-rc5t583.c static int rc5t583_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 149 drivers/rtc/rtc-rc5t583.c alarm_data[0] = bin2bcd(alm->time.tm_min); alm 150 drivers/rtc/rtc-rc5t583.c alarm_data[1] = bin2bcd(alm->time.tm_hour); alm 151 drivers/rtc/rtc-rc5t583.c alarm_data[2] = bin2bcd(alm->time.tm_mday); alm 152 drivers/rtc/rtc-rc5t583.c alarm_data[3] = bin2bcd(alm->time.tm_mon + 1); alm 153 drivers/rtc/rtc-rc5t583.c alarm_data[4] = bin2bcd(alm->time.tm_year - 100); alm 162 drivers/rtc/rtc-rc5t583.c if (alm->enabled) alm 276 drivers/rtc/rtc-s35390a.c static int s35390a_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 284 drivers/rtc/rtc-s35390a.c "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, alm 285 drivers/rtc/rtc-s35390a.c alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, alm 286 drivers/rtc/rtc-s35390a.c alm->time.tm_mon, alm->time.tm_year, alm->time.tm_wday); alm 288 drivers/rtc/rtc-s35390a.c if (alm->time.tm_sec != 0) alm 301 drivers/rtc/rtc-s35390a.c if (alm->enabled) alm 311 drivers/rtc/rtc-s35390a.c if (alm->time.tm_wday != -1) alm 312 drivers/rtc/rtc-s35390a.c buf[S35390A_ALRM_BYTE_WDAY] = bin2bcd(alm->time.tm_wday) | 0x80; alm 317 drivers/rtc/rtc-s35390a.c alm->time.tm_hour) | 0x80; alm 318 drivers/rtc/rtc-s35390a.c buf[S35390A_ALRM_BYTE_MINS] = bin2bcd(alm->time.tm_min) | 0x80; alm 320 drivers/rtc/rtc-s35390a.c if (alm->time.tm_hour >= 12) alm 332 drivers/rtc/rtc-s35390a.c static int s35390a_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 348 drivers/rtc/rtc-s35390a.c alm->enabled = 0; alm 351 drivers/rtc/rtc-s35390a.c alm->enabled = 1; alm 367 drivers/rtc/rtc-s35390a.c alm->time.tm_wday = alm 371 drivers/rtc/rtc-s35390a.c alm->time.tm_hour = alm 376 drivers/rtc/rtc-s35390a.c alm->time.tm_min = bcd2bin(buf[S35390A_ALRM_BYTE_MINS] & ~0x80); alm 379 drivers/rtc/rtc-s35390a.c alm->time.tm_sec = 0; alm 382 drivers/rtc/rtc-s35390a.c __func__, alm->time.tm_min, alm->time.tm_hour, alm 383 drivers/rtc/rtc-s35390a.c alm->time.tm_wday); alm 257 drivers/rtc/rtc-spear.c static int spear_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 266 drivers/rtc/rtc-spear.c alm->time.tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; alm 267 drivers/rtc/rtc-spear.c alm->time.tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; alm 268 drivers/rtc/rtc-spear.c alm->time.tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; alm 269 drivers/rtc/rtc-spear.c alm->time.tm_mday = (date >> MDAY_SHIFT) & DAY_MASK; alm 270 drivers/rtc/rtc-spear.c alm->time.tm_mon = (date >> MONTH_SHIFT) & MONTH_MASK; alm 271 drivers/rtc/rtc-spear.c alm->time.tm_year = (date >> YEAR_SHIFT) & YEAR_MASK; alm 273 drivers/rtc/rtc-spear.c bcd2tm(&alm->time); alm 274 drivers/rtc/rtc-spear.c alm->enabled = readl(config->ioaddr + CTRL_REG) & INT_ENABLE; alm 287 drivers/rtc/rtc-spear.c static int spear_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 293 drivers/rtc/rtc-spear.c tm2bcd(&alm->time); alm 297 drivers/rtc/rtc-spear.c time = (alm->time.tm_sec << SECOND_SHIFT) | (alm->time.tm_min << alm 298 drivers/rtc/rtc-spear.c MINUTE_SHIFT) | (alm->time.tm_hour << HOUR_SHIFT); alm 299 drivers/rtc/rtc-spear.c date = (alm->time.tm_mday << MDAY_SHIFT) | (alm->time.tm_mon << alm 300 drivers/rtc/rtc-spear.c MONTH_SHIFT) | (alm->time.tm_year << YEAR_SHIFT); alm 308 drivers/rtc/rtc-spear.c if (alm->enabled) alm 205 drivers/rtc/rtc-stmp3xxx.c static int stmp3xxx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 209 drivers/rtc/rtc-stmp3xxx.c rtc_time64_to_tm(readl(rtc_data->io + STMP3XXX_RTC_ALARM), &alm->time); alm 213 drivers/rtc/rtc-stmp3xxx.c static int stmp3xxx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 217 drivers/rtc/rtc-stmp3xxx.c writel(rtc_tm_to_time64(&alm->time), rtc_data->io + STMP3XXX_RTC_ALARM); alm 219 drivers/rtc/rtc-stmp3xxx.c stmp3xxx_alarm_irq_enable(dev, alm->enabled); alm 139 drivers/rtc/rtc-tps65910.c static int tps65910_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 153 drivers/rtc/rtc-tps65910.c alm->time.tm_sec = bcd2bin(alarm_data[0]); alm 154 drivers/rtc/rtc-tps65910.c alm->time.tm_min = bcd2bin(alarm_data[1]); alm 155 drivers/rtc/rtc-tps65910.c alm->time.tm_hour = bcd2bin(alarm_data[2]); alm 156 drivers/rtc/rtc-tps65910.c alm->time.tm_mday = bcd2bin(alarm_data[3]); alm 157 drivers/rtc/rtc-tps65910.c alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; alm 158 drivers/rtc/rtc-tps65910.c alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; alm 165 drivers/rtc/rtc-tps65910.c alm->enabled = 1; alm 170 drivers/rtc/rtc-tps65910.c static int tps65910_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 180 drivers/rtc/rtc-tps65910.c alarm_data[0] = bin2bcd(alm->time.tm_sec); alm 181 drivers/rtc/rtc-tps65910.c alarm_data[1] = bin2bcd(alm->time.tm_min); alm 182 drivers/rtc/rtc-tps65910.c alarm_data[2] = bin2bcd(alm->time.tm_hour); alm 183 drivers/rtc/rtc-tps65910.c alarm_data[3] = bin2bcd(alm->time.tm_mday); alm 184 drivers/rtc/rtc-tps65910.c alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); alm 185 drivers/rtc/rtc-tps65910.c alarm_data[5] = bin2bcd(alm->time.tm_year - 100); alm 195 drivers/rtc/rtc-tps65910.c if (alm->enabled) alm 369 drivers/rtc/rtc-twl.c static int twl_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 383 drivers/rtc/rtc-twl.c alm->time.tm_sec = bcd2bin(rtc_data[0]); alm 384 drivers/rtc/rtc-twl.c alm->time.tm_min = bcd2bin(rtc_data[1]); alm 385 drivers/rtc/rtc-twl.c alm->time.tm_hour = bcd2bin(rtc_data[2]); alm 386 drivers/rtc/rtc-twl.c alm->time.tm_mday = bcd2bin(rtc_data[3]); alm 387 drivers/rtc/rtc-twl.c alm->time.tm_mon = bcd2bin(rtc_data[4]) - 1; alm 388 drivers/rtc/rtc-twl.c alm->time.tm_year = bcd2bin(rtc_data[5]) + 100; alm 392 drivers/rtc/rtc-twl.c alm->enabled = 1; alm 397 drivers/rtc/rtc-twl.c static int twl_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) alm 408 drivers/rtc/rtc-twl.c alarm_data[0] = bin2bcd(alm->time.tm_sec); alm 409 drivers/rtc/rtc-twl.c alarm_data[1] = bin2bcd(alm->time.tm_min); alm 410 drivers/rtc/rtc-twl.c alarm_data[2] = bin2bcd(alm->time.tm_hour); alm 411 drivers/rtc/rtc-twl.c alarm_data[3] = bin2bcd(alm->time.tm_mday); alm 412 drivers/rtc/rtc-twl.c alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); alm 413 drivers/rtc/rtc-twl.c alarm_data[5] = bin2bcd(alm->time.tm_year - 100); alm 423 drivers/rtc/rtc-twl.c if (alm->enabled) alm 128 drivers/rtc/sysfs.c struct rtc_wkalrm alm; alm 138 drivers/rtc/sysfs.c retval = rtc_read_alarm(to_rtc_device(dev), &alm); alm 139 drivers/rtc/sysfs.c if (retval == 0 && alm.enabled) { alm 140 drivers/rtc/sysfs.c alarm = rtc_tm_to_time64(&alm.time); alm 154 drivers/rtc/sysfs.c struct rtc_wkalrm alm; alm 162 drivers/rtc/sysfs.c retval = rtc_read_time(rtc, &alm.time); alm 165 drivers/rtc/sysfs.c now = rtc_tm_to_time64(&alm.time); alm 187 drivers/rtc/sysfs.c retval = rtc_read_alarm(rtc, &alm); alm 190 drivers/rtc/sysfs.c if (alm.enabled) { alm 192 drivers/rtc/sysfs.c push = rtc_tm_to_time64(&alm.time); alm 198 drivers/rtc/sysfs.c alm.enabled = 1; alm 200 drivers/rtc/sysfs.c alm.enabled = 0; alm 207 drivers/rtc/sysfs.c rtc_time64_to_tm(alarm, &alm.time); alm 209 drivers/rtc/sysfs.c retval = rtc_set_alarm(rtc, &alm); alm 74 kernel/power/suspend_test.c struct rtc_wkalrm alm; alm 79 kernel/power/suspend_test.c status = rtc_read_time(rtc, &alm.time); alm 84 kernel/power/suspend_test.c rtc_tm_to_time(&alm.time, &now); alm 86 kernel/power/suspend_test.c memset(&alm, 0, sizeof alm); alm 87 kernel/power/suspend_test.c rtc_time_to_tm(now + TEST_SUSPEND_SECONDS, &alm.time); alm 88 kernel/power/suspend_test.c alm.enabled = true; alm 90 kernel/power/suspend_test.c status = rtc_set_alarm(rtc, &alm); alm 124 kernel/power/suspend_test.c alm.enabled = false; alm 125 kernel/power/suspend_test.c rtc_set_alarm(rtc, &alm); alm 1151 tools/perf/util/hist.c struct map *alm = NULL; alm 1154 tools/perf/util/hist.c alm = map__get(al->map); alm 1159 tools/perf/util/hist.c map__put(alm); alm 1194 tools/perf/util/hist.c map__put(alm);