Home
last modified time | relevance | path

Searched refs:cpts (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/ti/
Dcpts.c45 static int cpts_fifo_pop(struct cpts *cpts, u32 *high, u32 *low) in cpts_fifo_pop() argument
47 u32 r = cpts_read32(cpts, intstat_raw); in cpts_fifo_pop()
50 *high = cpts_read32(cpts, event_high); in cpts_fifo_pop()
51 *low = cpts_read32(cpts, event_low); in cpts_fifo_pop()
52 cpts_write32(cpts, EVENT_POP, event_pop); in cpts_fifo_pop()
58 static int cpts_purge_events(struct cpts *cpts) in cpts_purge_events() argument
64 list_for_each_safe(this, next, &cpts->events) { in cpts_purge_events()
68 list_add(&event->list, &cpts->pool); in cpts_purge_events()
78 static void cpts_purge_txq(struct cpts *cpts) in cpts_purge_txq() argument
84 skb_queue_walk_safe(&cpts->txq, skb, tmp) { in cpts_purge_txq()
[all …]
Dcpts.h99 struct cpts { struct
119 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); argument
120 void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb);
121 int cpts_register(struct cpts *cpts);
122 void cpts_unregister(struct cpts *cpts);
123 struct cpts *cpts_create(struct device *dev, void __iomem *regs,
125 void cpts_release(struct cpts *cpts);
127 static inline bool cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) in cpts_can_timestamp() argument
138 struct cpts;
140 static inline void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb) in cpts_rx_timestamp() argument
[all …]
Dcpsw_priv.c125 cpsw->cpts = cpts_create(cpsw->dev, cpts_regs, cpsw->dev->of_node); in cpsw_init_common()
126 if (IS_ERR(cpsw->cpts)) { in cpsw_init_common()
127 ret = PTR_ERR(cpsw->cpts); in cpsw_init_common()
DMakefile15 obj-$(CONFIG_TI_CPTS_MOD) += cpts.o
Dnetcp_ethss.c757 struct cpts *cpts; member
2011 if (!gbe_intf || !gbe_intf->gbe_dev->cpts) in keystone_get_ts_info()
2021 info->phc_index = gbe_intf->gbe_dev->cpts->phc_index; in keystone_get_ts_info()
2543 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp()
2551 return cpts_can_timestamp(gbe_intf->gbe_dev->cpts, skb); in gbe_need_txtstamp()
2596 cpts_rx_timestamp(gbe_dev->cpts, p_info->skb); in gbe_rxtstamp()
2606 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_get() local
2609 if (!cpts) in gbe_hwtstamp_get()
2652 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_set() local
2655 if (!cpts) in gbe_hwtstamp_set()
[all …]
Dcpsw_priv.h346 struct cpts *cpts; member
Dcpsw.c392 cpts_tx_timestamp(ndev_to_cpsw(ndev)->cpts, skb); in cpsw_tx_handler()
764 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler()
1733 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open()
1779 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop()
1800 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local
1812 priv->tx_ts_enabled && cpts_can_timestamp(cpts, skb)) in cpsw_ndo_start_xmit()
2963 cpts_release(cpsw->cpts); in cpsw_probe()
2988 cpts_release(cpsw->cpts); in cpsw_remove()
Dcpsw_ethtool.c724 info->phc_index = cpsw->cpts->phc_index; in cpsw_get_ts_info()
/Linux-v5.4/arch/arm/boot/dts/
Dkeystone-k2g-netcp.dtsi101 clock-names = "ethss_clk", "cpts";
122 cpts-rftclk-sel = <0>;
123 cpts-ext-ts-inputs = <8>;
Dkeystone-k2l-netcp.dtsi138 clock-names = "pa_clk", "ethss_clk", "cpts";
Dkeystone-k2e-netcp.dtsi139 clock-names = "pa_clk", "ethss_clk", "cpts";
Dkeystone-k2hk-netcp.dtsi156 clock-names = "pa_clk", "ethss_clk", "cpts";
Ddm814x.dtsi584 clock-names = "fck", "cpts";
Dam33xx-l4.dtsi695 clock-names = "fck", "cpts";
Dam437x-l4.dtsi543 clock-names = "fck", "cpts", "50mclk";
Ddra7-l4.dtsi3032 clock-names = "fck", "cpts";
/Linux-v5.4/Documentation/devicetree/bindings/net/
Dkeystone-netcp.txt107 - cpts: sub-node time synchronization (CPTS) submodule configuration
108 -- clocks: CPTS reference clock. Should point on cpts-refclk-mux clock.
109 -- clock-names: should be "cpts"
110 -- cpts-refclk-mux: multiplexer clock definition sub-node for CPTS reference (RFTCLK) clock
114 --- assigned-clocks: should point on cpts-refclk-mux clock
188 cpts {
190 clock-names = "cpts";
192 cpts_refclk_mux: cpts-refclk-mux {