Searched refs:time (Results 176 - 200 of 1944) sorted by relevance

1234567891011>>

/linux-master/arch/powerpc/include/asm/
H A Dcputime.h7 * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in
8 * the same units as the timebase. Otherwise we measure cpu time
18 #include <linux/time.h>
20 #include <asm/time.h>
/linux-master/tools/testing/selftests/vDSO/
H A Dvdso_test_clock_getres.c21 #include <time.h>
24 #include <sys/time.h>
/linux-master/arch/arm/mach-sa1100/
H A Dpm.c29 #include <linux/time.h>
34 #include <asm/mach/time.h>
/linux-master/drivers/cpufreq/
H A Dcpufreq_stats.c31 unsigned long long time)
35 stats->time_in_state[stats->last_index] += cur_time - time;
48 /* Adjust for the time elapsed since reset was requested */
73 unsigned long long time; local
85 time = local_clock() - READ_ONCE(stats->reset_time);
87 time = 0;
90 time = stats->time_in_state[i];
92 time += local_clock() - stats->last_time;
96 nsec_to_clock_t(time));
30 cpufreq_stats_update(struct cpufreq_stats *stats, unsigned long long time) argument
/linux-master/arch/x86/entry/vdso/
H A Dvclock_gettime.c3 * Fast user context implementation of clock_gettime, gettimeofday, and time.
11 #include <linux/time.h>
31 __kernel_old_time_t time(__kernel_old_time_t *t) __attribute__((weak, alias("__vdso_time")));
/linux-master/tools/testing/selftests/bpf/progs/
H A Dexceptions.c335 u64 time = bpf_ktime_get_ns(); local
337 bpf_assert_range(time, 0, ~0ULL);
344 u64 time = bpf_ktime_get_ns(); local
346 bpf_assert_range_with(time, 0, ~0ULL, 10);
353 u64 time = bpf_ktime_get_ns(); local
355 bpf_assert_range(time, -100, 100);
362 u64 time = bpf_ktime_get_ns(); local
364 bpf_assert_range_with(time, -1000, 1000, 10);
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_usb_core.c130 u64 time; local
142 time = (tbtt - PRE_TBTT_USEC) * 1000ull;
143 hrtimer_start(&dev->pre_tbtt_timer, time, HRTIMER_MODE_REL);
149 u64 tsf, time; local
161 time = ((1000000000ull * dev->mt76.beacon_int) >> 10);
163 /* Adjust time to trigger hrtimer 8ms before TBTT */
165 time -= (PRE_TBTT_USEC - tbtt) * 1000ull;
167 time += (tbtt - PRE_TBTT_USEC) * 1000ull;
169 hrtimer_start(&dev->pre_tbtt_timer, time, HRTIMER_MODE_REL);
/linux-master/tools/testing/selftests/damon/
H A Dsysfs_update_schemes_tried_regions_wss_estimation.py5 import time namespace
31 time.sleep(0.1)
H A Ddamos_apply_interval.py5 import time namespace
45 time.sleep(0.1)
H A Ddamos_quota.py5 import time namespace
39 time.sleep(0.1)
/linux-master/net/netfilter/
H A Dxt_time.c6 * This is a module which is used for time matching
43 * Since time progresses forward, it is best to organize this array in reverse,
44 * to minimize lookup time.
80 static inline unsigned int localtime_1(struct xtm *r, time64_t time) argument
85 div_u64_rem(time, SECONDS_PER_DAY, &v);
93 static inline void localtime_2(struct xtm *r, time64_t time) argument
99 r->dse = div_u64(time, SECONDS_PER_DAY);
108 static void localtime_3(struct xtm *r, time64_t time) argument
166 * We need real time here, but we can neither use skb->tstamp
176 * If you match against processing time (ktime_get_real_second
[all...]
/linux-master/drivers/watchdog/
H A Drn5t618_wdt.c39 unsigned int time; member in struct:__anon2922
54 if (rn5t618_wdt_map[i].time + 1 >= t)
65 wdt_dev->timeout = rn5t618_wdt_map[i].time;
154 min_timeout = rn5t618_wdt_map[0].time;
155 max_timeout = rn5t618_wdt_map[ARRAY_SIZE(rn5t618_wdt_map) - 1].time;
H A Dsbc_fitpc2_wdt.c122 int time; local
144 ret = get_user(time, (int __user *)arg);
148 if (time < 31 || time > 255) {
153 margin = time;
H A Dm54xx_wdt.c123 int time; local
145 ret = get_user(time, (int *)arg);
149 if (time <= 0 || time > 30) {
154 heartbeat = time;
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-rds-gen.c37 * Group 56 contains the time (group 4A).
49 unsigned time; local
98 time = (tm.tm_hour << 12) |
106 data[2].lsb |= (time >> 16) & 1;
109 data[3].lsb = time & 0xff;
110 data[3].msb = (time >> 8) & 0xff;
/linux-master/drivers/gpu/drm/i915/gt/
H A Dselftest_gt_pm.c101 u64 time; local
109 time = intel_gt_clock_interval_to_ns(engine->gt, cycles);
113 engine->name, cycles, time, dt, expected,
116 if (9 * time < 8 * dt || 8 * time > 9 * dt) {
/linux-master/drivers/rtc/
H A Ddev.c253 * use the local wall clock time.
264 if (copy_to_user(uarg, &alarm.time, sizeof(tm)))
271 if (copy_from_user(&alarm.time, uarg, sizeof(tm)))
276 alarm.time.tm_wday = -1;
277 alarm.time.tm_yday = -1;
278 alarm.time.tm_isdst = -1;
301 alarm.time.tm_mday = tm.tm_mday;
302 alarm.time.tm_mon = tm.tm_mon;
303 alarm.time.tm_year = tm.tm_year;
304 err = rtc_valid_tm(&alarm.time);
[all...]
H A Drtc-ds1374.c85 static int ds1374_read_rtc(struct i2c_client *client, u32 *time, argument
102 for (i = nbytes - 1, *time = 0; i >= 0; i--)
103 *time = (*time << 8) | buf[i];
108 static int ds1374_write_rtc(struct i2c_client *client, u32 time, argument
120 buf[i] = time & 0xff;
121 time >>= 8;
138 "oscillator discontinuity flagged, time unreliable\n");
159 static int ds1374_read_time(struct device *dev, struct rtc_time *time) argument
167 rtc_time64_to_tm(itime, time);
172 ds1374_set_time(struct device *dev, struct rtc_time *time) argument
[all...]
H A Dsysfs.c20 * the local time and change to match daylight savings time. That affects
21 * attributes including date, time, since_epoch, and wakealarm.
58 static DEVICE_ATTR_RO(time);
68 time64_t time; local
70 time = rtc_tm_to_time64(&tm);
71 retval = sprintf(buf, "%lld\n", time);
106 * hctosys_show - indicate if the given RTC set the system time
144 alarm = rtc_tm_to_time64(&alm.time);
164 * by writing another time,
[all...]
H A Drtc-cros-ec.c51 *response = msg.data.time;
68 msg.data.time = param;
76 /* Read the current time from the EC. */
82 u32 time; local
84 ret = cros_ec_rtc_get(cros_ec, EC_CMD_RTC_GET_VALUE, &time);
86 dev_err(dev, "error getting time: %d\n", ret);
90 rtc_time64_to_tm(time, tm);
95 /* Set the current EC time. */
101 time64_t time = rtc_tm_to_time64(tm); local
103 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_VALUE, (u32)time);
[all...]
/linux-master/tools/testing/selftests/timers/
H A Dfreq-step.c15 #include <time.h>
34 double time; member in struct:sample
72 sample->time = ts1.tv_sec + ts1.tv_nsec / 1e9;
85 txc.time.tv_sec = 0;
86 txc.time.tv_usec = 0;
120 x = samples[i].time;
135 x = samples[i].time;
H A Dthreadtest.c22 #include <sys/time.h>
51 /* look for any time inconsistencies */
149 printf(" -t: time to run\n");
162 start = time(0);
172 while (time(&now) < start + runtime) {
/linux-master/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_ps.c68 void rtl92e_enter_sleep(struct net_device *dev, u64 time) argument
78 time -= msecs_to_jiffies(8 + 16 + 7);
81 if (time_before((unsigned long)time, timeout)) {
84 time - jiffies, msecs_to_jiffies(MIN_SLEEP_TIME));
88 if (time_after((unsigned long)time, timeout)) {
90 time - jiffies, msecs_to_jiffies(MAX_SLEEP_TIME));
94 tmp = time - jiffies;
/linux-master/drivers/char/ipmi/
H A Dipmi_kcs_sm.c221 long time)
224 kcs->ibf_timeout -= time;
226 start_error_recovery(kcs, "IBF not ready in time");
237 long time)
240 kcs->obf_timeout -= time;
243 start_error_recovery(kcs, "OBF not ready in time");
336 static enum si_sm_result kcs_event(struct si_sm_data *kcs, long time) argument
348 if (!check_ibf(kcs, status, time))
429 if (!check_obf(kcs, status, time))
472 if (!check_obf(kcs, status, time))
220 check_ibf(struct si_sm_data *kcs, unsigned char status, long time) argument
236 check_obf(struct si_sm_data *kcs, unsigned char status, long time) argument
[all...]
/linux-master/drivers/gpu/drm/nouveau/dispnv50/
H A Dovly827e.c72 s64 time = nvif_msec(device, 2000ULL, local
77 return time < 0 ? time : 0;

Completed in 247 milliseconds

1234567891011>>