Home
last modified time | relevance | path

Searched full:cpts (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/net/ethernet/ti/
H A Dcpts.c21 #include "cpts.h"
50 static int cpts_fifo_pop(struct cpts *cpts, u32 *high, u32 *low) in cpts_fifo_pop() argument
52 u32 r = cpts_read32(cpts, intstat_raw); in cpts_fifo_pop()
55 *high = cpts_read32(cpts, event_high); in cpts_fifo_pop()
56 *low = cpts_read32(cpts, event_low); in cpts_fifo_pop()
57 cpts_write32(cpts, EVENT_POP, event_pop); in cpts_fifo_pop()
63 static int cpts_purge_events(struct cpts *cpts) in cpts_purge_events() argument
69 list_for_each_safe(this, next, &cpts in cpts_purge_events()
83 cpts_purge_txq(struct cpts * cpts) cpts_purge_txq() argument
105 cpts_fifo_read(struct cpts * cpts,int match) cpts_fifo_read() argument
178 cpts_misc_interrupt(struct cpts * cpts) cpts_misc_interrupt() argument
186 struct cpts *cpts = container_of(cc, struct cpts, cc); cpts_systim_read() local
191 cpts_update_cur_time(struct cpts * cpts,int match,struct ptp_system_timestamp * sts) cpts_update_cur_time() argument
218 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_adjfine() local
232 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_adjtime() local
245 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_gettimeex() local
263 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_settime() local
275 cpts_extts_enable(struct cpts * cpts,u32 index,int on) cpts_extts_enable() argument
302 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_enable() local
314 cpts_match_tx_ts(struct cpts * cpts,struct cpts_event * event) cpts_match_tx_ts() argument
365 cpts_process_events(struct cpts * cpts) cpts_process_events() argument
394 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_overflow_check() local
457 cpts_find_ts(struct cpts * cpts,struct sk_buff * skb,int ev_type,u32 skb_mtype_seqid) cpts_find_ts() argument
493 cpts_rx_timestamp(struct cpts * cpts,struct sk_buff * skb) cpts_rx_timestamp() argument
523 cpts_tx_timestamp(struct cpts * cpts,struct sk_buff * skb) cpts_tx_timestamp() argument
549 cpts_register(struct cpts * cpts) cpts_register() argument
585 cpts_unregister(struct cpts * cpts) cpts_unregister() argument
604 cpts_calc_mult_shift(struct cpts * cpts) cpts_calc_mult_shift() argument
651 cpts_of_mux_clk_setup(struct cpts * cpts,struct device_node * node) cpts_of_mux_clk_setup() argument
724 cpts_of_parse(struct cpts * cpts,struct device_node * node) cpts_of_parse() argument
749 struct cpts *cpts; cpts_create() local
800 cpts_release(struct cpts * cpts) cpts_release() argument
[all...]
H A Dcpts.h100 struct cpts { struct
126 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); argument
127 void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb);
128 int cpts_register(struct cpts *cpts);
129 void cpts_unregister(struct cpts *cpts);
130 struct cpts *cpts_create(struct device *dev, void __iomem *regs,
132 void cpts_release(struct cpts *cpts);
133 void cpts_misc_interrupt(struct cpts *cpts);
135 static inline bool cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) in cpts_can_timestamp() argument
145 static inline void cpts_set_irqpoll(struct cpts *cpts, bool en) in cpts_set_irqpoll() argument
[all …]
H A DKconfig83 tristate "TI Common Platform Time Sync (CPTS) Support"
126 tristate "TI K3 AM65x CPTS"
130 Say y here to support the TI K3 AM65x CPTS with 1588 features such as
131 PTP hardware clock for each CPTS device and network packets
133 Depending on integration CPTS blocks enable compliance with
146 The EST scheduler runs on CPTS and the TAS/EST schedule is
H A Dam65-cpsw-qos.c19 #include "am65-cpts.h"
769 struct am65_cpts *cpts = common->cpts; in am65_cpsw_timer_set() local
775 return am65_cpts_estf_enable(cpts, port->port_id - 1, &cfg); in am65_cpsw_timer_set()
781 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_stop() local
783 am65_cpts_estf_disable(cpts, port->port_id - 1); in am65_cpsw_timer_stop()
791 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_act() local
817 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_timer_act()
862 struct am65_cpts *cpts = common->cpts; am65_cpsw_taprio_replace() local
[all...]
H A Dam65-cpsw-nuss.c43 #include "am65-cpts.h"
1356 am65_cpts_rx_timestamp(common->cpts, port_id, skb); in am65_cpsw_nuss_rx_packets()
1499 am65_cpts_tx_timestamp(tx_chn->common->cpts, skb); in am65_cpsw_nuss_tx_compl_packets()
1611 am65_cpts_prep_tx_timestamp(common->cpts, port->port_id, skb); in am65_cpsw_nuss_ndo_slave_xmit()
2562 struct am65_cpts *cpts; in am65_cpsw_init_cpts()
2568 node = of_get_child_by_name(dev->of_node, "cpts"); in am65_cpsw_init_cpts()
2570 dev_err(dev, "%s cpts not found\n", __func__); in am65_cpsw_init_cpts()
2575 cpts = am65_cpts_create(dev, reg_base, node); in am65_cpsw_init_cpts()
2576 if (IS_ERR(cpts)) { in am65_cpsw_init_cpts()
2577 int ret = PTR_ERR(cpts); in am65_cpsw_init_cpts()
2560 struct am65_cpts *cpts; am65_cpsw_init_cpts() local
[all...]
H A Dcpsw_priv.c26 #include "cpts.h"
74 cpts_tx_timestamp(ndev_to_cpsw(ndev)->cpts, skb); in cpsw_tx_handler()
130 cpts_misc_interrupt(cpsw->cpts); in cpsw_misc_interrupt()
554 cpts_node = of_get_child_by_name(cpsw->dev->of_node, "cpts"); in cpsw_init_common()
558 cpsw->cpts = cpts_create(cpsw->dev, cpts_regs, cpts_node, in cpsw_init_common()
560 if (IS_ERR(cpsw->cpts)) { in cpsw_init_common()
561 ret = PTR_ERR(cpsw->cpts); in cpsw_init_common()
H A Dam65-cpsw-nuss.h180 struct am65_cpts *cpts; member
/linux/Documentation/devicetree/bindings/net/
H A Dkeystone-netcp.txt107 - 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
112 --- clocks: list of CPTS reference (RFTCLK) clock's parents as defined in Data manual
114 --- assigned-clocks: should point on cpts-refclk-mux clock
120 Mult and shift will be calculated basing on CPTS
188 cpts {
190 clock-names = "cpts";
192 cpts_refclk_mux: cpts-refclk-mux {
[all …]
H A Dcpsw.txt41 Mult and shift will be calculated basing on CPTS
/linux/arch/arm/boot/dts/ti/keystone/
H A Dkeystone-k2g-netcp.dtsi101 clock-names = "ethss_clk", "cpts";
122 cpts-rftclk-sel = <0>;
123 cpts-ext-ts-inputs = <8>;
H A Dkeystone-k2l-netcp.dtsi158 cpts {
160 clock-names = "cpts";
162 cpts_refclk_mux: cpts-refclk-mux {
H A Dkeystone-k2e-netcp.dtsi159 cpts {
161 clock-names = "cpts";
163 cpts_refclk_mux: cpts-refclk-mux {
H A Dkeystone-k2hk-netcp.dtsi178 cpts {
180 clock-names = "cpts";
182 cpts_refclk_mux: cpts-refclk-mux {
H A Dkeystone-k2e-clocks.dtsi79 * (as cpts, for example) by configuring corresponding clock muxes.
H A Dkeystone-clocks.dtsi416 * (as cpts, for example) by configuring corresponding clock muxes.
/linux/arch/arm64/boot/dts/ti/
H A Dk3-am65-mcu.dtsi383 cpts@3d000 {
384 compatible = "ti,am65-cpts";
387 clock-names = "cpts";
389 interrupt-names = "cpts";
390 ti,cpts-ext-ts-inputs = <4>;
391 ti,cpts-periodic-outputs = <2>;
H A Dk3-j721e-mcu-wakeup.dtsi579 cpts@3d000 {
580 compatible = "ti,am65-cpts";
583 clock-names = "cpts";
585 interrupt-names = "cpts";
586 ti,cpts-ext-ts-inputs = <4>;
587 ti,cpts-periodic-outputs = <2>;
H A Dk3-am62a-main.dtsi792 cpts@3d000 {
793 compatible = "ti,j721e-cpts";
796 clock-names = "cpts";
798 interrupt-names = "cpts";
799 ti,cpts-ext-ts-inputs = <4>;
800 ti,cpts-periodic-outputs = <2>;
H A Dk3-am62-main.dtsi776 cpts@3d000 {
777 compatible = "ti,j721e-cpts";
780 clock-names = "cpts";
782 interrupt-names = "cpts";
783 ti,cpts-ext-ts-inputs = <4>;
784 ti,cpts-periodic-outputs = <2>;
/linux/arch/arm/boot/dts/ti/omap/
H A Dam33xx-clocks.dtsi532 cpsw_cpts_rft_clk: clock-cpsw-cpts-rft@520 {
H A Dam43xx-clocks.dtsi564 cpsw_cpts_rft_clk: clock-cpsw-cpts-rft@4238 {