Lines Matching full:cpts
34 #include "cpts.h"
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()
2619 cfg.rx_filter = (cpts_is_rx_enabled(cpts) ? in gbe_hwtstamp_get()
2620 cpts->rx_enable : HWTSTAMP_FILTER_NONE); in gbe_hwtstamp_get()
2631 if (!cpts_is_rx_enabled(gbe_dev->cpts) && in gbe_hwtstamp()
2632 !cpts_is_tx_enabled(gbe_dev->cpts)) { in gbe_hwtstamp()
2644 if (cpts_is_tx_enabled(gbe_dev->cpts)) in gbe_hwtstamp()
2647 if (cpts_is_rx_enabled(gbe_dev->cpts)) in gbe_hwtstamp()
2658 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_set() local
2661 if (!cpts) in gbe_hwtstamp_set()
2673 cpts_tx_enable(cpts, 0); in gbe_hwtstamp_set()
2676 cpts_tx_enable(cpts, 1); in gbe_hwtstamp_set()
2684 cpts_rx_enable(cpts, 0); in gbe_hwtstamp_set()
2689 cpts_rx_enable(cpts, HWTSTAMP_FILTER_PTP_V1_L4_EVENT); in gbe_hwtstamp_set()
2701 cpts_rx_enable(cpts, HWTSTAMP_FILTER_PTP_V2_EVENT); in gbe_hwtstamp_set()
2715 if (!gbe_dev->cpts) in gbe_register_cpts()
2721 if (cpts_register(gbe_dev->cpts)) { in gbe_register_cpts()
2722 dev_err(gbe_dev->dev, "error registering cpts device\n"); in gbe_register_cpts()
2732 if (!gbe_dev->cpts || (gbe_dev->cpts_registered <= 0)) in gbe_unregister_cpts()
2738 cpts_unregister(gbe_dev->cpts); in gbe_unregister_cpts()
3722 gbe_dev->cpts = cpts_create(gbe_dev->dev, gbe_dev->cpts_reg, node); in gbe_probe()
3723 if (IS_ENABLED(CONFIG_TI_CPTS) && IS_ERR(gbe_dev->cpts)) { in gbe_probe()
3724 ret = PTR_ERR(gbe_dev->cpts); in gbe_probe()
3814 cpts_release(gbe_dev->cpts); in gbe_remove()