Searched refs:ptp (Results 1 - 25 of 35) sorted by relevance

12

/drivers/ptp/
H A Dptp_clock.c109 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); local
110 return ptp->info->settime(ptp->info, tp);
115 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); local
116 return ptp->info->gettime(ptp->info, tp);
121 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); local
125 ops = ptp->info;
149 ptp->dialed_frequency = tx->freq;
151 tx->freq = ptp
172 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); local
185 struct ptp_clock *ptp; local
265 ptp_clock_unregister(struct ptp_clock *ptp) argument
281 ptp_clock_event(struct ptp_clock *ptp, struct ptp_clock_event *event) argument
308 ptp_clock_index(struct ptp_clock *ptp) argument
314 ptp_find_pin(struct ptp_clock *ptp, enum ptp_pin_function func, unsigned int chan) argument
[all...]
H A DMakefile5 ptp-y := ptp_clock.o ptp_chardev.o ptp_sysfs.o
6 obj-$(CONFIG_PTP_1588_CLOCK) += ptp.o
H A Dptp_sysfs.c28 struct ptp_clock *ptp = dev_get_drvdata(dev); local
29 return snprintf(page, PAGE_SIZE-1, "%s\n", ptp->info->name);
37 struct ptp_clock *ptp = dev_get_drvdata(dev); \
38 return snprintf(page, PAGE_SIZE-1, "%d\n", ptp->info->var); \
74 struct ptp_clock *ptp = dev_get_drvdata(dev); local
75 struct ptp_clock_info *ops = ptp->info;
98 struct ptp_clock *ptp = dev_get_drvdata(dev); local
99 struct timestamp_event_queue *queue = &ptp->tsevq;
107 if (mutex_lock_interruptible(&ptp->tsevq_mux))
124 mutex_unlock(&ptp
132 struct ptp_clock *ptp = dev_get_drvdata(dev); local
159 struct ptp_clock *ptp = dev_get_drvdata(dev); local
181 ptp_pin_name2index(struct ptp_clock *ptp, const char *name) argument
194 struct ptp_clock *ptp = dev_get_drvdata(dev); local
216 struct ptp_clock *ptp = dev_get_drvdata(dev); local
243 ptp_cleanup_sysfs(struct ptp_clock *ptp) argument
266 ptp_populate_pins(struct ptp_clock *ptp) argument
308 ptp_populate_sysfs(struct ptp_clock *ptp) argument
[all...]
H A Dptp_chardev.c58 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, argument
61 struct ptp_clock_info *info = ptp->info;
124 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); local
125 struct ptp_clock_info *ops = ptp->info;
135 caps.max_adj = ptp->info->max_adj;
136 caps.n_alarm = ptp->info->n_alarm;
137 caps.n_ext_ts = ptp->info->n_ext_ts;
138 caps.n_per_out = ptp->info->n_per_out;
139 caps.pps = ptp->info->pps;
140 caps.n_pins = ptp
261 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); local
273 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); local
[all...]
H A Dptp_private.h77 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin,
97 int ptp_cleanup_sysfs(struct ptp_clock *ptp);
99 int ptp_populate_sysfs(struct ptp_clock *ptp);
H A Dptp_ixp46x.c136 static int ptp_ixp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
141 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps);
160 static int ptp_ixp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
164 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps);
178 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
183 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps);
197 static int ptp_ixp_settime(struct ptp_clock_info *ptp, argument
202 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps);
217 static int ptp_ixp_enable(struct ptp_clock_info *ptp, argument
220 struct ixp_clock *ixp_clock = container_of(ptp, struc
[all...]
H A Dptp_pch.c412 static int ptp_pch_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
417 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps);
436 static int ptp_pch_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
440 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps);
452 static int ptp_pch_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
457 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps);
469 static int ptp_pch_settime(struct ptp_clock_info *ptp, argument
474 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps);
487 static int ptp_pch_enable(struct ptp_clock_info *ptp, argument
490 struct pch_dev *pch_dev = container_of(ptp, struc
[all...]
/drivers/net/ethernet/sfc/
H A Dptp.c324 static int efx_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta);
325 static int efx_phc_adjtime(struct ptp_clock_info *ptp, s64 delta);
326 static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec *ts);
327 static int efx_phc_settime(struct ptp_clock_info *ptp,
329 static int efx_phc_enable(struct ptp_clock_info *ptp,
482 struct efx_ptp_data *ptp = efx->ptp_data; local
503 ptp->ns_to_nic_time = efx_ptp_ns_to_s27;
504 ptp->nic_to_kernel_time = efx_ptp_s27_to_ktime_correction;
506 ptp->ns_to_nic_time = efx_ptp_ns_to_s_ns;
507 ptp
640 struct efx_ptp_data *ptp = efx->ptp_data; local
713 struct efx_ptp_data *ptp = efx->ptp_data; local
808 struct efx_ptp_data *ptp = efx->ptp_data; local
919 struct efx_ptp_data *ptp = efx->ptp_data; local
947 struct efx_ptp_data *ptp = efx->ptp_data; local
995 struct efx_ptp_data *ptp = efx->ptp_data; local
1029 struct efx_ptp_data *ptp = efx->ptp_data; local
1042 struct efx_ptp_data *ptp = efx->ptp_data; local
1091 struct efx_ptp_data *ptp = efx->ptp_data; local
1116 struct efx_ptp_data *ptp = efx->ptp_data; local
1151 struct efx_ptp_data *ptp = local
1209 struct efx_ptp_data *ptp; local
1365 struct efx_ptp_data *ptp = efx->ptp_data; local
1451 struct efx_ptp_data *ptp = efx->ptp_data; local
1532 struct efx_ptp_data *ptp = efx->ptp_data; local
1581 struct efx_ptp_data *ptp = efx->ptp_data; local
1594 ptp_event_rx(struct efx_nic *efx, struct efx_ptp_data *ptp) argument
1634 ptp_event_fault(struct efx_nic *efx, struct efx_ptp_data *ptp) argument
1645 ptp_event_pps(struct efx_nic *efx, struct efx_ptp_data *ptp) argument
1653 struct efx_ptp_data *ptp = efx->ptp_data; local
1787 efx_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) argument
1820 efx_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
1840 efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
1866 efx_phc_settime(struct ptp_clock_info *ptp, const struct timespec *e_ts) argument
1890 efx_phc_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *request, int enable) argument
[all...]
H A DMakefile4 mcdi.o mcdi_port.o mcdi_mon.o ptp.o
/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c30 * @ptp: pointer to ptp_clock_info structure
35 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) argument
38 container_of(ptp, struct stmmac_priv, ptp_clock_ops);
57 priv->hw->ptp->config_addend(priv->ioaddr, addend);
67 * @ptp: pointer to ptp_clock_info structure
72 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) argument
75 container_of(ptp, struct stmmac_priv, ptp_clock_ops);
92 priv->hw->ptp->adjust_systime(priv->ioaddr, sec, nsec, neg_adj);
102 * @ptp: pointer to ptp_clock_info structure
108 static int stmmac_get_time(struct ptp_clock_info *ptp, struc argument
137 stmmac_set_time(struct ptp_clock_info *ptp, const struct timespec *ts) argument
153 stmmac_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument
[all...]
/drivers/net/ethernet/intel/e1000e/
H A DMakefile36 param.o ethtool.o netdev.o ptp.o
H A Dptp.c31 * @ptp: ptp clock structure
37 static int e1000e_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) argument
39 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter,
48 if ((delta > ptp->max_adj) || (delta <= -1000000000))
83 * @ptp: ptp clock structure
88 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
90 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter,
106 * @ptp
112 e1000e_phc_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
138 e1000e_phc_settime(struct ptp_clock_info *ptp, const struct timespec *ts) argument
165 e1000e_phc_enable(struct ptp_clock_info __always_unused *ptp, struct ptp_clock_request __always_unused *request, int __always_unused on) argument
[all...]
/drivers/usb/gadget/function/
H A Df_ptp.c36 DECLARE_USB_FUNCTION_INIT(ptp, ptp_alloc_inst, ptp_alloc);
/drivers/net/ethernet/amd/xgbe/
H A DMakefile5 xgbe-ptp.o
/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ptp.c262 static int fm10k_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
268 interface = container_of(ptp, struct fm10k_intfc, ptp_caps);
277 static int fm10k_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
282 interface = container_of(ptp, struct fm10k_intfc, ptp_caps);
291 static int fm10k_ptp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
297 interface = container_of(ptp, struct fm10k_intfc, ptp_caps);
308 static int fm10k_ptp_settime(struct ptp_clock_info *ptp, argument
315 interface = container_of(ptp, struct fm10k_intfc, ptp_caps);
324 static int fm10k_ptp_enable(struct ptp_clock_info *ptp, argument
338 if (rq->perout.index >= ptp
390 fm10k_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Den_clock.c152 * @ptp: ptp clock structure
158 static int mlx4_en_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) argument
164 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev,
186 * @ptp: ptp clock structure
191 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
193 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev,
209 * @ptp: ptp cloc
215 mlx4_en_phc_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
241 mlx4_en_phc_settime(struct ptp_clock_info *ptp, const struct timespec *ts) argument
266 mlx4_en_phc_enable(struct ptp_clock_info __always_unused *ptp, struct ptp_clock_request __always_unused *request, int __always_unused on) argument
[all...]
/drivers/net/ethernet/intel/igb/
H A Digb_ptp.c199 static int igb_ptp_adjfreq_82576(struct ptp_clock_info *ptp, s32 ppb) argument
201 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
228 static int igb_ptp_adjfreq_82580(struct ptp_clock_info *ptp, s32 ppb) argument
230 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
254 static int igb_ptp_adjtime_82576(struct ptp_clock_info *ptp, s64 delta) argument
256 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
272 static int igb_ptp_adjtime_i210(struct ptp_clock_info *ptp, s64 delta) argument
274 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
290 static int igb_ptp_gettime_82576(struct ptp_clock_info *ptp, argument
293 struct igb_adapter *igb = container_of(ptp, struc
311 igb_ptp_gettime_i210(struct ptp_clock_info *ptp, struct timespec *ts) argument
327 igb_ptp_settime_82576(struct ptp_clock_info *ptp, const struct timespec *ts) argument
347 igb_ptp_settime_i210(struct ptp_clock_info *ptp, const struct timespec *ts) argument
363 igb_ptp_feature_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument
[all...]
/drivers/net/ethernet/intel/i40e/
H A Di40e_ptp.c115 * @ptp: The PTP clock structure
121 static int i40e_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
123 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps);
153 * @ptp: The PTP clock structure
159 static int i40e_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
161 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps);
178 * @ptp: The PTP clock structure
184 static int i40e_ptp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
186 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps);
198 * @ptp
204 i40e_ptp_settime(struct ptp_clock_info *ptp, const struct timespec *ts) argument
226 i40e_ptp_feature_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument
[all...]
/drivers/net/ethernet/ti/
H A Dcpts.c130 static int cpts_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
136 struct cpts *cpts = container_of(ptp, struct cpts, info);
158 static int cpts_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
162 struct cpts *cpts = container_of(ptp, struct cpts, info);
173 static int cpts_ptp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
178 struct cpts *cpts = container_of(ptp, struct cpts, info);
190 static int cpts_ptp_settime(struct ptp_clock_info *ptp, argument
195 struct cpts *cpts = container_of(ptp, struct cpts, info);
207 static int cpts_ptp_enable(struct ptp_clock_info *ptp, argument
/drivers/net/ethernet/freescale/
H A Dfec_ptp.c121 dev_err(&fep->pdev->dev, "No ptp stack is running\n");
153 * second point. So we need to know what the ptp time
164 /* Convert the ptp local counter to 1588 timestamp */
188 * ptp counter, which maybe cause 32-bit wrap. Since the
269 /* grab the ptp lock */
294 * fec_ptp_adjfreq - adjust ptp cycle frequency
295 * @ptp: the ptp clock structure
298 * Adjust the frequency of the ptp cycle counter by the
304 static int fec_ptp_adjfreq(struct ptp_clock_info *ptp, s3 argument
372 fec_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
407 fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
433 fec_ptp_settime(struct ptp_clock_info *ptp, const struct timespec *ts) argument
472 fec_ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument
[all...]
H A Dgianfar_ptp.c38 * gianfar ptp registers
283 static int ptp_gianfar_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
288 struct etsects *etsects = container_of(ptp, struct etsects, caps);
306 static int ptp_gianfar_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
310 struct etsects *etsects = container_of(ptp, struct etsects, caps);
325 static int ptp_gianfar_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
330 struct etsects *etsects = container_of(ptp, struct etsects, caps);
343 static int ptp_gianfar_settime(struct ptp_clock_info *ptp, argument
348 struct etsects *etsects = container_of(ptp, struct etsects, caps);
363 static int ptp_gianfar_enable(struct ptp_clock_info *ptp, argument
[all...]
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c207 * @ptp: the ptp clock structure
210 * adjust the frequency of the ptp cycle counter by the
213 static int ixgbe_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
216 container_of(ptp, struct ixgbe_adapter, ptp_caps);
254 * @ptp: the ptp clock structure
259 static int ixgbe_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
262 container_of(ptp, struct ixgbe_adapter, ptp_caps);
285 * @ptp
291 ixgbe_ptp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
317 ixgbe_ptp_settime(struct ptp_clock_info *ptp, const struct timespec *ts) argument
346 ixgbe_ptp_feature_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument
[all...]
/drivers/net/phy/
H A Ddp83640.c374 /* ptp clock methods */
376 static int ptp_dp83640_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
379 container_of(ptp, struct dp83640_clock, caps);
409 static int ptp_dp83640_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
412 container_of(ptp, struct dp83640_clock, caps);
430 static int ptp_dp83640_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
433 container_of(ptp, struct dp83640_clock, caps);
454 static int ptp_dp83640_settime(struct ptp_clock_info *ptp, argument
458 container_of(ptp, struct dp83640_clock, caps);
471 static int ptp_dp83640_enable(struct ptp_clock_info *ptp, argument
513 ptp_dp83640_verify(struct ptp_clock_info *ptp, unsigned int pin, enum ptp_pin_function func, unsigned int chan) argument
[all...]
/drivers/clk/mxs/
H A Dclk-imx28.c144 emi_xtal, lcdif_div, etm_div, ptp, saif0_div, saif1_div, enumerator in enum:imx28_clk
209 clks[ptp] = mxs_clk_div("ptp", "ptp_sel", ENET, 21, 6, 27);
/drivers/net/ethernet/adi/
H A Dbfin_mac.c944 static int bfin_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) argument
950 container_of(ptp, struct bfin_mac_local, caps);
968 static int bfin_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) argument
973 container_of(ptp, struct bfin_mac_local, caps);
986 static int bfin_ptp_gettime(struct ptp_clock_info *ptp, struct timespec *ts) argument
992 container_of(ptp, struct bfin_mac_local, caps);
1005 static int bfin_ptp_settime(struct ptp_clock_info *ptp, argument
1011 container_of(ptp, struct bfin_mac_local, caps);
1025 static int bfin_ptp_enable(struct ptp_clock_info *ptp, argument

Completed in 1548 milliseconds

12