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()
2018 info->phc_index = gbe_intf->gbe_dev->cpts->phc_index; in keystone_get_ts_info()
2539 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp()
2547 return cpts_can_timestamp(gbe_intf->gbe_dev->cpts, skb); in gbe_need_txtstamp()
2592 cpts_rx_timestamp(gbe_dev->cpts, p_info->skb); in gbe_rxtstamp()
2602 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_get() local
2605 if (!cpts) in gbe_hwtstamp_get()
2648 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_set() local
2651 if (!cpts) in gbe_hwtstamp_set()
2701 if (!gbe_dev->cpts) in gbe_register_cpts()
2707 if (cpts_register(gbe_dev->cpts)) { in gbe_register_cpts()
2708 dev_err(gbe_dev->dev, "error registering cpts device\n"); in gbe_register_cpts()
2718 if (!gbe_dev->cpts || (gbe_dev->cpts_registered <= 0)) in gbe_unregister_cpts()
2724 cpts_unregister(gbe_dev->cpts); in gbe_unregister_cpts()
3709 cpts_node = of_get_child_by_name(node, "cpts"); in gbe_probe()
3713 gbe_dev->cpts = cpts_create(gbe_dev->dev, gbe_dev->cpts_reg, in gbe_probe()
3716 if (IS_ENABLED(CONFIG_TI_CPTS) && IS_ERR(gbe_dev->cpts)) { in gbe_probe()
3717 ret = PTR_ERR(gbe_dev->cpts); in gbe_probe()
3807 cpts_release(gbe_dev->cpts); in gbe_remove()