Home
last modified time | relevance | path

Searched refs:time (Results 1 – 200 of 1780) sorted by relevance

123456789

/linux-4.1.27/include/asm-generic/
Drtc.h45 static inline unsigned int __get_rtc_time(struct rtc_time *time) in __get_rtc_time() argument
73 time->tm_sec = CMOS_READ(RTC_SECONDS); in __get_rtc_time()
74 time->tm_min = CMOS_READ(RTC_MINUTES); in __get_rtc_time()
75 time->tm_hour = CMOS_READ(RTC_HOURS); in __get_rtc_time()
76 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in __get_rtc_time()
77 time->tm_mon = CMOS_READ(RTC_MONTH); in __get_rtc_time()
78 time->tm_year = CMOS_READ(RTC_YEAR); in __get_rtc_time()
87 time->tm_sec = bcd2bin(time->tm_sec); in __get_rtc_time()
88 time->tm_min = bcd2bin(time->tm_min); in __get_rtc_time()
89 time->tm_hour = bcd2bin(time->tm_hour); in __get_rtc_time()
[all …]
/linux-4.1.27/sound/core/seq/
Dseq_prioq.c106 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
109 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp()
123 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
125 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
131 if (a->time.time.tv_sec > b->time.time.tv_sec) in compare_timestamp_rel()
133 else if (a->time.time.tv_sec == b->time.time.tv_sec) { in compare_timestamp_rel()
134 if (a->time.time.tv_nsec > b->time.time.tv_nsec) in compare_timestamp_rel()
136 else if (a->time.time.tv_nsec == b->time.time.tv_nsec) in compare_timestamp_rel()
277 if (cell->event.time.tick) in prioq_match()
281 if (cell->event.time.time.tv_sec || in prioq_match()
[all …]
Dseq_queue.c276 &cell->event.time.tick)) { in snd_seq_check_queue()
290 &cell->event.time.time)) { in snd_seq_check_queue()
328 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
332 snd_seq_inc_real_time(&cell->event.time.time, in snd_seq_enqueue_event()
664 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event()
707 if (snd_seq_timer_set_position_tick(q->timer, ev->data.queue.param.time.tick) == 0) { in snd_seq_queue_process_event()
713 if (snd_seq_timer_set_position_time(q->timer, ev->data.queue.param.time.time) == 0) { in snd_seq_queue_process_event()
/linux-4.1.27/drivers/rtc/
Drtc-pcf50633.c56 u_int8_t time[PCF50633_TI_EXTENT]; member
69 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time()
70 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time()
71 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time()
72 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time()
73 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time()
74 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time()
75 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time()
80 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time()
81 pcf->time[PCF50633_TI_MIN] = bin2bcd(rtc->tm_min); in rtc2pcf_time()
[all …]
Drtc-dm355evm.c39 union evm_time time; in dm355evm_rtc_read_time() local
52 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time()
54 time.bytes[0] = status; in dm355evm_rtc_read_time()
59 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time()
61 time.bytes[1] = status; in dm355evm_rtc_read_time()
66 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time()
68 time.bytes[2] = status; in dm355evm_rtc_read_time()
73 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time()
75 time.bytes[3] = status; in dm355evm_rtc_read_time()
79 dev_dbg(dev, "read timestamp %08x\n", time.value); in dm355evm_rtc_read_time()
[all …]
Drtc-wm8350.c100 u16 time[4]; in wm8350_rtc_settime() local
104 time[0] = tm->tm_sec; in wm8350_rtc_settime()
105 time[0] |= tm->tm_min << WM8350_RTC_MINS_SHIFT; in wm8350_rtc_settime()
106 time[1] = tm->tm_hour; in wm8350_rtc_settime()
107 time[1] |= (tm->tm_wday + 1) << WM8350_RTC_DAY_SHIFT; in wm8350_rtc_settime()
108 time[2] = tm->tm_mday; in wm8350_rtc_settime()
109 time[2] |= (tm->tm_mon + 1) << WM8350_RTC_MTH_SHIFT; in wm8350_rtc_settime()
110 time[3] = ((tm->tm_year + 1900) / 100) << WM8350_RTC_YHUNDREDS_SHIFT; in wm8350_rtc_settime()
111 time[3] |= (tm->tm_year + 1900) % 100; in wm8350_rtc_settime()
114 time[0], time[1], time[2], time[3]); in wm8350_rtc_settime()
[all …]
Drtc-ds3232.c103 static int ds3232_read_time(struct device *dev, struct rtc_time *time) in ds3232_read_time() argument
135 time->tm_sec = bcd2bin(second); in ds3232_read_time()
136 time->tm_min = bcd2bin(minute); in ds3232_read_time()
140 time->tm_hour = bcd2bin(hour & 0x1F) + 12; in ds3232_read_time()
142 time->tm_hour = bcd2bin(hour & 0x1F); in ds3232_read_time()
144 time->tm_hour = bcd2bin(hour); in ds3232_read_time()
148 time->tm_wday = bcd2bin(week) - 1; in ds3232_read_time()
149 time->tm_mday = bcd2bin(day); in ds3232_read_time()
151 time->tm_mon = bcd2bin(month & 0x7F) - 1; in ds3232_read_time()
155 time->tm_year = bcd2bin(year) + add_century; in ds3232_read_time()
[all …]
Drtc-ds1305.c174 static int ds1305_get_time(struct device *dev, struct rtc_time *time) in ds1305_get_time() argument
194 time->tm_sec = bcd2bin(buf[DS1305_SEC]); in ds1305_get_time()
195 time->tm_min = bcd2bin(buf[DS1305_MIN]); in ds1305_get_time()
196 time->tm_hour = bcd2hour(buf[DS1305_HOUR]); in ds1305_get_time()
197 time->tm_wday = buf[DS1305_WDAY] - 1; in ds1305_get_time()
198 time->tm_mday = bcd2bin(buf[DS1305_MDAY]); in ds1305_get_time()
199 time->tm_mon = bcd2bin(buf[DS1305_MON]) - 1; in ds1305_get_time()
200 time->tm_year = bcd2bin(buf[DS1305_YEAR]) + 100; in ds1305_get_time()
204 "read", time->tm_sec, time->tm_min, in ds1305_get_time()
205 time->tm_hour, time->tm_mday, in ds1305_get_time()
[all …]
Drtc-spear.c209 unsigned int time, date; in spear_rtc_read_time() local
214 time = readl(config->ioaddr + TIME_REG); in spear_rtc_read_time()
216 tm->tm_sec = (time >> SECOND_SHIFT) & SECOND_MASK; in spear_rtc_read_time()
217 tm->tm_min = (time >> MINUTE_SHIFT) & MIN_MASK; in spear_rtc_read_time()
218 tm->tm_hour = (time >> HOUR_SHIFT) & HOUR_MASK; in spear_rtc_read_time()
238 unsigned int time, date; in spear_rtc_set_time() local
244 time = (tm->tm_sec << SECOND_SHIFT) | (tm->tm_min << MINUTE_SHIFT) | in spear_rtc_set_time()
248 writel(time, config->ioaddr + TIME_REG); in spear_rtc_set_time()
265 unsigned int time, date; in spear_rtc_read_alarm() local
269 time = readl(config->ioaddr + ALARM_TIME_REG); in spear_rtc_read_alarm()
[all …]
Drtc-proc.c62 if ((unsigned int)alrm.time.tm_hour <= 24) in rtc_proc_show()
63 seq_printf(seq, "%02d:", alrm.time.tm_hour); in rtc_proc_show()
66 if ((unsigned int)alrm.time.tm_min <= 59) in rtc_proc_show()
67 seq_printf(seq, "%02d:", alrm.time.tm_min); in rtc_proc_show()
70 if ((unsigned int)alrm.time.tm_sec <= 59) in rtc_proc_show()
71 seq_printf(seq, "%02d\n", alrm.time.tm_sec); in rtc_proc_show()
76 if ((unsigned int)alrm.time.tm_year <= 200) in rtc_proc_show()
77 seq_printf(seq, "%04d-", alrm.time.tm_year + 1900); in rtc_proc_show()
80 if ((unsigned int)alrm.time.tm_mon <= 11) in rtc_proc_show()
81 seq_printf(seq, "%02d-", alrm.time.tm_mon + 1); in rtc_proc_show()
[all …]
Drtc-pl031.c129 unsigned long time; in pl031_stv2_tm_to_time() local
132 rtc_tm_to_time(tm, &time); in pl031_stv2_tm_to_time()
133 rtc_time_to_tm(time, &calc_tm); in pl031_stv2_tm_to_time()
181 unsigned long time; in pl031_stv2_set_time() local
186 ret = pl031_stv2_tm_to_time(dev, tm, &time, &bcd_year); in pl031_stv2_set_time()
189 writel(time, ldata->base + RTC_LR); in pl031_stv2_set_time()
201 readl(ldata->base + RTC_YMR), &alarm->time); in pl031_stv2_read_alarm()
212 unsigned long time; in pl031_stv2_set_alarm() local
217 ret = rtc_valid_tm(&alarm->time); in pl031_stv2_set_alarm()
219 ret = pl031_stv2_tm_to_time(dev, &alarm->time, in pl031_stv2_set_alarm()
[all …]
Drtc-mrst.c89 static int mrst_read_time(struct device *dev, struct rtc_time *time) in mrst_read_time() argument
97 time->tm_sec = vrtc_cmos_read(RTC_SECONDS); in mrst_read_time()
98 time->tm_min = vrtc_cmos_read(RTC_MINUTES); in mrst_read_time()
99 time->tm_hour = vrtc_cmos_read(RTC_HOURS); in mrst_read_time()
100 time->tm_mday = vrtc_cmos_read(RTC_DAY_OF_MONTH); in mrst_read_time()
101 time->tm_mon = vrtc_cmos_read(RTC_MONTH); in mrst_read_time()
102 time->tm_year = vrtc_cmos_read(RTC_YEAR); in mrst_read_time()
106 time->tm_year += 72; in mrst_read_time()
107 time->tm_mon--; in mrst_read_time()
108 return rtc_valid_tm(time); in mrst_read_time()
[all …]
Drtc-rk808.c167 alrm->time.tm_sec = bcd2bin(alrm_data[0] & SECONDS_REG_MSK); in rk808_rtc_readalarm()
168 alrm->time.tm_min = bcd2bin(alrm_data[1] & MINUTES_REG_MAK); in rk808_rtc_readalarm()
169 alrm->time.tm_hour = bcd2bin(alrm_data[2] & HOURS_REG_MSK); in rk808_rtc_readalarm()
170 alrm->time.tm_mday = bcd2bin(alrm_data[3] & DAYS_REG_MSK); in rk808_rtc_readalarm()
171 alrm->time.tm_mon = (bcd2bin(alrm_data[4] & MONTHS_REG_MSK)) - 1; in rk808_rtc_readalarm()
172 alrm->time.tm_year = (bcd2bin(alrm_data[5] & YEARS_REG_MSK)) + 100; in rk808_rtc_readalarm()
181 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, in rk808_rtc_readalarm()
182 alrm->time.tm_mday, alrm->time.tm_wday, alrm->time.tm_hour, in rk808_rtc_readalarm()
183 alrm->time.tm_min, alrm->time.tm_sec); in rk808_rtc_readalarm()
226 1900 + alrm->time.tm_year, alrm->time.tm_mon + 1, in rk808_rtc_setalarm()
[all …]
Drtc-vr41xx.c139 static int vr41xx_rtc_read_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_read_time() argument
146 rtc_time_to_tm(epoch_sec + elapsed_sec, time); in vr41xx_rtc_read_time()
151 static int vr41xx_rtc_set_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_set_time() argument
156 current_sec = mktime(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, in vr41xx_rtc_set_time()
157 time->tm_hour, time->tm_min, time->tm_sec); in vr41xx_rtc_set_time()
167 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_read_alarm() local
178 rtc_time_to_tm((high << 17) | (mid << 1) | (low >> 15), time); in vr41xx_rtc_read_alarm()
186 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_set_alarm() local
188 alarm_sec = mktime(time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, in vr41xx_rtc_set_alarm()
189 time->tm_hour, time->tm_min, time->tm_sec); in vr41xx_rtc_set_alarm()
Drtc-cmos.c223 t->time.tm_mday = -1; in cmos_read_alarm()
224 t->time.tm_mon = -1; in cmos_read_alarm()
227 t->time.tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in cmos_read_alarm()
228 t->time.tm_min = CMOS_READ(RTC_MINUTES_ALARM); in cmos_read_alarm()
229 t->time.tm_hour = CMOS_READ(RTC_HOURS_ALARM); in cmos_read_alarm()
233 t->time.tm_mday = CMOS_READ(cmos->day_alrm) & 0x3f; in cmos_read_alarm()
234 if (!t->time.tm_mday) in cmos_read_alarm()
235 t->time.tm_mday = -1; in cmos_read_alarm()
238 t->time.tm_mon = CMOS_READ(cmos->mon_alrm); in cmos_read_alarm()
239 if (!t->time.tm_mon) in cmos_read_alarm()
[all …]
Dinterface.c225 if (rtc_valid_tm(&alarm->time) == 0) in __rtc_read_alarm()
242 if (alarm->time.tm_sec == -1) in __rtc_read_alarm()
243 alarm->time.tm_sec = now.tm_sec; in __rtc_read_alarm()
244 if (alarm->time.tm_min == -1) in __rtc_read_alarm()
245 alarm->time.tm_min = now.tm_min; in __rtc_read_alarm()
246 if (alarm->time.tm_hour == -1) in __rtc_read_alarm()
247 alarm->time.tm_hour = now.tm_hour; in __rtc_read_alarm()
250 if (alarm->time.tm_mday < 1 || alarm->time.tm_mday > 31) { in __rtc_read_alarm()
251 alarm->time.tm_mday = now.tm_mday; in __rtc_read_alarm()
254 if ((unsigned)alarm->time.tm_mon >= 12) { in __rtc_read_alarm()
[all …]
Drtc-mv.c118 alm->time.tm_sec = bcd2bin(second); in mv_rtc_read_alarm()
119 alm->time.tm_min = bcd2bin(minute); in mv_rtc_read_alarm()
120 alm->time.tm_hour = bcd2bin(hour); in mv_rtc_read_alarm()
121 alm->time.tm_mday = bcd2bin(day); in mv_rtc_read_alarm()
122 alm->time.tm_wday = bcd2bin(wday); in mv_rtc_read_alarm()
123 alm->time.tm_mon = bcd2bin(month) - 1; in mv_rtc_read_alarm()
125 alm->time.tm_year = bcd2bin(year) + 100; in mv_rtc_read_alarm()
127 if (rtc_valid_tm(&alm->time) < 0) { in mv_rtc_read_alarm()
129 rtc_time_to_tm(0, &alm->time); in mv_rtc_read_alarm()
142 if (alm->time.tm_sec >= 0) in mv_rtc_set_alarm()
[all …]
Drtc-pcf8563.c340 tm->time.tm_min = bcd2bin(buf[0] & 0x7F); in pcf8563_rtc_read_alarm()
341 tm->time.tm_hour = bcd2bin(buf[1] & 0x3F); in pcf8563_rtc_read_alarm()
342 tm->time.tm_mday = bcd2bin(buf[2] & 0x3F); in pcf8563_rtc_read_alarm()
343 tm->time.tm_wday = bcd2bin(buf[3] & 0x7); in pcf8563_rtc_read_alarm()
344 tm->time.tm_mon = -1; in pcf8563_rtc_read_alarm()
345 tm->time.tm_year = -1; in pcf8563_rtc_read_alarm()
346 tm->time.tm_yday = -1; in pcf8563_rtc_read_alarm()
347 tm->time.tm_isdst = -1; in pcf8563_rtc_read_alarm()
354 " enabled=%d, pending=%d\n", __func__, tm->time.tm_min, in pcf8563_rtc_read_alarm()
355 tm->time.tm_hour, tm->time.tm_mday, tm->time.tm_wday, in pcf8563_rtc_read_alarm()
[all …]
Drtc-vt8500.c112 u32 date, time; in vt8500_rtc_read_time() local
115 time = readl(vt8500_rtc->regbase + VT8500_RTC_TR); in vt8500_rtc_read_time()
117 tm->tm_sec = bcd2bin(time & TIME_SEC_MASK); in vt8500_rtc_read_time()
118 tm->tm_min = bcd2bin((time & TIME_MIN_MASK) >> TIME_MIN_S); in vt8500_rtc_read_time()
119 tm->tm_hour = bcd2bin((time & TIME_HOUR_MASK) >> TIME_HOUR_S); in vt8500_rtc_read_time()
124 tm->tm_wday = (time & TIME_DOW_MASK) >> TIME_DOW_S; in vt8500_rtc_read_time()
161 alrm->time.tm_mday = bcd2bin((alarm & ALARM_DAY_MASK) >> ALARM_DAY_S); in vt8500_rtc_read_alarm()
162 alrm->time.tm_hour = bcd2bin((alarm & TIME_HOUR_MASK) >> TIME_HOUR_S); in vt8500_rtc_read_alarm()
163 alrm->time.tm_min = bcd2bin((alarm & TIME_MIN_MASK) >> TIME_MIN_S); in vt8500_rtc_read_alarm()
164 alrm->time.tm_sec = bcd2bin((alarm & TIME_SEC_MASK)); in vt8500_rtc_read_alarm()
[all …]
Drtc-ds1307.c496 t->time.tm_sec = bcd2bin(ds1307->regs[0] & 0x7f); in ds1337_read_alarm()
497 t->time.tm_min = bcd2bin(ds1307->regs[1] & 0x7f); in ds1337_read_alarm()
498 t->time.tm_hour = bcd2bin(ds1307->regs[2] & 0x3f); in ds1337_read_alarm()
499 t->time.tm_mday = bcd2bin(ds1307->regs[3] & 0x3f); in ds1337_read_alarm()
500 t->time.tm_mon = -1; in ds1337_read_alarm()
501 t->time.tm_year = -1; in ds1337_read_alarm()
502 t->time.tm_wday = -1; in ds1337_read_alarm()
503 t->time.tm_yday = -1; in ds1337_read_alarm()
504 t->time.tm_isdst = -1; in ds1337_read_alarm()
512 "alarm read", t->time.tm_sec, t->time.tm_min, in ds1337_read_alarm()
[all …]
Drtc-armada38x.c67 unsigned long time, time_check; in armada38x_rtc_read_time() local
70 time = readl(rtc->regs + RTC_TIME); in armada38x_rtc_read_time()
77 if ((time_check - time) > 1) in armada38x_rtc_read_time()
91 unsigned long time, flags; in armada38x_rtc_set_time() local
93 ret = rtc_tm_to_time(tm, &time); in armada38x_rtc_set_time()
106 rtc_delayed_write(time, rtc, RTC_TIME); in armada38x_rtc_set_time()
116 unsigned long time, flags; in armada38x_rtc_read_alarm() local
121 time = readl(rtc->regs + RTC_ALARM1); in armada38x_rtc_read_alarm()
127 rtc_time_to_tm(time, &alrm->time); in armada38x_rtc_read_alarm()
135 unsigned long time, flags; in armada38x_rtc_set_alarm() local
[all …]
Drtc-pl030.c42 rtc_time_to_tm(readl(rtc->base + RTC_MR), &alrm->time); in pl030_read_alarm()
49 unsigned long time; in pl030_set_alarm() local
55 ret = rtc_valid_tm(&alrm->time); in pl030_set_alarm()
57 ret = rtc_tm_to_time(&alrm->time, &time); in pl030_set_alarm()
59 writel(time, rtc->base + RTC_MR); in pl030_set_alarm()
83 unsigned long time; in pl030_set_time() local
86 ret = rtc_tm_to_time(tm, &time); in pl030_set_time()
88 writel(time + 1, rtc->base + RTC_LR); in pl030_set_time()
Drtc-s35390a.c216 "mon=%d, year=%d, wday=%d\n", __func__, alm->time.tm_sec, in s35390a_set_alarm()
217 alm->time.tm_min, alm->time.tm_hour, alm->time.tm_mday, in s35390a_set_alarm()
218 alm->time.tm_mon, alm->time.tm_year, alm->time.tm_wday); in s35390a_set_alarm()
243 if (alm->time.tm_wday != -1) in s35390a_set_alarm()
244 buf[S35390A_ALRM_BYTE_WDAY] = bin2bcd(alm->time.tm_wday) | 0x80; in s35390a_set_alarm()
247 alm->time.tm_hour) | 0x80; in s35390a_set_alarm()
248 buf[S35390A_ALRM_BYTE_MINS] = bin2bcd(alm->time.tm_min) | 0x80; in s35390a_set_alarm()
250 if (alm->time.tm_hour >= 12) in s35390a_set_alarm()
285 alm->time.tm_wday = bcd2bin(buf[S35390A_ALRM_BYTE_WDAY]); in s35390a_read_alarm()
286 alm->time.tm_hour = s35390a_reg2hr(s35390a, in s35390a_read_alarm()
[all …]
Drtc-wm831x.c156 u32 time = (time1[0] << 16) | time1[1]; in wm831x_rtc_readtime() local
158 rtc_time_to_tm(time, tm); in wm831x_rtc_readtime()
172 static int wm831x_rtc_set_mmss(struct device *dev, unsigned long time) in wm831x_rtc_set_mmss() argument
182 (time >> 16) & 0xffff); in wm831x_rtc_set_mmss()
188 ret = wm831x_reg_write(wm831x, WM831X_RTC_TIME_2, time & 0xffff); in wm831x_rtc_set_mmss()
225 if (new_time - time > 1) { in wm831x_rtc_set_mmss()
241 u32 time; in wm831x_rtc_readalarm() local
250 time = (data[0] << 16) | data[1]; in wm831x_rtc_readalarm()
252 rtc_time_to_tm(time, &alrm->time); in wm831x_rtc_readalarm()
289 unsigned long time; in wm831x_rtc_setalarm() local
[all …]
Drtc-tegra.c182 alarm->time.tm_mon = -1; in tegra_rtc_read_alarm()
183 alarm->time.tm_mday = -1; in tegra_rtc_read_alarm()
184 alarm->time.tm_year = -1; in tegra_rtc_read_alarm()
185 alarm->time.tm_hour = -1; in tegra_rtc_read_alarm()
186 alarm->time.tm_min = -1; in tegra_rtc_read_alarm()
187 alarm->time.tm_sec = -1; in tegra_rtc_read_alarm()
191 rtc_time_to_tm(sec, &alarm->time); in tegra_rtc_read_alarm()
229 rtc_tm_to_time(&alarm->time, &sec); in tegra_rtc_set_alarm()
244 alarm->time.tm_mon+1, in tegra_rtc_set_alarm()
245 alarm->time.tm_mday, in tegra_rtc_set_alarm()
[all …]
Drtc-ab3100.c78 time64_t time; in ab3100_rtc_read_time() local
104 time = hw_counter / (u64) (AB3100_RTC_CLOCK_RATE * 2); in ab3100_rtc_read_time()
107 rtc_time64_to_tm(time, tm); in ab3100_rtc_read_time()
114 time64_t time; in ab3100_rtc_read_alarm() local
138 time = hw_counter / (u64) (AB3100_RTC_CLOCK_RATE * 2); in ab3100_rtc_read_alarm()
140 rtc_time64_to_tm(time, &alarm->time); in ab3100_rtc_read_alarm()
142 return rtc_valid_tm(&alarm->time); in ab3100_rtc_read_alarm()
154 secs = rtc_tm_to_time64(&alarm->time); in ab3100_rtc_set_alarm()
Drtc-sysfs.c64 static DEVICE_ATTR_RO(time);
74 unsigned long time; in since_epoch_show() local
75 rtc_tm_to_time(&tm, &time); in since_epoch_show()
76 retval = sprintf(buf, "%lu\n", time); in since_epoch_show()
154 rtc_tm_to_time(&alm.time, &alarm); in rtc_sysfs_show_wakealarm()
176 retval = rtc_read_time(rtc, &alm.time); in rtc_sysfs_set_wakealarm()
179 rtc_tm_to_time(&alm.time, &now); in rtc_sysfs_set_wakealarm()
204 rtc_tm_to_time(&alm.time, &push); in rtc_sysfs_set_wakealarm()
219 rtc_time_to_tm(alarm, &alm.time); in rtc_sysfs_set_wakealarm()
Drtc-tps80031.c148 buff[0] = bin2bcd(alrm->time.tm_sec); in tps80031_rtc_set_alarm()
149 buff[1] = bin2bcd(alrm->time.tm_min); in tps80031_rtc_set_alarm()
150 buff[2] = bin2bcd(alrm->time.tm_hour); in tps80031_rtc_set_alarm()
151 buff[3] = bin2bcd(alrm->time.tm_mday); in tps80031_rtc_set_alarm()
152 buff[4] = bin2bcd(alrm->time.tm_mon + 1); in tps80031_rtc_set_alarm()
153 buff[5] = bin2bcd(alrm->time.tm_year % RTC_YEAR_OFFSET); in tps80031_rtc_set_alarm()
178 alrm->time.tm_sec = bcd2bin(buff[0]); in tps80031_rtc_read_alarm()
179 alrm->time.tm_min = bcd2bin(buff[1]); in tps80031_rtc_read_alarm()
180 alrm->time.tm_hour = bcd2bin(buff[2]); in tps80031_rtc_read_alarm()
181 alrm->time.tm_mday = bcd2bin(buff[3]); in tps80031_rtc_read_alarm()
[all …]
Drtc-tps65910.c142 alm->time.tm_sec = bcd2bin(alarm_data[0]); in tps65910_rtc_read_alarm()
143 alm->time.tm_min = bcd2bin(alarm_data[1]); in tps65910_rtc_read_alarm()
144 alm->time.tm_hour = bcd2bin(alarm_data[2]); in tps65910_rtc_read_alarm()
145 alm->time.tm_mday = bcd2bin(alarm_data[3]); in tps65910_rtc_read_alarm()
146 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; in tps65910_rtc_read_alarm()
147 alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; in tps65910_rtc_read_alarm()
169 alarm_data[0] = bin2bcd(alm->time.tm_sec); in tps65910_rtc_set_alarm()
170 alarm_data[1] = bin2bcd(alm->time.tm_min); in tps65910_rtc_set_alarm()
171 alarm_data[2] = bin2bcd(alm->time.tm_hour); in tps65910_rtc_set_alarm()
172 alarm_data[3] = bin2bcd(alm->time.tm_mday); in tps65910_rtc_set_alarm()
[all …]
Drtc-palmas.c140 alm->time.tm_sec = bcd2bin(alarm_data[0]); in palmas_rtc_read_alarm()
141 alm->time.tm_min = bcd2bin(alarm_data[1]); in palmas_rtc_read_alarm()
142 alm->time.tm_hour = bcd2bin(alarm_data[2]); in palmas_rtc_read_alarm()
143 alm->time.tm_mday = bcd2bin(alarm_data[3]); in palmas_rtc_read_alarm()
144 alm->time.tm_mon = bcd2bin(alarm_data[4]) - 1; in palmas_rtc_read_alarm()
145 alm->time.tm_year = bcd2bin(alarm_data[5]) + 100; in palmas_rtc_read_alarm()
171 alarm_data[0] = bin2bcd(alm->time.tm_sec); in palmas_rtc_set_alarm()
172 alarm_data[1] = bin2bcd(alm->time.tm_min); in palmas_rtc_set_alarm()
173 alarm_data[2] = bin2bcd(alm->time.tm_hour); in palmas_rtc_set_alarm()
174 alarm_data[3] = bin2bcd(alm->time.tm_mday); in palmas_rtc_set_alarm()
[all …]
Drtc-rx8025.c340 t->time.tm_sec = 0; in rx8025_read_alarm()
341 t->time.tm_min = bcd2bin(ald[0] & 0x7f); in rx8025_read_alarm()
343 t->time.tm_hour = bcd2bin(ald[1] & 0x3f); in rx8025_read_alarm()
345 t->time.tm_hour = bcd2bin(ald[1] & 0x1f) % 12 in rx8025_read_alarm()
348 t->time.tm_wday = -1; in rx8025_read_alarm()
349 t->time.tm_mday = -1; in rx8025_read_alarm()
350 t->time.tm_mon = -1; in rx8025_read_alarm()
351 t->time.tm_year = -1; in rx8025_read_alarm()
355 t->time.tm_sec, t->time.tm_min, t->time.tm_hour, in rx8025_read_alarm()
356 t->time.tm_mday, t->time.tm_mon, t->time.tm_year); in rx8025_read_alarm()
[all …]
Drtc-s5m.c46 unsigned int time; member
66 .time = S5M_RTC_SEC,
80 .time = S2MPS_RTC_SEC,
331 ret = regmap_bulk_read(info->regmap, info->regs->time, data, in s5m_rtc_read_time()
384 ret = regmap_raw_write(info->regmap, info->regs->time, data, in s5m_rtc_set_time()
408 s5m8763_data_to_tm(data, &alrm->time); in s5m_rtc_read_alarm()
419 s5m8767_data_to_tm(data, &alrm->time, info->rtc_24hr_mode); in s5m_rtc_read_alarm()
434 1900 + alrm->time.tm_year, 1 + alrm->time.tm_mon, in s5m_rtc_read_alarm()
435 alrm->time.tm_mday, alrm->time.tm_hour, in s5m_rtc_read_alarm()
436 alrm->time.tm_min, alrm->time.tm_sec, in s5m_rtc_read_alarm()
[all …]
Drtc-davinci.c394 alm->time.tm_min = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AMIN)); in davinci_rtc_read_alarm()
397 alm->time.tm_hour = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AHOUR)); in davinci_rtc_read_alarm()
410 if (convertfromdays(days, &alm->time) < 0) in davinci_rtc_read_alarm()
427 if (alm->time.tm_mday <= 0 && alm->time.tm_mon < 0 in davinci_rtc_set_alarm()
428 && alm->time.tm_year < 0) { in davinci_rtc_set_alarm()
435 alm->time.tm_mday = tm.tm_mday; in davinci_rtc_set_alarm()
436 alm->time.tm_mon = tm.tm_mon; in davinci_rtc_set_alarm()
437 alm->time.tm_year = tm.tm_year; in davinci_rtc_set_alarm()
438 rtc_tm_to_time(&alm->time, &then); in davinci_rtc_set_alarm()
442 alm->time.tm_mday = tm.tm_mday; in davinci_rtc_set_alarm()
[all …]
Drtc-pm8xxx.c215 rtc_tm_to_time(&alarm->time, &secs); in pm8xxx_rtc_set_alarm()
247 alarm->time.tm_hour, alarm->time.tm_min, in pm8xxx_rtc_set_alarm()
248 alarm->time.tm_sec, alarm->time.tm_mday, in pm8xxx_rtc_set_alarm()
249 alarm->time.tm_mon, alarm->time.tm_year); in pm8xxx_rtc_set_alarm()
272 rtc_time_to_tm(secs, &alarm->time); in pm8xxx_rtc_read_alarm()
274 rc = rtc_valid_tm(&alarm->time); in pm8xxx_rtc_read_alarm()
281 alarm->time.tm_hour, alarm->time.tm_min, in pm8xxx_rtc_read_alarm()
282 alarm->time.tm_sec, alarm->time.tm_mday, in pm8xxx_rtc_read_alarm()
283 alarm->time.tm_mon, alarm->time.tm_year); in pm8xxx_rtc_read_alarm()
Drtc-mpc5121.c221 if (alarm->time.tm_sec) { in mpc5121_rtc_set_alarm()
222 alarm->time.tm_sec = 0; in mpc5121_rtc_set_alarm()
223 alarm->time.tm_min++; in mpc5121_rtc_set_alarm()
224 if (alarm->time.tm_min >= 60) { in mpc5121_rtc_set_alarm()
225 alarm->time.tm_min = 0; in mpc5121_rtc_set_alarm()
226 alarm->time.tm_hour++; in mpc5121_rtc_set_alarm()
227 if (alarm->time.tm_hour >= 24) in mpc5121_rtc_set_alarm()
228 alarm->time.tm_hour = 0; in mpc5121_rtc_set_alarm()
232 alarm->time.tm_mday = -1; in mpc5121_rtc_set_alarm()
233 alarm->time.tm_mon = -1; in mpc5121_rtc_set_alarm()
[all …]
Drtc-mxc.c138 static void set_alarm_or_time(struct device *dev, int time_alarm, time64_t time) in set_alarm_or_time() argument
145 day = div_s64_rem(time, 86400, &tod); in set_alarm_or_time()
177 time64_t time; in rtc_update_alarm() local
182 time = rtc_tm_to_time64(alrm); in rtc_update_alarm()
186 set_alarm_or_time(dev, MXC_RTC_ALARM, time); in rtc_update_alarm()
289 static int mxc_rtc_set_mmss(struct device *dev, time64_t time) in mxc_rtc_set_mmss() argument
300 rtc_time64_to_tm(time, &tm); in mxc_rtc_set_mmss()
302 time = rtc_tm_to_time64(&tm); in mxc_rtc_set_mmss()
307 set_alarm_or_time(dev, MXC_RTC_TIME, time); in mxc_rtc_set_mmss()
308 } while (time != get_alarm_or_time(dev, MXC_RTC_TIME)); in mxc_rtc_set_mmss()
[all …]
Drtc-ds1286.c278 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; in ds1286_read_alarm()
279 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; in ds1286_read_alarm()
280 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; in ds1286_read_alarm()
284 alm->time.tm_min = bcd2bin(alm->time.tm_min); in ds1286_read_alarm()
285 alm->time.tm_hour = bcd2bin(alm->time.tm_hour); in ds1286_read_alarm()
286 alm->time.tm_sec = 0; in ds1286_read_alarm()
295 hrs = alm->time.tm_hour; in ds1286_set_alarm()
296 min = alm->time.tm_min; in ds1286_set_alarm()
297 sec = alm->time.tm_sec; in ds1286_set_alarm()
Drtc-snvs.c124 unsigned long time = rtc_read_lp_counter(data->ioaddr); in snvs_rtc_read_time() local
126 rtc_time_to_tm(time, tm); in snvs_rtc_read_time()
134 unsigned long time; in snvs_rtc_set_time() local
136 rtc_tm_to_time(tm, &time); in snvs_rtc_set_time()
142 writel(time << CNTR_TO_SECS_SH, data->ioaddr + SNVS_LPSRTCLR); in snvs_rtc_set_time()
143 writel(time >> (32 - CNTR_TO_SECS_SH), data->ioaddr + SNVS_LPSRTCMR); in snvs_rtc_set_time()
157 rtc_time_to_tm(lptar, &alrm->time); in snvs_rtc_read_alarm()
190 struct rtc_time *alrm_tm = &alrm->time; in snvs_rtc_set_alarm()
191 unsigned long time; in snvs_rtc_set_alarm() local
195 rtc_tm_to_time(alrm_tm, &time); in snvs_rtc_set_alarm()
[all …]
Drtc-rc5t583.c131 alm->time.tm_min = bcd2bin(alarm_data[0]); in rc5t583_rtc_read_alarm()
132 alm->time.tm_hour = bcd2bin(alarm_data[1]); in rc5t583_rtc_read_alarm()
133 alm->time.tm_mday = bcd2bin(alarm_data[2]); in rc5t583_rtc_read_alarm()
134 alm->time.tm_mon = bcd2bin(alarm_data[3]) - 1; in rc5t583_rtc_read_alarm()
135 alm->time.tm_year = bcd2bin(alarm_data[4]) + 100; in rc5t583_rtc_read_alarm()
158 alarm_data[0] = bin2bcd(alm->time.tm_min); in rc5t583_rtc_set_alarm()
159 alarm_data[1] = bin2bcd(alm->time.tm_hour); in rc5t583_rtc_set_alarm()
160 alarm_data[2] = bin2bcd(alm->time.tm_mday); in rc5t583_rtc_set_alarm()
161 alarm_data[3] = bin2bcd(alm->time.tm_mon + 1); in rc5t583_rtc_set_alarm()
162 alarm_data[4] = bin2bcd(alm->time.tm_year - 100); in rc5t583_rtc_set_alarm()
Drtc-dev.c277 if (copy_to_user(uarg, &alarm.time, sizeof(tm))) in rtc_dev_ioctl()
284 if (copy_from_user(&alarm.time, uarg, sizeof(tm))) in rtc_dev_ioctl()
289 alarm.time.tm_wday = -1; in rtc_dev_ioctl()
290 alarm.time.tm_yday = -1; in rtc_dev_ioctl()
291 alarm.time.tm_isdst = -1; in rtc_dev_ioctl()
314 alarm.time.tm_mday = tm.tm_mday; in rtc_dev_ioctl()
315 alarm.time.tm_mon = tm.tm_mon; in rtc_dev_ioctl()
316 alarm.time.tm_year = tm.tm_year; in rtc_dev_ioctl()
317 err = rtc_valid_tm(&alarm.time); in rtc_dev_ioctl()
320 then = rtc_tm_to_time64(&alarm.time); in rtc_dev_ioctl()
[all …]
Drtc-at91rm9200.c117 unsigned int time, date; in at91_rtc_decodetime() local
121 time = at91_rtc_read(timereg); in at91_rtc_decodetime()
123 } while ((time != at91_rtc_read(timereg)) || in at91_rtc_decodetime()
126 tm->tm_sec = bcd2bin((time & AT91_RTC_SEC) >> 0); in at91_rtc_decodetime()
127 tm->tm_min = bcd2bin((time & AT91_RTC_MIN) >> 8); in at91_rtc_decodetime()
128 tm->tm_hour = bcd2bin((time & AT91_RTC_HOUR) >> 16); in at91_rtc_decodetime()
206 struct rtc_time *tm = &alrm->time; in at91_rtc_readalarm()
233 tm.tm_mon = alrm->time.tm_mon; in at91_rtc_setalarm()
234 tm.tm_mday = alrm->time.tm_mday; in at91_rtc_setalarm()
235 tm.tm_hour = alrm->time.tm_hour; in at91_rtc_setalarm()
[all …]
Drtc-twl.c369 alm->time.tm_sec = bcd2bin(rtc_data[0]); in twl_rtc_read_alarm()
370 alm->time.tm_min = bcd2bin(rtc_data[1]); in twl_rtc_read_alarm()
371 alm->time.tm_hour = bcd2bin(rtc_data[2]); in twl_rtc_read_alarm()
372 alm->time.tm_mday = bcd2bin(rtc_data[3]); in twl_rtc_read_alarm()
373 alm->time.tm_mon = bcd2bin(rtc_data[4]) - 1; in twl_rtc_read_alarm()
374 alm->time.tm_year = bcd2bin(rtc_data[5]) + 100; in twl_rtc_read_alarm()
392 alarm_data[0] = bin2bcd(alm->time.tm_sec); in twl_rtc_set_alarm()
393 alarm_data[1] = bin2bcd(alm->time.tm_min); in twl_rtc_set_alarm()
394 alarm_data[2] = bin2bcd(alm->time.tm_hour); in twl_rtc_set_alarm()
395 alarm_data[3] = bin2bcd(alm->time.tm_mday); in twl_rtc_set_alarm()
[all …]
Drtc-sun6i.c161 u32 date, time; in sun6i_rtc_gettime() local
168 time = readl(chip->base + SUN6I_RTC_HMS); in sun6i_rtc_gettime()
170 (time != readl(chip->base + SUN6I_RTC_HMS))); in sun6i_rtc_gettime()
172 rtc_tm->tm_sec = SUN6I_TIME_GET_SEC_VALUE(time); in sun6i_rtc_gettime()
173 rtc_tm->tm_min = SUN6I_TIME_GET_MIN_VALUE(time); in sun6i_rtc_gettime()
174 rtc_tm->tm_hour = SUN6I_TIME_GET_HOUR_VALUE(time); in sun6i_rtc_gettime()
201 rtc_time_to_tm(chip->alarm, &wkalrm->time); in sun6i_rtc_getalarm()
209 struct rtc_time *alrm_tm = &wkalrm->time; in sun6i_rtc_setalarm()
270 u32 time = 0; in sun6i_rtc_settime() local
290 time = SUN6I_TIME_SET_SEC_VALUE(rtc_tm->tm_sec) | in sun6i_rtc_settime()
[all …]
Drtc-rs5c372.c344 t->time.tm_sec = 0; in rs5c_read_alarm()
345 t->time.tm_min = bcd2bin(rs5c->regs[RS5C_REG_ALARM_A_MIN] & 0x7f); in rs5c_read_alarm()
346 t->time.tm_hour = rs5c_reg2hr(rs5c, rs5c->regs[RS5C_REG_ALARM_A_HOURS]); in rs5c_read_alarm()
347 t->time.tm_mday = -1; in rs5c_read_alarm()
348 t->time.tm_mon = -1; in rs5c_read_alarm()
349 t->time.tm_year = -1; in rs5c_read_alarm()
350 t->time.tm_wday = -1; in rs5c_read_alarm()
351 t->time.tm_yday = -1; in rs5c_read_alarm()
352 t->time.tm_isdst = -1; in rs5c_read_alarm()
369 if (t->time.tm_mday != -1 in rs5c_set_alarm()
[all …]
Drtc-ds1374.c85 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, in ds1374_read_rtc() argument
104 for (i = nbytes - 1, *time = 0; i >= 0; i--) in ds1374_read_rtc()
105 *time = (*time << 8) | buf[i]; in ds1374_read_rtc()
110 static int ds1374_write_rtc(struct i2c_client *client, u32 time, in ds1374_write_rtc() argument
122 buf[i] = time & 0xff; in ds1374_write_rtc()
123 time >>= 8; in ds1374_write_rtc()
161 static int ds1374_read_time(struct device *dev, struct rtc_time *time) in ds1374_read_time() argument
169 rtc_time_to_tm(itime, time); in ds1374_read_time()
174 static int ds1374_set_time(struct device *dev, struct rtc_time *time) in ds1374_set_time() argument
179 rtc_tm_to_time(time, &itime); in ds1374_set_time()
[all …]
Drtc-tx4939.c102 if (alrm->time.tm_sec < 0 || in tx4939_rtc_set_alarm()
103 alrm->time.tm_min < 0 || in tx4939_rtc_set_alarm()
104 alrm->time.tm_hour < 0 || in tx4939_rtc_set_alarm()
105 alrm->time.tm_mday < 0 || in tx4939_rtc_set_alarm()
106 alrm->time.tm_mon < 0 || in tx4939_rtc_set_alarm()
107 alrm->time.tm_year < 0) in tx4939_rtc_set_alarm()
109 rtc_tm_to_time(&alrm->time, &sec); in tx4939_rtc_set_alarm()
151 rtc_time_to_tm(sec, &alrm->time); in tx4939_rtc_read_alarm()
152 return rtc_valid_tm(&alrm->time); in tx4939_rtc_read_alarm()
Drtc-sunxi.c201 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm()
236 u32 date, time; in sunxi_rtc_gettime() local
243 time = readl(chip->base + SUNXI_RTC_HMS); in sunxi_rtc_gettime()
245 (time != readl(chip->base + SUNXI_RTC_HMS))); in sunxi_rtc_gettime()
247 rtc_tm->tm_sec = SUNXI_TIME_GET_SEC_VALUE(time); in sunxi_rtc_gettime()
248 rtc_tm->tm_min = SUNXI_TIME_GET_MIN_VALUE(time); in sunxi_rtc_gettime()
249 rtc_tm->tm_hour = SUNXI_TIME_GET_HOUR_VALUE(time); in sunxi_rtc_gettime()
270 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm()
347 u32 time = 0; in sunxi_rtc_settime() local
374 time = SUNXI_TIME_SET_SEC_VALUE(rtc_tm->tm_sec) | in sunxi_rtc_settime()
[all …]
Drtc-sa1100.c166 unsigned long time; in sa1100_rtc_set_time() local
169 ret = rtc_tm_to_time(tm, &time); in sa1100_rtc_set_time()
171 RCNR = time; in sa1100_rtc_set_time()
188 unsigned long time; in sa1100_rtc_set_alarm() local
192 ret = rtc_tm_to_time(&alrm->time, &time); in sa1100_rtc_set_alarm()
196 RTAR = time; in sa1100_rtc_set_alarm()
Drtc-omap.c345 alm->time.tm_sec = rtc_read(rtc, OMAP_RTC_ALARM_SECONDS_REG); in omap_rtc_read_alarm()
346 alm->time.tm_min = rtc_read(rtc, OMAP_RTC_ALARM_MINUTES_REG); in omap_rtc_read_alarm()
347 alm->time.tm_hour = rtc_read(rtc, OMAP_RTC_ALARM_HOURS_REG); in omap_rtc_read_alarm()
348 alm->time.tm_mday = rtc_read(rtc, OMAP_RTC_ALARM_DAYS_REG); in omap_rtc_read_alarm()
349 alm->time.tm_mon = rtc_read(rtc, OMAP_RTC_ALARM_MONTHS_REG); in omap_rtc_read_alarm()
350 alm->time.tm_year = rtc_read(rtc, OMAP_RTC_ALARM_YEARS_REG); in omap_rtc_read_alarm()
354 bcd2tm(&alm->time); in omap_rtc_read_alarm()
367 if (tm2bcd(&alm->time) < 0) in omap_rtc_set_alarm()
374 rtc_write(rtc, OMAP_RTC_ALARM_YEARS_REG, alm->time.tm_year); in omap_rtc_set_alarm()
375 rtc_write(rtc, OMAP_RTC_ALARM_MONTHS_REG, alm->time.tm_mon); in omap_rtc_set_alarm()
[all …]
Drtc-ds2404.c204 unsigned long time = 0; in ds2404_read_time() local
206 ds2404_read_memory(dev, 0x203, 4, (u8 *)&time); in ds2404_read_time()
207 time = le32_to_cpu(time); in ds2404_read_time()
209 rtc_time_to_tm(time, dt); in ds2404_read_time()
215 u32 time = cpu_to_le32(secs); in ds2404_set_mmss() local
216 ds2404_write_memory(dev, 0x203, 4, (u8 *)&time); in ds2404_set_mmss()
Drtc-ds1343.c514 alarm->time.tm_sec = priv->alarm_sec < 0 ? 0 : priv->alarm_sec; in ds1343_read_alarm()
515 alarm->time.tm_min = priv->alarm_min < 0 ? 0 : priv->alarm_min; in ds1343_read_alarm()
516 alarm->time.tm_hour = priv->alarm_hour < 0 ? 0 : priv->alarm_hour; in ds1343_read_alarm()
517 alarm->time.tm_mday = priv->alarm_mday < 0 ? 0 : priv->alarm_mday; in ds1343_read_alarm()
519 alarm->time.tm_mon = -1; in ds1343_read_alarm()
520 alarm->time.tm_year = -1; in ds1343_read_alarm()
521 alarm->time.tm_wday = -1; in ds1343_read_alarm()
522 alarm->time.tm_yday = -1; in ds1343_read_alarm()
523 alarm->time.tm_isdst = -1; in ds1343_read_alarm()
540 priv->alarm_sec = alarm->time.tm_sec; in ds1343_set_alarm()
[all …]
Drtc-sun4v.c19 unsigned long ret, time; in hypervisor_get_time() local
23 ret = sun4v_tod_get(&time); in hypervisor_get_time()
25 return time; in hypervisor_get_time()
Drtc-jz4740.c104 static int jz4740_rtc_read_time(struct device *dev, struct rtc_time *time) in jz4740_rtc_read_time() argument
125 rtc_time_to_tm(secs, time); in jz4740_rtc_read_time()
127 return rtc_valid_tm(time); in jz4740_rtc_read_time()
150 rtc_time_to_tm(secs, &alrm->time); in jz4740_rtc_read_alarm()
152 return rtc_valid_tm(&alrm->time); in jz4740_rtc_read_alarm()
161 rtc_tm_to_time(&alrm->time, &secs); in jz4740_rtc_set_alarm()
Drtc-coh901331.c107 rtc_time_to_tm(readl(rtap->virtbase + COH901331_ALARM), &alarm->time); in coh901331_read_alarm()
118 unsigned long time; in coh901331_set_alarm() local
120 rtc_tm_to_time(&alarm->time, &time); in coh901331_set_alarm()
122 writel(time, rtap->virtbase + COH901331_ALARM); in coh901331_set_alarm()
Drtc-stk17ta8.c177 pdata->alrm_mday = alrm->time.tm_mday; in stk17ta8_rtc_set_alarm()
178 pdata->alrm_hour = alrm->time.tm_hour; in stk17ta8_rtc_set_alarm()
179 pdata->alrm_min = alrm->time.tm_min; in stk17ta8_rtc_set_alarm()
180 pdata->alrm_sec = alrm->time.tm_sec; in stk17ta8_rtc_set_alarm()
194 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in stk17ta8_rtc_read_alarm()
195 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; in stk17ta8_rtc_read_alarm()
196 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in stk17ta8_rtc_read_alarm()
197 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in stk17ta8_rtc_read_alarm()
Drtc-ds1553.c169 pdata->alrm_mday = alrm->time.tm_mday; in ds1553_rtc_set_alarm()
170 pdata->alrm_hour = alrm->time.tm_hour; in ds1553_rtc_set_alarm()
171 pdata->alrm_min = alrm->time.tm_min; in ds1553_rtc_set_alarm()
172 pdata->alrm_sec = alrm->time.tm_sec; in ds1553_rtc_set_alarm()
186 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in ds1553_rtc_read_alarm()
187 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; in ds1553_rtc_read_alarm()
188 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in ds1553_rtc_read_alarm()
189 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in ds1553_rtc_read_alarm()
Drtc-lib.c53 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm() argument
60 days = div_s64(time, 86400); in rtc_time64_to_tm()
61 secs = time - (unsigned int) days * 86400; in rtc_time64_to_tm()
Drtc-lpc32xx.c65 static int lpc32xx_rtc_read_time(struct device *dev, struct rtc_time *time) in lpc32xx_rtc_read_time() argument
71 rtc_time_to_tm(elapsed_sec, time); in lpc32xx_rtc_read_time()
73 return rtc_valid_tm(time); in lpc32xx_rtc_read_time()
100 rtc_time_to_tm(rtc_readl(rtc, LPC32XX_RTC_MATCH0), &wkalrm->time); in lpc32xx_rtc_read_alarm()
105 return rtc_valid_tm(&wkalrm->time); in lpc32xx_rtc_read_alarm()
116 ret = rtc_tm_to_time(&wkalrm->time, &alarmsecs); in lpc32xx_rtc_set_alarm()
Drtc-ds1511.c329 pdata->alrm_mday = alrm->time.tm_mday; in ds1511_rtc_set_alarm()
330 pdata->alrm_hour = alrm->time.tm_hour; in ds1511_rtc_set_alarm()
331 pdata->alrm_min = alrm->time.tm_min; in ds1511_rtc_set_alarm()
332 pdata->alrm_sec = alrm->time.tm_sec; in ds1511_rtc_set_alarm()
349 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in ds1511_rtc_read_alarm()
350 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; in ds1511_rtc_read_alarm()
351 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in ds1511_rtc_read_alarm()
352 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in ds1511_rtc_read_alarm()
Drtc-ab8500.c216 rtc_time_to_tm(secs, &alarm->time); in ab8500_rtc_read_alarm()
218 return rtc_valid_tm(&alarm->time); in ab8500_rtc_read_alarm()
235 if (alarm->time.tm_year < (AB8500_RTC_EPOCH - 1900)) { in ab8500_rtc_set_alarm()
242 rtc_tm_to_time(&alarm->time, &secs); in ab8500_rtc_set_alarm()
285 if (alarm->time.tm_year < (AB8500_RTC_EPOCH - 1900)) { in ab8540_rtc_set_alarm()
292 rtc_tm_to_time(&alarm->time, &secs); in ab8540_rtc_set_alarm()
/linux-4.1.27/drivers/base/power/
Dtrace.c84 static struct rtc_time time = { in set_magic_time() local
96 time.tm_year = (n % 100); in set_magic_time()
98 time.tm_mon = (n % 12); in set_magic_time()
100 time.tm_mday = (n % 28) + 1; in set_magic_time()
102 time.tm_hour = (n % 24); in set_magic_time()
104 time.tm_min = (n % 20) * 3; in set_magic_time()
106 set_rtc_time(&time); in set_magic_time()
112 struct rtc_time time; in read_magic_time() local
115 get_rtc_time(&time); in read_magic_time()
117 time.tm_hour, time.tm_min, time.tm_sec, in read_magic_time()
[all …]
/linux-4.1.27/Documentation/sound/alsa/
Dtimestamping.txt3 - Trigger_tstamp is the system time snapshot taken when the .trigger
15 The difference (tstamp - trigger_tstamp) defines the elapsed time.
22 The use of these different pointers and time information depends on
26 - 'delay' reports the time it will take to hear a new sample after all
30 along with a snapshot of system time. Applications can select from
38 of time as measured by different components of audio hardware. In
43 --------------------------------------------------------------> time
47 time time time time time
53 The analog time is taken at the last stage of the playback, as close
56 The link time is taken at the output of the SOC/chipset as the samples
[all …]
Dpowersave.txt14 The time-out for automatic power-off can be specified via power_save
16 the time-out value in seconds. 0 means to disable the automatic
33 state. Also, it often takes certain time to wake up from the
40 consumption, but might result in longer wake-up time and click noise.
/linux-4.1.27/arch/m68k/kernel/
Dtime.c75 struct rtc_time time; in read_persistent_clock() local
80 mach_hwclk(0, &time); in read_persistent_clock()
82 if ((time.tm_year += 1900) < 1970) in read_persistent_clock()
83 time.tm_year += 100; in read_persistent_clock()
84 ts->tv_sec = mktime(time.tm_year, time.tm_mon, time.tm_mday, in read_persistent_clock()
85 time.tm_hour, time.tm_min, time.tm_sec); in read_persistent_clock()
/linux-4.1.27/scripts/
Dshow_delta50 time = string.atof(time_str)
53 return (time, rest)
65 (time, rest) = get_time(line)
72 delta = time - base_time
75 delta = time - last_time
76 last_time = time
78 return ("[%5.6f < %5.6f >]" % (time, delta)) + rest
111 (time, rest) = get_time(line)
115 base_time = time
Danalyze_suspend.py48 import time
262 def setStart(self, time): argument
263 self.start = time
264 self.dmesg[self.phases[0]]['start'] = time
267 def setEnd(self, time): argument
268 self.end = time
269 self.dmesg[self.phases[-1]]['end'] = time
270 def isTraceEventOutsideDeviceCalls(self, pid, time): argument
275 if(d['pid'] == pid and time >= d['start'] and
276 time <= d['end']):
[all …]
Dbootgraph.pl229 my $time = $firsttime;
231 while ($time < $maxtime) {
232 my $s3 = ($time - $firsttime) * $mult;
233 my $tm = int($time * 100) / 100.0;
235 $time = $time + $step;
/linux-4.1.27/arch/s390/include/asm/
Dtimex.h18 static inline int set_tod_clock(__u64 time) in set_tod_clock() argument
26 : "=d" (cc) : "Q" (time) : "cc"); in set_tod_clock()
30 static inline int store_tod_clock(__u64 *time) in store_tod_clock() argument
38 : "=d" (cc), "=Q" (*time) : : "cc"); in store_tod_clock()
42 static inline void set_clock_comparator(__u64 time) in set_clock_comparator() argument
44 asm volatile("sckc %0" : : "Q" (time)); in set_clock_comparator()
47 static inline void store_clock_comparator(__u64 *time) in store_clock_comparator() argument
49 asm volatile("stckc %0" : "=Q" (*time)); in store_clock_comparator()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_benchmark.c76 unsigned int time, in radeon_benchmark_log_results() argument
80 unsigned int throughput = (n * (size >> 10)) / time; in radeon_benchmark_log_results()
83 kind, n, size >> 10, sdomain, ddomain, time, in radeon_benchmark_log_results()
94 int time; in radeon_benchmark_move() local
123 time = radeon_benchmark_do_move(rdev, size, saddr, daddr, in radeon_benchmark_move()
126 if (time < 0) in radeon_benchmark_move()
128 if (time > 0) in radeon_benchmark_move()
129 radeon_benchmark_log_results(n, size, time, in radeon_benchmark_move()
134 time = radeon_benchmark_do_move(rdev, size, saddr, daddr, in radeon_benchmark_move()
137 if (time < 0) in radeon_benchmark_move()
[all …]
/linux-4.1.27/lib/
Dinterval_tree_test.c51 cycles_t time1, time2, time; in interval_tree_test_init() local
68 time = time2 - time1; in interval_tree_test_init()
70 time = div_u64(time, PERF_LOOPS); in interval_tree_test_init()
71 printk(" -> %llu cycles\n", (unsigned long long)time); in interval_tree_test_init()
86 time = time2 - time1; in interval_tree_test_init()
88 time = div_u64(time, SEARCH_LOOPS); in interval_tree_test_init()
91 (unsigned long long)time, results); in interval_tree_test_init()
Drbtree_test.c178 cycles_t time1, time2, time; in rbtree_test_init() local
195 time = time2 - time1; in rbtree_test_init()
197 time = div_u64(time, PERF_LOOPS); in rbtree_test_init()
198 printk(" -> %llu cycles\n", (unsigned long long)time); in rbtree_test_init()
227 time = time2 - time1; in rbtree_test_init()
229 time = div_u64(time, PERF_LOOPS); in rbtree_test_init()
230 printk(" -> %llu cycles\n", (unsigned long long)time); in rbtree_test_init()
/linux-4.1.27/Documentation/devicetree/bindings/i2c/
Di2c-designware.txt14 - i2c-sda-hold-time-ns : should contain the SDA hold time in nanoseconds.
17 - i2c-scl-falling-time-ns : should contain the SCL falling time in nanoseconds.
20 - i2c-sda-falling-time-ns : should contain the SDA falling time in nanoseconds.
42 i2c-sda-hold-time-ns = <300>;
43 i2c-sda-falling-time-ns = <300>;
44 i2c-scl-falling-time-ns = <300>;
Di2c-rk3x.txt24 - i2c-scl-rising-time-ns : Number of nanoseconds the SCL signal takes to rise
28 - i2c-scl-falling-time-ns : Number of nanoseconds the SCL signal takes to fall
32 - i2c-sda-falling-time-ns : Number of nanoseconds the SDA signal takes to fall
54 i2c-scl-rising-time-ns = <800>;
55 i2c-scl-falling-time-ns = <100>;
/linux-4.1.27/sound/core/seq/oss/
Dseq_oss_writeq.c97 abstime_t time; in snd_seq_oss_writeq_sync() local
99 time = snd_seq_oss_timer_cur_tick(dp->timer); in snd_seq_oss_writeq_sync()
100 if (q->sync_time >= time) in snd_seq_oss_writeq_sync()
111 ev.time.tick = time; in snd_seq_oss_writeq_sync()
116 rec->t.time = time; in snd_seq_oss_writeq_sync()
125 if (! q->sync_event_put || q->sync_time >= time) in snd_seq_oss_writeq_sync()
134 snd_seq_oss_writeq_wakeup(struct seq_oss_writeq *q, abstime_t time) in snd_seq_oss_writeq_wakeup() argument
139 q->sync_time = time; in snd_seq_oss_writeq_wakeup()
/linux-4.1.27/drivers/cpufreq/
Dppc_cbe_cpufreq_pervasive.c60 long time; in cbe_cpufreq_set_pmode() local
69 time = jiffies; in cbe_cpufreq_set_pmode()
94 time = jiffies - time; in cbe_cpufreq_set_pmode()
95 time = jiffies_to_msecs(time); in cbe_cpufreq_set_pmode()
97 "pervasive unit\n", time); in cbe_cpufreq_set_pmode()
Dppc_cbe_cpufreq_pmi.c54 long time; in cbe_cpufreq_set_pmode_pmi() local
61 time = jiffies; in cbe_cpufreq_set_pmode_pmi()
66 time = jiffies - time; in cbe_cpufreq_set_pmode_pmi()
67 time = jiffies_to_msecs(time); in cbe_cpufreq_set_pmode_pmi()
69 "PMI\n", time); in cbe_cpufreq_set_pmode_pmi()
/linux-4.1.27/Documentation/device-mapper/
Ddm-service-time.txt1 dm-service-time
4 dm-service-time is a path selector module for device-mapper targets,
5 which selects a path with the shortest estimated service time for
8 The service time for each path is estimated by dividing the total size
13 The path selector name is 'service-time'.
39 dm-service-time adds the I/O size to 'in-flight-size' when the I/O is
41 Basically, dm-service-time selects a path having minimum service time
59 If such optimizations can't be applied, calculate service time, and
60 compare service time.
61 If calculated service time is equal, the path having maximum
[all …]
/linux-4.1.27/tools/perf/scripts/python/
Dnetdev-times.py302 (name, context, cpu, time, pid, comm, irq, irq_name) = event_info
305 irq_record = {'irq':irq, 'name':irq_name, 'cpu':cpu, 'irq_ent_t':time}
309 (name, context, cpu, time, pid, comm, irq, ret) = event_info
315 irq_record.update({'irq_ext_t':time})
321 (name, context, cpu, time, pid, comm, vec) = event_info
330 irq_event_list.append({'time':time, 'event':'sirq_raise'})
335 (name, context, cpu, time, pid, comm, vec) = event_info
336 net_rx_dic[cpu] = {'sirq_ent_t':time, 'event_list':[]}
339 (name, context, cpu, time, pid, comm, vec) = event_info
351 rec_data = {'sirq_ent_t':sirq_ent_t, 'sirq_ext_t':time,
[all …]
/linux-4.1.27/drivers/usb/host/
Dxhci-rcar.c83 int retval, index, j, time; in xhci_rcar_download_firmware() local
108 for (time = 0; time < timeout; time++) { in xhci_rcar_download_firmware()
114 if (time == timeout) { in xhci_rcar_download_firmware()
124 for (time = 0; time < timeout; time++) { in xhci_rcar_download_firmware()
132 if (time == timeout) in xhci_rcar_download_firmware()
/linux-4.1.27/drivers/net/fddi/skfp/
Dhwt.c63 void hwt_start(struct s_smc *smc, u_long time) in hwt_start() argument
67 if (time > HWT_MAX) in hwt_start()
68 time = HWT_MAX ; in hwt_start()
70 smc->hw.t_start = time ; in hwt_start()
73 cnt = (u_short)time ; in hwt_start()
202 u_long time ; in hwt_quick_read() local
206 time = inpd(ADDR(B2_TI_VAL)) ; in hwt_quick_read()
207 outpd(ADDR(B2_TI_INI),time) ; in hwt_quick_read()
211 return time; in hwt_quick_read()
Dsmttimer.c62 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, in smt_timer_start() argument
69 time /= 16 ; /* input is uS, clock ticks are 16uS */ in smt_timer_start()
70 if (!time) in smt_timer_start()
71 time = 1 ; in smt_timer_start()
79 timer->tm_delta = time ; in smt_timer_start()
80 hwt_start(smc,time) ; in smt_timer_start()
93 if (delta + tm->tm_delta > time) { in smt_timer_start()
101 timer->tm_delta = time - delta ; in smt_timer_start()
/linux-4.1.27/drivers/input/
Dinput-compat.c27 event->time.tv_sec = compat_event.time.tv_sec; in input_event_from_user()
28 event->time.tv_usec = compat_event.time.tv_usec; in input_event_from_user()
47 compat_event.time.tv_sec = event->time.tv_sec; in input_event_to_user()
48 compat_event.time.tv_usec = event->time.tv_usec; in input_event_to_user()
/linux-4.1.27/arch/powerpc/sysdev/
Dmpic_timer.c93 const u64 ticks, struct timeval *time) in convert_ticks_to_time() argument
97 time->tv_sec = (__kernel_time_t)div_u64(ticks, priv->timerfreq); in convert_ticks_to_time()
98 tmp_sec = (u64)time->tv_sec * (u64)priv->timerfreq; in convert_ticks_to_time()
100 time->tv_usec = 0; in convert_ticks_to_time()
103 time->tv_usec = (__kernel_suseconds_t) in convert_ticks_to_time()
111 const struct timeval *time, u64 *ticks) in convert_time_to_ticks() argument
122 if (time->tv_sec > max_value || in convert_time_to_ticks()
123 (time->tv_sec == max_value && time->tv_usec > 0)) in convert_time_to_ticks()
126 tmp_sec = (u64)time->tv_sec * (u64)priv->timerfreq; in convert_time_to_ticks()
129 tmp_ms = time->tv_usec / 1000; in convert_time_to_ticks()
[all …]
/linux-4.1.27/drivers/firmware/efi/
Defi-pstore.c54 unsigned long time, size; in efi_pstore_read_func() local
63 cb_data->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func()
64 *cb_data->id = generic_id(time, part, cnt); in efi_pstore_read_func()
66 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
73 cb_data->type, &part, &cnt, &time) == 4) { in efi_pstore_read_func()
74 *cb_data->id = generic_id(time, part, cnt); in efi_pstore_read_func()
76 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
80 cb_data->type, &part, &time) == 3) { in efi_pstore_read_func()
86 *cb_data->id = generic_id(time, part, 0); in efi_pstore_read_func()
88 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
[all …]
/linux-4.1.27/tools/power/cpupower/bench/
DREADME-BENCH9 - Identify average reaction time of a governor to CPU load changes
13 - Possibly Real time priority testing? -> what happens if there are
35 will be run X time in a row (cycles):
48 Will increase load and sleep time by 25ms 5 times.
50 25ms load/sleep time repeated 20 times (cycles).
51 50ms load/sleep time repeated 20 times (cycles).
53 100ms load/sleep time repeated 20 times (cycles).
59 and the governor to test. The time the calculation really needed
60 with the dynamic freq scaling governor is compared with the time needed
87 50 50 50 50ms ->time
[all …]
/linux-4.1.27/kernel/
Dlatencytop.c127 latency_record[i].time += lat->time; in account_global_scheduler_latency()
128 if (lat->time > latency_record[i].max) in account_global_scheduler_latency()
129 latency_record[i].max = lat->time; in account_global_scheduler_latency()
190 lat.time = usecs; in __account_scheduler_latency()
217 mylat->time += lat.time; in __account_scheduler_latency()
218 if (lat.time > mylat->max) in __account_scheduler_latency()
219 mylat->max = lat.time; in __account_scheduler_latency()
250 lr->count, lr->time, lr->max); in lstats_show()
Dtsacct.c127 cputime_t time, dtime; in __acct_update_integrals() local
133 time = stime + utime; in __acct_update_integrals()
134 dtime = time - tsk->acct_timexpd; in __acct_update_integrals()
141 tsk->acct_timexpd = time; in __acct_update_integrals()
/linux-4.1.27/Documentation/devicetree/bindings/bus/
Dti-gpmc.txt41 - gpmc,cs-on-ns: Assertion time
42 - gpmc,cs-rd-off-ns: Read deassertion time
43 - gpmc,cs-wr-off-ns: Write deassertion time
46 - gpmc,adv-on-ns: Assertion time
47 - gpmc,adv-rd-off-ns: Read deassertion time
48 - gpmc,adv-wr-off-ns: Write deassertion time
51 - gpmc,we-on-ns Assertion time
52 - gpmc,we-off-ns: Deassertion time
55 - gpmc,oe-on-ns: Assertion time
56 - gpmc,oe-off-ns: Deassertion time
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-devtrace-ucode.h36 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
37 TP_ARGS(dev, time, data, ev),
41 __field(u32, time)
47 __entry->time = time;
52 __get_str(dev), __entry->time, __entry->data, __entry->ev)
Diwl-devtrace-iwlwifi.h178 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
179 TP_ARGS(dev, time, data, ev),
183 __field(u32, time)
189 __entry->time = time;
194 __get_str(dev), __entry->time, __entry->data, __entry->ev)
/linux-4.1.27/drivers/power/
Dapm_power.c196 int time; in calculate_time() local
198 time = do_calculate_time(status, SOURCE_ENERGY); in calculate_time()
199 if (time != -1) in calculate_time()
200 return time; in calculate_time()
202 time = do_calculate_time(status, SOURCE_CHARGE); in calculate_time()
203 if (time != -1) in calculate_time()
204 return time; in calculate_time()
206 time = do_calculate_time(status, SOURCE_VOLTAGE); in calculate_time()
207 if (time != -1) in calculate_time()
208 return time; in calculate_time()
[all …]
/linux-4.1.27/include/linux/
Dhrtimer.h200 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires() argument
202 timer->node.expires = time; in hrtimer_set_expires()
203 timer->_softexpires = time; in hrtimer_set_expires()
206 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range() argument
208 timer->_softexpires = time; in hrtimer_set_expires_range()
209 timer->node.expires = ktime_add_safe(time, delta); in hrtimer_set_expires_range()
212 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, unsigned long … in hrtimer_set_expires_range_ns() argument
214 timer->_softexpires = time; in hrtimer_set_expires_range_ns()
215 timer->node.expires = ktime_add_safe(time, ns_to_ktime(delta)); in hrtimer_set_expires_range_ns()
224 static inline void hrtimer_add_expires(struct hrtimer *timer, ktime_t time) in hrtimer_add_expires() argument
[all …]
Drtc.h23 extern void rtc_time64_to_tm(time64_t time, struct rtc_time *tm);
30 static inline void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) in rtc_time_to_tm() argument
32 rtc_time64_to_tm(time, tm); in rtc_time_to_tm()
38 static inline int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) in rtc_tm_to_time() argument
40 *time = rtc_tm_to_time64(tm); in rtc_tm_to_time()
Dlp.h23 #define LP_TIME(minor) lp_table[(minor)].time /* wait time */
49 unsigned int time; member
/linux-4.1.27/sound/oss/
Dsys_timer.c126 long time; in def_tmr_event() local
131 time = parm; in def_tmr_event()
132 next_event_time = prev_event_time = time; in def_tmr_event()
256 def_tmr_arm(int dev, long time) in def_tmr_arm() argument
258 if (time < 0) in def_tmr_arm()
259 time = curr_ticks + 1; in def_tmr_arm()
260 else if (time <= curr_ticks) /* It's the time */ in def_tmr_arm()
263 next_event_time = prev_event_time = time; in def_tmr_arm()
Dsound_timer.c125 long time; in timer_event() local
129 time = parm; in timer_event()
130 next_event_time = prev_event_time = time; in timer_event()
256 static void timer_arm(int dev, long time) in timer_arm() argument
258 if (time < 0) in timer_arm()
259 time = curr_ticks + 1; in timer_arm()
260 else if (time <= curr_ticks) /* It's the time */ in timer_arm()
263 next_event_time = prev_event_time = time; in timer_arm()
/linux-4.1.27/Documentation/scheduler/
Dsched-rt-group.txt28 resolution, or the time it takes to handle the budget refresh itself.
33 are real-time processes).
43 the amount of bandwidth (eg. CPU time) being constant. In order to schedule
45 of the CPU time available. Without a minimum guarantee a realtime group can
52 CPU time is divided by means of specifying how much time can be spent running
53 in a given period. We allocate this "run time" for each realtime group which
56 Any time not allocated to a realtime group will be used to run normal priority
57 tasks (SCHED_OTHER). Any allocated run time not used will also be picked up by
63 time dedicated for the graphics. We can then give this group a run time of 0.8
66 This way the graphics group will have a 0.04s period with a 0.032s run time
[all …]
Dsched-deadline.txt44 "runtime" microseconds of execution time every "period" microseconds, and
47 every time the task wakes up, the scheduler computes a "scheduling deadline"
51 task actually receives "runtime" time units within "deadline" if a proper
60 with the "traditional" real-time task model (see Section 3) can effectively
77 scheduling deadline - current time period
79 then, if the scheduling deadline is smaller than the current time, or
83 scheduling deadline = current time + deadline
89 - When a SCHED_DEADLINE task executes for an amount of time t, its
98 said to be "throttled" (also known as "depleted" in real-time literature)
100 time" for this task (see next item) is set to be equal to the current
[all …]
Dsched-design-CFS.txt33 timestamp and measure the "expected CPU time" a task should have gotten.
35 [ small detail: on "ideal" hardware, at any time all tasks would have the same
37 would ever get "out of balance" from the "ideal" share of CPU time. ]
42 up CPU time between runnable tasks as close to "ideal multitasking hardware" as
54 runqueues, but it uses a time-ordered rbtree to build a "timeline" of future
68 CFS maintains a time-ordered rbtree, where all runnable tasks are sorted by the
73 amount of time.
77 for": the (small) time it just spent using the physical CPU is added to
79 becomes the "leftmost task" of the time-ordered rbtree it maintains (plus a
193 This function is mostly called from time tick functions; it might lead to
[all …]
/linux-4.1.27/drivers/input/misc/
Daxp20x-pek.c39 unsigned int time; member
44 { .time = 128, .idx = 0 },
45 { .time = 1000, .idx = 2 },
46 { .time = 3000, .idx = 1 },
47 { .time = 2000, .idx = 3 },
51 { .time = 4000, .idx = 0 },
52 { .time = 6000, .idx = 1 },
53 { .time = 8000, .idx = 2 },
54 { .time = 10000, .idx = 3 },
94 val = axp20x_ea->p_time[i].time; in axp20x_show_ext_attr()
[all …]
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c726 struct timespec time; in acpi_os_wait_semaphore() local
788 if (clock_gettime(CLOCK_REALTIME, &time) == -1) { in acpi_os_wait_semaphore()
793 time.tv_sec += (msec_timeout / ACPI_MSEC_PER_SEC); in acpi_os_wait_semaphore()
794 time.tv_nsec += in acpi_os_wait_semaphore()
799 if (time.tv_nsec >= ACPI_NSEC_PER_SEC) { in acpi_os_wait_semaphore()
800 time.tv_sec += (time.tv_nsec / ACPI_NSEC_PER_SEC); in acpi_os_wait_semaphore()
801 time.tv_nsec = (time.tv_nsec % ACPI_NSEC_PER_SEC); in acpi_os_wait_semaphore()
804 while (((ret_val = sem_timedwait(sem, &time)) == -1) in acpi_os_wait_semaphore()
986 struct timeval time; in acpi_os_get_timer() local
990 gettimeofday(&time, NULL); in acpi_os_get_timer()
[all …]
/linux-4.1.27/Documentation/accounting/
Dtaskstats-struct.txt40 * Each time the struct is changed, the value should be incremented.
67 /* The time when a task begins, in [secs] since 1970. */
68 __u32 ac_btime; /* Begin time [sec since 1970] */
70 /* The elapsed time of a task, in [usec]. */
71 __u64 ac_etime; /* Elapsed time [usec] */
73 /* The user CPU time of a task, in [usec]. */
74 __u64 ac_utime; /* User CPU time [usec] */
76 /* The system CPU time of a task, in [usec]. */
77 __u64 ac_stime; /* System CPU time [usec] */
118 /* cpu "wall-clock" running time
[all …]
/linux-4.1.27/Documentation/virtual/kvm/
Dmsr.txt34 time information and check that they are both equal and even.
37 sec: number of seconds for wallclock at time of boot.
39 nsec: number of nanoseconds for wallclock at time of boot.
41 In order to get the current wallclock time, the system_time from
70 The hypervisor may update this structure at any time it sees fit until
76 time information and check that they are both equal and even.
79 tsc_timestamp: the tsc value at the current VCPU at the time
81 from current tsc to derive a notion of elapsed time since the
84 system_time: a host notion of monotonic time, including sleep
85 time at the time this structure was last updated. Unit is
[all …]
Dtimekeeping.txt19 time introduces a new set of challenges because it introduces a multiplexed
20 division of time beyond the control of the guest CPU.
183 time clock. The original device is now obsolete, and usually emulated by the
197 The RTC will update the current time fields by battery power even while the
198 system is off. The current time fields should not be read while an update is
293 time source which is independent of local variation (as there is only one HPET
308 not considered important at this time as no known operating system does this.
314 The TSC or time stamp counter is relatively simple in theory; it counts
316 time. In practice, due to a number of problems, it is the most complicated
362 As touched on already, CPUs which arrive later than the boot time of the system
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Drtc.h45 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time() argument
48 ppc_md.get_rtc_time(time); in get_rtc_time()
53 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time() argument
56 return ppc_md.set_rtc_time(time); in set_rtc_time()
Dmpic_timer.h32 const struct timeval *time);
35 void mpic_get_remain_time(struct mpic_timer *handle, struct timeval *time);
39 const struct timeval *time) { return NULL; } in mpic_request_timer() argument
42 void mpic_get_remain_time(struct mpic_timer *handle, struct timeval *time) { } in mpic_get_remain_time() argument
/linux-4.1.27/arch/m68k/include/asm/
Drtc.h31 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time() argument
40 mach_hwclk(0, time); in get_rtc_time()
44 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time() argument
47 return mach_hwclk(1, time); in set_rtc_time()
/linux-4.1.27/Documentation/devicetree/bindings/arm/tegra/
Dnvidia,tegra20-pmc.txt39 - nvidia,cpu-pwr-good-time : CPU power good time in uS.
40 - nvidia,cpu-pwr-off-time : CPU power off time in uS.
41 - nvidia,core-pwr-good-time : <Oscillator-stable-time Power-stable-time>
42 Core power good time in uS.
43 - nvidia,core-pwr-off-time : Core power off time in uS.
81 nvidia,cpu-pwr-good-time = <2000>;
82 nvidia,cpu-pwr-off-time = <100>;
83 nvidia,core-pwr-good-time = <3845 3845>;
84 nvidia,core-pwr-off-time = <458>;
/linux-4.1.27/drivers/staging/lustre/lustre/include/linux/
Dobd.h63 unsigned long time; member
79 lock->time = jiffies; in __client_obd_list_lock()
84 time_before(lock->time + 5 * HZ, jiffies)) { in __client_obd_list_lock()
94 (jiffies - lock->time) / HZ); in __client_obd_list_lock()
112 lock->time = jiffies; in client_obd_list_unlock()
/linux-4.1.27/arch/mn10300/unit-asb2305/
Dleds.c82 void peripheral_leds7x4_display_minssecs(unsigned int time, unsigned int points) in peripheral_leds7x4_display_minssecs() argument
86 leds = asb2305_led_hex_tbl[(time/600) % 6]; in peripheral_leds7x4_display_minssecs()
88 leds |= asb2305_led_hex_tbl[(time/60) % 10]; in peripheral_leds7x4_display_minssecs()
90 leds |= asb2305_led_hex_tbl[(time/10) % 6]; in peripheral_leds7x4_display_minssecs()
92 leds |= asb2305_led_hex_tbl[time % 10]; in peripheral_leds7x4_display_minssecs()
/linux-4.1.27/drivers/watchdog/
Dat32ap700x_wdt.c162 static int at32_wdt_settimeout(int time) in at32_wdt_settimeout() argument
168 if ((time < TIMEOUT_MIN) || (time > TIMEOUT_MAX)) in at32_wdt_settimeout()
175 wdt->timeout = time; in at32_wdt_settimeout()
220 int time; in at32_wdt_ioctl() local
236 ret = get_user(time, p); in at32_wdt_ioctl()
239 if (time & WDIOS_DISABLECARD) in at32_wdt_ioctl()
241 if (time & WDIOS_ENABLECARD) in at32_wdt_ioctl()
250 ret = get_user(time, p); in at32_wdt_ioctl()
253 ret = at32_wdt_settimeout(time); in at32_wdt_ioctl()
Dsa1100_wdt.c98 int time; in sa1100dog_ioctl() local
122 ret = get_user(time, p); in sa1100dog_ioctl()
126 if (time <= 0 || (oscr_freq * (long long)time >= 0xffffffff)) { in sa1100dog_ioctl()
131 pre_margin = oscr_freq * time; in sa1100dog_ioctl()
Dixp4xx_wdt.c105 int time; in ixp4xx_wdt_ioctl() local
127 ret = get_user(time, (int *)arg); in ixp4xx_wdt_ioctl()
131 if (time <= 0 || time > 60) { in ixp4xx_wdt_ioctl()
136 heartbeat = time; in ixp4xx_wdt_ioctl()
Dm54xx_wdt.c124 int time; in m54xx_wdt_ioctl() local
146 ret = get_user(time, (int *)arg); in m54xx_wdt_ioctl()
150 if (time <= 0 || time > 30) { in m54xx_wdt_ioctl()
155 heartbeat = time; in m54xx_wdt_ioctl()
Dsbc_fitpc2_wdt.c124 int time; in fitpc2_wdt_ioctl() local
146 ret = get_user(time, (int *)arg); in fitpc2_wdt_ioctl()
150 if (time < 31 || time > 255) { in fitpc2_wdt_ioctl()
155 margin = time; in fitpc2_wdt_ioctl()
Deurotechwdt.c248 int time; in eurwdt_ioctl() local
282 if (copy_from_user(&time, p, sizeof(int))) in eurwdt_ioctl()
286 if (time < 0 || time > 255) in eurwdt_ioctl()
290 eurwdt_timeout = time; in eurwdt_ioctl()
291 eurwdt_set_timeout(time); in eurwdt_ioctl()
Drn5t618_wdt.c45 unsigned int time; member
60 if (rn5t618_wdt_map[i].time + 1 >= t) in rn5t618_wdt_set_timeout()
71 wdt_dev->timeout = rn5t618_wdt_map[i].time; in rn5t618_wdt_set_timeout()
157 min_timeout = rn5t618_wdt_map[0].time; in rn5t618_wdt_probe()
158 max_timeout = rn5t618_wdt_map[ARRAY_SIZE(rn5t618_wdt_map) - 1].time; in rn5t618_wdt_probe()
Dsb_wdog.c173 unsigned long time; in sbwdog_ioctl() local
193 ret = get_user(time, p); in sbwdog_ioctl()
197 time *= 1000000; in sbwdog_ioctl()
198 if (time > 0x7fffffUL) { in sbwdog_ioctl()
202 timeout = time; in sbwdog_ioctl()
Di6300esb.c159 static int esb_timer_set_heartbeat(int time) in esb_timer_set_heartbeat() argument
163 if (time < 0x1 || time > (2 * 0x03ff)) in esb_timer_set_heartbeat()
172 val = time << 9; in esb_timer_set_heartbeat()
189 heartbeat = time; in esb_timer_set_heartbeat()
/linux-4.1.27/Documentation/devicetree/bindings/mtd/
Dgpmc-nor.txt14 - gpmc,cs-on-ns: Chip-select assertion time
15 - gpmc,cs-rd-off-ns: Chip-select de-assertion time for reads
16 - gpmc,cs-wr-off-ns: Chip-select de-assertion time for writes
17 - gpmc,oe-on-ns: Output-enable assertion time
18 - gpmc,oe-off-ns: Output-enable de-assertion time
19 - gpmc,we-on-ns Write-enable assertion time
20 - gpmc,we-off-ns: Write-enable de-assertion time
22 - gpmc,rd-cycle-ns: Total read cycle time
23 - gpmc,wr-cycle-ns: Total write cycle time
Dlpc32xx-slc.txt16 - nxp,whold: Write hold time (W_HOLD)
17 - nxp,wsetup: Write setup time (W_SETUP)
19 - nxp,rhold: Read hold time (R_HOLD)
20 - nxp,rsetup: Read setup time (R_SETUP)
/linux-4.1.27/Documentation/ABI/testing/
Dprocfs-diskstats14 7 - time spent reading (ms)
18 11 - time spent writing (ms)
20 13 - time spent doing I/Os (ms)
21 14 - weighted time spent doing I/Os (ms)
Dsysfs-cfq-target-latency7 It contains an estimated latency time for the cfq. cfq will
8 use it to calculate the time slice used for every task.
Dsysfs-driver-input-axp-pek4 Description: Startup time in us. Board is powered on if the button is pressed
10 Description: Shutdown time in us. Board is powered off if the button is pressed
Dsysfs-class-power20 amended over time.
27 This entry shows and sets the maximum time the max14577
41 This entry shows and sets the maximum time the max77693
70 This entry shows and sets the maximum time the max77693
/linux-4.1.27/arch/m68k/mac/
Dmisc.c40 long time; in cuda_read_time() local
47 time = (req.reply[3] << 24) | (req.reply[4] << 16) in cuda_read_time()
49 return time - RTC_OFFSET; in cuda_read_time()
95 long time; in pmu_read_time() local
102 time = (req.reply[1] << 24) | (req.reply[2] << 16) in pmu_read_time()
104 return time - RTC_OFFSET; in pmu_read_time()
153 long time;
158 time = (req.reply[3] << 24) | (req.reply[4] << 16)
160 return time - RTC_OFFSET;
348 static void via_write_time(long time) in via_write_time() argument
[all …]
/linux-4.1.27/Documentation/locking/
Dlockstat.txt47 wait time min - shortest (non-0) time we ever had to wait for a lock
48 max - longest time we ever had to wait for a lock
49 total - total time we spend waiting on this lock
50 avg - average time spent waiting on this lock
53 hold time min - shortest (non-0) time we ever held the lock
54 max - longest time we ever held the lock
55 total - total time this lock was held
56 avg - average time this lock was held
119 output version - each time the format changes this will be updated. Line 02-04
134 The integer part of the time values is in us.
/linux-4.1.27/drivers/input/joystick/
Djoydump.c45 unsigned int time; member
97 dump->time = t; in joydump_connect()
108 dump->time = t; in joydump_connect()
134 i, dump->time - prev->time); in joydump_connect()
/linux-4.1.27/Documentation/networking/
Dtimestamping.txt8 monotonic) system time. Reports the timestamp via recvmsg() in a
143 The counter starts at zero. It is initialized the first time that
144 the socket option is enabled. It is reset each time the option is
231 send time with the value returned for each timestamp. It can prevent
263 feature. Only one field is non-zero at any time. Most timestamps
266 ts[1] used to hold hardware timestamps converted to system time.
268 a HW PTP clock source, to allow time conversion in userspace and
269 optionally synchronize system time with a userspace PTP stack such
344 Hardware time stamping must also be initialized for each device driver
345 that is expected to do hardware time stamping. The parameter is defined in
[all …]
Dtcp-thin.txt7 effective. In time-dependent scenarios (like online games, control
15 After analysing a large number of time-dependent interactive
18 lifespan. The combination of time-dependency and the fact that the
35 Since these mechanisms are targeted at time-dependent applications,
Dfore200e.txt13 same time, by hosts that have several bus interfaces (such as PCI+SBUS,
31 uploaded to the ATM adapters at system boot time or at module loading time.
49 configuration time:
/linux-4.1.27/tools/testing/selftests/timers/
Dset-2038.c59 int settime(long long time) in settime() argument
64 now.tv_sec = (time_t)time; in settime()
69 printf("Setting time to 0x%lx: %d\n", (long)time, ret); in settime()
99 start = time(0); in main()
Dleap-a-day.c275 now = tx.time.tv_sec; in main()
290 ctime_r(&tx.time.tv_sec, buf); in main()
295 tx.time.tv_usec, in main()
299 now = tx.time.tv_sec; in main()
/linux-4.1.27/fs/fat/
Dmisc.c192 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date); in fat_time_fat2unix() local
205 second = (time & 0x1f) << 1; in fat_time_fat2unix()
206 second += ((time >> 5) & 0x3f) * SECS_PER_MIN; in fat_time_fat2unix()
207 second += (time >> 11) * SECS_PER_HOUR; in fat_time_fat2unix()
228 __le16 *time, __le16 *date, u8 *time_cs) in fat_time_unix2fat() argument
237 *time = 0; in fat_time_unix2fat()
244 *time = cpu_to_le16((23 << 11) | (59 << 5) | 29); in fat_time_unix2fat()
258 *time = cpu_to_le16(tm.tm_hour << 11 | tm.tm_min << 5 | tm.tm_sec); in fat_time_unix2fat()
/linux-4.1.27/Documentation/laptops/
Ddslm.c58 static char *myctime(time_t time) in myctime() argument
60 char *ts = ctime(&time); in myctime()
84 start_time = last_time = time(0); in measure()
93 curr_time = time(0); in measure()
109 total_time = time(0) - start_time; in measure()
/linux-4.1.27/Documentation/devicetree/bindings/rtc/
Datmel,at91sam9-rtc.txt8 - atmel,rtt-rtc-time-reg: should encode the GPBR register used to store
9 the time base when the RTT is used as an RTC.
12 GPBR register used to store the time base).
22 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dgpmc-eth.txt29 - gpmc,cs-on-ns: Chip-select assertion time
30 - gpmc,cs-rd-off-ns: Chip-select de-assertion time for reads
31 - gpmc,cs-wr-off-ns: Chip-select de-assertion time for writes
32 - gpmc,oe-on-ns: Output-enable assertion time
33 - gpmc,oe-off-ns: Output-enable de-assertion time
34 - gpmc,we-on-ns: Write-enable assertion time
35 - gpmc,we-off-ns: Write-enable de-assertion time
37 - gpmc,rd-cycle-ns: Total read cycle time
38 - gpmc,wr-cycle-ns: Total write cycle time
/linux-4.1.27/Documentation/
Drtc.txt6 something that tracks wall clock time and is battery backed so that it
8 the local time zone or daylight savings time -- unless they dual boot
12 The newest non-PC hardware tends to just count seconds, like the time(2)
13 system call reports, but RTCs also very commonly represent time using
14 the Gregorian calendar and 24 hour time, as reported by gmtime(3).
32 be able to schedule one any time in the upcoming century.
41 clock that keeps the date and time while your computer is turned off.
64 interface open at a time.
89 Also, if the kernel time is synchronized with an external source, the
90 kernel will write the time back to the CMOS clock every 11 minutes. In
[all …]
Dcpu-load.txt6 the average time system spent in a particular state, for example:
17 system spent 10.01% of the time doing work in user space, 2.92% in the
18 kernel, and was overall 81.63% of the time idle.
38 time line between two timer interrupts
55 #include <time.h>
58 #include <sys/time.h>
Dlockup-watchdogs.txt23 behavior is changed, which can be done through a compile time knob,
30 of time.
41 (compile-time initialized to 10 and configurable through sysctl of the
43 does not receive any hrtimer interrupt during that time the
49 timestamp every time it is scheduled. If that timestamp is not updated
Dstable_api_nonsense.txt11 interface is _very_ stable over time, and will not break. I have old
84 Trust me, you will go insane over time if you try to support this kind
85 of release, I learned this the hard way a long time ago...
93 date over time.
102 at the same time, ensuring that everything continues to work properly.
118 which have had to maintain their older USB interfaces over time. This
127 the older, broken one would have had to be maintained over time, leading
129 their work on their own time, asking programmers to do extra work for no
133 security issue is found, it is fixed in a very short amount of time. A
137 same time, ensuring that the security problem was fixed and could not
[all …]
/linux-4.1.27/drivers/macintosh/
Dsmu.c364 struct rtc_time *time) in smu_fill_set_rtc_cmd() argument
369 cmd_buf->data[1] = hex2bcd(time->tm_sec); in smu_fill_set_rtc_cmd()
370 cmd_buf->data[2] = hex2bcd(time->tm_min); in smu_fill_set_rtc_cmd()
371 cmd_buf->data[3] = hex2bcd(time->tm_hour); in smu_fill_set_rtc_cmd()
372 cmd_buf->data[4] = time->tm_wday; in smu_fill_set_rtc_cmd()
373 cmd_buf->data[5] = hex2bcd(time->tm_mday); in smu_fill_set_rtc_cmd()
374 cmd_buf->data[6] = hex2bcd(time->tm_mon) + 1; in smu_fill_set_rtc_cmd()
375 cmd_buf->data[7] = hex2bcd(time->tm_year - 100); in smu_fill_set_rtc_cmd()
379 int smu_get_rtc_time(struct rtc_time *time, int spinwait) in smu_get_rtc_time() argument
387 memset(time, 0, sizeof(struct rtc_time)); in smu_get_rtc_time()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dpinger.c115 int time = soon ? PING_INTERVAL_SHORT : PING_INTERVAL; in ptlrpc_update_next_ping() local
120 time = min(time, dtime); in ptlrpc_update_next_ping()
122 imp->imp_next_ping = cfs_time_shift(time); in ptlrpc_update_next_ping()
144 long pinger_check_timeout(unsigned long time) in pinger_check_timeout() argument
159 return cfs_time_sub(cfs_time_add(time, cfs_time_seconds(timeout)), in pinger_check_timeout()
425 struct timeout_item *ptlrpc_new_timeout(int time, enum timeout_event event, in ptlrpc_new_timeout() argument
436 ti->ti_timeout = time; in ptlrpc_new_timeout()
449 ptlrpc_pinger_register_timeout(int time, enum timeout_event event, in ptlrpc_pinger_register_timeout() argument
460 item = ptlrpc_new_timeout(time, event, cb, data); in ptlrpc_pinger_register_timeout()
463 if (tmp->ti_timeout < time) { in ptlrpc_pinger_register_timeout()
[all …]
/linux-4.1.27/drivers/char/ipmi/
Dipmi_kcs_sm.c233 long time) in check_ibf() argument
236 kcs->ibf_timeout -= time; in check_ibf()
249 long time) in check_obf() argument
252 kcs->obf_timeout -= time; in check_obf()
346 static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time) in kcs_event() argument
357 if (!check_ibf(kcs, status, time)) in kcs_event()
438 if (!check_obf(kcs, status, time)) in kcs_event()
481 if (!check_obf(kcs, status, time)) in kcs_event()
496 if (!check_obf(kcs, status, time)) in kcs_event()
/linux-4.1.27/kernel/trace/
Dring_buffer_benchmark.c216 unsigned long long time; in ring_buffer_producer() local
283 time = ktime_us_delta(end_time, start_time); in ring_buffer_producer()
311 trace_printk("Time: %lld (usecs)\n", time); in ring_buffer_producer()
324 do_div(time, USEC_PER_MSEC); in ring_buffer_producer()
325 if (time) in ring_buffer_producer()
326 hit /= (long)time; in ring_buffer_producer()
339 if (time) in ring_buffer_producer()
340 missed /= (long)time; in ring_buffer_producer()
/linux-4.1.27/Documentation/cgroups/
Dblkio-controller.txt12 weight time based division of disk policy. It is implemented in CFQ. Hence
62 much disk time (in milli seconds), each group got and how many secotors each
63 group dispatched to the disk. We provide fairness in terms of disk time, so
184 - blkio.time
185 - disk time allocated to cgroup per device in milliseconds. First
187 third field specifies the disk time allocated to group in
211 - Total amount of time between request dispatch and request completion
214 this time represents the actual service time. When queue_depth > 1,
216 may cause the service time for a given IO to include the service time
218 io_service_time > actual time elapsed. This time is further divided by
[all …]
Dcpuacct.txt18 /sys/fs/cgroup/cpuacct.usage gives the CPU time (in nanoseconds) obtained
19 by this group which is essentially the CPU time obtained by all the tasks
29 process (bash) into it. CPU time consumed by this bash and its children
34 CPU time obtained by the cgroup into user and system times. Currently
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-rds-gen.c60 unsigned time; in vivid_rds_generate() local
107 time = (tm.tm_hour << 12) | in vivid_rds_generate()
115 data[2].lsb |= (time >> 16) & 1; in vivid_rds_generate()
118 data[3].lsb = time & 0xff; in vivid_rds_generate()
119 data[3].msb = (time >> 8) & 0xff; in vivid_rds_generate()
/linux-4.1.27/net/netfilter/
Dxt_time.c77 static inline unsigned int localtime_1(struct xtm *r, time_t time) in localtime_1() argument
82 v = time % SECONDS_PER_DAY; in localtime_1()
90 static inline void localtime_2(struct xtm *r, time_t time) in localtime_2() argument
96 r->dse = time / 86400; in localtime_2()
105 static void localtime_3(struct xtm *r, time_t time) in localtime_3() argument
/linux-4.1.27/drivers/iio/common/ssp_sensors/
Dssp_iio_sensor.h46 static inline void ssp_convert_to_freq(u32 time, int *integer_part, in ssp_convert_to_freq() argument
49 if (time == 0) { in ssp_convert_to_freq()
55 *integer_part = SSP_FACTOR_WITH_MS / time; in ssp_convert_to_freq()
Dssp_iio.c82 __le32 time; in ssp_common_process_data() local
95 memcpy(&time, &((char *)buf)[len], SSP_TIME_SIZE); in ssp_common_process_data()
97 timestamp + (int64_t)le32_to_cpu(time) * 1000000; in ssp_common_process_data()
/linux-4.1.27/Documentation/devicetree/bindings/input/touchscreen/
Dstmpe.txt8 - st,sample-time: ADC converstion time in number of clock. (0 -> 36 clocks, 1 ->
20 - st,settling: Panel driver settling time (0 -> 10 us, 1 -> 100 us, 2 -> 500 us, 3
34 st,sample-time = <4>;
/linux-4.1.27/arch/um/os-Linux/
Dtime.c60 struct itimerval time = ((struct itimerval) { { 0, 0 }, { 0, 0 } }); in disable_timer() local
63 if (setitimer(ITIMER_VIRTUAL, &time, &time) < 0) in disable_timer()
67 remain = timeval_to_ns(&time.it_value); in disable_timer()
/linux-4.1.27/arch/arc/boot/dts/
Dabilis_tb101_dvk.dts48 i2c-sda-hold-time-ns = <432>;
51 i2c-sda-hold-time-ns = <432>;
54 i2c-sda-hold-time-ns = <432>;
57 i2c-sda-hold-time-ns = <432>;
60 i2c-sda-hold-time-ns = <432>;
Dabilis_tb100_dvk.dts48 i2c-sda-hold-time-ns = <432>;
51 i2c-sda-hold-time-ns = <432>;
54 i2c-sda-hold-time-ns = <432>;
57 i2c-sda-hold-time-ns = <432>;
60 i2c-sda-hold-time-ns = <432>;
/linux-4.1.27/Documentation/video4linux/
Dcafe_ccic9 sensor is known to work with this controller at this time.
18 There are a few load-time options, most of which can be changed after
22 buffers until the time comes to transfer data. If this option is set,
23 then worst-case-sized buffers will be allocated at module load time.
28 option is only consulted for load-time allocation; when buffers are
29 allocated at run time, they will be sized appropriately for the current
/linux-4.1.27/Documentation/cpuidle/
Dsysfs.txt19 In this case users can switch the governor at run time by writing
43 -r--r--r-- 1 root root 4096 Feb 8 10:42 time
53 -r--r--r-- 1 root root 4096 Feb 8 10:42 time
63 -r--r--r-- 1 root root 4096 Feb 8 10:42 time
73 -r--r--r-- 1 root root 4096 Feb 8 10:42 time
83 * time : Total time spent in this idle state (in microseconds)
/linux-4.1.27/Documentation/devicetree/bindings/memory-controllers/
Dmvebu-devbus.txt37 - devbus,turn-off-ps: Defines the time during which the controller does not
46 - devbus,badr-skew-ps: Defines the time delay from from A[2:0] toggle,
52 - devbus,acc-first-ps: Defines the time delay from the negation of
57 - devbus,acc-next-ps: Defines the time delay between the cycle that
62 - devbus,rd-setup-ps: Defines the time delay between DEV_CSn assertion to
71 - devbus,rd-hold-ps: Defines the time between the last data sample to the
85 - devbus,ale-wr-ps: Defines the time delay from the ALE[0] negation cycle
89 - devbus,wr-low-ps: Defines the time during which DEV_WEn is active.
91 is active. This parameter defines the setup time of
95 - devbus,wr-high-ps: Defines the time during which DEV_WEn is kept
[all …]
Dingenic,jz4780-nemc.txt32 - ingenic,nemc-tAS: Address setup time in nanoseconds.
33 - ingenic,nemc-tAH: Address hold time in nanoseconds.
34 - ingenic,nemc-tBP: Burst pitch time in nanoseconds.
35 - ingenic,nemc-tAW: Access wait time in nanoseconds.
36 - ingenic,nemc-tSTRV: Static memory recovery time in nanoseconds.
/linux-4.1.27/Documentation/filesystems/
Dgfs2-glocks.txt11 threads from making calls to the DLM, etc. at the same time. If a
68 The minimum hold time for each lock is the time after a remote lock
74 remote callback, that gives the userspace program time to make
150 1. DLM lock time (non-blocking requests)
151 2. DLM lock time (blocking requests)
152 3. Inter-request time (again to the DLM)
172 1. To be able to better set the glock "min hold time"
175 allocation (to base it on lock wait time, rather than blindly
184 Knowing both the time it takes a lock request to complete and
185 the average time between lock requests for a glock means we
[all …]
Dquota.txt11 softlimit but only for limited period of time. This period is called "grace
12 period" or "grace time". When grace time is over, user is not able to allocate
15 Quota limits (and amount of grace time) are set independently for each
23 When user exceeds a softlimit, runs out of grace time or reaches hardlimit,
/linux-4.1.27/security/tomoyo/
Dutil.c90 void tomoyo_convert_time(time_t time, struct tomoyo_time *stamp) in tomoyo_convert_time() argument
99 stamp->sec = time % 60; in tomoyo_convert_time()
100 time /= 60; in tomoyo_convert_time()
101 stamp->min = time % 60; in tomoyo_convert_time()
102 time /= 60; in tomoyo_convert_time()
103 stamp->hour = time % 24; in tomoyo_convert_time()
104 time /= 24; in tomoyo_convert_time()
107 if (time < days) in tomoyo_convert_time()
109 time -= days; in tomoyo_convert_time()
112 for (m = 0; m < 11 && time >= tomoyo_eom[r][m]; m++) in tomoyo_convert_time()
[all …]
/linux-4.1.27/tools/perf/
Dbuiltin-timechart.c184 u64 time; member
327 pid_fork(tchart, event->fork.pid, event->fork.ppid, event->fork.time); in process_fork_event()
337 pid_exit(tchart, event->fork.pid, event->fork.time); in process_exit_event()
413 we->time = timestamp; in sched_wakeup()
562 if (!tchart->first_time || tchart->first_time > sample->time) in process_sample_event()
563 tchart->first_time = sample->time; in process_sample_event()
564 if (tchart->last_time < sample->time) in process_sample_event()
565 tchart->last_time = sample->time; in process_sample_event()
587 c_state_end(tchart, cpu_id, sample->time); in process_sample_cpu_idle()
589 c_state_start(cpu_id, sample->time, state); in process_sample_cpu_idle()
[all …]
/linux-4.1.27/Documentation/ptp/
Dptp.txt15 - Set time
16 - Get time
24 - Synchronization of the Linux system time via the PPS subsystem
32 driver of asynchronous events (alarms and external time stamps) via
50 ancillary clock features. User space can receive time stamped
65 reentrant. Since most hardware implementations treat the time value
83 - GPIO inputs can time stamp external triggers
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
Drtl_ps.c90 void rtl8192_hw_to_sleep(struct net_device *dev, u64 time) in rtl8192_hw_to_sleep() argument
99 time -= msecs_to_jiffies(8 + 16 + 7); in rtl8192_hw_to_sleep()
101 if ((time - jiffies) <= msecs_to_jiffies(MIN_SLEEP_TIME)) { in rtl8192_hw_to_sleep()
104 time - jiffies, msecs_to_jiffies(MIN_SLEEP_TIME)); in rtl8192_hw_to_sleep()
108 if ((time - jiffies) > msecs_to_jiffies(MAX_SLEEP_TIME)) { in rtl8192_hw_to_sleep()
110 time - jiffies, msecs_to_jiffies(MAX_SLEEP_TIME)); in rtl8192_hw_to_sleep()
114 tmp = time - jiffies; in rtl8192_hw_to_sleep()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_time.h114 struct timespec time; in cfs_fs_timeval() local
116 cfs_fs_time_current(&time); in cfs_fs_timeval()
117 cfs_fs_time_usec(&time, tv); in cfs_fs_timeval()
/linux-4.1.27/arch/powerpc/kernel/
Dsysfs.c166 u64 time; in show_pw20_wait_time() local
178 time = div_u64(tb_cycle, tb_ticks_per_usec / 1000); in show_pw20_wait_time()
182 time = div_u64_rem(tb_cycle, tb_ticks_per_usec, in show_pw20_wait_time()
184 time = time * 1000 + rem_us * 1000 / tb_ticks_per_usec; in show_pw20_wait_time()
187 time = pw20_wt; in show_pw20_wait_time()
190 return sprintf(buf, "%llu\n", time > 0 ? time : 0); in show_pw20_wait_time()
288 u64 time; in show_altivec_idle_wait_time() local
300 time = div_u64(tb_cycle, tb_ticks_per_usec / 1000); in show_altivec_idle_wait_time()
304 time = div_u64_rem(tb_cycle, tb_ticks_per_usec, in show_altivec_idle_wait_time()
306 time = time * 1000 + rem_us * 1000 / tb_ticks_per_usec; in show_altivec_idle_wait_time()
[all …]
Dnvram_64.c447 int *count, struct timespec *time, char **buf, in nvram_pstore_read() argument
469 time->tv_sec = 0; in nvram_pstore_read()
470 time->tv_nsec = 0; in nvram_pstore_read()
476 time->tv_sec = last_rtas_event; in nvram_pstore_read()
477 time->tv_nsec = 0; in nvram_pstore_read()
484 time->tv_sec = 0; in nvram_pstore_read()
485 time->tv_nsec = 0; in nvram_pstore_read()
494 time->tv_sec = 0; in nvram_pstore_read()
495 time->tv_nsec = 0; in nvram_pstore_read()
536 time->tv_sec = 0; in nvram_pstore_read()
[all …]
/linux-4.1.27/Documentation/hwmon/
Dlm7326 affects the conversion time of the LM73's analog-to-digital converter.
28 conversion time via the 'update_interval' sysfs attribute for the
42 used to change the conversion time:
71 conversion time actively in use.
73 Mathematically, the resolution can be derived from the conversion time
/linux-4.1.27/Documentation/ia64/
Defirtc.txt22 at first, the time of day service. This is required in order to access, in a
24 to initialize the system view of the time during boot.
33 EFI uses a slightly different way of representing the time, noticeably
36 expose this new way of representing time. Instead we use something very
47 To allow for a uniform interface between the legacy RTC and EFI time service,
55 The part of the driver gives access to the time of day service of EFI.
77 The driver takes care of converting back an forth between the EFI time and
89 Root privileges are required to be able to set the time of day.
115 struct rtc_time time;
/linux-4.1.27/arch/powerpc/platforms/ps3/
Dtime.c44 static void __maybe_unused _dump_time(int time, const char *func, in _dump_time() argument
49 to_tm(time, &tm); in _dump_time()
51 pr_debug("%s:%d time %d\n", func, line, time); in _dump_time()
/linux-4.1.27/Documentation/cpu-freq/
Dcpufreq-stats.txt37 All the statistics will be from the time the stats driver has been inserted
38 to the time when a read of a particular statistic is done. Obviously, stats
53 This gives the amount of time spent in each of the frequencies supported by
54 this CPU. The cat output will have "<frequency> <time>" pair in each line, which
55 will mean this CPU spent <time> usertime units of time at <frequency>. Output
57 is 10mS (similar to other time exported in /proc).
/linux-4.1.27/Documentation/mmc/
Dmmc-async-req.txt10 time between when an MMC request ends and another MMC request begins.
20 The increase in throughput is proportional to the time it takes to
23 more significant the prepare request time becomes. Roughly the expected
72 * The first chunk of the request should take the same time
73 * to prepare as the "MMC process command time".
74 * If prepare time exceeds MMC cmd time
/linux-4.1.27/sound/drivers/opl3/
Dopl3_midi.c162 unsigned int time; in opl3_get_voice() member
168 best[i].time = (unsigned int)(-1); /* XXX MAX_?INT really */ in opl3_get_voice()
181 voice_time = vp->time; in opl3_get_voice()
201 voice_time = (voice_time > vp->time) ? in opl3_get_voice()
202 voice_time : vp->time; in opl3_get_voice()
216 if (voice_time < bp->time) { in opl3_get_voice()
217 bp->time = voice_time; in opl3_get_voice()
578 vp->time = opl3->use_time++; in snd_opl3_note_on()
586 vp2->time = opl3->use_time++; in snd_opl3_note_on()
594 vp2->time = opl3->use_time++; in snd_opl3_note_on()
[all …]
/linux-4.1.27/include/uapi/sound/
Dasequencer.h241 struct snd_seq_real_time time; member
255 union snd_seq_timestamp time; /* time */ member
278 union snd_seq_timestamp time; /* schedule time */ member
291 union snd_seq_timestamp time; member
392 union snd_seq_timestamp time; member
492 struct snd_seq_real_time time; /* current time */ member
/linux-4.1.27/drivers/ptp/
DKconfig18 time stamping units, it can be possible to achieve
36 getting hardware time stamps on the PTP Ethernet packets
50 getting hardware time stamps on the PTP Ethernet packets
69 getting hardware time stamps on the PTP Ethernet packets
82 clock. The hardware supports time stamping of PTP packets
87 hardware time stamps on the PTP Ethernet packets using the
/linux-4.1.27/Documentation/input/
Djoystick-api.txt31 __u32 time; /* event timestamp in milliseconds */
112 2.4 js_event.time
115 The time an event was generated is stored in ``js_event.time''. It's a time
118 presses happened at the same time, and similar.
127 admittedly, a long time;)
165 mentioned, or because too much time elapses from one read to another
169 If time between reads is enough to fill the queue and lose an event,
170 the driver will switch to startup mode and next time you read it,
180 at a time using the typical read(2) functionality. For that, you would
214 JSIOGCVERSION is a good way to check in run-time whether the running
[all …]
/linux-4.1.27/Documentation/timers/
Dhrtimers.txt39 settimeofday or NTP time - further underlying our experience by
47 recascaded because the expected correct event arrives in time so they
91 timers at activation time. After looking at several possible solutions
95 file systems. The rbtree is solely used for time sorted ordering, while
101 queues while keeping the time-order intact.)
109 time-changing code had to fix them up one by one, and all of them had to
110 be enqueued again. The time-ordered enqueueing and the storage of the
111 expiry time in absolute time units removes all this complex and poorly
125 Basic data types: every time value, absolute or relative, is in a
130 compile time). The hybrid union type optimizes time conversions on 32bit
[all …]
/linux-4.1.27/arch/score/
DKconfig.debug15 some command-line options at build time by entering them here. In
20 bool "Enable run-time debugging"
23 If you say Y here, some debugging macros will do run-time checking.
/linux-4.1.27/Documentation/block/
Dcfq-iosched.txt79 multiple queues in the group at the same time and achieve higher throughput
88 to recompute the slice time for each process based on the target_latency set
91 system to get a full time slice.
97 This parameter is used to calculate the time slice for a process if cfq's
101 time for each process to issue I/O request before the cfq queue is switched.
118 device request queue in queue's slice time. The maximum number of request that
125 executed for a certain amount of time(time_slice) before switching to another
126 queue. This parameter is used to calculate the time slice of synchronous
137 queue's time slice, a request will not be dispatched if the number of request
187 time will be distributed like the following.
[all …]
Dstat.txt15 represent a single point in time.
26 read ticks milliseconds total wait time for read requests
30 write ticks milliseconds total wait time for write requests
32 io_ticks milliseconds total time this block device has been active
33 time_in_queue milliseconds total wait time for all requests
/linux-4.1.27/arch/x86/xen/
Dtime.c129 runnable = state.time[RUNSTATE_runnable] - snap->time[RUNSTATE_runnable]; in do_stolen_accounting()
130 offline = state.time[RUNSTATE_offline] - snap->time[RUNSTATE_offline]; in do_stolen_accounting()
150 &HYPERVISOR_shared_info->vcpu_info[0].time; in xen_tsc_khz()
161 src = &__this_cpu_read(xen_vcpu)->time; in xen_clocksource_read()
178 vcpu_time = &get_cpu_var(xen_vcpu)->time; in xen_read_wallclock()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_lib.h482 #define LWI_TIMEOUT(time, cb, data) \ argument
484 .lwi_timeout = time, \
491 #define LWI_TIMEOUT_INTERVAL(time, interval, cb, data) \ argument
493 .lwi_timeout = time, \
500 #define LWI_TIMEOUT_INTR(time, time_cb, sig_cb, data) \ argument
502 .lwi_timeout = time, \
510 #define LWI_TIMEOUT_INTR_ALL(time, time_cb, sig_cb, data) \ argument
512 .lwi_timeout = time, \
/linux-4.1.27/drivers/net/ethernet/hp/
Dhp100.c1389 unsigned long time; in hp100_BM_shutdown() local
1413 for (time = 0; time < 5000; time++) { in hp100_BM_shutdown()
1424 for (time = 0; time < 32000; time++) { in hp100_BM_shutdown()
1434 for (time = 0; time < 10000; time++) { in hp100_BM_shutdown()
1441 if (time >= 10000) in hp100_BM_shutdown()
1449 for (time = 0; time < 10000; time++) { in hp100_BM_shutdown()
2500 unsigned long time; in hp100_down_vg_link() local
2509 time = jiffies + (HZ / 4); in hp100_down_vg_link()
2515 } while (time_after(time, jiffies)); in hp100_down_vg_link()
2517 if (time_after_eq(jiffies, time)) /* no signal->no logout */ in hp100_down_vg_link()
[all …]
/linux-4.1.27/fs/pstore/
Dram.c152 static int ramoops_read_kmsg_hdr(char *buffer, struct timespec *time, in ramoops_read_kmsg_hdr() argument
158 if (sscanf(buffer, RAMOOPS_KERNMSG_HDR "%lu.%lu-%c\n%n", &time->tv_sec, in ramoops_read_kmsg_hdr()
159 &time->tv_nsec, &data_type, &header_length) == 3) { in ramoops_read_kmsg_hdr()
165 &time->tv_sec, &time->tv_nsec, &header_length) == 2) { in ramoops_read_kmsg_hdr()
168 time->tv_sec = 0; in ramoops_read_kmsg_hdr()
169 time->tv_nsec = 0; in ramoops_read_kmsg_hdr()
182 int *count, struct timespec *time, in ramoops_pstore_read() argument
211 header_length = ramoops_read_kmsg_hdr(persistent_ram_old(prz), time, in ramoops_pstore_read()
317 struct timespec time, struct pstore_info *psi) in ramoops_pstore_erase() argument
/linux-4.1.27/fs/ntfs/
Dtime.h85 static inline struct timespec ntfs2utc(const sle64 time) in ntfs2utc() argument
90 u64 t = (u64)(sle64_to_cpu(time) - NTFS_TIME_OFFSET); in ntfs2utc()
/linux-4.1.27/Documentation/x86/
Dearly-microcode.txt5 Kernel can update microcode in early phase of boot time. Loading microcode early
6 can fix CPU issues before they are observed during kernel boot time.
9 file and loaded to CPUs during boot time.
13 during boot time. The microcode file in cpio name space is:
/linux-4.1.27/Documentation/devicetree/bindings/regulator/
Danatop-regulator.txt13 - anatop-delay-reg-offset: Anatop MFD step time register offset
14 - anatop-delay-bit-shift: Bit shift for the step time register
15 - anatop-delay-bit-width: Number of bits used in the step time register
Dti-abb-regulator.txt20 - ti,settling-time: Settling time in uSecs from SoC documentation for ABB module
21 to settle down(target time for SR2_WTCNT_VALUE).
23 computing settling time from SoC Documentation for ABB module(clock
78 ti,settling-time = <30>;
98 ti,settling-time = <50>;
125 ti,settling-time = <50>;
/linux-4.1.27/Documentation/devicetree/bindings/serial/
Drs485.txt16 - linux,rs485-enabled-at-boot-time: empty property telling to enable the rs485
17 feature at boot time. It can be disabled later with proper ioctl.
28 linux,rs485-enabled-at-boot-time;
/linux-4.1.27/arch/xtensa/
DKconfig.debug19 Enable this function to disable link-time optimizations.
23 Enabling this option improves the link time but increases the
24 code size, and possibly execution time.
/linux-4.1.27/tools/perf/util/
Dthread-stack.c553 return thread_stack__push_cp(thread->ts, ip, sample->time, ref, cp, in thread_stack__bottom()
572 sample->time, ref, in thread_stack__no_call_return()
585 return thread_stack__push_cp(ts, 0, sample->time, ref, in thread_stack__no_call_return()
592 sample->time, ref, in thread_stack__no_call_return()
610 err = thread_stack__push_cp(ts, sample->addr, sample->time, ref, cp, in thread_stack__no_call_return()
615 return thread_stack__pop_cp(thread, ts, sample->addr, sample->time, ref, in thread_stack__no_call_return()
659 return thread_stack__push_cp(ts, ret_addr, sample->time, ref, cp, in thread_stack__trace_end()
707 ts->last_time = sample->time; in thread_stack__process()
726 err = thread_stack__push_cp(ts, ret_addr, sample->time, ref, in thread_stack__process()
733 sample->time, ref, from_al->sym); in thread_stack__process()
[all …]
/linux-4.1.27/Documentation/thermal/
Dintel_powerclamp.txt66 If the kernel can also inject idle time to the system, then a
79 thread synchronizes its idle time and duration, based on the rounding
87 Alignment of idle time around jiffies ensures scalability for HZ
92 until the next time interval.
94 The NOHZ schedule tick is disabled during idle time, but interrupts
120 time is considered largely as a non-causal system where its behavior
122 intel_powerclamp driver attempts to enforce the desired idle time
124 powerclamp moniors the actual idle for a given time window and adjust
205 idle time is injected when such a condition is detected. Currently,
230 forced idle time, excessive interrupts could result in less
[all …]
/linux-4.1.27/drivers/tty/hvc/
Dhvc_dcc.c53 unsigned long time = jiffies + (HZ / 10); in hvc_dcc_check() local
58 while (time_is_after_jiffies(time)) { in hvc_dcc_check()
/linux-4.1.27/sound/drivers/
DKconfig90 The loopback device allows time sychronization with an external
91 timing source using the time shift universal control (+-20%
92 of system time).
194 snd-ac97-codec driver module, where 'X' is the time-out
196 seconds of idle time the driver must count before it may
205 In this case, the time-out is set to 10 seconds; setting
206 the time-out to 1 second (the minimum activation value)
214 int "Default time-out for AC97 power-save mode"
218 The default time-out value in seconds for AC97 automatic
Dmts64.c76 u8 time[4]; /* [0]=hh, [1]=mm, [2]=ss, [3]=ff */ member
475 mts->time[0], mts->time[1], in snd_mts64_ctl_smpte_switch_put()
476 mts->time[2], mts->time[3], in snd_mts64_ctl_smpte_switch_put()
535 uctl->value.integer.value[0] = mts->time[idx]; in snd_mts64_ctl_smpte_time_get()
546 unsigned int time = uctl->value.integer.value[0] % 60; in snd_mts64_ctl_smpte_time_put() local
550 if (mts->time[idx] != time) { in snd_mts64_ctl_smpte_time_put()
552 mts->time[idx] = time; in snd_mts64_ctl_smpte_time_put()
/linux-4.1.27/Documentation/trace/
Devents-nmi.txt12 NMI handlers are hogging large amounts of CPU time. The kernel
28 really hogging a lot of CPU time, like a millisecond at a time.
/linux-4.1.27/arch/arm/boot/dts/
Daks-cdu.dts33 linux,rs485-enabled-at-boot-time;
39 linux,rs485-enabled-at-boot-time;
45 linux,rs485-enabled-at-boot-time;
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Dti,tas5086.txt12 assert a hardware reset at probe time.
14 - ti,charge-period: This property should contain the time in microseconds
17 waits for this period of time before starting the
/linux-4.1.27/tools/perf/Documentation/
Dperf-timechart.txt30 There are also poll bars which show how much time application spent
69 --io-min-time=<nsecs>::
70 Draw small events as if they lasted min-time. Useful when you need
72 suffix to specify time in milliseconds or microseconds.
77 It's possible to specify ms or us suffix to specify time in

123456789