/drivers/rtc/ |
H A D | rtc-ds1286.c | 170 * Once the read clears, read the RTC time (again via ioctl). Easy. 278 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; 279 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; 280 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; 284 alm->time.tm_min = bcd2bin(alm->time.tm_min); 285 alm->time.tm_hour = bcd2bin(alm->time.tm_hour); 286 alm->time.tm_sec = 0; 295 hrs = alm->time [all...] |
H A D | rtc-snvs.c | 122 unsigned long time = rtc_read_lp_counter(data->ioaddr); local 124 rtc_time_to_tm(time, tm); 132 unsigned long time; local 134 rtc_tm_to_time(tm, &time); 139 /* Write 32-bit time to 47-bit timer, leaving 15 LSBs blank */ 140 writel(time << CNTR_TO_SECS_SH, data->ioaddr + SNVS_LPSRTCLR); 141 writel(time >> (32 - CNTR_TO_SECS_SH), data->ioaddr + SNVS_LPSRTCMR); 155 rtc_time_to_tm(lptar, &alrm->time); 188 struct rtc_time *alrm_tm = &alrm->time; 189 unsigned long time; local [all...] |
H A D | rtc-omap.c | 277 alm->time.tm_sec = rtc_read(OMAP_RTC_ALARM_SECONDS_REG); 278 alm->time.tm_min = rtc_read(OMAP_RTC_ALARM_MINUTES_REG); 279 alm->time.tm_hour = rtc_read(OMAP_RTC_ALARM_HOURS_REG); 280 alm->time.tm_mday = rtc_read(OMAP_RTC_ALARM_DAYS_REG); 281 alm->time.tm_mon = rtc_read(OMAP_RTC_ALARM_MONTHS_REG); 282 alm->time.tm_year = rtc_read(OMAP_RTC_ALARM_YEARS_REG); 286 bcd2tm(&alm->time); 300 if (tm2bcd(&alm->time) < 0) 306 rtc_write(alm->time.tm_year, OMAP_RTC_ALARM_YEARS_REG); 307 rtc_write(alm->time [all...] |
H A D | rtc-rc5t583.c | 36 /* Total number of RTC registers needed to set time*/ 61 * Gets current rc5t583 RTC time and date parameters. 63 * The RTC's time/alarm representation is not what gmtime(3) requires 78 dev_err(dev, "RTC read time failed with err:%d\n", ret); 110 dev_err(dev, "RTC set time failed with error %d\n", ret); 131 alm->time.tm_min = bcd2bin(alarm_data[0]); 132 alm->time.tm_hour = bcd2bin(alarm_data[1]); 133 alm->time.tm_mday = bcd2bin(alarm_data[2]); 134 alm->time.tm_mon = bcd2bin(alarm_data[3]) - 1; 135 alm->time [all...] |
H A D | rtc-at91rm9200.c | 24 #include <linux/time.h> 107 * Decode time/date into rtc_time structure 112 unsigned int time, date; local 116 time = at91_rtc_read(timereg); 118 } while ((time != at91_rtc_read(timereg)) || 121 tm->tm_sec = bcd2bin((time & AT91_RTC_SEC) >> 0); 122 tm->tm_min = bcd2bin((time & AT91_RTC_MIN) >> 8); 123 tm->tm_hour = bcd2bin((time & AT91_RTC_HOUR) >> 16); 139 * Read current time and date in RTC 155 * Set current time an [all...] |
H A D | rtc-dev.c | 266 * use the local wall clock time. 277 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) 284 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) 289 alarm.time.tm_wday = -1; 290 alarm.time.tm_yday = -1; 291 alarm.time.tm_isdst = -1; 314 alarm.time.tm_mday = tm.tm_mday; 315 alarm.time.tm_mon = tm.tm_mon; 316 alarm.time.tm_year = tm.tm_year; 317 err = rtc_valid_tm(&alarm.time); [all...] |
H A D | rtc-mpc5121.c | 2 * Real-time clock driver for MPC5121 68 * time 73 * readonly time since VBAT_RTC was last connected 99 /* set time sequence */ 113 * linux time is actual_time plus the offset saved in target_time 137 * between it and linux time to the target_time register. 221 if (alarm->time.tm_sec) { 222 alarm->time.tm_sec = 0; 223 alarm->time.tm_min++; 224 if (alarm->time [all...] |
H A D | rtc-rx8025.c | 235 * year. Next time this is wrong is 2100, which will not be a leap 340 t->time.tm_sec = 0; 341 t->time.tm_min = bcd2bin(ald[0] & 0x7f); 343 t->time.tm_hour = bcd2bin(ald[1] & 0x3f); 345 t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12 348 t->time.tm_wday = -1; 349 t->time.tm_mday = -1; 350 t->time.tm_mon = -1; 351 t->time.tm_year = -1; 355 t->time [all...] |
H A D | rtc-ds2404.c | 204 unsigned long time = 0; local 206 ds2404_read_memory(dev, 0x203, 4, (u8 *)&time); 207 time = le32_to_cpu(time); 209 rtc_time_to_tm(time, dt); 215 u32 time = cpu_to_le32(secs); local 216 ds2404_write_memory(dev, 0x203, 4, (u8 *)&time);
|
H A D | rtc-sa1100.c | 166 unsigned long time; local 169 ret = rtc_tm_to_time(tm, &time); 171 RCNR = time; 188 unsigned long time; local 192 ret = rtc_tm_to_time(&alrm->time, &time); 196 RTAR = time;
|
H A D | rtc-tx4939.c | 102 if (alrm->time.tm_sec < 0 || 103 alrm->time.tm_min < 0 || 104 alrm->time.tm_hour < 0 || 105 alrm->time.tm_mday < 0 || 106 alrm->time.tm_mon < 0 || 107 alrm->time.tm_year < 0) 109 rtc_tm_to_time(&alrm->time, &sec); 151 rtc_time_to_tm(sec, &alrm->time); 152 return rtc_valid_tm(&alrm->time);
|
H A D | rtc-twl.c | 239 * Gets current TWL RTC time and date parameters. 241 * The RTC's time/alarm representation is not what gmtime(3) requires 336 /* update all the time registers in one shot */ 353 * Gets current TWL RTC alarm time. 368 alm->time.tm_sec = bcd2bin(rtc_data[0]); 369 alm->time.tm_min = bcd2bin(rtc_data[1]); 370 alm->time.tm_hour = bcd2bin(rtc_data[2]); 371 alm->time.tm_mday = bcd2bin(rtc_data[3]); 372 alm->time.tm_mon = bcd2bin(rtc_data[4]) - 1; 373 alm->time [all...] |
H A D | rtc-davinci.c | 394 alm->time.tm_min = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AMIN)); 397 alm->time.tm_hour = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AHOUR)); 410 if (convertfromdays(days, &alm->time) < 0) 427 if (alm->time.tm_mday <= 0 && alm->time.tm_mon < 0 428 && alm->time.tm_year < 0) { 435 alm->time.tm_mday = tm.tm_mday; 436 alm->time.tm_mon = tm.tm_mon; 437 alm->time.tm_year = tm.tm_year; 438 rtc_tm_to_time(&alm->time, [all...] |
/drivers/media/platform/vivid/ |
H A D | vivid-rds-gen.c | 49 * Group 56 contains the time (group 4A). 60 unsigned time; local 107 time = (tm.tm_hour << 12) | 115 data[2].lsb |= (time >> 16) & 1; 118 data[3].lsb = time & 0xff; 119 data[3].msb = (time >> 8) & 0xff;
|
/drivers/watchdog/ |
H A D | ixp4xx_wdt.c | 105 int time; local 127 ret = get_user(time, (int *)arg); 131 if (time <= 0 || time > 60) { 136 heartbeat = time;
|
H A D | m54xx_wdt.c | 124 int time; local 146 ret = get_user(time, (int *)arg); 150 if (time <= 0 || time > 30) { 155 heartbeat = time;
|
H A D | rn5t618_wdt.c | 45 unsigned int time; member in struct:__anon7288 60 if (rn5t618_wdt_map[i].time + 1 >= t) 71 wdt_dev->timeout = rn5t618_wdt_map[i].time; 157 min_timeout = rn5t618_wdt_map[0].time; 158 max_timeout = rn5t618_wdt_map[ARRAY_SIZE(rn5t618_wdt_map) - 1].time;
|
H A D | sa1100_wdt.c | 98 int time; local 122 ret = get_user(time, p); 126 if (time <= 0 || (oscr_freq * (long long)time >= 0xffffffff)) { 131 pre_margin = oscr_freq * time;
|
H A D | sbc_fitpc2_wdt.c | 124 int time; local 146 ret = get_user(time, (int *)arg); 150 if (time < 31 || time > 255) { 155 margin = time;
|
H A D | at32ap700x_wdt.c | 160 * Change the watchdog time interval. 162 static int at32_wdt_settimeout(int time) argument 168 if ((time < TIMEOUT_MIN) || (time > TIMEOUT_MAX)) 172 * Set new watchdog time. It will be used when at32_wdt_start() is 175 wdt->timeout = time; 220 int time; local 236 ret = get_user(time, p); 239 if (time & WDIOS_DISABLECARD) 241 if (time [all...] |
/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | pinger.c | 115 int time = soon ? PING_INTERVAL_SHORT : PING_INTERVAL; local 120 time = min(time, dtime); 122 imp->imp_next_ping = cfs_time_shift(time); 144 long pinger_check_timeout(unsigned long time) argument 159 return cfs_time_sub(cfs_time_add(time, cfs_time_seconds(timeout)), 274 /* Wait until the next ping time, or until we're stopped. */ 279 next ping time to next_ping + .01 sec, which means 431 struct timeout_item* ptlrpc_new_timeout(int time, enum timeout_event event, argument 442 ti->ti_timeout = time; 455 ptlrpc_pinger_register_timeout(int time, enum timeout_event event, timeout_cb_t cb, void *data) argument 483 ptlrpc_add_timeout_client(int time, enum timeout_event event, timeout_cb_t cb, void *data, struct list_head *obd_list) argument [all...] |
/drivers/char/ipmi/ |
H A D | ipmi_kcs_sm.c | 233 long time) 236 kcs->ibf_timeout -= time; 238 start_error_recovery(kcs, "IBF not ready in time"); 249 long time) 252 kcs->obf_timeout -= time; 255 start_error_recovery(kcs, "OBF not ready in time"); 346 static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time) argument 357 if (!check_ibf(kcs, status, time)) 438 if (!check_obf(kcs, status, time)) 481 if (!check_obf(kcs, status, time)) 232 check_ibf(struct si_sm_data *kcs, unsigned char status, long time) argument 248 check_obf(struct si_sm_data *kcs, unsigned char status, long time) argument [all...] |
H A D | ipmi_si_sm.h | 119 * with the time that passed since the last call, if it is 122 enum si_sm_result (*event)(struct si_sm_data *smi, long time);
|
/drivers/isdn/hardware/eicon/ |
H A D | man_defs.h | 107 unsigned long time; /* Timestamp in msec units */ member in struct:mi_xlog_hdr_s
|
/drivers/macintosh/ |
H A D | smu.c | 13 * - blocking version of time functions 364 struct rtc_time *time) 369 cmd_buf->data[1] = hex2bcd(time->tm_sec); 370 cmd_buf->data[2] = hex2bcd(time->tm_min); 371 cmd_buf->data[3] = hex2bcd(time->tm_hour); 372 cmd_buf->data[4] = time->tm_wday; 373 cmd_buf->data[5] = hex2bcd(time->tm_mday); 374 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; 375 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); 379 int smu_get_rtc_time(struct rtc_time *time, in argument 363 smu_fill_set_rtc_cmd(struct smu_cmd_buf *cmd_buf, struct rtc_time *time) argument 406 smu_set_rtc_time(struct rtc_time *time, int spinwait) argument [all...] |