Lines Matching refs:seconds
25 u32 seconds, u32 nano_seconds,
78 u32 seconds, u32 nano_seconds, in lan743x_ptp_tx_ts_enqueue_ts() argument
85 ptp->tx_ts_seconds_queue[ptp->tx_ts_queue_size] = seconds; in lan743x_ptp_tx_ts_enqueue_ts()
100 u32 header, nseconds, seconds; in lan743x_ptp_tx_ts_complete() local
118 seconds = ptp->tx_ts_seconds_queue[i]; in lan743x_ptp_tx_ts_complete()
122 tstamps.hwtstamp = ktime_set(seconds, nseconds); in lan743x_ptp_tx_ts_complete()
192 u32 *seconds, u32 *nano_seconds,
381 u32 seconds = 0; in lan743x_ptpci_gettime64() local
384 lan743x_ptp_io_clock_get(adapter, &seconds, &nano_seconds, in lan743x_ptpci_gettime64()
387 lan743x_ptp_clock_get(adapter, &seconds, &nano_seconds, NULL); in lan743x_ptpci_gettime64()
388 ts->tv_sec = seconds; in lan743x_ptpci_gettime64()
402 u32 seconds = 0; in lan743x_ptpci_settime64() local
419 seconds = ts->tv_sec; in lan743x_ptpci_settime64()
421 lan743x_ptp_clock_set(adapter, seconds, nano_seconds, 0); in lan743x_ptpci_settime64()
1069 u32 cap_info, cause, header, nsec, seconds; in lan743x_ptpci_do_aux_work() local
1086 seconds = lan743x_csr_read(adapter, in lan743x_ptpci_do_aux_work()
1099 seconds, in lan743x_ptpci_do_aux_work()
1197 u32 *seconds, u32 *nano_seconds, in lan743x_ptp_clock_get() argument
1207 if (seconds) in lan743x_ptp_clock_get()
1208 (*seconds) = lan743x_csr_read(adapter, PTP_CLOCK_SEC); in lan743x_ptp_clock_get()
1251 s32 seconds = 0; in lan743x_ptp_clock_step() local
1298 seconds = (s32)div_u64_rem(abs_time_step_ns, 1000000000, in lan743x_ptp_clock_step()
1303 seconds = -((s32)div_u64_rem(abs_time_step_ns, 1000000000, in lan743x_ptp_clock_step()
1311 seconds--; in lan743x_ptp_clock_step()
1323 seconds++; in lan743x_ptp_clock_step()
1327 while (seconds) { in lan743x_ptp_clock_step()
1329 if (seconds > 0) { in lan743x_ptp_clock_step()
1330 u32 adjustment_value = (u32)seconds; in lan743x_ptp_clock_step()
1337 seconds -= ((s32)adjustment_value); in lan743x_ptp_clock_step()
1339 u32 adjustment_value = (u32)(-seconds); in lan743x_ptp_clock_step()
1345 seconds += ((s32)adjustment_value); in lan743x_ptp_clock_step()
1687 u32 seconds, u32 nano_seconds, in lan743x_ptp_clock_set() argument
1694 lan743x_csr_write(adapter, PTP_CLOCK_SEC, seconds); in lan743x_ptp_clock_set()