| /linux-6.15/drivers/net/ethernet/ti/ |
| H 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 …]
|
| H 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 …]
|
| H 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 …]
|
| H 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 …]
|
| H 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()
|
| H A D | Makefile | 15 obj-$(CONFIG_TI_CPTS) += cpts.o 32 obj-$(CONFIG_TI_K3_AM65_CPTS) += am65-cpts.o
|
| H 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() 1697 if (!cpsw->cpts) in cpsw_probe() 1708 cpts_set_irqpoll(cpsw->cpts, false); in cpsw_probe() 1722 cpts_release(cpsw->cpts); in cpsw_probe() 1751 cpts_release(cpsw->cpts); in cpsw_remove()
|
| H 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() 2002 if (!cpsw->cpts) in cpsw_probe() 2013 cpts_set_irqpoll(cpsw->cpts, false); in cpsw_probe() 2043 cpts_release(cpsw->cpts); in cpsw_probe() 2071 cpts_release(cpsw->cpts); in cpsw_remove()
|
| H 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 …]
|
| /linux-6.15/Documentation/devicetree/bindings/net/ |
| H A D | ti,k3-am654-cpts.yaml | 45 pattern: "^cpts@[0-9a-f]+$" 49 - ti,am65-cpts 50 - ti,j721e-cpts 59 - const: cpts 67 - const: cpts 75 - const: cpts 84 ti,cpts-ext-ts-inputs: 90 ti,cpts-periodic-outputs: 133 cpts@310d0000 { 136 reg-names = "cpts"; [all …]
|
| H A D | ti,k3-am654-cpsw-nuss.yaml | 176 "^cpts@[0-9a-f]+": 178 $ref: ti,k3-am654-cpts.yaml# 306 cpts@3d000 { 307 compatible = "ti,am65-cpts"; 310 clock-names = "cpts"; 312 interrupt-names = "cpts"; 313 ti,cpts-ext-ts-inputs = <4>; 314 ti,cpts-periodic-outputs = <2>;
|
| H A D | keystone-netcp.txt | 107 - cpts: sub-node time synchronization (CPTS) submodule configuration 108 -- clocks: CPTS reference clock. Should point on cpts-refclk-mux clock. 109 -- clock-names: should be "cpts" 110 -- cpts-refclk-mux: multiplexer clock definition sub-node for CPTS reference (RFTCLK) clock 114 --- assigned-clocks: should point on cpts-refclk-mux clock 188 cpts { 190 clock-names = "cpts"; 192 cpts_refclk_mux: cpts-refclk-mux {
|
| H A D | ti,cpsw-switch.yaml | 121 cpts: 134 - const: cpts 238 cpts { 240 clock-names = "cpts";
|
| /linux-6.15/arch/arm/boot/dts/ti/keystone/ |
| H A D | keystone-k2g-netcp.dtsi | 101 clock-names = "ethss_clk", "cpts"; 122 cpts-rftclk-sel = <0>; 123 cpts-ext-ts-inputs = <8>;
|
| H A D | keystone-k2l-netcp.dtsi | 158 cpts { 160 clock-names = "cpts"; 162 cpts_refclk_mux: cpts-refclk-mux {
|
| H A D | keystone-k2e-netcp.dtsi | 159 cpts { 161 clock-names = "cpts"; 163 cpts_refclk_mux: cpts-refclk-mux {
|
| H A D | keystone-k2hk-netcp.dtsi | 178 cpts { 180 clock-names = "cpts"; 182 cpts_refclk_mux: cpts-refclk-mux {
|
| /linux-6.15/arch/arm64/boot/dts/ti/ |
| H A D | k3-am65-mcu.dtsi | 381 cpts@3d000 { 382 compatible = "ti,am65-cpts"; 385 clock-names = "cpts"; 387 interrupt-names = "cpts"; 388 ti,cpts-ext-ts-inputs = <4>; 389 ti,cpts-periodic-outputs = <2>;
|
| H A D | k3-j7200-main.dtsi | 309 cpts@310d0000 { 310 compatible = "ti,j721e-cpts"; 312 reg-names = "cpts"; 314 clock-names = "cpts"; 316 interrupt-names = "cpts"; 318 ti,cpts-ext-ts-inputs = <8>; 391 cpts@3d000 { 392 compatible = "ti,j721e-cpts"; 395 clock-names = "cpts"; 397 interrupt-names = "cpts"; [all …]
|
| H A D | k3-am64-main.dtsi | 730 cpts@3d000 { 731 compatible = "ti,j721e-cpts"; 734 clock-names = "cpts"; 736 interrupt-names = "cpts"; 737 ti,cpts-ext-ts-inputs = <4>; 742 main_cpts0: cpts@39000000 { 743 compatible = "ti,j721e-cpts"; 745 reg-names = "cpts"; 748 clock-names = "cpts"; 752 interrupt-names = "cpts"; [all …]
|
| H A D | k3-j7200-mcu-wakeup.dtsi | 458 cpts@3d000 { 459 compatible = "ti,am65-cpts"; 462 clock-names = "cpts"; 464 interrupt-names = "cpts"; 465 ti,cpts-ext-ts-inputs = <4>; 466 ti,cpts-periodic-outputs = <2>;
|
| H A D | k3-j721e-mcu-wakeup.dtsi | 577 cpts@3d000 { 578 compatible = "ti,am65-cpts"; 581 clock-names = "cpts"; 583 interrupt-names = "cpts"; 584 ti,cpts-ext-ts-inputs = <4>; 585 ti,cpts-periodic-outputs = <2>;
|
| H A D | k3-j784s4-j742s2-mcu-wakeup-common.dtsi | 576 cpts@3d000 { 577 compatible = "ti,am65-cpts"; 580 clock-names = "cpts"; 584 interrupt-names = "cpts"; 585 ti,cpts-ext-ts-inputs = <4>; 586 ti,cpts-periodic-outputs = <2>;
|
| H A D | k3-j721s2-mcu-wakeup.dtsi | 578 cpts@3d000 { 579 compatible = "ti,am65-cpts"; 582 clock-names = "cpts"; 586 interrupt-names = "cpts"; 587 ti,cpts-ext-ts-inputs = <4>; 588 ti,cpts-periodic-outputs = <2>;
|
| H A D | k3-j784s4-j742s2-main-common.dtsi | 1579 cpts@310d0000 { 1582 reg-names = "cpts"; 1584 clock-names = "cpts"; 1588 interrupt-names = "cpts"; 1590 ti,cpts-ext-ts-inputs = <8>; 1693 cpts@3d000 { 1697 clock-names = "cpts"; 1699 interrupt-names = "cpts"; 1756 cpts@3d000 { 1760 clock-names = "cpts"; [all …]
|