Lines Matching refs:cpts
402 struct cpts *cpts; member
696 cpts_tx_timestamp(priv->cpts, skb); in cpsw_tx_handler()
743 cpts_rx_timestamp(priv->cpts, skb); in cpsw_rx_handler()
1356 if (cpts_register(&priv->pdev->dev, priv->cpts, in cpsw_ndo_open()
1399 cpts_unregister(priv->cpts); in cpsw_ndo_stop()
1426 priv->cpts->tx_enable) in cpsw_ndo_start_xmit()
1457 if (!priv->cpts->tx_enable && !priv->cpts->rx_enable) { in cpsw_hwtstamp_v1()
1465 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v1()
1468 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v1()
1490 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v2()
1493 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v2()
1500 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v2()
1503 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v2()
1518 struct cpts *cpts = priv->cpts; in cpsw_hwtstamp_set() local
1538 cpts->rx_enable = 0; in cpsw_hwtstamp_set()
1554 cpts->rx_enable = 1; in cpsw_hwtstamp_set()
1561 cpts->tx_enable = cfg.tx_type == HWTSTAMP_TX_ON; in cpsw_hwtstamp_set()
1581 struct cpts *cpts = priv->cpts; in cpsw_hwtstamp_get() local
1590 cfg.tx_type = cpts->tx_enable ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in cpsw_hwtstamp_get()
1591 cfg.rx_filter = (cpts->rx_enable ? in cpsw_hwtstamp_get()
1845 info->phc_index = priv->cpts->phc_index; in cpsw_get_ts_info()
2196 priv_sl2->cpts = priv->cpts; in cpsw_probe_dual_emac()
2287 priv->cpts = devm_kzalloc(&pdev->dev, sizeof(struct cpts), GFP_KERNEL); in cpsw_probe()
2288 if (!priv->cpts) { in cpsw_probe()
2377 priv->cpts->reg = ss_regs + CPSW1_CPTS_OFFSET; in cpsw_probe()
2391 priv->cpts->reg = ss_regs + CPSW2_CPTS_OFFSET; in cpsw_probe()