/drivers/input/misc/ |
D | hp_sdc_rtc.c | 194 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_rt() 211 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_fhs() 228 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_mt() 245 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; in hp_sdc_rtc_read_dt() 262 res->tv_nsec = (long)(tenms % 100) * 10000 * 1000; 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/pps/generators/ |
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() 172 ((ts.tv_nsec > 990 * NSEC_PER_MSEC) ? 1 : 0), in next_intr_time()
|
/drivers/ptp/ |
D | ptp_chardev.c | 280 precise_offset.device.nsec = ts.tv_nsec; in ptp_ioctl() 283 precise_offset.sys_realtime.nsec = ts.tv_nsec; in ptp_ioctl() 286 precise_offset.sys_monoraw.nsec = ts.tv_nsec; in ptp_ioctl() 314 extoff->ts[i][0].nsec = sts.pre_ts.tv_nsec; in ptp_ioctl() 316 extoff->ts[i][1].nsec = ts.tv_nsec; in ptp_ioctl() 318 extoff->ts[i][2].nsec = sts.post_ts.tv_nsec; in ptp_ioctl() 340 pct->nsec = ts.tv_nsec; in ptp_ioctl() 349 pct->nsec = ts.tv_nsec; in ptp_ioctl() 354 pct->nsec = ts.tv_nsec; in ptp_ioctl()
|
D | ptp_kvm_x86.c | 53 ts->tv_nsec = clock_pair.nsec; in kvm_arch_ptp_get_clock() 85 tspec->tv_nsec = clock_pair.nsec; in kvm_arch_ptp_get_crosststamp()
|
D | ptp_clock.c | 73 tp->tv_nsec = 1; in ptp_clock_getres() 120 ts.tv_nsec = tx->time.tv_usec; in ptp_clock_adjtime() 123 ts.tv_nsec *= 1000; in ptp_clock_adjtime() 125 if ((unsigned long) ts.tv_nsec >= NSEC_PER_SEC) in ptp_clock_adjtime()
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 228 ts->tv_nsec = nsec; in lan966x_get_hwtimestamp() 315 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in lan966x_ptp_irq_handler() 451 lan_wr(ts->tv_nsec, lan966x, PTP_TOD_NSEC(TOD_ACC_PIN)); in lan966x_ptp_settime64() 630 ts_phase.tv_nsec = rq->perout.phase.nsec; in lan966x_ptp_perout() 633 ts_phase.tv_nsec = rq->perout.start.nsec; in lan966x_ptp_perout() 636 if (ts_phase.tv_sec || (ts_phase.tv_nsec && !pps)) { in lan966x_ptp_perout() 646 ts_on.tv_nsec = rq->perout.on.nsec; in lan966x_ptp_perout() 655 lan_wr(PTP_WF_LOW_PERIOD_PIN_WFL(ts_phase.tv_nsec), in lan966x_ptp_perout() 671 ts_period.tv_nsec = rq->perout.period.nsec; in lan966x_ptp_perout() 887 if (ts.tv_nsec < timestamp) in lan966x_ptp_rxtstamp() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_trace.c | 131 val.tv_nsec, str, tbp->host_no, tbp->tag, in fnic_get_trace_data() 173 val.tv_nsec, str, tbp->host_no, tbp->tag, in fnic_get_trace_data() 220 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data() 222 stats->stats_timestamps.last_reset_time.tv_nsec, in fnic_get_stats_data() 224 stats->stats_timestamps.last_read_time.tv_nsec, in fnic_get_stats_data() 226 timespec64_sub(val1, stats->stats_timestamps.last_reset_time).tv_nsec, in fnic_get_stats_data() 228 timespec64_sub(val1, stats->stats_timestamps.last_read_time).tv_nsec); in fnic_get_stats_data() 417 (s64)val1.tv_sec, val1.tv_nsec, in fnic_get_stats_data() 419 (s64)val2.tv_sec, val2.tv_nsec, in fnic_get_stats_data() 804 tdata->time_stamp.tv_nsec, tdata->host_no, in copy_and_format_trace_data()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 102 time.tv_nsec = priv->plat->est->btr_reserve[0]; in stmmac_adjust_time() 111 priv->plat->est->btr[0] = (u32)time.tv_nsec; in stmmac_adjust_time() 166 stmmac_init_systime(priv, priv->ptpaddr, ts->tv_sec, ts->tv_nsec); in stmmac_set_time() 192 cfg->start.tv_nsec = rq->perout.start.nsec; in stmmac_enable() 194 cfg->period.tv_nsec = rq->perout.period.nsec; in stmmac_enable()
|
D | dwmac5.c | 551 cfg->start.tv_nsec = (cfg->start.tv_nsec * 1000) / 465; in dwmac5_flex_pps_config() 552 writel(cfg->start.tv_nsec, ioaddr + MAC_PPSx_TARGET_TIME_NSEC(index)); in dwmac5_flex_pps_config() 555 period += cfg->period.tv_nsec; in dwmac5_flex_pps_config()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 70 ocelot_write_rix(ocelot, ts->tv_nsec, PTP_PIN_TOD_NSEC, TOD_ACC_PIN); in ocelot_ptp_settime64() 231 ts_period.tv_nsec = rq->perout.period.nsec; in ocelot_ptp_enable() 233 if (ts_period.tv_sec == 1 && ts_period.tv_nsec == 0) in ocelot_ptp_enable() 247 ts_phase.tv_nsec = rq->perout.phase.nsec; in ocelot_ptp_enable() 251 ts_phase.tv_nsec = rq->perout.start.nsec; in ocelot_ptp_enable() 253 if (ts_phase.tv_sec || (ts_phase.tv_nsec && !pps)) { in ocelot_ptp_enable() 266 ts_on.tv_nsec = rq->perout.on.nsec; in ocelot_ptp_enable() 284 ocelot_write_rix(ocelot, ts_phase.tv_nsec, in ocelot_ptp_enable() 724 ts->tv_nsec = SYS_PTP_TXSTAMP_PTP_TXSTAMP(val); in ocelot_get_hwtimestamp() 806 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in ocelot_get_txtstamp()
|
/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 63 ts->tv_nsec = gem_readl(bp, TN); in gem_tsu_get_time() 68 ts->tv_nsec = first; in gem_tsu_get_time() 86 ns = ts->tv_nsec; in gem_tsu_set_time() 253 ts->tv_nsec = GEM_BFEXT(DMA_NSEC, dma_desc_ts_1); in gem_hw_timestamp() 291 shhwtstamps->hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_ptp_rxstamp() 303 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in gem_tstamp_tx()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 129 ts->tv_nsec = nsec; in igb_ptp_read_i210() 140 wr32(E1000_SYSTIML, ts->tv_nsec); in igb_ptp_write_i210() 347 ts->tv_nsec = rd32(E1000_SYSTIML); in igb_ptp_gettimex_i210() 572 ts.tv_nsec = rq->perout.period.nsec; in igb_ptp_feature_enable_82580() 639 igb->perout[i].start.tv_nsec = start.tv_nsec; in igb_ptp_feature_enable_82580() 641 igb->perout[i].period.tv_nsec = ts.tv_nsec; in igb_ptp_feature_enable_82580() 728 ts.tv_nsec = rq->perout.period.nsec; in igb_ptp_feature_enable_i210() 775 igb->perout[i].start.tv_nsec = rq->perout.start.nsec; in igb_ptp_feature_enable_i210() 777 igb->perout[i].period.tv_nsec = ts.tv_nsec; in igb_ptp_feature_enable_i210() 877 (long long) ts.tv_sec, ts.tv_nsec); in igb_ptp_overflow_check()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_tai.c | 96 ts->tv_nsec = mvpp2_tai_read(base + 12) << 16 | in mvpp22_tai_read_ts() 110 mvpp2_tai_write(ts->tv_nsec >> 16, base + MVPP22_TAI_TLV_NANO_HIGH); in mvpp2_tai_write_tlv() 111 mvpp2_tai_write(ts->tv_nsec, base + MVPP22_TAI_TLV_NANO_LOW); in mvpp2_tai_write_tlv() 356 ts.tv_nsec = tstamp & 0x3fffffff; in mvpp22_tai_tstamp()
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ptp.c | 295 ts->tv_nsec = nsec; in sparx5_get_hwtimestamp() 384 shhwtstamps.hwtstamp = ktime_set(ts.tv_sec, ts.tv_nsec); in sparx5_ptp_irq_handler() 463 spx5_wr(ts->tv_nsec, sparx5, PTP_PTP_TOD_NSEC(TOD_ACC_PIN)); in sparx5_ptp_settime64() 678 if (ts.tv_nsec < timestamp) in sparx5_ptp_rxtstamp() 680 ts.tv_nsec = timestamp; in sparx5_ptp_rxtstamp() 681 full_ts_in_ns = ktime_set(ts.tv_sec, ts.tv_nsec); in sparx5_ptp_rxtstamp()
|
/drivers/firmware/efi/ |
D | efi-pstore.c | 70 record->time.tv_nsec = 0; in efi_pstore_read_func() 82 record->time.tv_nsec = 0; in efi_pstore_read_func() 96 record->time.tv_nsec = 0; in efi_pstore_read_func()
|
/drivers/net/ethernet/intel/igc/ |
D | igc_ptp.c | 34 ts->tv_nsec = nsec; in igc_ptp_read() 42 wr32(IGC_SYSTIML, ts->tv_nsec); in igc_ptp_write_i225() 102 ts->tv_nsec = rd32(IGC_SYSTIML); in igc_ptp_gettimex64_i225() 313 ts.tv_nsec = rq->perout.period.nsec; in igc_ptp_feature_enable_i225() 381 igc->perout[i].start.tv_nsec = rq->perout.start.nsec; in igc_ptp_feature_enable_i225() 383 igc->perout[i].period.tv_nsec = ts.tv_nsec; in igc_ptp_feature_enable_i225() 386 wr32(trgttiml, (u32)(igc->perout[i].start.tv_nsec | in igc_ptp_feature_enable_i225()
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_drv.h | 109 .tv_nsec = timeout->tv_nsec, in etnaviv_timeout_to_jiffies()
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 222 ts->tv_nsec < 0 || ts->tv_nsec > NSEC_PER_SEC) in mlx5_ptp_settime_real_time() 227 MLX5_SET(mtutc_reg, in, utc_nsec, ts->tv_nsec); in mlx5_ptp_settime_real_time() 487 ts.tv_nsec = rq->perout.period.nsec; in perout_conf_1pps() 511 ts.tv_nsec = rq->perout.on.nsec; in mlx5_perout_conf_out_pulse_duration() 518 ts.tv_nsec = rq->perout.period.nsec; in mlx5_perout_conf_out_pulse_duration() 543 ts.tv_nsec = rq->perout.period.nsec; in perout_conf_npps_real_time() 807 ts->tv_nsec = 0; in ts_next_sec()
|
/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.c | 430 ts->tv_nsec = nano_seconds; in lan743x_ptpci_gettime64() 453 if (ts->tv_nsec >= 1000000000L || in lan743x_ptpci_settime64() 454 ts->tv_nsec < 0) { in lan743x_ptpci_settime64() 457 ts->tv_nsec); in lan743x_ptpci_settime64() 461 nano_seconds = ts->tv_nsec; in lan743x_ptpci_settime64() 570 ts_on.tv_nsec = perout_request->on.nsec; in lan743x_ptp_perout() 573 ts_period.tv_nsec = perout_request->period.nsec; in lan743x_ptp_perout() 602 period_nsec = ts_period.tv_nsec; in lan743x_ptp_perout() 1099 extts->ts.tv_nsec = nsec; in lan743x_ptp_io_event_clock_get() 1101 ts->tv_nsec = nsec; in lan743x_ptp_io_event_clock_get() [all …]
|
/drivers/net/dsa/hirschmann/ |
D | hellcreek_ptp.c | 105 nsh = ((u32)ts->tv_nsec & 0xffff0000) >> 16; in hellcreek_ptp_settime() 106 nsl = ts->tv_nsec & 0xffff; in hellcreek_ptp_settime() 112 hellcreek->last_ts = ts->tv_nsec; in hellcreek_ptp_settime()
|
/drivers/net/phy/ |
D | nxp-c45-tja11xx.c | 251 ts->tv_nsec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in _nxp_c45_ptp_gettimex64() 253 ts->tv_nsec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in _nxp_c45_ptp_gettimex64() 282 ts->tv_nsec); in _nxp_c45_ptp_settime64() 284 ts->tv_nsec >> 16); in _nxp_c45_ptp_settime64() 352 ts->tv_nsec = hwts->nsec; in nxp_c45_reconstruct_ts() 371 extts->tv_nsec = phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts() 373 extts->tv_nsec |= phy_read_mmd(priv->phydev, MDIO_MMD_VEND1, in nxp_c45_get_extts()
|
D | bcm-phy-ptp.c | 193 ts->tv_nsec = (hb[1] << 16) | hb[0]; in bcm_ptp_get_framesync_ts() 272 bcm_phy_write_exp(phydev, TIME_CODE_0, ts->tv_nsec); in bcm_ptp_settime_locked() 273 bcm_phy_write_exp(phydev, TIME_CODE_1, ts->tv_nsec >> 16); in bcm_ptp_settime_locked() 556 next = NSEC_PER_SEC - ts.tv_nsec; in bcm_ptp_perout_work() 558 ts.tv_nsec = 0; in bcm_ptp_perout_work()
|
/drivers/net/ethernet/sfc/siena/ |
D | ptp.c | 445 *nic_minor = ts.tv_nsec; in efx_ptp_ns_to_s_ns() 475 u32 min = (u32)(((u64)ts.tv_nsec * NS_TO_S27_MULT + in efx_ptp_ns_to_s27() 519 *nic_minor = ts.tv_nsec * 4; in efx_ptp_ns_to_s_qns() 884 now.ts_real.tv_nsec); in efx_ptp_send_times() 959 corrected = window - wait.tv_nsec; in efx_ptp_process_times() 1003 delta.tv_nsec = in efx_ptp_process_times() 1004 last_time->ts_real.tv_nsec - in efx_ptp_process_times() 1015 delta.tv_nsec += ktime_to_timespec64(mc_time).tv_nsec; in efx_ptp_process_times()
|
/drivers/net/ethernet/sfc/ |
D | ptp.c | 449 *nic_minor = ts.tv_nsec; in efx_ptp_ns_to_s_ns() 479 u32 min = (u32)(((u64)ts.tv_nsec * NS_TO_S27_MULT + in efx_ptp_ns_to_s27() 523 *nic_minor = ts.tv_nsec * 4; in efx_ptp_ns_to_s_qns() 894 now.ts_real.tv_nsec); in efx_ptp_send_times() 969 corrected = window - wait.tv_nsec; in efx_ptp_process_times() 1013 delta.tv_nsec = in efx_ptp_process_times() 1014 last_time->ts_real.tv_nsec - in efx_ptp_process_times() 1025 delta.tv_nsec += ktime_to_timespec64(mc_time).tv_nsec; in efx_ptp_process_times()
|
/drivers/scsi/snic/ |
D | snic_debugfs.c | 302 last_isr_tms.tv_sec, last_isr_tms.tv_nsec, in snic_stats_show() 304 last_ack_tms.tv_sec, last_ack_tms.tv_nsec, in snic_stats_show()
|