Home
last modified time | relevance | path

Searched refs:target_ns (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c504 static u64 find_target_cycles(struct mlx5_core_dev *mdev, s64 target_ns) in find_target_cycles() argument
517 nsec_delta = target_ns - nsec_now; in find_target_cycles()
528 s64 target_ns; in perout_conf_internal_timer() local
531 target_ns = timespec64_to_ns(&ts); in perout_conf_internal_timer()
533 return find_target_cycles(mdev, target_ns); in perout_conf_internal_timer()
876 s64 target_ns; in perout_conf_next_event_timer() local
880 target_ns = timespec64_to_ns(&ts); in perout_conf_next_event_timer()
882 return find_target_cycles(mdev, target_ns); in perout_conf_next_event_timer()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c380 static int bnxt_get_target_cycles(struct bnxt_ptp_cfg *ptp, u64 target_ns, in bnxt_get_target_cycles() argument
396 nsec_delta = target_ns - nsec_now; in bnxt_get_target_cycles()
407 u64 target_ns, delta; in bnxt_ptp_perout_cfg() local
413 target_ns = timespec64_to_ns(&ts); in bnxt_ptp_perout_cfg()
415 rc = bnxt_get_target_cycles(ptp, target_ns, &delta); in bnxt_ptp_perout_cfg()