Searched refs:time_sec (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/rtc/ |
| H A D | rtc-amlogic-a4.c | 95 u32 time_sec; in aml_rtc_read_time() local 101 regmap_read(rtc->map, RTC_REAL_TIME, &time_sec); in aml_rtc_read_time() 103 time_sec = gray_to_binary(time_sec); in aml_rtc_read_time() 104 rtc_time64_to_tm(time_sec, tm); in aml_rtc_read_time() 105 dev_dbg(dev, "%s: read time = %us\n", __func__, time_sec); in aml_rtc_read_time() 113 u32 time_sec; in aml_rtc_set_time() local 124 time_sec = rtc_tm_to_time64(tm); in aml_rtc_set_time() 126 time_sec = binary_to_gray(time_sec); in aml_rtc_set_time() 127 regmap_write(rtc->map, RTC_COUNTER_REG, time_sec); in aml_rtc_set_time() 128 dev_dbg(dev, "%s: set time = %us\n", __func__, time_sec); in aml_rtc_set_time()
|
| /linux/tools/testing/selftests/net/bench/page_pool/ |
| H A D | time_bench.c | 166 rec->time_sec = div_u64_rem(rec->time_interval, NANOSEC_PER_SEC, in time_bench_calc_stats() 243 rec.ns_per_call_decimal, rec.step, rec.time_sec, in time_bench_loop() 313 rec->ns_per_call_decimal, rec->step, rec->time_sec, in time_bench_print_stats_cpumask()
|
| H A D | time_bench.h | 48 uint64_t time_sec; member
|
| /linux/tools/perf/util/ |
| H A D | time-utils.c | 20 u64 time_sec, time_nsec; in parse_nsec_time() local 23 time_sec = strtoull(str, &end, 10); in parse_nsec_time() 47 *ptime = time_sec * NSEC_PER_SEC + time_nsec; in parse_nsec_time()
|
| /linux/drivers/ptp/ |
| H A D | ptp_ocp.c | 49 u32 time_sec; member 128 u32 time_sec; member 1214 u32 ctrl, time_sec, time_ns; in __ptp_ocp_gettime_locked() local 1236 time_sec = ioread32(&bp->reg->time_sec); in __ptp_ocp_gettime_locked() 1238 ts->tv_sec = time_sec; in __ptp_ocp_gettime_locked() 1262 u32 ctrl, time_sec, time_ns; in __ptp_ocp_settime_locked() local 1266 time_sec = ts->tv_sec; in __ptp_ocp_settime_locked() 1272 iowrite32(time_sec, &bp->reg->adjust_sec); in __ptp_ocp_settime_locked() 2177 sec = ioread32(®->time_sec); in ptp_ocp_ts_irq()
|
| H A D | ptp_vmclock.c | 154 tspec->tv_sec += le64_to_cpu(st->clk->time_sec); in vmclock_get_crosststamp()
|