| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| A D | bnxt_ptp.c | 61 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read() local 75 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_get_current_time() local 168 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_pps_event() local 196 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_cfg_pin() local 247 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_reapply_pps() local 380 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_hwrm_ptp_cfg() local 408 struct bnxt_ptp_cfg *ptp; in bnxt_hwtstamp_set() local 481 struct bnxt_ptp_cfg *ptp; in bnxt_hwtstamp_get() local 512 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_map_ptp_regs() local 546 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_stamp_tx_skb() local [all …]
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| A D | qede_ptp.c | 61 struct qede_ptp *ptp; in qede_ptp_adjtime() local 79 struct qede_ptp *ptp; in qede_ptp_gettime() local 100 struct qede_ptp *ptp; in qede_ptp_settime() local 124 struct qede_ptp *ptp; in qede_ptp_ancillary_feature_enable() local 138 struct qede_ptp *ptp; in qede_ptp_task() local 184 struct qede_ptp *ptp; in qede_ptp_read_cc() local 293 struct qede_ptp *ptp; in qede_ptp_hw_ts() local 372 struct qede_ptp *ptp; in qede_ptp_disable() local 404 struct qede_ptp *ptp; in qede_ptp_init() local 437 struct qede_ptp *ptp; in qede_ptp_enable() local [all …]
|
| /linux/drivers/net/ethernet/microchip/ |
| A D | lan743x_ptp.c | 69 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_enqueue_ts() local 86 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_complete() local 147 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_reserve_event_ch() local 323 struct lan743x_ptp *ptp = in lan743x_ptpci_adjfine() local 356 struct lan743x_ptp *ptp = in lan743x_ptpci_adjfreq() local 390 struct lan743x_ptp *ptp = in lan743x_ptpci_adjtime() local 403 struct lan743x_ptp *ptp = in lan743x_ptpci_gettime64() local 420 struct lan743x_ptp *ptp = in lan743x_ptpci_settime64() local 677 struct lan743x_ptp *ptp = in lan743x_ptpci_enable() local 730 struct lan743x_ptp *ptp = in lan743x_ptpci_do_aux_work() local [all …]
|
| /linux/drivers/ptp/ |
| A D | ptp_clock.c | 78 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() local 90 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() local 102 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() local 170 struct ptp_clock *ptp = container_of(dev, struct ptp_clock, dev); in ptp_clock_release() local 183 struct ptp_clock *ptp = container_of(work, struct ptp_clock, in ptp_aux_kworker() local 199 struct ptp_clock *ptp; in ptp_clock_register() local 320 int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister() 372 int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index() 378 int ptp_find_pin(struct ptp_clock *ptp, in ptp_find_pin() 396 int ptp_find_pin_unlocked(struct ptp_clock *ptp, in ptp_find_pin_unlocked() [all …]
|
| A D | ptp_sysfs.c | 16 struct ptp_clock *ptp = dev_get_drvdata(dev); in clock_name_show() local 41 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_enable_store() local 66 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_fifo_show() local 101 struct ptp_clock *ptp = dev_get_drvdata(dev); in period_store() local 129 struct ptp_clock *ptp = dev_get_drvdata(dev); in pps_enable_store() local 154 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() local 176 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_show() local 193 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_store() local 252 struct ptp_clock *ptp = dev_get_drvdata(dev); in max_vclocks_show() local 264 struct ptp_clock *ptp = dev_get_drvdata(dev); in max_vclocks_store() local [all …]
|
| A D | ptp_vclock.c | 16 static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_vclock_adjfine() 33 static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_vclock_adjtime() 45 static int ptp_vclock_gettime(struct ptp_clock_info *ptp, in ptp_vclock_gettime() 60 static int ptp_vclock_settime(struct ptp_clock_info *ptp, in ptp_vclock_settime() 74 static long ptp_vclock_refresh(struct ptp_clock_info *ptp) in ptp_vclock_refresh() 99 struct ptp_clock *ptp = vclock->pclock; in ptp_vclock_read() local 156 struct ptp_clock *ptp; in ptp_get_vclocks_index() local 193 struct ptp_clock *ptp; in ptp_convert_timestamp() local
|
| A D | ptp_kvm_common.c | 58 static int ptp_kvm_getcrosststamp(struct ptp_clock_info *ptp, in ptp_kvm_getcrosststamp() 69 static int ptp_kvm_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_kvm_adjfreq() 74 static int ptp_kvm_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_kvm_adjtime() 79 static int ptp_kvm_settime(struct ptp_clock_info *ptp, in ptp_kvm_settime() 85 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_kvm_gettime() 105 static int ptp_kvm_enable(struct ptp_clock_info *ptp, in ptp_kvm_enable()
|
| A D | ptp_chardev.c | 48 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, in ptp_set_pinfunc() 111 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_ioctl() local 434 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_poll() local 446 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_read() local
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_ptp.c | 15 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjfine() local 32 static int ptp_set_thresh(struct otx2_ptp *ptp, u64 thresh) in ptp_set_thresh() 51 struct otx2_ptp *ptp = container_of(cc, struct otx2_ptp, cycle_counter); in ptp_cc_read() local 77 static u64 ptp_tstmp_read(struct otx2_ptp *ptp) in ptp_tstmp_read() 106 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjtime() local 120 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_gettime() local 137 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_settime() local 151 static int otx2_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, in otx2_ptp_verify_pin() 167 struct otx2_ptp *ptp = container_of(work, struct otx2_ptp, in otx2_ptp_extts_check() local 197 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_enable() local [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| A D | ptp.c | 55 struct ptp *ptp = first_ptp_block; in ptp_get() local 67 void ptp_put(struct ptp *ptp) in ptp_put() 75 static int ptp_adjfine(struct ptp *ptp, long scaled_ppm) in ptp_adjfine() 115 static int ptp_get_clock(struct ptp *ptp, u64 *clk) in ptp_get_clock() 123 void ptp_start(struct ptp *ptp, u64 sclk, u32 ext_clk_freq, u32 extts) in ptp_start() 172 static int ptp_get_tstmp(struct ptp *ptp, u64 *clk) in ptp_get_tstmp() 179 static int ptp_set_thresh(struct ptp *ptp, u64 thresh) in ptp_set_thresh() 190 struct ptp *ptp; in ptp_probe() local 236 struct ptp *ptp = pci_get_drvdata(pdev); in ptp_remove() local
|
| A D | ptp.h | 15 struct ptp { struct 21 struct ptp *ptp_get(void); argument
|
| /linux/drivers/net/ethernet/mscc/ |
| A D | ocelot_ptp.c | 13 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ocelot_ptp_gettime64() 47 int ocelot_ptp_settime64(struct ptp_clock_info *ptp, in ocelot_ptp_settime64() 79 int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ocelot_ptp_adjtime() 124 int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ocelot_ptp_adjfine() 170 int ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in ocelot_ptp_verify() 185 int ocelot_ptp_enable(struct ptp_clock_info *ptp, in ocelot_ptp_enable()
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| A D | ptp.c | 25 static int e1000e_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in e1000e_phc_adjfreq() 78 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime() 152 static int e1000e_phc_getcrosststamp(struct ptp_clock_info *ptp, in e1000e_phc_getcrosststamp() 173 static int e1000e_phc_gettimex(struct ptp_clock_info *ptp, in e1000e_phc_gettimex() 203 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime() 230 static int e1000e_phc_enable(struct ptp_clock_info __always_unused *ptp, in e1000e_phc_enable()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| A D | stmmac_ptp.c | 22 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq() 57 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() 133 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time() 158 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time() 172 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable() 262 static int stmmac_getcrosststamp(struct ptp_clock_info *ptp, in stmmac_getcrosststamp()
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | ptp.c | 559 struct efx_ptp_data *ptp, in efx_ptp_mac_nic_to_ktime_correction() 612 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_nic_to_kernel_time() local 633 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() local 861 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_send_times() local 932 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_times() local 1027 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_synchronize() local 1154 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_drop_time_expired_events() local 1180 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_match_rx() local 1228 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_events() local 1384 struct efx_ptp_data *ptp = in efx_ptp_pps_worker() local [all …]
|
| /linux/drivers/net/ethernet/renesas/ |
| A D | ravb_ptp.c | 91 static int ravb_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ravb_ptp_adjfreq() 127 static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ravb_ptp_adjtime() 148 static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ravb_ptp_gettime64() 162 static int ravb_ptp_settime64(struct ptp_clock_info *ptp, in ravb_ptp_settime64() 177 static int ravb_ptp_extts(struct ptp_clock_info *ptp, in ravb_ptp_extts() 212 static int ravb_ptp_perout(struct ptp_clock_info *ptp, in ravb_ptp_perout() 279 static int ravb_ptp_enable(struct ptp_clock_info *ptp, in ravb_ptp_enable()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| A D | hclge_ptp.c | 10 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_get_cycle() local 25 static int hclge_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in hclge_ptp_adjfreq() 71 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_set_tx_info() local 140 static int hclge_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, in hclge_ptp_gettimex() 160 static int hclge_ptp_settime(struct ptp_clock_info *ptp, in hclge_ptp_settime() 180 static int hclge_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hclge_ptp_adjtime() 436 struct hclge_ptp *ptp; in hclge_ptp_create_clock() local 542 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_uninit() local
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_clock.c | 121 static int mlx4_en_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in mlx4_en_phc_adjfreq() 154 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx4_en_phc_adjtime() 175 static int mlx4_en_phc_gettime(struct ptp_clock_info *ptp, in mlx4_en_phc_gettime() 200 static int mlx4_en_phc_settime(struct ptp_clock_info *ptp, in mlx4_en_phc_settime() 225 static int mlx4_en_phc_enable(struct ptp_clock_info __always_unused *ptp, in mlx4_en_phc_enable()
|
| /linux/drivers/net/ethernet/intel/igb/ |
| A D | igb_ptp.c | 194 static int igb_ptp_adjfreq_82576(struct ptp_clock_info *ptp, s32 ppb) in igb_ptp_adjfreq_82576() 223 static int igb_ptp_adjfine_82580(struct ptp_clock_info *ptp, long scaled_ppm) in igb_ptp_adjfine_82580() 249 static int igb_ptp_adjtime_82576(struct ptp_clock_info *ptp, s64 delta) in igb_ptp_adjtime_82576() 262 static int igb_ptp_adjtime_i210(struct ptp_clock_info *ptp, s64 delta) in igb_ptp_adjtime_i210() 280 static int igb_ptp_gettimex_82576(struct ptp_clock_info *ptp, in igb_ptp_gettimex_82576() 307 static int igb_ptp_gettimex_82580(struct ptp_clock_info *ptp, in igb_ptp_gettimex_82580() 335 static int igb_ptp_gettimex_i210(struct ptp_clock_info *ptp, in igb_ptp_gettimex_i210() 357 static int igb_ptp_settime_82576(struct ptp_clock_info *ptp, in igb_ptp_settime_82576() 376 static int igb_ptp_settime_i210(struct ptp_clock_info *ptp, in igb_ptp_settime_i210() 510 static int igb_ptp_feature_enable_i210(struct ptp_clock_info *ptp, in igb_ptp_feature_enable_i210() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| A D | cxgb4_ptp.c | 204 static int cxgb4_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in cxgb4_ptp_adjfreq() 269 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cxgb4_ptp_adjtime() 313 static int cxgb4_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in cxgb4_ptp_gettime() 336 static int cxgb4_ptp_settime(struct ptp_clock_info *ptp, in cxgb4_ptp_settime() 392 static int cxgb4_ptp_enable(struct ptp_clock_info __always_unused *ptp, in cxgb4_ptp_enable()
|
| /linux/include/linux/ |
| A D | ptp_clock_kernel.h | 314 static inline int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister() 316 static inline void ptp_clock_event(struct ptp_clock *ptp, in ptp_clock_event() 319 static inline int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index() 321 static inline int ptp_find_pin(struct ptp_clock *ptp, in ptp_find_pin() 324 static inline int ptp_schedule_worker(struct ptp_clock *ptp, in ptp_schedule_worker() 327 static inline void ptp_cancel_worker_sync(struct ptp_clock *ptp) in ptp_cancel_worker_sync()
|
| /linux/drivers/net/ethernet/xscale/ |
| A D | ptp_ixp46x.c | 124 static int ptp_ixp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_ixp_adjfreq() 148 static int ptp_ixp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_ixp_adjtime() 166 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_ixp_gettime() 183 static int ptp_ixp_settime(struct ptp_clock_info *ptp, in ptp_ixp_settime() 202 static int ptp_ixp_enable(struct ptp_clock_info *ptp, in ptp_ixp_enable()
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| A D | ptp.c | 199 static int mv88e6xxx_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mv88e6xxx_ptp_adjfine() 227 static int mv88e6xxx_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in mv88e6xxx_ptp_adjtime() 238 static int mv88e6xxx_ptp_gettime(struct ptp_clock_info *ptp, in mv88e6xxx_ptp_gettime() 253 static int mv88e6xxx_ptp_settime(struct ptp_clock_info *ptp, in mv88e6xxx_ptp_settime() 321 static int mv88e6352_ptp_enable(struct ptp_clock_info *ptp, in mv88e6352_ptp_enable() 334 static int mv88e6352_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in mv88e6352_ptp_verify()
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| A D | mvpp2_tai.c | 85 static struct mvpp2_tai *ptp_to_tai(struct ptp_clock_info *ptp) in ptp_to_tai() 164 static int mvpp22_tai_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mvpp22_tai_adjfine() 205 static int mvpp22_tai_adjtime(struct ptp_clock_info *ptp, s64 delta) in mvpp22_tai_adjtime() 235 static int mvpp22_tai_gettimex64(struct ptp_clock_info *ptp, in mvpp22_tai_gettimex64() 276 static int mvpp22_tai_settime64(struct ptp_clock_info *ptp, in mvpp22_tai_settime64() 302 static long mvpp22_tai_aux_work(struct ptp_clock_info *ptp) in mvpp22_tai_aux_work()
|
| /linux/drivers/net/dsa/hirschmann/ |
| A D | hellcreek_ptp.c | 83 static int hellcreek_ptp_gettime(struct ptp_clock_info *ptp, in hellcreek_ptp_gettime() 98 static int hellcreek_ptp_settime(struct ptp_clock_info *ptp, in hellcreek_ptp_settime() 126 static int hellcreek_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in hellcreek_ptp_adjfine() 173 static int hellcreek_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hellcreek_ptp_adjtime() 221 static int hellcreek_ptp_enable(struct ptp_clock_info *ptp, in hellcreek_ptp_enable()
|