Searched refs:now (Results 1 - 25 of 179) sorted by relevance

12345678

/drivers/rtc/
H A Dsystohc.c12 * @now: Current time of day
23 int rtc_set_ntp_time(struct timespec now) argument
29 if (now.tv_nsec < (NSEC_PER_SEC >> 1))
30 rtc_time_to_tm(now.tv_sec, &tm);
32 rtc_time_to_tm(now.tv_sec + 1, &tm);
H A Drtc-ps3.c49 unsigned long now; local
51 rtc_tm_to_time(tm, &now);
52 ps3_os_area_set_rtc_diff(now - read_rtc());
H A Dinterface.c150 struct rtc_time before, now; local
203 memcpy(&before, &now, sizeof(struct rtc_time));
216 err = rtc_read_time(rtc, &now);
221 } while ( before.tm_min != now.tm_min
222 || before.tm_hour != now.tm_hour
223 || before.tm_mon != now.tm_mon
224 || before.tm_year != now.tm_year);
230 alarm->time.tm_sec = now.tm_sec;
232 alarm->time.tm_min = now.tm_min;
234 alarm->time.tm_hour = now
341 long now, scheduled; local
401 struct rtc_time now; local
482 ktime_t now, onesec; local
860 ktime_t now; local
[all...]
H A Drtc-bfin.c86 static inline u32 rtc_time_to_bfin(unsigned long now) argument
88 u32 sec = (now % 60);
89 u32 min = (now % (60 * 60)) / 60;
90 u32 hour = (now % (60 * 60 * 24)) / (60 * 60);
91 u32 days = (now / (60 * 60 * 24));
275 unsigned long now; local
279 ret = rtc_tm_to_time(tm, &now);
283 bfin_write_RTC_STAT(rtc_time_to_bfin(now));
H A Drtc-at32ap700x.c73 unsigned long now; local
75 now = rtc_readl(rtc, VAL);
76 rtc_time_to_tm(now, tm);
84 unsigned long now; local
87 ret = rtc_tm_to_time(tm, &now);
89 rtc_writel(rtc, VAL, now);
H A Drtc-sysfs.c166 unsigned long now, alarm; local
179 rtc_tm_to_time(&alm.time, &now);
192 alarm += now;
194 if (alarm > now || push) {
217 alarm = now + 300;
H A Drtc-ds1374.c173 u32 now, cur_alarm; local
190 ret = ds1374_read_rtc(client, &now, DS1374_REG_TOD0, 4);
198 rtc_time_to_tm(now + cur_alarm, &alarm->time);
211 struct rtc_time now; local
219 ret = ds1374_read_time(dev, &now);
224 rtc_tm_to_time(&now, &itime);
H A Drtc-imxdi.c200 unsigned long now; local
202 now = __raw_readl(imxdi->ioaddr + DTCMR);
203 rtc_time_to_tm(now, tm);
270 unsigned long now; local
279 now = __raw_readl(imxdi->ioaddr + DTCMR);
280 if (alarm_time < now)
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_marker.c78 u64 now; local
81 now = ktime_get_raw_ns();
85 queue->lag_time = now;
94 queue->lag = now - marker->submitted;
95 queue->lag_time = now;
109 u64 now; local
112 now = ktime_get_raw_ns();
113 queue->lag += now - queue->lag_time;
114 queue->lag_time = now;
/drivers/net/wimax/i2400m/
H A Di2400m-usb.h131 unsigned long now; local
133 now = jiffies;
134 if (now - edc->timestart > timeframe) {
136 edc->timestart = now;
139 edc->timestart = now;
/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_time.h84 static inline void cfs_slow_warning(unsigned long now, int seconds, char *msg) argument
87 cfs_time_add(now, cfs_time_seconds(15))))
89 cfs_duration_sec(cfs_time_sub(cfs_time_current(), now)));
/drivers/staging/lustre/lnet/selftest/
H A Dtimer.c125 stt_expire_list(struct list_head *slot, unsigned long now) argument
133 if (cfs_time_after(timer->stt_expires, now))
152 unsigned long now; local
155 now = get_seconds();
156 this_slot = now & STTIMER_SLOTTIMEMASK;
161 expired += stt_expire_list(STTIMER_SLOT(this_slot), now);
165 *last = now & STTIMER_SLOTTIMEMASK;
/drivers/block/drbd/
H A Ddrbd_debugfs.c95 static void seq_print_one_request(struct seq_file *m, struct drbd_request *req, unsigned long now) argument
107 seq_printf(m, "\t%d", jiffies_to_msecs(now - req->start_jif));
108 seq_print_age_or_dash(m, s & RQ_IN_ACT_LOG, now - req->in_actlog_jif);
109 seq_print_age_or_dash(m, s & RQ_LOCAL_PENDING, now - req->pre_submit_jif);
112 seq_print_age_or_dash(m, s & RQ_NET_SENT, now - req->pre_send_jif);
113 seq_print_age_or_dash(m, (s & RQ_NET_SENT) && !(s & RQ_NET_PENDING), now - req->acked_jif);
114 seq_print_age_or_dash(m, s & RQ_NET_DONE, now - req->net_done_jif);
121 static void seq_print_minor_vnr_req(struct seq_file *m, struct drbd_request *req, unsigned long now) argument
124 seq_print_one_request(m, req, now);
127 static void seq_print_resource_pending_meta_io(struct seq_file *m, struct drbd_resource *resource, unsigned long now) argument
155 seq_print_waiting_for_AL(struct seq_file *m, struct drbd_resource *resource, unsigned long now) argument
190 seq_print_device_bitmap_io(struct seq_file *m, struct drbd_device *device, unsigned long now) argument
215 seq_print_resource_pending_bitmap_io(struct seq_file *m, struct drbd_resource *resource, unsigned long now) argument
251 seq_print_peer_request(struct seq_file *m, struct drbd_device *device, struct list_head *lh, unsigned long now) argument
276 seq_print_device_peer_requests(struct seq_file *m, struct drbd_device *device, unsigned long now) argument
292 seq_print_resource_pending_peer_requests(struct seq_file *m, struct drbd_resource *resource, unsigned long now) argument
305 seq_print_resource_transfer_log_summary(struct seq_file *m, struct drbd_resource *resource, struct drbd_connection *connection, unsigned long now) argument
531 seq_print_one_timing_detail(struct seq_file *m, const struct drbd_thread_timing_details *tdp, unsigned long now) argument
550 seq_print_timing_details(struct seq_file *m, const char *title, unsigned int cb_nr, struct drbd_thread_timing_details *tdp, unsigned long now) argument
608 unsigned long now = jiffies; local
739 unsigned long now = jiffies; local
[all...]
/drivers/md/bcache/
H A Dutil.c171 uint64_t now, duration, last; local
175 now = local_clock();
176 duration = time_after64(now, start_time)
177 ? now - start_time : 0;
178 last = time_after64(now, stats->last)
179 ? now - stats->last : 0;
194 stats->last = now ?: 1;
210 uint64_t now = local_clock(); local
214 if (time_before64(now + NSEC_PER_SEC, d->next))
215 d->next = now
[all...]
/drivers/ide/
H A Dide-park.c93 unsigned long now; local
100 now = jiffies;
102 time_after(drive->sleep, now))
103 msecs = jiffies_to_msecs(drive->sleep - now);
/drivers/misc/ibmasm/
H A Dibmasm.h56 struct timeval now; local
57 do_gettimeofday(&now);
58 sprintf(buf, "%lu.%lu", now.tv_sec, now.tv_usec);
/drivers/net/ethernet/intel/e1000e/
H A Dptp.c93 s64 now; local
96 now = timecounter_read(&adapter->tc);
97 now += delta;
98 timecounter_init(&adapter->tc, &adapter->cc, now);
/drivers/gpu/drm/via/
H A Dvia_irq.c91 static unsigned time_diff(struct timeval *now, struct timeval *then) argument
93 return (now->tv_usec >= then->tv_usec) ?
94 now->tv_usec - then->tv_usec :
95 1000000 - (then->tv_usec - now->tv_usec);
352 struct timeval now; local
386 do_gettimeofday(&now);
387 irqwait->reply.tval_sec = now.tv_sec;
388 irqwait->reply.tval_usec = now.tv_usec;
/drivers/gpu/drm/
H A Ddrm_irq.c773 ktime_t now; local
775 now = drm_timestamp_monotonic ? ktime_get() : ktime_get_real();
776 return ktime_to_timeval(now);
885 unsigned long seq, struct timeval *now)
889 e->event.tv_sec = now->tv_sec;
890 e->event.tv_usec = now->tv_usec;
911 struct timeval now; local
914 seq = drm_vblank_count_and_time(dev, crtc, &now);
918 now = get_drm_timestamp();
921 send_vblank_event(dev, e, seq, &now);
883 send_vblank_event(struct drm_device *dev, struct drm_pending_vblank_event *e, unsigned long seq, struct timeval *now) argument
1127 struct timeval now; local
1379 struct timeval now; local
1545 struct timeval now; local
1565 struct timeval now; local
[all...]
/drivers/base/power/
H A Dwakeup.c476 static void update_prevent_sleep_time(struct wakeup_source *ws, ktime_t now) argument
478 ktime_t delta = ktime_sub(now, ws->start_prevent_time);
483 ktime_t now) {}
498 ktime_t now; local
517 now = ktime_get();
518 duration = ktime_sub(now, ws->last_time);
523 ws->last_time = now;
528 update_prevent_sleep_time(ws, now);
841 ktime_t now = ktime_get(); local
850 ws->start_prevent_time = now;
482 update_prevent_sleep_time(struct wakeup_source *ws, ktime_t now) argument
886 ktime_t now = ktime_get(); local
[all...]
/drivers/clocksource/
H A Dtimer-prima2.c93 unsigned long now, next; local
97 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
98 next = now + delta;
102 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
104 return next - now > delta ? -ETIME : 0;
/drivers/lguest/
H A Dhypercalls.c280 * NOTIFY to the Launcher, we want to return now. Otherwise we do
307 struct timespec now; local
308 ktime_get_real_ts(&now);
310 &now, sizeof(struct timespec)))
/drivers/staging/ozwpan/
H A Dozusbsvc.c130 struct timespec ts, now; local
142 getnstimeofday(&now);
144 if (now.tv_sec != ts.tv_sec)
/drivers/staging/media/lirc/
H A Dlirc_igorplugusb.c299 struct timeval now; local
308 do_gettimeofday(&now);
309 timediff = now.tv_sec - ir->last_time.tv_sec;
314 timediff += now.tv_usec - ir->last_time.tv_usec;
316 ir->last_time.tv_sec = now.tv_sec;
317 ir->last_time.tv_usec = now.tv_usec;
/drivers/clk/
H A Dclk-divider.c235 unsigned long rate, unsigned long now, unsigned long best)
238 return abs(rate - now) < abs(rate - best);
240 return now <= rate && now > best;
260 unsigned long parent_rate, best = 0, now, maxdiv; local
304 now = DIV_ROUND_UP(parent_rate, i);
305 if (_is_best_div(divider, rate, now, best)) {
307 best = now;
234 _is_best_div(struct clk_divider *divider, unsigned long rate, unsigned long now, unsigned long best) argument

Completed in 518 milliseconds

12345678