/kernel/linux/linux-6.6/drivers/ptp/ |
H A D | ptp_qoriq.c | 20 #include <linux/fsl/ptp_qoriq.h> 26 /* Caller must hold ptp_qoriq->lock. */ 27 static u64 tmr_cnt_read(struct ptp_qoriq *ptp_qoriq) in tmr_cnt_read() argument 29 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in tmr_cnt_read() 33 lo = ptp_qoriq->read(®s->ctrl_regs->tmr_cnt_l); in tmr_cnt_read() 34 hi = ptp_qoriq->read(®s->ctrl_regs->tmr_cnt_h); in tmr_cnt_read() 40 /* Caller must hold ptp_qoriq->lock. */ 41 static void tmr_cnt_write(struct ptp_qoriq *ptp_qoriq, u6 argument 51 tmr_offset_read(struct ptp_qoriq *ptp_qoriq) tmr_offset_read() argument 64 tmr_offset_write(struct ptp_qoriq *ptp_qoriq, u64 delta_ns) tmr_offset_write() argument 75 set_alarm(struct ptp_qoriq *ptp_qoriq) set_alarm() argument 93 set_fipers(struct ptp_qoriq *ptp_qoriq) set_fipers() argument 106 extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event) extts_clean_up() argument 160 struct ptp_qoriq *ptp_qoriq = priv; ptp_qoriq_isr() local 207 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_adjfine() local 235 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_adjtime() local 265 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_gettime() local 284 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_settime() local 303 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_enable() local 414 ptp_qoriq_auto_config(struct ptp_qoriq *ptp_qoriq, struct device_node *node) ptp_qoriq_auto_config() argument 468 ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base, const struct ptp_clock_info *caps) ptp_qoriq_init() argument 576 ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_free() argument 592 struct ptp_qoriq *ptp_qoriq; ptp_qoriq_probe() local 653 struct ptp_qoriq *ptp_qoriq = platform_get_drvdata(dev); ptp_qoriq_remove() local [all...] |
H A D | ptp_qoriq_debugfs.c | 6 #include <linux/fsl/ptp_qoriq.h> 10 struct ptp_qoriq *ptp_qoriq = data; in ptp_qoriq_fiper1_lpbk_get() local 11 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in ptp_qoriq_fiper1_lpbk_get() 14 ctrl = ptp_qoriq->read(®s->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper1_lpbk_get() 22 struct ptp_qoriq *ptp_qoriq = data; in ptp_qoriq_fiper1_lpbk_set() local 23 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in ptp_qoriq_fiper1_lpbk_set() 26 ctrl = ptp_qoriq->read(®s->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper1_lpbk_set() 32 ptp_qoriq in ptp_qoriq_fiper1_lpbk_set() 41 struct ptp_qoriq *ptp_qoriq = data; ptp_qoriq_fiper2_lpbk_get() local 53 struct ptp_qoriq *ptp_qoriq = data; ptp_qoriq_fiper2_lpbk_set() local 70 ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_create_debugfs() argument 97 ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_remove_debugfs() argument [all...] |
H A D | Makefile | 15 ptp-qoriq-y += ptp_qoriq.o
|
/kernel/linux/linux-5.10/drivers/ptp/ |
H A D | ptp_qoriq.c | 20 #include <linux/fsl/ptp_qoriq.h> 26 /* Caller must hold ptp_qoriq->lock. */ 27 static u64 tmr_cnt_read(struct ptp_qoriq *ptp_qoriq) in tmr_cnt_read() argument 29 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in tmr_cnt_read() 33 lo = ptp_qoriq->read(®s->ctrl_regs->tmr_cnt_l); in tmr_cnt_read() 34 hi = ptp_qoriq->read(®s->ctrl_regs->tmr_cnt_h); in tmr_cnt_read() 40 /* Caller must hold ptp_qoriq->lock. */ 41 static void tmr_cnt_write(struct ptp_qoriq *ptp_qoriq, u6 argument 52 set_alarm(struct ptp_qoriq *ptp_qoriq) set_alarm() argument 68 set_fipers(struct ptp_qoriq *ptp_qoriq) set_fipers() argument 81 extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event) extts_clean_up() argument 135 struct ptp_qoriq *ptp_qoriq = priv; ptp_qoriq_isr() local 182 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_adjfine() local 212 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_adjtime() local 231 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_gettime() local 250 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_settime() local 268 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); ptp_qoriq_enable() local 379 ptp_qoriq_auto_config(struct ptp_qoriq *ptp_qoriq, struct device_node *node) ptp_qoriq_auto_config() argument 433 ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base, const struct ptp_clock_info *caps) ptp_qoriq_init() argument 540 ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_free() argument 556 struct ptp_qoriq *ptp_qoriq; ptp_qoriq_probe() local 617 struct ptp_qoriq *ptp_qoriq = platform_get_drvdata(dev); ptp_qoriq_remove() local [all...] |
H A D | ptp_qoriq_debugfs.c | 6 #include <linux/fsl/ptp_qoriq.h> 10 struct ptp_qoriq *ptp_qoriq = data; in ptp_qoriq_fiper1_lpbk_get() local 11 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in ptp_qoriq_fiper1_lpbk_get() 14 ctrl = ptp_qoriq->read(®s->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper1_lpbk_get() 22 struct ptp_qoriq *ptp_qoriq = data; in ptp_qoriq_fiper1_lpbk_set() local 23 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in ptp_qoriq_fiper1_lpbk_set() 26 ctrl = ptp_qoriq->read(®s->ctrl_regs->tmr_ctrl); in ptp_qoriq_fiper1_lpbk_set() 32 ptp_qoriq in ptp_qoriq_fiper1_lpbk_set() 41 struct ptp_qoriq *ptp_qoriq = data; ptp_qoriq_fiper2_lpbk_get() local 53 struct ptp_qoriq *ptp_qoriq = data; ptp_qoriq_fiper2_lpbk_set() local 70 ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_create_debugfs() argument 97 ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_remove_debugfs() argument [all...] |
H A D | Makefile | 13 ptp-qoriq-y += ptp_qoriq.o
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ptp.c | 19 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); in dpaa2_ptp_enable() local 26 dev = ptp_qoriq->dev; in dpaa2_ptp_enable() 42 extts_clean_up(ptp_qoriq, rq->extts.index, false); in dpaa2_ptp_enable() 91 struct ptp_qoriq *ptp_qoriq = priv; in dpaa2_ptp_irq_handler_thread() local 98 dev = ptp_qoriq->dev; in dpaa2_ptp_irq_handler_thread() 110 ptp_clock_event(ptp_qoriq->clock, &event); in dpaa2_ptp_irq_handler_thread() 114 extts_clean_up(ptp_qoriq, in dpaa2_ptp_irq_handler_thread() 133 struct ptp_qoriq *ptp_qoriq; dpaa2_ptp_probe() local 228 struct ptp_qoriq *ptp_qoriq; dpaa2_ptp_remove() local [all...] |
H A D | dpaa2-ptp.h | 10 #include <linux/fsl/ptp_qoriq.h> 16 extern struct ptp_qoriq *dpaa2_ptp;
|
H A D | dpaa2-eth.h | 595 extern struct ptp_qoriq *dpaa2_ptp;
|
H A D | dpaa2-eth.c | 17 #include <linux/fsl/ptp_qoriq.h> 34 struct ptp_qoriq *dpaa2_ptp;
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ptp.c | 18 struct ptp_qoriq *ptp_qoriq = container_of(ptp, struct ptp_qoriq, caps); in dpaa2_ptp_enable() local 25 dev = ptp_qoriq->dev; in dpaa2_ptp_enable() 41 extts_clean_up(ptp_qoriq, rq->extts.index, false); in dpaa2_ptp_enable() 90 struct ptp_qoriq *ptp_qoriq = priv; in dpaa2_ptp_irq_handler_thread() local 97 dev = ptp_qoriq->dev; in dpaa2_ptp_irq_handler_thread() 109 ptp_clock_event(ptp_qoriq->clock, &event); in dpaa2_ptp_irq_handler_thread() 113 extts_clean_up(ptp_qoriq, in dpaa2_ptp_irq_handler_thread() 131 struct ptp_qoriq *ptp_qoriq; dpaa2_ptp_probe() local 225 struct ptp_qoriq *ptp_qoriq; dpaa2_ptp_remove() local [all...] |
H A D | dpaa2-ptp.h | 10 #include <linux/fsl/ptp_qoriq.h> 16 extern struct ptp_qoriq *dpaa2_ptp;
|
H A D | dpaa2-eth.h | 664 extern struct ptp_qoriq *dpaa2_ptp;
|
H A D | dpaa2-eth.c | 16 #include <linux/fsl/ptp_qoriq.h> 35 struct ptp_qoriq *dpaa2_ptp;
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ptp.c | 6 #include <linux/fsl/ptp_qoriq.h> 32 struct ptp_qoriq *ptp_qoriq; in enetc_ptp_probe() local 66 ptp_qoriq = kzalloc(sizeof(*ptp_qoriq), GFP_KERNEL); in enetc_ptp_probe() 67 if (!ptp_qoriq) { in enetc_ptp_probe() 88 ptp_qoriq->irq = pci_irq_vector(pdev, 0); in enetc_ptp_probe() 90 err = request_irq(ptp_qoriq->irq, ptp_qoriq_isr, 0, DRIVER, ptp_qoriq); in enetc_ptp_probe() 96 ptp_qoriq in enetc_ptp_probe() 126 struct ptp_qoriq *ptp_qoriq = pci_get_drvdata(pdev); enetc_ptp_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ptp.c | 6 #include <linux/fsl/ptp_qoriq.h> 32 struct ptp_qoriq *ptp_qoriq; in enetc_ptp_probe() local 59 ptp_qoriq = kzalloc(sizeof(*ptp_qoriq), GFP_KERNEL); in enetc_ptp_probe() 60 if (!ptp_qoriq) { in enetc_ptp_probe() 81 ptp_qoriq->irq = pci_irq_vector(pdev, 0); in enetc_ptp_probe() 83 err = request_irq(ptp_qoriq->irq, ptp_qoriq_isr, 0, DRIVER, ptp_qoriq); in enetc_ptp_probe() 89 ptp_qoriq in enetc_ptp_probe() 119 struct ptp_qoriq *ptp_qoriq = pci_get_drvdata(pdev); enetc_ptp_remove() local [all...] |
/kernel/linux/linux-5.10/include/linux/fsl/ |
H A D | ptp_qoriq.h | 132 #define DRIVER "ptp_qoriq" 141 struct ptp_qoriq { struct 186 int ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base, 188 void ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq); 196 int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event); 198 void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); 201 ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_create_debugfs() argument 203 ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_remove_debugfs() argument [all...] |
/kernel/linux/linux-6.6/include/linux/fsl/ |
H A D | ptp_qoriq.h | 132 #define DRIVER "ptp_qoriq" 141 struct ptp_qoriq { struct 187 int ptp_qoriq_init(struct ptp_qoriq *ptp_qoriq, void __iomem *base, 189 void ptp_qoriq_free(struct ptp_qoriq *ptp_qoriq); 197 int extts_clean_up(struct ptp_qoriq *ptp_qoriq, int index, bool update_event); 199 void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq); 202 ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_create_debugfs() argument 204 ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq) ptp_qoriq_remove_debugfs() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_ethtool.c | 37 #include <linux/fsl/ptp_qoriq.h> 487 struct ptp_qoriq *ptp = NULL; in dpaa_get_ts_info()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_ethtool.c | 13 #include <linux/fsl/ptp_qoriq.h> 403 struct ptp_qoriq *ptp = NULL; in dpaa_get_ts_info()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 42 #include <linux/fsl/ptp_qoriq.h> 1446 struct ptp_qoriq *ptp = NULL; in gfar_get_ts_info()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 44 #include <linux/fsl/ptp_qoriq.h> 1456 struct ptp_qoriq *ptp = NULL; in gfar_get_ts_info()
|