Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 151) sorted by relevance

1234567

/drivers/pps/generators/
A Dpps_gen_parport.c81 if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) { in hrtimer_event()
84 (s64)ts1.tv_sec, ts1.tv_nsec); in hrtimer_event()
91 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
101 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
131 ktime_set(expire_time.tv_sec + 1, in hrtimer_event()
171 return ktime_set(ts.tv_sec + in next_intr_time()
/drivers/input/misc/
A Dhp_sdc_rtc.c195 res->tv_sec = (tenms / 100) + (time64_t)days * 86400; in hp_sdc_rtc_read_rt()
212 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_fhs()
229 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_mt()
246 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_dt()
263 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_ct()
291 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
298 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
305 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
312 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
319 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
/drivers/rtc/
A Dclass.c73 tv64.tv_sec = rtc_tm_to_time64(&tm); in rtc_hctosys()
76 if (tv64.tv_sec > INT_MAX) { in rtc_hctosys()
85 &tm, (long long)tv64.tv_sec); in rtc_hctosys()
121 old_rtc.tv_sec = rtc_tm_to_time64(&tm); in rtc_suspend()
131 if (delta_delta.tv_sec < -2 || delta_delta.tv_sec >= 2) { in rtc_suspend()
168 new_rtc.tv_sec = rtc_tm_to_time64(&tm); in rtc_resume()
171 if (new_rtc.tv_sec < old_rtc.tv_sec) { in rtc_resume()
189 if (sleep_time.tv_sec >= 0) in rtc_resume()
A Drtc-meson-vrtc.c26 rtc_time64_to_tm(time.tv_sec, tm); in meson_vrtc_read_time()
100 local_time = time.tv_sec; in meson_vrtc_suspend()
A Dlib.c207 ts.tv_sec++; in rtc_ktime_to_tm()
208 rtc_time64_to_tm(ts.tv_sec, &ret); in rtc_ktime_to_tm()
/drivers/net/ethernet/cadence/
A Dmacb_ptp.c72 ts->tv_sec = (((u64)sech << GEM_TSL_SIZE) | secl) in gem_tsu_get_time()
84 secl = (u32)ts->tv_sec; in gem_tsu_set_time()
85 sech = (ts->tv_sec >> GEM_TSL_SIZE) & ((1 << GEM_TSH_SIZE) - 1); in gem_tsu_set_time()
251 ts->tv_sec = (GEM_BFEXT(DMA_SECH, dma_desc_ts_2) << GEM_DMA_SECL_SIZE) | in gem_hw_timestamp()
261 ts->tv_sec |= ((~GEM_DMA_SEC_MASK) & tsu.tv_sec); in gem_hw_timestamp()
267 if ((ts->tv_sec & (GEM_DMA_SEC_TOP >> 1)) && in gem_hw_timestamp()
268 !(tsu.tv_sec & (GEM_DMA_SEC_TOP >> 1))) in gem_hw_timestamp()
269 ts->tv_sec -= GEM_DMA_SEC_TOP; in gem_hw_timestamp()
291 shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_rxstamp()
321 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_txstamp()
/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_tai.c92 ts->tv_sec = (u64)mvpp2_tai_read(base + 0) << 32 | in mvpp22_tai_read_ts()
107 mvpp2_tai_write(ts->tv_sec >> 32, base + MVPP22_TAI_TLV_SEC_HIGH); in mvpp2_tai_write_tlv()
108 mvpp2_tai_write(ts->tv_sec >> 16, base + MVPP22_TAI_TLV_SEC_MED); in mvpp2_tai_write_tlv()
109 mvpp2_tai_write(ts->tv_sec, base + MVPP22_TAI_TLV_SEC_LOW); in mvpp2_tai_write_tlv()
355 ts.tv_sec = READ_ONCE(tai->stamp.tv_sec); in mvpp22_tai_tstamp()
362 delta = ((tstamp >> 30) - (ts.tv_sec & 3)) & 3; in mvpp22_tai_tstamp()
365 ts.tv_sec += delta; in mvpp22_tai_tstamp()
/drivers/ptp/
A Dptp_chardev.c304 precise_offset.device.sec = ts.tv_sec; in ptp_sys_offset_precise()
307 precise_offset.sys_realtime.sec = ts.tv_sec; in ptp_sys_offset_precise()
310 precise_offset.sys_monoraw.sec = ts.tv_sec; in ptp_sys_offset_precise()
354 if (sts.pre_ts.tv_sec < 0 || sts.post_ts.tv_sec < 0) in ptp_sys_offset_extended()
357 extoff->ts[i][0].sec = sts.pre_ts.tv_sec; in ptp_sys_offset_extended()
359 extoff->ts[i][1].sec = ts.tv_sec; in ptp_sys_offset_extended()
361 extoff->ts[i][2].sec = sts.post_ts.tv_sec; in ptp_sys_offset_extended()
387 pct->sec = ts.tv_sec; in ptp_sys_offset()
396 pct->sec = ts.tv_sec; in ptp_sys_offset()
401 pct->sec = ts.tv_sec; in ptp_sys_offset()
A Dptp_kvm_x86.c89 ts->tv_sec = clock_pair->sec; in kvm_arch_ptp_get_clock()
121 tspec->tv_sec = clock_pair->sec; in kvm_arch_ptp_get_crosststamp()
A Dptp_dfl_tod.c246 ts->tv_sec = seconds; in dfl_tod_get_timex()
255 u32 seconds_msb = FIELD_GET(SECONDS_MSB, ts->tv_sec); in dfl_tod_set_time()
256 u32 seconds_lsb = FIELD_GET(SECONDS_LSB, ts->tv_sec); in dfl_tod_set_time()
/drivers/net/dsa/microchip/
A Dksz_ptp.c100 if ((ts->tv_sec & 0xffffffff) != ts->tv_sec) in ksz_ptp_tou_target_time_set()
219 ptp_data->perout_period.tv_sec = request->period.sec; in ksz_ptp_enable_perout()
440 ts.tv_sec = (ptp_clock_time.tv_sec & ~3) | ts.tv_sec; in ksz_tstamp_reconstruct()
444 if (diff.tv_sec > 2) in ksz_tstamp_reconstruct()
445 ts.tv_sec -= 4; in ksz_tstamp_reconstruct()
446 else if (diff.tv_sec < -2) in ksz_tstamp_reconstruct()
447 ts.tv_sec += 4; in ksz_tstamp_reconstruct()
610 ts->tv_sec = seconds; in _ksz_ptp_gettime()
664 request.start.sec = next.tv_sec; in ksz_ptp_restart_perout()
692 ret = ksz_write32(dev, REG_PTP_RTC_SEC, ts->tv_sec); in ksz_ptp_settime()
[all …]
/drivers/firmware/efi/
A Defi-pstore.c98 record->time.tv_sec = time; in efi_pstore_read_func()
110 record->time.tv_sec = time; in efi_pstore_read_func()
124 record->time.tv_sec = time; in efi_pstore_read_func()
209 record->id = generic_id(record->time.tv_sec, record->part, in efi_pstore_write()
217 (long long)record->time.tv_sec, in efi_pstore_write()
/drivers/net/ethernet/mscc/
A Docelot_ptp.c68 ocelot_write_rix(ocelot, lower_32_bits(ts->tv_sec), PTP_PIN_TOD_SEC_LSB, in ocelot_ptp_settime64()
70 ocelot_write_rix(ocelot, upper_32_bits(ts->tv_sec), PTP_PIN_TOD_SEC_MSB, in ocelot_ptp_settime64()
227 ts_period.tv_sec = rq->perout.period.sec; in ocelot_ptp_enable()
230 if (ts_period.tv_sec == 1 && ts_period.tv_nsec == 0) in ocelot_ptp_enable()
243 ts_phase.tv_sec = rq->perout.phase.sec; in ocelot_ptp_enable()
247 ts_phase.tv_sec = rq->perout.start.sec; in ocelot_ptp_enable()
250 if (ts_phase.tv_sec || (ts_phase.tv_nsec && !pps)) { in ocelot_ptp_enable()
262 ts_on.tv_sec = rq->perout.on.sec; in ocelot_ptp_enable()
805 if ((ts->tv_sec & 0x1) != !!(val & SYS_PTP_TXSTAMP_PTP_TXSTAMP_SEC)) in ocelot_get_hwtimestamp()
806 ts->tv_sec--; in ocelot_get_hwtimestamp()
[all …]
/drivers/media/v4l2-core/
A Dv4l2-compat-ioctl32.c290 compat_s64 tv_sec; member
415 .timestamp.tv_sec = vb32.timestamp.tv_sec, in get_v4l2_buffer32()
460 .timestamp.tv_sec = vb32.timestamp.tv_sec, in get_v4l2_buffer32_time32()
502 .timestamp.tv_sec = vb->timestamp.tv_sec, in put_v4l2_buffer32()
547 .timestamp.tv_sec = vb->timestamp.tv_sec, in put_v4l2_buffer32_time32()
756 compat_s64 tv_sec; member
770 put_user(p64->timestamp.tv_sec, &p32->timestamp.tv_sec) || in put_v4l2_event32()
801 put_user(p64->timestamp.tv_sec, &p32->timestamp.tv_sec) || in put_v4l2_event32_time32()
/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_fence.c43 uint32_t *tv_sec; member
538 if (likely(eaction->tv_sec != NULL)) { in vmw_event_fence_action_seq_passed()
543 *eaction->tv_sec = ts.tv_sec; in vmw_event_fence_action_seq_passed()
576 uint32_t *tv_sec, in vmw_event_fence_action_queue() argument
589 eaction->tv_sec = tv_sec; in vmw_event_fence_action_queue()
637 &event->event.tv_sec, in vmw_event_fence_action_create()
/drivers/net/ethernet/intel/igc/
A Digc_ptp.c34 ts->tv_sec = sec; in igc_ptp_read()
44 wr32(IGC_SYSTIMH, ts->tv_sec); in igc_ptp_write_i225()
104 ts->tv_sec = rd32(IGC_SYSTIMH); in igc_ptp_gettimex64_i225()
302 ts.tv_sec = rq->perout.period.sec; in igc_ptp_feature_enable_i225()
365 safe_start.tv_sec += 2; in igc_ptp_feature_enable_i225()
367 if (rq->perout.start.sec < safe_start.tv_sec) in igc_ptp_feature_enable_i225()
368 igc->perout[i].start.tv_sec = safe_start.tv_sec; in igc_ptp_feature_enable_i225()
370 igc->perout[i].start.tv_sec = rq->perout.start.sec; in igc_ptp_feature_enable_i225()
372 igc->perout[i].period.tv_sec = ts.tv_sec; in igc_ptp_feature_enable_i225()
374 wr32(trgttimh, (u32)igc->perout[i].start.tv_sec); in igc_ptp_feature_enable_i225()
[all …]
/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_ptp.c463 ts->tv_sec = lan_rd(lan966x, PTP_TOD_SEC_LSB(TOD_ACC_PIN)); in lan966x_get_hwtimestamp()
470 ts->tv_sec--; in lan966x_get_hwtimestamp()
553 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in lan966x_ptp_irq_handler()
687 lan_wr(lower_32_bits(ts->tv_sec), in lan966x_ptp_settime64()
863 ts_phase.tv_sec = rq->perout.phase.sec; in lan966x_ptp_perout()
866 ts_phase.tv_sec = rq->perout.start.sec; in lan966x_ptp_perout()
870 if (ts_phase.tv_sec || (ts_phase.tv_nsec && !pps)) { in lan966x_ptp_perout()
879 ts_on.tv_sec = rq->perout.on.sec; in lan966x_ptp_perout()
904 ts_period.tv_sec = rq->perout.period.sec; in lan966x_ptp_perout()
1118 ts.tv_sec--; in lan966x_ptp_rxtstamp()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_ptp.c93 time.tv_sec = priv->est->btr_reserve[1]; in stmmac_adjust_time()
102 priv->est->btr[1] = (u32)time.tv_sec; in stmmac_adjust_time()
156 stmmac_init_systime(priv, priv->ptpaddr, ts->tv_sec, ts->tv_nsec); in stmmac_set_time()
181 cfg->start.tv_sec = rq->perout.start.sec; in stmmac_enable()
183 cfg->period.tv_sec = rq->perout.period.sec; in stmmac_enable()
/drivers/scsi/fnic/
A Dfnic_trace.c142 "%16llx %16llx %16llx\n", (u64)val.tv_sec, in fnic_get_trace_data()
184 "%16llx %16llx %16llx\n", (u64)val.tv_sec, in fnic_get_trace_data()
233 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data()
234 (s64)stats->stats_timestamps.last_reset_time.tv_sec, in fnic_get_stats_data()
236 (s64)stats->stats_timestamps.last_read_time.tv_sec, in fnic_get_stats_data()
238 (s64)timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_sec, in fnic_get_stats_data()
240 (s64)timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_sec, in fnic_get_stats_data()
441 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data()
443 (s64)val2.tv_sec, val2.tv_nsec, in fnic_get_stats_data()
861 &tdata->time_stamp.tv_sec, tdata->time_stamp.tv_nsec, in copy_and_format_trace_data()
/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_ptp.c295 ts->tv_sec = spx5_rd(sparx5, PTP_PTP_TOD_SEC_LSB(consts->tod_pin)); in sparx5_get_hwtimestamp()
302 ts->tv_sec--; in sparx5_get_hwtimestamp()
387 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in sparx5_ptp_irq_handler()
465 spx5_wr(PTP_PTP_TOD_SEC_MSB_PTP_TOD_SEC_MSB_SET(upper_32_bits(ts->tv_sec)), in sparx5_ptp_settime64()
467 spx5_wr(lower_32_bits(ts->tv_sec), in sparx5_ptp_settime64()
690 ts.tv_sec--; in sparx5_ptp_rxtstamp()
692 full_ts_in_ns = ktime_set(ts.tv_sec, ts.tv_nsec); in sparx5_ptp_rxtstamp()
/drivers/net/ethernet/intel/igb/
A Digb_ptp.c129 ts->tv_sec = sec; in igb_ptp_read_i210()
142 wr32(E1000_SYSTIMH, (u32)ts->tv_sec); in igb_ptp_write_i210()
329 ts->tv_sec = rd32(E1000_SYSTIMH); in igb_ptp_gettimex_i210()
551 ts.tv_sec = rq->perout.period.sec; in igb_ptp_feature_enable_82580()
618 igb->perout[i].start.tv_sec = start.tv_sec; in igb_ptp_feature_enable_82580()
620 igb->perout[i].period.tv_sec = ts.tv_sec; in igb_ptp_feature_enable_82580()
700 ts.tv_sec = rq->perout.period.sec; in igb_ptp_feature_enable_i210()
747 igb->perout[i].start.tv_sec = rq->perout.start.sec; in igb_ptp_feature_enable_i210()
749 igb->perout[i].period.tv_sec = ts.tv_sec; in igb_ptp_feature_enable_i210()
850 (long long) ts.tv_sec, ts.tv_nsec); in igb_ptp_overflow_check()
/drivers/net/ethernet/renesas/
A Drcar_gen4_ptp.c53 ts->tv_sec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t1) | in _rcar_gen4_ptp_gettime()
81 iowrite32(ts->tv_sec >> 32, ptp_priv->addr + ptp_priv->offs->config_t2); in _rcar_gen4_ptp_settime()
82 iowrite32(ts->tv_sec, ptp_priv->addr + ptp_priv->offs->config_t1); in _rcar_gen4_ptp_settime()
/drivers/accel/qaic/
A Dqaic_timesync.c53 __le64 tv_sec; member
159 sync_msg->data.tv_sec = cpu_to_le64(host_sec); in qaic_timesync_timer()
276 req->data.tv_sec = cpu_to_le64(ts.tv_sec); in qaic_boot_timesync_worker()
/drivers/gpu/drm/etnaviv/
A Detnaviv_drv.h114 .tv_sec = timeout->tv_sec, in etnaviv_timeout_to_jiffies()
/drivers/s390/block/
A Ddasd_eer.c275 __u64 tv_sec; member
308 header.tv_sec = ts.tv_sec; in dasd_eer_write_standard_trigger()
351 header.tv_sec = ts.tv_sec; in dasd_eer_write_snss_trigger()

Completed in 80 milliseconds

1234567