Searched refs:start_ns (Results 1 – 6 of 6) sorted by relevance
/drivers/net/ethernet/ti/icssg/ |
D | icss_iep.c | 183 static void icss_iep_update_to_next_boundary(struct icss_iep *iep, u64 start_ns); 456 static void icss_iep_update_to_next_boundary(struct icss_iep *iep, u64 start_ns) in icss_iep_update_to_next_boundary() argument 462 if (start_ns < ns) in icss_iep_update_to_next_boundary() 463 start_ns = ns; in icss_iep_update_to_next_boundary() 466 start_ns += p_ns - 1; in icss_iep_update_to_next_boundary() 467 offset = do_div(start_ns, p_ns); in icss_iep_update_to_next_boundary() 468 start_ns = start_ns * p_ns; in icss_iep_update_to_next_boundary() 471 start_ns += p_ns; in icss_iep_update_to_next_boundary() 473 regmap_write(iep->map, ICSS_IEP_CMP1_REG0, lower_32_bits(start_ns)); in icss_iep_update_to_next_boundary() 475 regmap_write(iep->map, ICSS_IEP_CMP1_REG1, upper_32_bits(start_ns)); in icss_iep_update_to_next_boundary() [all …]
|
/drivers/net/ethernet/renesas/ |
D | ravb_ptp.c | 224 u64 start_ns; in ravb_ptp_perout() local 227 start_ns = req->start.sec * NSEC_PER_SEC + req->start.nsec; in ravb_ptp_perout() 230 if (start_ns > U32_MAX) { in ravb_ptp_perout() 245 perout->target = (u32)start_ns; in ravb_ptp_perout() 247 error = ravb_ptp_update_compare(priv, (u32)start_ns); in ravb_ptp_perout()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.c | 143 static void ptp_hrtimer_start(struct ptp *ptp, ktime_t start_ns) in ptp_hrtimer_start() argument 147 period_ns = ktime_set(0, (NSEC_PER_SEC + 100 - start_ns)); in ptp_hrtimer_start()
|
/drivers/net/ethernet/sfc/siena/ |
D | ptp.c | 895 unsigned start_ns, end_ns; in efx_ptp_read_timeset() local 904 start_ns = timeset->host_start & MC_NANOSECOND_MASK; in efx_ptp_read_timeset() 907 if (end_ns < start_ns) in efx_ptp_read_timeset() 910 timeset->window = end_ns - start_ns; in efx_ptp_read_timeset()
|
/drivers/net/ethernet/sfc/ |
D | ptp.c | 876 unsigned start_ns, end_ns; in efx_ptp_read_timeset() local 885 start_ns = timeset->host_start & MC_NANOSECOND_MASK; in efx_ptp_read_timeset() 888 if (end_ns < start_ns) in efx_ptp_read_timeset() 891 timeset->window = end_ns - start_ns; in efx_ptp_read_timeset()
|
/drivers/ptp/ |
D | ptp_ocp.c | 197 u32 start_ns; member 1828 ktime_t start_ns; in ptp_ocp_signal_set() local 1841 start_ns = ktime_set(ts.tv_sec, ts.tv_nsec) + NSEC_PER_MSEC; in ptp_ocp_signal_set() 1844 s->start = DIV64_U64_ROUND_UP(start_ns, s->period); in ptp_ocp_signal_set() 1854 if (s->start < start_ns) in ptp_ocp_signal_set() 1905 iowrite32(ts.tv_nsec, ®->start_ns); in ptp_ocp_signal_enable()
|