/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | ptp.c | 27 static int e1000e_phc_adjfine(struct ptp_clock_info *ptp, long delta) in e1000e_phc_adjfine() 30 ptp_clock_info); in e1000e_phc_adjfine() 66 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime() 69 ptp_clock_info); in e1000e_phc_adjtime() 141 static int e1000e_phc_getcrosststamp(struct ptp_clock_info *ptp, in e1000e_phc_getcrosststamp() 145 ptp_clock_info); in e1000e_phc_getcrosststamp() 162 static int e1000e_phc_gettimex(struct ptp_clock_info *ptp, in e1000e_phc_gettimex() 167 ptp_clock_info); in e1000e_phc_gettimex() 192 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime() 196 ptp_clock_info); in e1000e_phc_settime() [all …]
|
/linux/include/linux/ |
H A D | ptp_clock_kernel.h | 168 struct ptp_clock_info { struct 178 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm); argument 179 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase); argument 180 s32 (*getmaxphase)(struct ptp_clock_info *ptp); argument 181 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta); argument 182 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); argument 183 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, argument 185 int (*getcrosststamp)(struct ptp_clock_info *ptp, argument 187 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts); argument 188 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts); argument [all …]
|
/linux/drivers/net/ethernet/engleder/ |
H A D | tsnep_ptp.c | 76 static int tsnep_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in tsnep_ptp_adjfine() 79 ptp_clock_info); in tsnep_ptp_adjfine() 104 static int tsnep_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in tsnep_ptp_adjtime() 107 ptp_clock_info); in tsnep_ptp_adjtime() 129 static int tsnep_ptp_gettimex64(struct ptp_clock_info *ptp, in tsnep_ptp_gettimex64() 134 ptp_clock_info); in tsnep_ptp_gettimex64() 156 static int tsnep_ptp_settime64(struct ptp_clock_info *ptp, in tsnep_ptp_settime64() 160 ptp_clock_info); in tsnep_ptp_settime64() 178 static int tsnep_ptp_getcyclesx64(struct ptp_clock_info *ptp, in tsnep_ptp_getcyclesx64() 183 ptp_clock_info); in tsnep_ptp_getcyclesx64() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | ptp.c | 150 iwl_mvm_phc_get_crosstimestamp(struct ptp_clock_info *ptp, in iwl_mvm_phc_get_crosstimestamp() 154 ptp_data.ptp_clock_info); in iwl_mvm_phc_get_crosstimestamp() 206 static int iwl_mvm_ptp_gettime(struct ptp_clock_info *ptp, in iwl_mvm_ptp_gettime() 210 ptp_data.ptp_clock_info); in iwl_mvm_ptp_gettime() 223 static int iwl_mvm_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in iwl_mvm_ptp_adjtime() 226 ptp_data.ptp_clock_info); in iwl_mvm_ptp_adjtime() 228 ptp_clock_info); in iwl_mvm_ptp_adjtime() 238 static int iwl_mvm_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in iwl_mvm_ptp_adjfine() 241 ptp_data.ptp_clock_info); in iwl_mvm_ptp_adjfine() 277 mvm->ptp_data.ptp_clock_info.owner = THIS_MODULE; in iwl_mvm_ptp_init() [all …]
|
/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-ptp.c | 137 static int xgbe_adjfine(struct ptp_clock_info *info, long scaled_ppm) in xgbe_adjfine() 141 ptp_clock_info); in xgbe_adjfine() 156 static int xgbe_adjtime(struct ptp_clock_info *info, s64 delta) in xgbe_adjtime() 160 ptp_clock_info); in xgbe_adjtime() 170 static int xgbe_gettime(struct ptp_clock_info *info, struct timespec64 *ts) in xgbe_gettime() 174 ptp_clock_info); in xgbe_gettime() 189 static int xgbe_settime(struct ptp_clock_info *info, in xgbe_settime() 194 ptp_clock_info); in xgbe_settime() 209 static int xgbe_enable(struct ptp_clock_info *info, in xgbe_enable() 217 struct ptp_clock_info *info = &pdata->ptp_clock_info; in xgbe_ptp_register()
|
/linux/drivers/net/dsa/hirschmann/ |
H A D | hellcreek_ptp.c | 88 static int hellcreek_ptp_gettimex(struct ptp_clock_info *ptp, in hellcreek_ptp_gettimex() 104 static int hellcreek_ptp_settime(struct ptp_clock_info *ptp, in hellcreek_ptp_settime() 132 static int hellcreek_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in hellcreek_ptp_adjfine() 179 static int hellcreek_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hellcreek_ptp_adjtime() 227 static int hellcreek_ptp_enable(struct ptp_clock_info *ptp, in hellcreek_ptp_enable() 400 hellcreek->ptp_clock_info.owner = THIS_MODULE; in hellcreek_ptp_setup() 401 snprintf(hellcreek->ptp_clock_info.name, in hellcreek_ptp_setup() 402 sizeof(hellcreek->ptp_clock_info.name), in hellcreek_ptp_setup() 409 hellcreek->ptp_clock_info.max_adj = 62500000; in hellcreek_ptp_setup() 410 hellcreek->ptp_clock_info.n_alarm = 0; in hellcreek_ptp_setup() [all …]
|
/linux/include/soc/mscc/ |
H A D | ocelot_ptp.h | 48 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts); 49 int ocelot_ptp_settime64(struct ptp_clock_info *ptp, 51 int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta); 52 int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); 53 int ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, 55 int ocelot_ptp_enable(struct ptp_clock_info *ptp, 58 const struct ptp_clock_info *info);
|
/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | ptp.c | 259 static int mv88e6xxx_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mv88e6xxx_ptp_adjfine() 286 static int mv88e6xxx_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in mv88e6xxx_ptp_adjtime() 297 static int mv88e6xxx_ptp_gettime(struct ptp_clock_info *ptp, in mv88e6xxx_ptp_gettime() 312 static int mv88e6xxx_ptp_settime(struct ptp_clock_info *ptp, in mv88e6xxx_ptp_settime() 380 static int mv88e6352_ptp_enable(struct ptp_clock_info *ptp, in mv88e6352_ptp_enable() 393 static int mv88e6352_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in mv88e6352_ptp_verify() 513 mv88e6xxx_ptp_gettime(&chip->ptp_clock_info, &ts); in mv88e6xxx_ptp_overflow_check() 542 chip->ptp_clock_info.owner = THIS_MODULE; in mv88e6xxx_ptp_setup() 543 snprintf(chip->ptp_clock_info.name, sizeof(chip->ptp_clock_info.name), in mv88e6xxx_ptp_setup() 546 chip->ptp_clock_info.n_ext_ts = ptp_ops->n_ext_ts; in mv88e6xxx_ptp_setup() [all …]
|
H A D | ptp.h | 144 long mv88e6xxx_hwtstamp_work(struct ptp_clock_info *ptp); 149 ptp_clock_info) 158 static inline long mv88e6xxx_hwtstamp_work(struct ptp_clock_info *ptp) in mv88e6xxx_hwtstamp_work()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_clock.c | 128 static int mlx4_en_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mlx4_en_phc_adjfine() 133 ptp_clock_info); in mlx4_en_phc_adjfine() 152 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx4_en_phc_adjtime() 155 ptp_clock_info); in mlx4_en_phc_adjtime() 173 static int mlx4_en_phc_gettime(struct ptp_clock_info *ptp, in mlx4_en_phc_gettime() 177 ptp_clock_info); in mlx4_en_phc_gettime() 198 static int mlx4_en_phc_settime(struct ptp_clock_info *ptp, in mlx4_en_phc_settime() 202 ptp_clock_info); in mlx4_en_phc_settime() 223 static int mlx4_en_phc_enable(struct ptp_clock_info __always_unused *ptp, in mlx4_en_phc_enable() 230 static const struct ptp_clock_info mlx4_en_ptp_clock_info = { [all …]
|
/linux/drivers/ptp/ |
H A D | ptp_kvm_common.c | 22 struct ptp_clock_info caps; 58 static int ptp_kvm_getcrosststamp(struct ptp_clock_info *ptp, in ptp_kvm_getcrosststamp() 69 static int ptp_kvm_adjfine(struct ptp_clock_info *ptp, long delta) in ptp_kvm_adjfine() 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() 111 static const struct ptp_clock_info ptp_kvm_caps = {
|
H A D | ptp_vmw.c | 39 static int ptp_vmw_adjtime(struct ptp_clock_info *info, s64 delta) in ptp_vmw_adjtime() 44 static int ptp_vmw_adjfine(struct ptp_clock_info *info, long delta) in ptp_vmw_adjfine() 49 static int ptp_vmw_gettime(struct ptp_clock_info *info, struct timespec64 *ts) in ptp_vmw_gettime() 59 static int ptp_vmw_settime(struct ptp_clock_info *info, in ptp_vmw_settime() 65 static int ptp_vmw_enable(struct ptp_clock_info *info, in ptp_vmw_enable() 71 static struct ptp_clock_info ptp_vmw_clock_info = {
|
H A D | ptp_mock.c | 37 struct ptp_clock_info info; 49 static int mock_phc_adjfine(struct ptp_clock_info *info, long scaled_ppm) in mock_phc_adjfine() 65 static int mock_phc_adjtime(struct ptp_clock_info *info, s64 delta) in mock_phc_adjtime() 76 static int mock_phc_settime64(struct ptp_clock_info *info, in mock_phc_settime64() 89 static int mock_phc_gettime64(struct ptp_clock_info *info, struct timespec64 *ts) in mock_phc_gettime64() 103 static long mock_phc_refresh(struct ptp_clock_info *info) in mock_phc_refresh() 129 phc->info = (struct ptp_clock_info) { in mock_phc_create()
|
H A D | ptp_vclock.c | 43 static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_vclock_adjfine() 60 static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_vclock_adjtime() 72 static int ptp_vclock_gettime(struct ptp_clock_info *ptp, in ptp_vclock_gettime() 87 static int ptp_vclock_gettimex(struct ptp_clock_info *ptp, in ptp_vclock_gettimex() 111 static int ptp_vclock_settime(struct ptp_clock_info *ptp, in ptp_vclock_settime() 125 static int ptp_vclock_getcrosststamp(struct ptp_clock_info *ptp, in ptp_vclock_getcrosststamp() 147 static long ptp_vclock_refresh(struct ptp_clock_info *ptp) in ptp_vclock_refresh() 157 static const struct ptp_clock_info ptp_vclock_info = {
|
H A D | ptp_dte.c | 44 struct ptp_clock_info caps; 137 static int ptp_dte_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_dte_adjfine() 161 static int ptp_dte_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_dte_adjtime() 173 static int ptp_dte_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_dte_gettime() 185 static int ptp_dte_settime(struct ptp_clock_info *ptp, in ptp_dte_settime() 210 static int ptp_dte_enable(struct ptp_clock_info *ptp, in ptp_dte_enable() 216 static const struct ptp_clock_info ptp_dte_caps = {
|
/linux/drivers/net/ethernet/cadence/ |
H A D | macb_ptp.c | 41 static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts, in gem_tsu_get_time() 44 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time() 77 static int gem_tsu_set_time(struct ptp_clock_info *ptp, in gem_tsu_set_time() 80 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_set_time() 122 static int gem_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in gem_ptp_adjfine() 124 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjfine() 157 static int gem_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in gem_ptp_adjtime() 159 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjtime() 169 gem_tsu_get_time(&bp->ptp_clock_info, &now, NULL); in gem_ptp_adjtime() 172 gem_tsu_set_time(&bp->ptp_clock_info, in gem_ptp_adjtime() [all …]
|
/linux/include/linux/fsl/ |
H A D | ptp_qoriq.h | 146 struct ptp_clock_info caps; 188 const struct ptp_clock_info *caps); 190 int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); 191 int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta); 192 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); 193 int ptp_qoriq_settime(struct ptp_clock_info *ptp, 195 int ptp_qoriq_enable(struct ptp_clock_info *ptp,
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ptp.c | 206 static int cxgb4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in cxgb4_ptp_adjfine() 209 struct adapter, ptp_clock_info); in cxgb4_ptp_adjfine() 272 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cxgb4_ptp_adjtime() 276 ptp_clock_info); in cxgb4_ptp_adjtime() 316 static int cxgb4_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in cxgb4_ptp_gettime() 319 ptp_clock_info); in cxgb4_ptp_gettime() 339 static int cxgb4_ptp_settime(struct ptp_clock_info *ptp, in cxgb4_ptp_settime() 343 struct adapter, ptp_clock_info); in cxgb4_ptp_settime() 395 static int cxgb4_ptp_enable(struct ptp_clock_info __always_unused *ptp, in cxgb4_ptp_enable() 402 static const struct ptp_clock_info cxgb4_ptp_clock_info = { [all …]
|
/linux/drivers/net/ethernet/renesas/ |
H A D | rcar_gen4_ptp.c | 29 static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in rcar_gen4_ptp_adjfine() 47 static void _rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_gettime() 57 static int rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in rcar_gen4_ptp_gettime() 71 static void _rcar_gen4_ptp_settime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_settime() 86 static int rcar_gen4_ptp_settime(struct ptp_clock_info *ptp, in rcar_gen4_ptp_settime() 99 static int rcar_gen4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in rcar_gen4_ptp_adjtime() 116 static int rcar_gen4_ptp_enable(struct ptp_clock_info *ptp, in rcar_gen4_ptp_enable() 122 static struct ptp_clock_info rcar_gen4_ptp_info = {
|
H A D | ravb_ptp.c | 91 static int ravb_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ravb_ptp_adjfine() 120 static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ravb_ptp_adjtime() 141 static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ravb_ptp_gettime64() 155 static int ravb_ptp_settime64(struct ptp_clock_info *ptp, in ravb_ptp_settime64() 170 static int ravb_ptp_extts(struct ptp_clock_info *ptp, in ravb_ptp_extts() 205 static int ravb_ptp_perout(struct ptp_clock_info *ptp, in ravb_ptp_perout() 272 static int ravb_ptp_enable(struct ptp_clock_info *ptp, in ravb_ptp_enable() 285 static const struct ptp_clock_info ravb_ptp_info = {
|
/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.c | 335 static int lan743x_ptpci_adjfine(struct ptp_clock_info *ptpci, long scaled_ppm) in lan743x_ptpci_adjfine() 338 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjfine() 361 static int lan743x_ptpci_adjtime(struct ptp_clock_info *ptpci, s64 delta) in lan743x_ptpci_adjtime() 364 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjtime() 373 static int lan743x_ptpci_gettime64(struct ptp_clock_info *ptpci, in lan743x_ptpci_gettime64() 377 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_gettime64() 394 static int lan743x_ptpci_settime64(struct ptp_clock_info *ptpci, in lan743x_ptpci_settime64() 398 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_settime64() 960 static int lan743x_ptpci_enable(struct ptp_clock_info *ptpci, in lan743x_ptpci_enable() 964 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_enable() [all …]
|
/linux/drivers/net/ethernet/xscale/ |
H A D | ptp_ixp46x.c | 28 struct ptp_clock_info caps; 123 static int ptp_ixp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_ixp_adjfine() 136 static int ptp_ixp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_ixp_adjtime() 154 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_ixp_gettime() 171 static int ptp_ixp_settime(struct ptp_clock_info *ptp, in ptp_ixp_settime() 190 static int ptp_ixp_enable(struct ptp_clock_info *ptp, in ptp_ixp_enable() 215 static const struct ptp_clock_info ptp_ixp_caps = {
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ptp.c | 47 static int otx2_ptp_hw_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_hw_adjtime() 99 static int otx2_ptp_hw_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_hw_gettime() 112 static int otx2_ptp_hw_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_hw_settime() 142 static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in otx2_ptp_adjfine() 230 static int otx2_ptp_tc_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_tc_adjtime() 243 static int otx2_ptp_tc_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_tc_gettime() 258 static int otx2_ptp_tc_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_tc_settime() 274 static int otx2_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, in otx2_ptp_verify_pin() 339 static int otx2_ptp_enable(struct ptp_clock_info *ptp_info, in otx2_ptp_enable() 423 ptp_ptr->ptp_info = (struct ptp_clock_info) { in otx2_ptp_init()
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ptp.c | 24 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, long scaled_ppm) in stmmac_adjust_freq() 48 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() 124 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time() 149 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time() 163 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable() 257 static int stmmac_getcrosststamp(struct ptp_clock_info *ptp, in stmmac_getcrosststamp() 268 static struct ptp_clock_info stmmac_ptp_clock_ops = {
|
/linux/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_tai.c | 57 struct ptp_clock_info caps; 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()
|