| /drivers/net/ethernet/ti/ |
| A D | cpts.c | 138 cpts->cc.mult = cpts->mult_new; in cpts_fifo_read() 186 struct cpts *cpts = container_of(cc, struct cpts, cc); in cpts_systim_read() local 218 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_adjfine() local 232 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_adjtime() local 245 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_gettimeex() local 263 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_settime() local 302 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_enable() local 394 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_overflow_check() local 568 cpts->clock = ptp_clock_register(&cpts->info, cpts->dev); in cpts_register() 749 struct cpts *cpts; in cpts_create() local [all …]
|
| A D | am65-cpts.c | 221 am65_cpts_write32(cpts, cpts->ts_add_val, ts_add_val); in am65_cpts_set_add_val() 1059 dev_name(cpts->dev), cpts->clk_mux_np); in cpts_of_mux_clk_setup() 1164 list_add(&cpts->pool_data[i].list, &cpts->pool); in am65_cpts_create() 1179 cpts->refclk_freq = clk_get_rate(cpts->refclk); in am65_cpts_create() 1185 cpts->ptp_info.n_ext_ts = cpts->ext_ts_inputs; in am65_cpts_create() 1187 cpts->ptp_info.n_per_out = cpts->genf_num; in am65_cpts_create() 1202 cpts->ptp_clock = ptp_clock_register(&cpts->ptp_info, cpts->dev); in am65_cpts_create() 1221 cpts->refclk_freq, cpts->ts_add_val, cpts->pps_present); in am65_cpts_create() 1241 cpts->sr_cpts_ns = am65_cpts_gettime(cpts, NULL); in am65_cpts_suspend() 1247 memcpy_fromio(&cpts->sr_genf, &cpts->reg->genf, sizeof(cpts->sr_genf)); in am65_cpts_suspend() [all …]
|
| A D | cpts.h | 100 struct cpts { struct 126 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); argument 128 int cpts_register(struct cpts *cpts); 129 void cpts_unregister(struct cpts *cpts); 132 void cpts_release(struct cpts *cpts); 133 void cpts_misc_interrupt(struct cpts *cpts); 151 struct cpts; 167 static inline void cpts_release(struct cpts *cpts) in cpts_release() argument 172 cpts_register(struct cpts *cpts) in cpts_register() argument 177 static inline void cpts_unregister(struct cpts *cpts) in cpts_unregister() argument [all …]
|
| A D | am65-cpts.h | 21 void am65_cpts_release(struct am65_cpts *cpts); 24 int am65_cpts_phc_index(struct am65_cpts *cpts); 28 u64 am65_cpts_ns_gettime(struct am65_cpts *cpts); 29 int am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, 31 void am65_cpts_estf_disable(struct am65_cpts *cpts, int idx); 32 void am65_cpts_suspend(struct am65_cpts *cpts); 33 void am65_cpts_resume(struct am65_cpts *cpts); 35 static inline void am65_cpts_release(struct am65_cpts *cpts) in am65_cpts_release() argument 46 static inline int am65_cpts_phc_index(struct am65_cpts *cpts) in am65_cpts_phc_index() argument 81 static inline void am65_cpts_suspend(struct am65_cpts *cpts) in am65_cpts_suspend() argument [all …]
|
| A D | am65-cpsw-qos.c | 746 struct am65_cpts *cpts = common->cpts; in am65_cpsw_timer_set() local 752 return am65_cpts_estf_enable(cpts, port->port_id - 1, &cfg); in am65_cpsw_timer_set() 758 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_stop() local 760 am65_cpts_estf_disable(cpts, port->port_id - 1); in am65_cpsw_timer_stop() 768 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_act() local 794 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_timer_act() 839 struct am65_cpts *cpts = common->cpts; in am65_cpsw_taprio_replace() local 902 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_taprio_replace()
|
| A D | Makefile | 15 obj-$(CONFIG_TI_CPTS) += cpts.o 32 obj-$(CONFIG_TI_K3_AM65_CPTS) += am65-cpts.o
|
| A D | cpsw.c | 434 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 839 if (cpsw->cpts) { in cpsw_ndo_open() 840 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 890 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 911 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 923 priv->tx_ts_enabled && cpts_can_timestamp(cpts, skb)) in cpsw_ndo_start_xmit() 1723 if (!cpsw->cpts) in cpsw_probe() 1734 cpts_set_irqpoll(cpsw->cpts, false); in cpsw_probe() 1748 cpts_release(cpsw->cpts); in cpsw_probe() 1777 cpts_release(cpsw->cpts); in cpsw_remove()
|
| A D | netcp_ethss.c | 754 struct cpts *cpts; member 2534 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp() 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() 2719 cpts_unregister(gbe_dev->cpts); in gbe_unregister_cpts() 3710 ret = PTR_ERR(gbe_dev->cpts); in gbe_probe() [all …]
|
| A D | cpsw_new.c | 379 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 819 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 877 if (cpsw->cpts) { in cpsw_ndo_open() 878 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 927 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 939 priv->tx_ts_enabled && cpts_can_timestamp(cpts, skb)) in cpsw_ndo_start_xmit() 2004 if (!cpsw->cpts) in cpsw_probe() 2015 cpts_set_irqpoll(cpsw->cpts, false); in cpsw_probe() 2045 cpts_release(cpsw->cpts); in cpsw_probe() 2073 cpts_release(cpsw->cpts); in cpsw_remove()
|
| A D | am65-cpsw-nuss.c | 1355 am65_cpts_rx_timestamp(common->cpts, skb); in am65_cpsw_nuss_rx_packets() 1610 am65_cpts_prep_tx_timestamp(common->cpts, skb); in am65_cpsw_nuss_ndo_slave_xmit() 2559 struct am65_cpts *cpts; in am65_cpsw_init_cpts() local 2572 cpts = am65_cpts_create(dev, reg_base, node); in am65_cpsw_init_cpts() 2573 if (IS_ERR(cpts)) { in am65_cpsw_init_cpts() 2574 int ret = PTR_ERR(cpts); in am65_cpsw_init_cpts() 2580 common->cpts = cpts; in am65_cpsw_init_cpts() 3658 am65_cpts_release(common->cpts); in am65_cpsw_nuss_probe() 3697 am65_cpts_release(common->cpts); in am65_cpsw_nuss_remove() 3738 am65_cpts_suspend(common->cpts); in am65_cpsw_nuss_suspend() [all …]
|
| A D | cpsw_priv.c | 71 cpts_tx_timestamp(ndev_to_cpsw(ndev)->cpts, skb); in cpsw_tx_handler() 124 cpts_misc_interrupt(cpsw->cpts); in cpsw_misc_interrupt() 541 cpsw->cpts = cpts_create(cpsw->dev, cpts_regs, cpts_node, in cpsw_init_common() 543 if (IS_ERR(cpsw->cpts)) { in cpsw_init_common() 544 ret = PTR_ERR(cpsw->cpts); in cpsw_init_common()
|
| A D | cpsw_priv.h | 355 struct cpts *cpts; member
|
| A D | am65-cpsw-nuss.h | 180 struct am65_cpts *cpts; member
|
| A D | cpsw_ethtool.c | 717 info->phc_index = cpsw->cpts->phc_index; in cpsw_get_ts_info()
|
| A D | am65-cpsw-ethtool.c | 717 info->phc_index = am65_cpts_phc_index(common->cpts); in am65_cpsw_get_ethtool_ts_info()
|