Lines Matching refs:cpts
399 struct cpts *cpts; member
693 cpts_tx_timestamp(priv->cpts, skb); in cpsw_tx_handler()
740 cpts_rx_timestamp(priv->cpts, skb); in cpsw_rx_handler()
1331 if (cpts_register(&priv->pdev->dev, priv->cpts, in cpsw_ndo_open()
1374 cpts_unregister(priv->cpts); in cpsw_ndo_stop()
1401 priv->cpts->tx_enable) in cpsw_ndo_start_xmit()
1432 if (!priv->cpts->tx_enable && !priv->cpts->rx_enable) { in cpsw_hwtstamp_v1()
1440 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v1()
1443 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v1()
1465 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v2()
1468 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v2()
1475 if (priv->cpts->tx_enable) in cpsw_hwtstamp_v2()
1478 if (priv->cpts->rx_enable) in cpsw_hwtstamp_v2()
1493 struct cpts *cpts = priv->cpts; in cpsw_hwtstamp_set() local
1513 cpts->rx_enable = 0; in cpsw_hwtstamp_set()
1529 cpts->rx_enable = 1; in cpsw_hwtstamp_set()
1536 cpts->tx_enable = cfg.tx_type == HWTSTAMP_TX_ON; in cpsw_hwtstamp_set()
1556 struct cpts *cpts = priv->cpts; in cpsw_hwtstamp_get() local
1565 cfg.tx_type = cpts->tx_enable ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in cpsw_hwtstamp_get()
1566 cfg.rx_filter = (cpts->rx_enable ? in cpsw_hwtstamp_get()
1820 info->phc_index = priv->cpts->phc_index; in cpsw_get_ts_info()
2164 priv_sl2->cpts = priv->cpts; in cpsw_probe_dual_emac()
2255 priv->cpts = devm_kzalloc(&pdev->dev, sizeof(struct cpts), GFP_KERNEL); in cpsw_probe()
2256 if (!priv->cpts) { in cpsw_probe()
2345 priv->cpts->reg = ss_regs + CPSW1_CPTS_OFFSET; in cpsw_probe()
2359 priv->cpts->reg = ss_regs + CPSW2_CPTS_OFFSET; in cpsw_probe()