Lines Matching refs:cpts
406 struct cpts *cpts; member
698 cpts_tx_timestamp(priv->cpts, skb); in cpsw_tx_handler()
745 cpts_rx_timestamp(priv->cpts, skb); in cpsw_rx_handler()
1313 if (cpts_register(&priv->pdev->dev, priv->cpts, in cpsw_ndo_open()
1362 cpts_unregister(priv->cpts); in cpsw_ndo_stop()
1390 priv->cpts->tx_enable) in cpsw_ndo_start_xmit()
1421 if (!priv->cpts->tx_enable && !priv->cpts->rx_enable) { in cpsw_hwtstamp_v1()
1429 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v1()
1432 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v1()
1454 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v2()
1457 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v2()
1464 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v2()
1467 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v2()
1482 struct cpts *cpts = priv->cpts; in cpsw_hwtstamp_set() local
1502 cpts->rx_enable = 0; in cpsw_hwtstamp_set()
1518 cpts->rx_enable = 1; in cpsw_hwtstamp_set()
1525 cpts->tx_enable = cfg.tx_type == HWTSTAMP_TX_ON; in cpsw_hwtstamp_set()
1545 struct cpts *cpts = priv->cpts; in cpsw_hwtstamp_get() local
1554 cfg.tx_type = cpts->tx_enable ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in cpsw_hwtstamp_get()
1555 cfg.rx_filter = (cpts->rx_enable ? in cpsw_hwtstamp_get()
1814 info->phc_index = priv->cpts->phc_index; in cpsw_get_ts_info()
2138 priv_sl2->cpts = priv->cpts; in cpsw_probe_dual_emac()
2190 priv->cpts = devm_kzalloc(&pdev->dev, sizeof(struct cpts), GFP_KERNEL); in cpsw_probe()
2192 if (!priv->cpts) { in cpsw_probe()
2274 priv->cpts->reg = ss_regs + CPSW1_CPTS_OFFSET; in cpsw_probe()
2288 priv->cpts->reg = ss_regs + CPSW2_CPTS_OFFSET; in cpsw_probe()