| /linux/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_adjfreq() local 244 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_adjtime() local 257 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_gettimeex() local 275 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_settime() local 314 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_enable() local 406 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_overflow_check() local 578 cpts->clock = ptp_clock_register(&cpts->info, cpts->dev); in cpts_register() 752 struct cpts *cpts; in cpts_create() local [all …]
|
| A D | am65-cpts.c | 206 am65_cpts_write32(cpts, cpts->ts_add_val, ts_add_val); in am65_cpts_set_add_val() 872 dev_name(cpts->dev), cpts->clk_mux_np); in cpts_of_mux_clk_setup() 936 cpts = devm_kzalloc(dev, sizeof(*cpts), GFP_KERNEL); in am65_cpts_create() 937 if (!cpts) in am65_cpts_create() 963 list_add(&cpts->pool_data[i].list, &cpts->pool); in am65_cpts_create() 979 cpts->refclk_freq = clk_get_rate(cpts->refclk); in am65_cpts_create() 985 cpts->ptp_info.n_ext_ts = cpts->ext_ts_inputs; in am65_cpts_create() 987 cpts->ptp_info.n_per_out = cpts->genf_num; in am65_cpts_create() 1000 cpts->ptp_clock = ptp_clock_register(&cpts->ptp_info, cpts->dev); in am65_cpts_create() 1007 cpts->phc_index = ptp_clock_index(cpts->ptp_clock); in am65_cpts_create() [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 | 23 int am65_cpts_phc_index(struct am65_cpts *cpts); 24 void am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb); 26 void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en); 27 u64 am65_cpts_ns_gettime(struct am65_cpts *cpts); 28 int am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, 30 void am65_cpts_estf_disable(struct am65_cpts *cpts, int idx); 39 static inline int am65_cpts_phc_index(struct am65_cpts *cpts) in am65_cpts_phc_index() argument 44 static inline void am65_cpts_tx_timestamp(struct am65_cpts *cpts, in am65_cpts_tx_timestamp() argument 49 static inline void am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, in am65_cpts_prep_tx_timestamp() argument 54 static inline void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en) in am65_cpts_rx_enable() argument [all …]
|
| A D | am65-cpsw-qos.c | 367 struct am65_cpts *cpts = common->cpts; in am65_cpsw_timer_set() local 373 return am65_cpts_estf_enable(cpts, port->port_id - 1, &cfg); in am65_cpsw_timer_set() 379 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_stop() local 381 am65_cpts_estf_disable(cpts, port->port_id - 1); in am65_cpsw_timer_stop() 389 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_act() local 415 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_timer_act() 449 struct am65_cpts *cpts = common->cpts; in am65_cpsw_configure_taprio() local 474 est_new->taprio.base_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_configure_taprio()
|
| A D | Makefile | 16 obj-$(CONFIG_TI_CPTS) += cpts.o 30 obj-$(CONFIG_TI_K3_AM65_CPTS) += am65-cpts.o
|
| A D | cpsw.c | 430 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 833 if (cpsw->cpts) { in cpsw_ndo_open() 834 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 882 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 903 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 915 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() 1747 cpts_release(cpsw->cpts); in cpsw_remove()
|
| A D | netcp_ethss.c | 754 struct cpts *cpts; member 2539 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp() 2602 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_get() local 2605 if (!cpts) in gbe_hwtstamp_get() 2648 struct cpts *cpts = gbe_dev->cpts; in gbe_hwtstamp_set() local 2651 if (!cpts) in gbe_hwtstamp_set() 2705 if (!gbe_dev->cpts) in gbe_register_cpts() 2711 if (cpts_register(gbe_dev->cpts)) { in gbe_register_cpts() 2728 cpts_unregister(gbe_dev->cpts); in gbe_unregister_cpts() 3721 ret = PTR_ERR(gbe_dev->cpts); in gbe_probe() [all …]
|
| A D | cpsw_new.c | 374 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 809 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 869 if (cpsw->cpts) { in cpsw_ndo_open() 870 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 919 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 931 priv->tx_ts_enabled && cpts_can_timestamp(cpts, skb)) in cpsw_ndo_start_xmit() 1993 if (!cpsw->cpts) in cpsw_probe() 2004 cpts_set_irqpoll(cpsw->cpts, false); in cpsw_probe() 2034 cpts_release(cpsw->cpts); in cpsw_probe() 2058 cpts_release(cpsw->cpts); in cpsw_remove()
|
| A D | am65-cpsw-nuss.h | 135 struct am65_cpts *cpts; member
|
| A D | cpsw_priv.c | 70 cpts_tx_timestamp(ndev_to_cpsw(ndev)->cpts, skb); in cpsw_tx_handler() 123 cpts_misc_interrupt(cpsw->cpts); in cpsw_misc_interrupt() 539 cpsw->cpts = cpts_create(cpsw->dev, cpts_regs, cpts_node, in cpsw_init_common() 541 if (IS_ERR(cpsw->cpts)) { in cpsw_init_common() 542 ret = PTR_ERR(cpsw->cpts); in cpsw_init_common()
|
| /linux/Documentation/devicetree/bindings/net/ |
| 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: 130 cpts@310d0000 { 133 reg-names = "cpts"; [all …]
|
| A D | ti,k3-am654-cpsw-nuss.yaml | 157 "^cpts@[0-9a-f]+": 159 $ref: "ti,k3-am654-cpts.yaml#" 249 cpts@3d000 { 250 compatible = "ti,am65-cpts"; 253 clock-names = "cpts"; 255 interrupt-names = "cpts"; 256 ti,cpts-ext-ts-inputs = <4>; 257 ti,cpts-periodic-outputs = <2>;
|
| 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 {
|
| A D | ti,cpsw-switch.yaml | 119 cpts: 131 - const: cpts 235 cpts { 237 clock-names = "cpts";
|
| /linux/arch/arm/boot/dts/ |
| A D | keystone-k2g-netcp.dtsi | 101 clock-names = "ethss_clk", "cpts"; 122 cpts-rftclk-sel = <0>; 123 cpts-ext-ts-inputs = <8>;
|
| A D | keystone-k2l-netcp.dtsi | 158 cpts { 160 clock-names = "cpts"; 162 cpts_refclk_mux: cpts-refclk-mux {
|
| A D | keystone-k2e-netcp.dtsi | 159 cpts { 161 clock-names = "cpts"; 163 cpts_refclk_mux: cpts-refclk-mux {
|
| A D | keystone-k2hk-netcp.dtsi | 178 cpts { 180 clock-names = "cpts"; 182 cpts_refclk_mux: cpts-refclk-mux {
|
| A D | keystone-k2e-clocks.dtsi | 79 * (as cpts, for example) by configuring corresponding clock muxes.
|
| /linux/arch/arm64/boot/dts/ti/ |
| A D | k3-am65-mcu.dtsi | 248 cpts@3d000 { 249 compatible = "ti,am65-cpts"; 252 clock-names = "cpts"; 254 interrupt-names = "cpts"; 255 ti,cpts-ext-ts-inputs = <4>; 256 ti,cpts-periodic-outputs = <2>;
|
| A D | k3-j7200-mcu-wakeup.dtsi | 231 cpts@3d000 { 232 compatible = "ti,am65-cpts"; 235 clock-names = "cpts"; 237 interrupt-names = "cpts"; 238 ti,cpts-ext-ts-inputs = <4>; 239 ti,cpts-periodic-outputs = <2>;
|
| A D | k3-j721e-mcu-wakeup.dtsi | 342 cpts@3d000 { 343 compatible = "ti,am65-cpts"; 346 clock-names = "cpts"; 348 interrupt-names = "cpts"; 349 ti,cpts-ext-ts-inputs = <4>; 350 ti,cpts-periodic-outputs = <2>;
|
| A D | k3-am64-main.dtsi | 540 cpts@3d000 { 541 compatible = "ti,j721e-cpts"; 544 clock-names = "cpts"; 546 interrupt-names = "cpts"; 547 ti,cpts-ext-ts-inputs = <4>; 552 cpts@39000000 { 553 compatible = "ti,j721e-cpts"; 555 reg-names = "cpts"; 558 clock-names = "cpts"; 562 interrupt-names = "cpts"; [all …]
|
| A D | k3-j7200-main.dtsi | 279 cpts@310d0000 { 280 compatible = "ti,j721e-cpts"; 282 reg-names = "cpts"; 284 clock-names = "cpts"; 286 interrupt-names = "cpts"; 287 ti,cpts-periodic-outputs = <6>; 288 ti,cpts-ext-ts-inputs = <8>;
|