Lines Matching full:cpts
26 #include "cpts.h"
754 struct cpts *cpts; member
2008 if (!gbe_intf || !gbe_intf->gbe_dev->cpts) in keystone_get_ts_info()
2016 info->phc_index = gbe_intf->gbe_dev->cpts->phc_index; in keystone_get_ts_info()
2534 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp()
2542 return cpts_can_timestamp(gbe_intf->gbe_dev->cpts, skb); in gbe_need_txtstamp()
2587 cpts_rx_timestamp(gbe_dev->cpts, p_info->skb); in gbe_rxtstamp()
2597 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_get() local
2600 if (!cpts) in gbe_hwtstamp_get()
2643 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_set() local
2646 if (!cpts) in gbe_hwtstamp_set()
2696 if (!gbe_dev->cpts) in gbe_register_cpts()
2702 if (cpts_register(gbe_dev->cpts)) { in gbe_register_cpts()
2703 dev_err(gbe_dev->dev, "error registering cpts device\n"); in gbe_register_cpts()
2713 if (!gbe_dev->cpts || (gbe_dev->cpts_registered <= 0)) in gbe_unregister_cpts()
2719 cpts_unregister(gbe_dev->cpts); in gbe_unregister_cpts()
3702 cpts_node = of_get_child_by_name(node, "cpts"); in gbe_probe()
3706 gbe_dev->cpts = cpts_create(gbe_dev->dev, gbe_dev->cpts_reg, in gbe_probe()
3709 if (IS_ENABLED(CONFIG_TI_CPTS) && IS_ERR(gbe_dev->cpts)) { in gbe_probe()
3710 ret = PTR_ERR(gbe_dev->cpts); in gbe_probe()
3800 cpts_release(gbe_dev->cpts); in gbe_remove()