/openbmc/telemetry/src/ |
H A D | report_factory.cpp | 32 namespace ts = utils::tstring; in make() 35 getSensors(param.at_label<ts::SensorPath>()), in make() 36 param.at_label<ts::OperationType>(), in make() 37 param.at_label<ts::CollectionTimeScope>(), in make() 38 param.at_label<ts::CollectionDuration>(), in make() 70 namespace ts = utils::tstring; in updateMetrics() 72 getSensors(labeledMetricParam.at_label<ts::SensorPath>()), in updateMetrics() 73 labeledMetricParam.at_label<ts::OperationType>(), in updateMetrics() 74 labeledMetricParam.at_label<ts::CollectionTimeScope>(), in updateMetrics() 75 labeledMetricParam.at_label<ts::CollectionDuration>(), in updateMetrics()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ptp.c | 220 c.u.ts.sc = FW_PTP_SC_ADJ_FREQ; in cxgb4_ptp_adjfine() 221 c.u.ts.sign = (ppb < 0) ? 1 : 0; in cxgb4_ptp_adjfine() 224 c.u.ts.ppb = cpu_to_be32(ppb); in cxgb4_ptp_adjfine() 252 c.u.ts.sc = FW_PTP_SC_ADJ_FTIME; in cxgb4_ptp_fineadjtime() 256 c.u.ts.tm = cpu_to_be64(delta); in cxgb4_ptp_fineadjtime() 291 c.u.ts.sc = FW_PTP_SC_ADJ_TIME; in cxgb4_ptp_adjtime() 295 c.u.ts.tm = cpu_to_be64(delta); in cxgb4_ptp_adjtime() 327 *ts = ns_to_timespec64(ns); in cxgb4_ptp_gettime() 354 c.u.ts.sc = FW_PTP_SC_SET_TIME; in cxgb4_ptp_settime() 356 ns = timespec64_to_ns(ts); in cxgb4_ptp_settime() [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | spear320-hmi.dts | 251 stmpe610-ts { 252 compatible = "stmpe,ts"; 254 ts,sample-time = <4>; 255 ts,mod-12b = <1>; 256 ts,ref-sel = <0>; 257 ts,adc-freq = <1>; 258 ts,ave-ctrl = <1>; 259 ts,touch-det-delay = <3>; 260 ts,settling = <4>; 261 ts,fraction-z = <7>; [all …]
|
/openbmc/qemu/semihosting/ |
H A D | arm-compat-semi.c | 217 TaskState *ts = cs->opaque; in get_swi_errno() local 219 return ts->swi_errno; in get_swi_errno() 229 TaskState *ts = cs->opaque; in common_semi_cb() local 230 ts->swi_errno = err; in common_semi_cb() 589 TaskState *ts = cs->opaque; in do_common_semihosting() local 604 output_size = ts->info->env_strings - ts->info->arg_strings; in do_common_semihosting() 667 TaskState *ts = cs->opaque; in do_common_semihosting() local 680 if (!ts->heap_limit) { in do_common_semihosting() 693 ts->heap_limit = limit; in do_common_semihosting() 696 retvals[0] = ts->heap_base; in do_common_semihosting() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | cmsg_sender.c | 66 } ts; member 154 opt.ts.ena = true; in cs_parse_args() 278 if (opt.ts.ena) { in cs_write_cmsg() 332 struct scm_timestamping *ts; in cs_read_cmsg() local 336 if (!opt.ts.ena) in cs_read_cmsg() 342 ts = NULL; in cs_read_cmsg() 360 ts = (void *)CMSG_DATA(cmsg); in cs_read_cmsg() 373 if (!ts) in cs_read_cmsg() 381 if (!ts->ts[i].tv_sec && !ts->ts[i].tv_nsec) in cs_read_cmsg() 384 rel_time = (ts->ts[i].tv_sec - time_start_real.tv_sec) * in cs_read_cmsg() [all …]
|
/openbmc/ibm-logging/test/ |
H A D | test_callout.cpp | 52 uint64_t ts = 5; in TEST_F() local 61 id, ts, assetProps); in TEST_F() 69 auto callout = std::make_unique<Callout>(bus, objectPath, id, ts); in TEST_F() 74 ASSERT_EQ(callout->ts(), ts); in TEST_F() 89 auto callout = std::make_unique<Callout>(bus, objectPath, id, ts + 1); in TEST_F()
|
/openbmc/phosphor-fan-presence/control/json/utils/ |
H A D | flight_recorder.cpp | 41 uint64_t ts = std::chrono::duration_cast<std::chrono::microseconds>( in log() local 46 entry.emplace_back(ts, message); in log() 63 for (const auto& [ts, msg] : messages) in dump() 66 Timepoint tp{microseconds{ts}}; in dump() 91 for (const auto& [ts, id, msg] : output) in dump() 93 ss << formatTime(ts) << ": " << std::setw(idSize) << id << ": " << msg; in dump()
|
/openbmc/linux/tools/testing/selftests/timers/ |
H A D | nanosleep.c | 91 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 93 ts.tv_nsec += ns; in timespec_add() 94 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 95 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 96 ts.tv_sec++; in timespec_add() 98 return ts; in timespec_add()
|
H A D | nsleep-lat.c | 79 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 81 ts.tv_nsec += ns; in timespec_add() 82 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 83 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 84 ts.tv_sec++; in timespec_add() 86 return ts; in timespec_add()
|
H A D | adjtick.c | 44 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec() argument 46 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec() 51 struct timespec ts; in nsec_to_ts() local 53 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 54 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts() 56 return ts; in nsec_to_ts()
|
/openbmc/linux/arch/arm64/kernel/vdso32/ |
H A D | vgettimeofday.c | 10 struct old_timespec32 *ts) in __vdso_clock_gettime() argument 12 return __cvdso_clock_gettime32(clock, ts); in __vdso_clock_gettime() 16 struct __kernel_timespec *ts) in __vdso_clock_gettime64() argument 18 return __cvdso_clock_gettime(clock, ts); in __vdso_clock_gettime64()
|
/openbmc/linux/arch/arm/vdso/ |
H A D | vgettimeofday.c | 13 struct old_timespec32 *ts) in __vdso_clock_gettime() argument 15 return __cvdso_clock_gettime32(clock, ts); in __vdso_clock_gettime() 19 struct __kernel_timespec *ts) in __vdso_clock_gettime64() argument 21 return __cvdso_clock_gettime(clock, ts); in __vdso_clock_gettime64()
|
/openbmc/linux/kernel/futex/ |
H A D | syscalls.c | 151 futex_init_timeout(u32 cmd, u32 op, struct timespec64 *ts, ktime_t *t) in futex_init_timeout() argument 153 if (!timespec64_valid(ts)) in futex_init_timeout() 156 *t = timespec64_to_ktime(*ts); in futex_init_timeout() 170 struct timespec64 ts; in SYSCALL_DEFINE6() local 175 if (get_timespec64(&ts, utime)) in SYSCALL_DEFINE6() 177 ret = futex_init_timeout(cmd, op, &ts, &t); in SYSCALL_DEFINE6() 252 struct timespec64 ts; in SYSCALL_DEFINE5() local 274 if (get_timespec64(&ts, timeout)) in SYSCALL_DEFINE5() 365 struct timespec64 ts; in SYSCALL_DEFINE6() local 368 if (get_old_timespec32(&ts, utime)) in SYSCALL_DEFINE6() [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_amanda.c | 61 struct ts_config *ts; member 119 search[SEARCH_CONNECT].ts); in amanda_help() 125 search[SEARCH_NEWLINE].ts); in amanda_help() 131 off = skb_find_text(skb, start, stop, search[i].ts); in amanda_help() 208 textsearch_destroy(search[i].ts); in nf_conntrack_amanda_fini() 218 search[i].ts = textsearch_prepare(ts_algo, search[i].string, in nf_conntrack_amanda_init() 221 if (IS_ERR(search[i].ts)) { in nf_conntrack_amanda_init() 222 ret = PTR_ERR(search[i].ts); in nf_conntrack_amanda_init() 234 textsearch_destroy(search[i].ts); in nf_conntrack_amanda_init()
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | dynack.h | 56 struct ts_info ts[ATH_DYN_BUF]; member 87 void ath_dynack_sample_ack_ts(struct ath_hw *ah, struct sk_buff *skb, u32 ts); 89 struct ath_tx_status *ts, 98 struct sk_buff *skb, u32 ts) {} in ath_dynack_sample_ack_ts() argument 101 struct ath_tx_status *ts, in ath_dynack_sample_tx_ts() argument
|
/openbmc/linux/sound/soc/meson/ |
H A D | axg-tdmout.c | 111 struct axg_tdm_stream *ts) in axg_tdmout_prepare() argument 116 switch (ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { in axg_tdmout_prepare() 128 ts->iface->fmt & SND_SOC_DAIFMT_FORMAT_MASK); in axg_tdmout_prepare() 135 val |= TDMOUT_CTRL0_BITNUM(ts->iface->slot_width - 1); in axg_tdmout_prepare() 138 val |= TDMOUT_CTRL0_SLOTNUM(ts->iface->slots - 1); in axg_tdmout_prepare() 146 val = TDMOUT_CTRL1_MSB_POS(ts->width - 1); in axg_tdmout_prepare() 149 switch (ts->physical_width) { in axg_tdmout_prepare() 164 ts->physical_width); in axg_tdmout_prepare() 169 if (axg_tdm_lrclk_invert(ts->iface->fmt)) in axg_tdmout_prepare() 179 return axg_tdm_formatter_set_channel_masks(map, ts, TDMOUT_MASK0); in axg_tdmout_prepare()
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_vclock.c | 73 struct timespec64 *ts) in ptp_vclock_gettime() argument 82 *ts = ns_to_timespec64(ns); in ptp_vclock_gettime() 88 struct timespec64 *ts, in ptp_vclock_gettimex() argument 106 *ts = ns_to_timespec64(ns); in ptp_vclock_gettimex() 112 const struct timespec64 *ts) in ptp_vclock_settime() argument 115 u64 ns = timespec64_to_ns(ts); in ptp_vclock_settime() 150 struct timespec64 ts; in ptp_vclock_refresh() local 152 ptp_vclock_gettime(&vclock->info, &ts); in ptp_vclock_refresh() 171 struct timespec64 ts = {}; in ptp_vclock_read() local 173 ptp->info->getcycles64(ptp->info, &ts); in ptp_vclock_read() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | s390-cpumsf.c | 318 memcpy(&ts, &te->timestamp[idx], sizeof(ts)); in trailer_timestamp() 319 return be64toh(ts); in trailer_timestamp() 613 *ts = ~0ULL; in s390_cpumsf_samples() 630 *ts = aux_ts; in s390_cpumsf_samples() 659 *ts = aux_ts; in s390_cpumsf_samples() 667 *ts = aux_ts; in s390_cpumsf_samples() 694 u64 *ts) in s390_cpumsf_run_decoder() argument 713 *ts = ~0ULL; in s390_cpumsf_run_decoder() 827 i, ts); in s390_cpumsf_setup_queues() 846 u64 ts; in s390_cpumsf_process_queues() local [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_ptp.c | 129 ts->tv_sec = sec; in igb_ptp_read_i210() 130 ts->tv_nsec = nsec; in igb_ptp_read_i210() 260 struct timespec64 *ts, in igb_ptp_gettimex_82576() argument 281 *ts = ns_to_timespec64(ns); in igb_ptp_gettimex_82576() 287 struct timespec64 *ts, in igb_ptp_gettimex_82580() argument 309 *ts = ns_to_timespec64(ns); in igb_ptp_gettimex_82580() 315 struct timespec64 *ts, in igb_ptp_gettimex_i210() argument 344 ns = timespec64_to_ns(ts); in igb_ptp_settime_82576() 649 struct timespec64 ts; in igb_ptp_feature_enable_i210() local 850 struct timespec64 ts; in igb_ptp_overflow_check() local [all …]
|
/openbmc/linux/tools/leds/ |
H A D | uledmon.c | 27 struct timespec ts; in main() local 57 clock_gettime(CLOCK_MONOTONIC, &ts); in main() 58 printf("[%ld.%09ld] %u\n", ts.tv_sec, ts.tv_nsec, brightness); in main()
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-security/trusted-services/ |
H A D | ts-remote-test_git.bb | 1 DESCRIPTION = "Trusted Services ts-remote-test deployment for arm-linux." 10 OECMAKE_SOURCEPATH = "${S}/deployments/ts-remote-test/${TS_ENV}" 12 FILES:${PN} = "${bindir}/ts-remote-test" 16 mv ${D}${TS_INSTALL}/bin/ts-remote-test ${D}${bindir}
|
/openbmc/linux/fs/udf/ |
H A D | udftime.c | 59 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 ts) in udf_time_to_disk_stamp() argument 69 seconds = ts.tv_sec + offset * 60; in udf_time_to_disk_stamp() 77 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp() 78 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp() 80 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
|
/openbmc/qemu/tests/qtest/ |
H A D | m48t59-test.c | 113 time_t ts; in cmos_get_date_time() local 130 ts = time(NULL); in cmos_get_date_time() 131 localtime_r(&ts, &dummy); in cmos_get_date_time() 144 ts = mktime(date); in cmos_get_date_time() 156 time_t ts; in bcd_check_time() local 173 ts = time(NULL); in bcd_check_time() 174 gmtime_r(&ts, &start); in bcd_check_time() 181 ts = time(NULL); in bcd_check_time() 182 gmtime_r(&ts, &end); in bcd_check_time()
|
/openbmc/linux/drivers/media/pci/saa7134/ |
H A D | saa7134-ts.c | 92 lines = dev->ts.nr_packets; in saa7134_ts_buffer_prepare() 112 int size = TS_PACKET_SIZE * dev->ts.nr_packets; in saa7134_ts_queue_setup() 115 *nbuffers = dev->ts.nr_bufs; in saa7134_ts_queue_setup() 193 saa_writeb(SAA7134_TS_DMA0, ((dev->ts.nr_packets-1)&0xff)); in saa7134_ts_init_hw() 194 saa_writeb(SAA7134_TS_DMA1, (((dev->ts.nr_packets-1)>>8)&0xff)); in saa7134_ts_init_hw() 197 ((((dev->ts.nr_packets-1)>>16)&0x3f) | 0x00)); in saa7134_ts_init_hw() 213 dev->ts.nr_bufs = tsbufs; in saa7134_ts_init1() 214 dev->ts.nr_packets = ts_nr_packets; in saa7134_ts_init1() 260 saa_writeb(SAA7134_TS_DMA0, (dev->ts.nr_packets - 1) & 0xff); in saa7134_ts_start() 262 ((dev->ts.nr_packets - 1) >> 8) & 0xff); in saa7134_ts_start() [all …]
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-uptime.h | 28 struct timespec ts; in clock_boottime() local 31 err = clock_gettime(CLOCK_BOOTTIME, &ts); in clock_boottime() 34 return (ts.tv_sec * 100) + (ts.tv_nsec / 10000000); in clock_boottime()
|