/Linux-v5.4/drivers/net/ethernet/ti/ |
D | cpts.c | 45 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 …]
|
D | cpts.h | 99 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 …]
|
D | cpsw_priv.c | 125 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()
|
D | Makefile | 15 obj-$(CONFIG_TI_CPTS_MOD) += cpts.o
|
D | netcp_ethss.c | 757 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 …]
|
D | cpsw_priv.h | 346 struct cpts *cpts; member
|
D | cpsw.c | 392 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()
|
D | cpsw_ethtool.c | 724 info->phc_index = cpsw->cpts->phc_index; in cpsw_get_ts_info()
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | keystone-k2g-netcp.dtsi | 101 clock-names = "ethss_clk", "cpts"; 122 cpts-rftclk-sel = <0>; 123 cpts-ext-ts-inputs = <8>;
|
D | keystone-k2l-netcp.dtsi | 138 clock-names = "pa_clk", "ethss_clk", "cpts";
|
D | keystone-k2e-netcp.dtsi | 139 clock-names = "pa_clk", "ethss_clk", "cpts";
|
D | keystone-k2hk-netcp.dtsi | 156 clock-names = "pa_clk", "ethss_clk", "cpts";
|
D | dm814x.dtsi | 584 clock-names = "fck", "cpts";
|
D | am33xx-l4.dtsi | 695 clock-names = "fck", "cpts";
|
D | am437x-l4.dtsi | 543 clock-names = "fck", "cpts", "50mclk";
|
D | dra7-l4.dtsi | 3032 clock-names = "fck", "cpts";
|
/Linux-v5.4/Documentation/devicetree/bindings/net/ |
D | keystone-netcp.txt | 107 - 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 {
|