Searched refs:cpts (Results 1 – 13 of 13) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | cpts.c | 56 static int cpts_fifo_pop(struct cpts *cpts, u32 *high, u32 *low) in cpts_fifo_pop() argument 58 u32 r = cpts_read32(cpts, intstat_raw); in cpts_fifo_pop() 61 *high = cpts_read32(cpts, event_high); in cpts_fifo_pop() 62 *low = cpts_read32(cpts, event_low); in cpts_fifo_pop() 63 cpts_write32(cpts, EVENT_POP, event_pop); in cpts_fifo_pop() 69 static int cpts_purge_events(struct cpts *cpts) in cpts_purge_events() argument 75 list_for_each_safe(this, next, &cpts->events) { in cpts_purge_events() 79 list_add(&event->list, &cpts->pool); in cpts_purge_events() 89 static bool cpts_match_tx_ts(struct cpts *cpts, struct cpts_event *event) in cpts_match_tx_ts() argument 100 skb_queue_walk_safe(&cpts->txq, skb, tmp) { in cpts_match_tx_ts() [all …]
|
D | cpts.h | 111 struct cpts { struct 131 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); argument 132 void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb); 133 int cpts_register(struct cpts *cpts); 134 void cpts_unregister(struct cpts *cpts); 135 struct cpts *cpts_create(struct device *dev, void __iomem *regs, 137 void cpts_release(struct cpts *cpts); 139 static inline void cpts_rx_enable(struct cpts *cpts, int enable) in cpts_rx_enable() argument 141 cpts->rx_enable = enable; in cpts_rx_enable() 144 static inline bool cpts_is_rx_enabled(struct cpts *cpts) in cpts_is_rx_enabled() argument [all …]
|
D | cpsw.c | 453 struct cpts *cpts; member 734 cpts_tx_timestamp(cpsw->cpts, skb); in cpsw_tx_handler() 825 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 1924 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 1965 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 1985 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 1997 cpts_is_tx_enabled(cpts) && cpts_can_timestamp(cpts, skb)) in cpsw_ndo_start_xmit() 2046 if (!cpts_is_tx_enabled(cpsw->cpts) && in cpsw_hwtstamp_v1() 2047 !cpts_is_rx_enabled(cpsw->cpts)) { in cpsw_hwtstamp_v1() 2055 if (cpts_is_tx_enabled(cpsw->cpts)) in cpsw_hwtstamp_v1() [all …]
|
D | netcp_ethss.c | 765 struct cpts *cpts; member 2017 if (!gbe_intf || !gbe_intf->gbe_dev->cpts) in keystone_get_ts_info() 2027 info->phc_index = gbe_intf->gbe_dev->cpts->phc_index; in keystone_get_ts_info() 2549 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp() 2557 return cpts_can_timestamp(gbe_intf->gbe_dev->cpts, skb); in gbe_need_txtstamp() 2567 !cpts_is_tx_enabled(gbe_dev->cpts)) in gbe_txtstamp_mark_pkt() 2601 cpts_rx_timestamp(gbe_dev->cpts, p_info->skb); in gbe_rxtstamp() 2610 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_get() local 2613 if (!cpts) in gbe_hwtstamp_get() 2617 cfg.tx_type = cpts_is_tx_enabled(cpts) ? in gbe_hwtstamp_get() [all …]
|
D | Makefile | 16 obj-$(CONFIG_TI_CPTS_MOD) += cpts.o
|
/Linux-v4.19/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 | 516 clock-names = "fck", "cpts";
|
D | am33xx.dtsi | 856 clock-names = "fck", "cpts";
|
D | am4372.dtsi | 689 clock-names = "fck", "cpts", "50mclk";
|
D | dra7.dtsi | 1833 clock-names = "fck", "cpts";
|