| /drivers/pps/generators/ |
| A D | pps_gen_parport.c | 81 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 D | hp_sdc_rtc.c | 195 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 D | class.c | 73 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 D | rtc-meson-vrtc.c | 26 rtc_time64_to_tm(time.tv_sec, tm); in meson_vrtc_read_time() 100 local_time = time.tv_sec; in meson_vrtc_suspend()
|
| A D | lib.c | 207 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 D | macb_ptp.c | 72 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 D | mvpp2_tai.c | 92 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 D | ptp_chardev.c | 304 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 D | ptp_kvm_x86.c | 89 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 D | ptp_dfl_tod.c | 246 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 D | ksz_ptp.c | 100 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 D | efi-pstore.c | 98 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 D | ocelot_ptp.c | 68 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 D | v4l2-compat-ioctl32.c | 290 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 D | vmwgfx_fence.c | 43 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 D | igc_ptp.c | 34 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 D | lan966x_ptp.c | 463 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 D | stmmac_ptp.c | 93 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 D | fnic_trace.c | 142 "%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 D | sparx5_ptp.c | 295 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 D | igb_ptp.c | 129 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 D | rcar_gen4_ptp.c | 53 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 D | qaic_timesync.c | 53 __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 D | etnaviv_drv.h | 114 .tv_sec = timeout->tv_sec, in etnaviv_timeout_to_jiffies()
|
| /drivers/s390/block/ |
| A D | dasd_eer.c | 275 __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()
|