Searched refs:time (Results 51 - 75 of 441) sorted by relevance

1234567891011>>

/drivers/rtc/
H A Drtc-ds1286.c170 * 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 Drtc-snvs.c122 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 Drtc-omap.c277 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 Drtc-rc5t583.c36 /* 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 Drtc-at91rm9200.c24 #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 Drtc-dev.c266 * 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 Drtc-mpc5121.c2 * 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 Drtc-rx8025.c235 * 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 Drtc-ds2404.c204 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 Drtc-sa1100.c166 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 Drtc-tx4939.c102 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 Drtc-twl.c239 * 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 Drtc-davinci.c394 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 Dvivid-rds-gen.c49 * 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 Dixp4xx_wdt.c105 int time; local
127 ret = get_user(time, (int *)arg);
131 if (time <= 0 || time > 60) {
136 heartbeat = time;
H A Dm54xx_wdt.c124 int time; local
146 ret = get_user(time, (int *)arg);
150 if (time <= 0 || time > 30) {
155 heartbeat = time;
H A Drn5t618_wdt.c45 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 Dsa1100_wdt.c98 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 Dsbc_fitpc2_wdt.c124 int time; local
146 ret = get_user(time, (int *)arg);
150 if (time < 31 || time > 255) {
155 margin = time;
H A Dat32ap700x_wdt.c160 * 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 Dpinger.c115 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 Dipmi_kcs_sm.c233 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 Dipmi_si_sm.h119 * 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 Dman_defs.h107 unsigned long time; /* Timestamp in msec units */ member in struct:mi_xlog_hdr_s
/drivers/macintosh/
H A Dsmu.c13 * - 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...]

Completed in 574 milliseconds

1234567891011>>