Home
last modified time | relevance | path

Searched refs:ts (Results 126 – 150 of 1191) sorted by relevance

12345678910>>...48

/openbmc/linux/drivers/media/cec/core/
H A Dcec-pin.c668 delta = ktime_us_delta(ts, pin->ts); in cec_pin_rx_states()
683 pin->ts = ts; in cec_pin_rx_states()
689 delta = ktime_us_delta(ts, pin->ts); in cec_pin_rx_states()
718 pin->ts = ts; in cec_pin_rx_states()
747 delta = ktime_us_delta(ts, pin->ts); in cec_pin_rx_states()
782 pin->ts = ts; in cec_pin_rx_states()
821 pin->ts = ts; in cec_pin_rx_states()
846 ktime_t ts; in cec_pin_timer() local
937 pin->ts = ts; in cec_pin_timer()
953 pin->ts = ts; in cec_pin_timer()
[all …]
/openbmc/linux/rust/macros/
H A Dlib.rs66 pub fn module(ts: TokenStream) -> TokenStream { in module()
67 module::module(ts) in module()
117 pub fn vtable(attr: TokenStream, ts: TokenStream) -> TokenStream { in vtable()
118 vtable::vtable(attr, ts) in vtable()
160 pub fn concat_idents(ts: TokenStream) -> TokenStream { in concat_idents()
161 concat_idents::concat_idents(ts) in concat_idents()
/openbmc/phosphor-fan-presence/presence/test/
H A Dfallbacktest.cpp72 TestSensor ts; in TEST() local
73 ts._present = true; in TEST()
79 ASSERT_EQ(ts.failed, 0); in TEST()
80 ASSERT_EQ(ts.stopped, 0); in TEST()
81 ASSERT_EQ(ts.started, 1); in TEST()
85 ASSERT_EQ(ts.failed, 0); in TEST()
86 ASSERT_EQ(ts.stopped, 0); in TEST()
87 ASSERT_EQ(ts.started, 1); in TEST()
91 ASSERT_EQ(ts.failed, 0); in TEST()
92 ASSERT_EQ(ts.stopped, 0); in TEST()
[all …]
/openbmc/linux/kernel/time/
H A Dtimekeeping.c135 return ts; in tk_xtime()
831 ts->tv_nsec = 0; in ktime_get_real_ts64()
987 ts->tv_nsec = 0; in ktime_get_ts64()
1175 ts->sys_monoraw = ktime_sub_ns(ts->sys_monoraw, corr_raw); in adjust_historical_crosststamp()
1176 ts->sys_realtime = ktime_sub_ns(ts->sys_realtime, corr_real); in adjust_historical_crosststamp()
1189 if (ts >= start && ts <= end) in timestamp_in_interval()
1191 if (start > end && (ts >= start || ts <= end)) in timestamp_in_interval()
1349 add_device_randomness(ts, sizeof(*ts)); in do_settimeofday64()
1369 if (ts->tv_nsec < 0 || ts->tv_nsec >= NSEC_PER_SEC) in timekeeping_inject_offset()
1586 ts->tv_sec = 0; in read_persistent_clock64()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ptpd/ptpd/
H A DFixed-100-CPU-using-issue-by-adding-minimum-POSIX-ti.patch55 ts.tv_sec = interval;
56 ts.tv_nsec = (interval - ts.tv_sec) * 1E9;
58 + if(!ts.tv_sec && ts.tv_nsec < EVENTTIMER_MIN_INTERVAL_US * 1000) {
59 + ts.tv_nsec = EVENTTIMER_MIN_INTERVAL_US * 1000;
62 DBGV("Timer %s start requested at %d.%4d sec interval\n", timer->id, ts.tv_sec, ts.tv_nsec);
64 its.it_interval = ts;
/openbmc/linux/arch/mips/include/asm/vdso/
H A Dgettimeofday.h55 register struct __kernel_timespec *ts asm("a1") = _ts; in clock_gettime_fallback()
68 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime_fallback()
81 register struct __kernel_timespec *ts asm("a1") = _ts; in clock_getres_fallback()
94 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres_fallback()
109 register struct old_timespec32 *ts asm("a1") = _ts; in clock_gettime32_fallback()
118 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime32_fallback()
131 register struct old_timespec32 *ts asm("a1") = _ts; in clock_getres32_fallback()
140 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres32_fallback()
/openbmc/linux/drivers/net/ethernet/renesas/
H A Dravb_ptp.c34 ts->tv_nsec = ravb_read(ndev, GCT0); in ravb_ptp_time_read()
35 ts->tv_sec = ravb_read(ndev, GCT1) | in ravb_ptp_time_read()
43 const struct timespec64 *ts) in ravb_ptp_time_write() argument
56 ravb_write(ndev, ts->tv_nsec, GTO0); in ravb_ptp_time_write()
57 ravb_write(ndev, ts->tv_sec, GTO1); in ravb_ptp_time_write()
124 struct timespec64 ts; in ravb_ptp_adjtime() local
129 error = ravb_ptp_time_read(priv, &ts); in ravb_ptp_adjtime()
133 ts = ns_to_timespec64(now + delta); in ravb_ptp_adjtime()
149 error = ravb_ptp_time_read(priv, ts); in ravb_ptp_gettime64()
156 const struct timespec64 *ts) in ravb_ptp_settime64() argument
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dallwinner,sun4i-a10-ts.yaml4 $id: http://devicetree.org/schemas/mfd/allwinner,sun4i-a10-ts.yaml#
19 - allwinner,sun4i-a10-ts
20 - allwinner,sun5i-a13-ts
21 - allwinner,sun6i-a31-ts
29 allwinner,ts-attached:
66 compatible = "allwinner,sun4i-a10-ts";
69 allwinner,ts-attached;
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_clock.c22 static inline u64 timespec_to_us(const struct timespec64 *ts) in timespec_to_us() argument
24 return (u64)DIV_ROUND_CLOSEST_ULL(timespec64_to_ns(ts), NSEC_PER_USEC); in timespec_to_us()
27 static inline u64 timespec_to_ms(const struct timespec64 *ts) in timespec_to_ms() argument
29 return (u64)DIV_ROUND_CLOSEST_ULL(timespec64_to_ns(ts), NSEC_PER_MSEC); in timespec_to_ms()
34 struct timespec64 ts; in adf_clock_get_current_time() local
36 ktime_get_real_ts64(&ts); in adf_clock_get_current_time()
37 return timespec_to_ms(&ts); in adf_clock_get_current_time()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dar9003_mac.c356 struct ath_tx_status *ts) in ar9003_hw_proc_txdesc() argument
379 ts->tid = MS(status, AR_TxTid); in ar9003_hw_proc_txdesc()
383 ts->ts_tstamp = ads->status4; in ar9003_hw_proc_txdesc()
384 ts->ts_status = 0; in ar9003_hw_proc_txdesc()
385 ts->ts_flags = 0; in ar9003_hw_proc_txdesc()
388 ts->ts_status |= ATH9K_TXERR_XTXOP; in ar9003_hw_proc_txdesc()
394 ts->ts_flags |= ATH9K_TX_BA; in ar9003_hw_proc_txdesc()
395 ts->ba_low = ads->status5; in ar9003_hw_proc_txdesc()
396 ts->ba_high = ads->status6; in ar9003_hw_proc_txdesc()
403 ts->ts_status |= ATH9K_TXERR_FILT; in ar9003_hw_proc_txdesc()
[all …]
/openbmc/u-boot/drivers/fpga/
H A Dspartan2.c111 unsigned long ts; /* timestamp */ in spartan2_sp_load() local
154 ts = get_timer (0); /* get current time */ in spartan2_sp_load()
158 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load()
181 ts = get_timer (0); /* get current time */ in spartan2_sp_load()
191 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load()
214 ts = get_timer (0); /* get current time */ in spartan2_sp_load()
223 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load()
313 unsigned long ts; /* timestamp */ in spartan2_ss_load() local
340 ts = get_timer (0); /* get current time */ in spartan2_ss_load()
353 ts = get_timer (0); /* get current time */ in spartan2_ss_load()
[all …]
H A Dspartan3.c115 unsigned long ts; /* timestamp */ in spartan3_sp_load() local
158 ts = get_timer (0); /* get current time */ in spartan3_sp_load()
162 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load()
185 ts = get_timer (0); /* get current time */ in spartan3_sp_load()
195 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load()
218 ts = get_timer (0); /* get current time */ in spartan3_sp_load()
229 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load()
319 unsigned long ts; /* timestamp */ in spartan3_ss_load() local
346 ts = get_timer (0); /* get current time */ in spartan3_ss_load()
361 ts = get_timer (0); /* get current time */ in spartan3_ss_load()
[all …]
/openbmc/linux/sound/soc/meson/
H A Daxg-tdm-interface.c150 struct axg_tdm_stream *ts = in axg_tdm_iface_startup() local
154 if (!axg_tdm_slots_total(ts->mask)) { in axg_tdm_iface_startup()
207 ts->width = params_width(params); in axg_tdm_iface_set_stream()
356 struct axg_tdm_stream *ts = in axg_tdm_iface_trigger() local
363 axg_tdm_stream_start(ts); in axg_tdm_iface_trigger()
368 axg_tdm_stream_stop(ts); in axg_tdm_iface_trigger()
384 if (ts) in axg_tdm_iface_remove_dai()
385 axg_tdm_stream_free(ts); in axg_tdm_iface_remove_dai()
397 struct axg_tdm_stream *ts; in axg_tdm_iface_probe_dai() local
402 ts = axg_tdm_stream_alloc(iface); in axg_tdm_iface_probe_dai()
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Degalax_ts.c66 struct egalax_ts *ts = dev_id; in egalax_ts_interrupt() local
67 struct input_dev *input_dev = ts->input_dev; in egalax_ts_interrupt()
68 struct i2c_client *client = ts->client; in egalax_ts_interrupt()
160 struct egalax_ts *ts; in egalax_ts_probe() local
164 ts = devm_kzalloc(&client->dev, sizeof(struct egalax_ts), GFP_KERNEL); in egalax_ts_probe()
165 if (!ts) { in egalax_ts_probe()
176 ts->client = client; in egalax_ts_probe()
177 ts->input_dev = input_dev; in egalax_ts_probe()
207 IRQF_ONESHOT, "egalax_ts", ts); in egalax_ts_probe()
213 error = input_register_device(ts->input_dev); in egalax_ts_probe()
H A Dcyttsp4_i2c.c32 struct cyttsp4 *ts; in cyttsp4_i2c_probe() local
39 ts = cyttsp4_probe(&cyttsp4_i2c_bus_ops, &client->dev, client->irq, in cyttsp4_i2c_probe()
42 return PTR_ERR_OR_ZERO(ts); in cyttsp4_i2c_probe()
47 struct cyttsp4 *ts = i2c_get_clientdata(client); in cyttsp4_i2c_remove() local
49 cyttsp4_remove(ts); in cyttsp4_i2c_remove()
H A Dcyttsp_i2c.c33 struct cyttsp *ts; in cyttsp_i2c_probe() local
40 ts = cyttsp_probe(&cyttsp_i2c_bus_ops, &client->dev, client->irq, in cyttsp_i2c_probe()
43 if (IS_ERR(ts)) in cyttsp_i2c_probe()
44 return PTR_ERR(ts); in cyttsp_i2c_probe()
46 i2c_set_clientdata(client, ts); in cyttsp_i2c_probe()
/openbmc/linux/tools/perf/scripts/python/
H A Dsched-migration.py232 def get_time_slice(self, ts): argument
239 def find_time_slice(self, ts): argument
249 if self.data[i].start <= ts and self.data[i].end >= ts:
254 if self.data[i].end < ts:
270 ts = self[idx]
271 rq = ts.rqs[cpu]
274 raw += "Timestamp : %d.%06d\n" % (ts.start / (10 ** 9), (ts.start % (10 ** 9)) / 1000)
275 raw += "Duration : %6d us\n" % ((ts.end - ts.start) / (10 ** 6))
348 ts = self.timeslices.get_time_slice(headers.ts())
352 ts = self.timeslices.get_time_slice(headers.ts())
[all …]
/openbmc/openbmc/meta-arm/ci/
H A Dn1sdp-ts.yml10 MACHINE_FEATURES:append = " arm-ffa ts-crypto ts-storage ts-its"
12 IMAGE_INSTALL:append = " packagegroup-ts-tests"
14 IMAGE_INSTALL:append = " packagegroup-ts-tests-psa"
/openbmc/linux/tools/testing/selftests/timers/
H A Dmqueue-lat.c48 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument
50 ts.tv_nsec += ns; in timespec_add()
51 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
52 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
53 ts.tv_sec++; in timespec_add()
55 return ts; in timespec_add()
H A Draw_skew.c46 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() argument
48 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec()
53 struct timespec ts; in nsec_to_ts() local
55 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts()
56 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
57 return ts; in nsec_to_ts()
/openbmc/linux/io_uring/
H A Dtimeout.c33 struct timespec64 ts; member
76 filled = io_fill_cqe_req_aux(req, ts->locked, -ETIME, in io_timeout_complete()
89 io_req_task_complete(req, ts); in io_timeout_complete()
146 io_tw_lock(link->ctx, ts); in io_req_tw_fail_links()
155 io_req_task_complete(link, ts); in io_req_tw_fail_links()
319 io_req_task_complete(req, ts); in io_req_task_link_timeout()
323 io_req_task_complete(req, ts); in io_req_task_link_timeout()
375 struct timespec64 *ts, enum hrtimer_mode mode) in io_linked_timeout_update() argument
403 struct timespec64 *ts, enum hrtimer_mode mode) in io_timeout_update() argument
444 if (tr->ts.tv_sec < 0 || tr->ts.tv_nsec < 0) in io_timeout_remove_prep()
[all …]
/openbmc/linux/arch/um/os-Linux/
H A Dtime.c21 static inline long long timespec_to_ns(const struct timespec *ts) in timespec_to_ns() argument
23 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
90 struct timespec ts; in os_nsecs() local
92 clock_gettime(CLOCK_MONOTONIC,&ts); in os_nsecs()
93 return timespec_to_ns(&ts); in os_nsecs()
/openbmc/linux/arch/arm/kernel/
H A Dtime.c63 static void dummy_clock_access(struct timespec64 *ts) in dummy_clock_access() argument
65 ts->tv_sec = 0; in dummy_clock_access()
66 ts->tv_nsec = 0; in dummy_clock_access()
71 void read_persistent_clock64(struct timespec64 *ts) in read_persistent_clock64() argument
73 __read_persistent_clock(ts); in read_persistent_clock64()
/openbmc/linux/fs/smb/server/
H A Dmisc.c344 struct timespec64 ts; in ksmbd_NTtimeToUnix() local
357 ts.tv_nsec = do_div(abs_t, 10000000) * 100; in ksmbd_NTtimeToUnix()
358 ts.tv_nsec = -ts.tv_nsec; in ksmbd_NTtimeToUnix()
359 ts.tv_sec = -abs_t; in ksmbd_NTtimeToUnix()
362 ts.tv_nsec = do_div(abs_t, 10000000) * 100; in ksmbd_NTtimeToUnix()
363 ts.tv_sec = abs_t; in ksmbd_NTtimeToUnix()
366 return ts; in ksmbd_NTtimeToUnix()
378 struct timespec64 ts; in ksmbd_systime() local
380 ktime_get_real_ts64(&ts); in ksmbd_systime()
381 return ksmbd_UnixTimeToNT(ts); in ksmbd_systime()
/openbmc/linux/arch/s390/kernel/vdso64/
H A Dvdso64_generic.c11 int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __s390_vdso_clock_gettime() argument
13 return __cvdso_clock_gettime(clock, ts); in __s390_vdso_clock_gettime()
16 int __s390_vdso_clock_getres(clockid_t clock, struct __kernel_timespec *ts) in __s390_vdso_clock_getres() argument
18 return __cvdso_clock_getres(clock, ts); in __s390_vdso_clock_getres()

12345678910>>...48