/kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
H A D | am65-cpts.c | 23 #include "am65-cpts.h" 204 static void am65_cpts_settime(struct am65_cpts *cpts, u64 start_tstamp) in am65_cpts_settime() argument 209 am65_cpts_write32(cpts, val, ts_load_val_hi); in am65_cpts_settime() 211 am65_cpts_write32(cpts, val, ts_load_val_lo); in am65_cpts_settime() 213 am65_cpts_write32(cpts, AM65_CPTS_TS_LOAD_EN, ts_load_en); in am65_cpts_settime() 216 static void am65_cpts_set_add_val(struct am65_cpts *cpts) in am65_cpts_set_add_val() argument 219 cpts->ts_add_val = (NSEC_PER_SEC / cpts->refclk_freq - 1) & 0x7; in am65_cpts_set_add_val() 221 am65_cpts_write32(cpts, cpts in am65_cpts_set_add_val() 224 am65_cpts_disable(struct am65_cpts *cpts) am65_cpts_disable() argument 242 am65_cpts_cpts_purge_events(struct am65_cpts *cpts) am65_cpts_cpts_purge_events() argument 262 am65_cpts_fifo_pop_event(struct am65_cpts *cpts, struct am65_cpts_event *event) am65_cpts_fifo_pop_event() argument 278 am65_cpts_fifo_read(struct am65_cpts *cpts) am65_cpts_fifo_read() argument 367 am65_cpts_gettime(struct am65_cpts *cpts, struct ptp_system_timestamp *sts) am65_cpts_gettime() argument 397 struct am65_cpts *cpts = dev_id; am65_cpts_interrupt() local 408 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_adjfine() local 497 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_adjtime() local 513 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_gettimex() local 524 am65_cpts_ns_gettime(struct am65_cpts *cpts) am65_cpts_ns_gettime() argument 540 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_settime() local 551 am65_cpts_extts_enable_hw(struct am65_cpts *cpts, u32 index, int on) am65_cpts_extts_enable_hw() argument 566 am65_cpts_extts_enable(struct am65_cpts *cpts, u32 index, int on) am65_cpts_extts_enable() argument 587 am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, struct am65_cpts_estf_cfg *cfg) am65_cpts_estf_enable() argument 619 am65_cpts_estf_disable(struct am65_cpts *cpts, int idx) am65_cpts_estf_disable() argument 628 am65_cpts_perout_enable_hw(struct am65_cpts *cpts, struct ptp_perout_request *req, int on) am65_cpts_perout_enable_hw() argument 665 am65_cpts_perout_enable(struct am65_cpts *cpts, struct ptp_perout_request *req, int on) am65_cpts_perout_enable() argument 687 am65_cpts_pps_enable(struct am65_cpts *cpts, int on) am65_cpts_pps_enable() argument 732 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_enable() local 761 am65_cpts_match_tx_ts(struct am65_cpts *cpts, struct am65_cpts_event *event) am65_cpts_match_tx_ts() argument 819 am65_cpts_find_ts(struct am65_cpts *cpts) am65_cpts_find_ts() argument 848 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ts_work() local 870 am65_cpts_rx_enable(struct am65_cpts *cpts, bool en) am65_cpts_rx_enable() argument 917 am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb) am65_cpts_tx_timestamp() argument 944 am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb) am65_cpts_prep_tx_timestamp() argument 962 am65_cpts_phc_index(struct am65_cpts *cpts) am65_cpts_phc_index() argument 970 struct am65_cpts *cpts = data; cpts_free_clk_mux() local 977 cpts_of_mux_clk_setup(struct am65_cpts *cpts, struct device_node *node) cpts_of_mux_clk_setup() argument 1043 am65_cpts_of_parse(struct am65_cpts *cpts, struct device_node *node) am65_cpts_of_parse() argument 1073 am65_cpts_release(struct am65_cpts *cpts) am65_cpts_release() argument 1084 struct am65_cpts *cpts; am65_cpts_create() local 1181 am65_cpts_suspend(struct am65_cpts *cpts) am65_cpts_suspend() argument 1202 am65_cpts_resume(struct am65_cpts *cpts) am65_cpts_resume() argument 1251 struct am65_cpts *cpts; am65_cpts_probe() local [all...] |
H A D | cpts.c | 21 #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 641 cpts_of_mux_clk_setup(struct cpts *cpts, struct device_node *node) cpts_of_mux_clk_setup() argument 717 cpts_of_parse(struct cpts *cpts, struct device_node *node) cpts_of_parse() argument 742 struct cpts *cpts; cpts_create() local 793 cpts_release(struct cpts *cpts) cpts_release() argument [all...] |
H A D | cpts.h | 100 struct cpts { struct 126 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); 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_creat 135 cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_can_timestamp() argument 145 cpts_set_irqpoll(struct cpts *cpts, bool en) cpts_set_irqpoll() argument 153 cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_rx_timestamp() argument 156 cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_tx_timestamp() argument 167 cpts_release(struct cpts *cpts) cpts_release() argument 172 cpts_register(struct cpts *cpts) cpts_register() argument 177 cpts_unregister(struct cpts *cpts) cpts_unregister() argument 181 cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_can_timestamp() argument 186 cpts_misc_interrupt(struct cpts *cpts) cpts_misc_interrupt() argument 190 cpts_set_irqpoll(struct cpts *cpts, bool en) cpts_set_irqpoll() 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); 25 void am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb); 26 void am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb); 27 void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en); 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 am65_cpts_release(struct am65_cpts *cpts) am65_cpts_release() argument 46 am65_cpts_phc_index(struct am65_cpts *cpts) am65_cpts_phc_index() argument 51 am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb) am65_cpts_tx_timestamp() argument 56 am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb) am65_cpts_prep_tx_timestamp() argument 61 am65_cpts_rx_enable(struct am65_cpts *cpts, bool en) am65_cpts_rx_enable() argument 65 am65_cpts_ns_gettime(struct am65_cpts *cpts) am65_cpts_ns_gettime() argument 70 am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, struct am65_cpts_estf_cfg *cfg) am65_cpts_estf_enable() argument 76 am65_cpts_estf_disable(struct am65_cpts *cpts, int idx) am65_cpts_estf_disable() argument 80 am65_cpts_suspend(struct am65_cpts *cpts) am65_cpts_suspend() argument 84 am65_cpts_resume(struct am65_cpts *cpts) am65_cpts_resume() argument [all...] |
H A D | am65-cpsw-qos.c | 15 #include "am65-cpts.h" 369 struct am65_cpts *cpts = common->cpts; in am65_cpsw_timer_set() local 375 return am65_cpts_estf_enable(cpts, port->port_id - 1, &cfg); in am65_cpsw_timer_set() 381 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_stop() local 383 am65_cpts_estf_disable(cpts, port->port_id - 1); in am65_cpsw_timer_stop() 391 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_act() local 417 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_timer_act() 448 struct am65_cpts *cpts = common->cpts; am65_cpsw_configure_taprio() local [all...] |
H A D | Makefile | 16 obj-$(CONFIG_TI_CPTS) += cpts.o 32 obj-$(CONFIG_TI_K3_AM65_CPTS) += am65-cpts.o
|
H A D | netcp_ethss.c | 26 #include "cpts.h" 754 struct cpts *cpts; member 2008 if (!gbe_intf || !gbe_intf->gbe_dev->cpts) in keystone_get_ts_info() 2018 info->phc_index = gbe_intf->gbe_dev->cpts->phc_index; in keystone_get_ts_info() 2539 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp() 2547 return cpts_can_timestamp(gbe_intf->gbe_dev->cpts, skb); in gbe_need_txtstamp() 2592 cpts_rx_timestamp(gbe_dev->cpts, p_info->skb); in gbe_rxtstamp() 2602 struct cpts *cpts in gbe_hwtstamp_get() local 2648 struct cpts *cpts = gbe_dev->cpts; gbe_hwtstamp_set() local [all...] |
H A D | cpsw_new.c | 42 #include "cpts.h" 375 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 813 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 871 if (cpsw->cpts) { in cpsw_ndo_open() 872 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 873 dev_err(priv->dev, "error registering cpts device\n"); in cpsw_ndo_open() 921 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 933 priv->tx_ts_enabled && cpts_can_timestamp(cpts, sk in cpsw_ndo_start_xmit() [all...] |
H A D | cpsw.c | 45 #include "cpts.h" 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() 835 dev_err(priv->dev, "error registering cpts device\n"); in cpsw_ndo_open() 884 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 905 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 917 priv->tx_ts_enabled && cpts_can_timestamp(cpts, sk in cpsw_ndo_start_xmit() [all...] |
H A D | am65-cpsw-nuss.c | 40 #include "am65-cpts.h" 912 am65_cpts_tx_timestamp(tx_chn->common->cpts, skb); in am65_cpsw_nuss_tx_compl_packet() 1093 am65_cpts_prep_tx_timestamp(common->cpts, skb); in am65_cpsw_nuss_ndo_slave_xmit() 1348 am65_cpts_rx_enable(common->cpts, port->rx_ts_enabled); in am65_cpsw_nuss_hwtstamp_set() 1971 struct am65_cpts *cpts; in am65_cpsw_init_cpts() local 1977 node = of_get_child_by_name(dev->of_node, "cpts"); in am65_cpsw_init_cpts() 1979 dev_err(dev, "%s cpts not found\n", __func__); in am65_cpsw_init_cpts() 1984 cpts = am65_cpts_create(dev, reg_base, node); in am65_cpsw_init_cpts() 1985 if (IS_ERR(cpts)) { in am65_cpsw_init_cpts() 1986 int ret = PTR_ERR(cpts); in am65_cpsw_init_cpts() [all...] |
H A D | am65-cpsw-nuss.h | 146 struct am65_cpts *cpts; member
|
H A D | cpsw_priv.h | 355 struct cpts *cpts; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
H A D | cpts.c | 21 #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_adjfreq() local 244 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_adjtime() local 257 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_gettimeex() local 275 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_settime() local 287 cpts_extts_enable(struct cpts *cpts, u32 index, int on) cpts_extts_enable() argument 314 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_ptp_enable() local 326 cpts_match_tx_ts(struct cpts *cpts, struct cpts_event *event) cpts_match_tx_ts() argument 377 cpts_process_events(struct cpts *cpts) cpts_process_events() argument 406 struct cpts *cpts = container_of(ptp, struct cpts, info); cpts_overflow_check() local 469 cpts_find_ts(struct cpts *cpts, struct sk_buff *skb, int ev_type, u32 skb_mtype_seqid) cpts_find_ts() argument 505 cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_rx_timestamp() argument 535 cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_tx_timestamp() argument 561 cpts_register(struct cpts *cpts) cpts_register() argument 597 cpts_unregister(struct cpts *cpts) cpts_unregister() argument 616 cpts_calc_mult_shift(struct cpts *cpts) cpts_calc_mult_shift() argument 653 cpts_of_mux_clk_setup(struct cpts *cpts, struct device_node *node) cpts_of_mux_clk_setup() argument 729 cpts_of_parse(struct cpts *cpts, struct device_node *node) cpts_of_parse() argument 754 struct cpts *cpts; cpts_create() local 805 cpts_release(struct cpts *cpts) cpts_release() argument [all...] |
H A D | am65-cpts.c | 23 #include "am65-cpts.h" 189 static void am65_cpts_settime(struct am65_cpts *cpts, u64 start_tstamp) in am65_cpts_settime() argument 194 am65_cpts_write32(cpts, val, ts_load_val_hi); in am65_cpts_settime() 196 am65_cpts_write32(cpts, val, ts_load_val_lo); in am65_cpts_settime() 198 am65_cpts_write32(cpts, AM65_CPTS_TS_LOAD_EN, ts_load_en); in am65_cpts_settime() 201 static void am65_cpts_set_add_val(struct am65_cpts *cpts) in am65_cpts_set_add_val() argument 204 cpts->ts_add_val = (NSEC_PER_SEC / cpts->refclk_freq - 1) & 0x7; in am65_cpts_set_add_val() 206 am65_cpts_write32(cpts, cpts in am65_cpts_set_add_val() 209 am65_cpts_disable(struct am65_cpts *cpts) am65_cpts_disable() argument 227 am65_cpts_cpts_purge_events(struct am65_cpts *cpts) am65_cpts_cpts_purge_events() argument 247 am65_cpts_fifo_pop_event(struct am65_cpts *cpts, struct am65_cpts_event *event) am65_cpts_fifo_pop_event() argument 263 am65_cpts_fifo_read(struct am65_cpts *cpts) am65_cpts_fifo_read() argument 345 am65_cpts_gettime(struct am65_cpts *cpts, struct ptp_system_timestamp *sts) am65_cpts_gettime() argument 375 struct am65_cpts *cpts = dev_id; am65_cpts_interrupt() local 386 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_adjfreq() local 428 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_adjtime() local 444 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_gettimex() local 455 am65_cpts_ns_gettime(struct am65_cpts *cpts) am65_cpts_ns_gettime() argument 471 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_settime() local 482 am65_cpts_extts_enable_hw(struct am65_cpts *cpts, u32 index, int on) am65_cpts_extts_enable_hw() argument 497 am65_cpts_extts_enable(struct am65_cpts *cpts, u32 index, int on) am65_cpts_extts_enable() argument 512 am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, struct am65_cpts_estf_cfg *cfg) am65_cpts_estf_enable() argument 539 am65_cpts_estf_disable(struct am65_cpts *cpts, int idx) am65_cpts_estf_disable() argument 547 am65_cpts_perout_enable_hw(struct am65_cpts *cpts, struct ptp_perout_request *req, int on) am65_cpts_perout_enable_hw() argument 580 am65_cpts_perout_enable(struct am65_cpts *cpts, struct ptp_perout_request *req, int on) am65_cpts_perout_enable() argument 599 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ptp_enable() local 626 am65_cpts_match_tx_ts(struct am65_cpts *cpts, struct am65_cpts_event *event) am65_cpts_match_tx_ts() argument 684 am65_cpts_find_ts(struct am65_cpts *cpts) am65_cpts_find_ts() argument 713 struct am65_cpts *cpts = container_of(ptp, struct am65_cpts, ptp_info); am65_cpts_ts_work() local 735 am65_cpts_rx_enable(struct am65_cpts *cpts, bool en) am65_cpts_rx_enable() argument 782 am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb) am65_cpts_tx_timestamp() argument 809 am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb) am65_cpts_prep_tx_timestamp() argument 827 am65_cpts_phc_index(struct am65_cpts *cpts) am65_cpts_phc_index() argument 835 struct am65_cpts *cpts = data; cpts_free_clk_mux() local 842 cpts_of_mux_clk_setup(struct am65_cpts *cpts, struct device_node *node) cpts_of_mux_clk_setup() argument 908 am65_cpts_of_parse(struct am65_cpts *cpts, struct device_node *node) am65_cpts_of_parse() argument 923 struct am65_cpts *cpts = data; am65_cpts_release() local 933 struct am65_cpts *cpts; am65_cpts_create() local 1039 struct am65_cpts *cpts; am65_cpts_probe() local [all...] |
H A D | cpts.h | 100 struct cpts { struct 126 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); 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_creat 135 cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_can_timestamp() argument 145 cpts_set_irqpoll(struct cpts *cpts, bool en) cpts_set_irqpoll() argument 153 cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_rx_timestamp() argument 156 cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_tx_timestamp() argument 167 cpts_release(struct cpts *cpts) cpts_release() argument 172 cpts_register(struct cpts *cpts) cpts_register() argument 177 cpts_unregister(struct cpts *cpts) cpts_unregister() argument 181 cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) cpts_can_timestamp() argument 186 cpts_misc_interrupt(struct cpts *cpts) cpts_misc_interrupt() argument 190 cpts_set_irqpoll(struct cpts *cpts, bool en) cpts_set_irqpoll() argument [all...] |
H 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); 25 void am65_cpts_prep_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 am65_cpts_rx_enable(struct am65_cpts *cpts, bool en) am65_cpts_rx_enable() argument 58 am65_cpts_ns_gettime(struct am65_cpts *cpts) am65_cpts_ns_gettime() argument 63 am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, struct am65_cpts_estf_cfg *cfg) am65_cpts_estf_enable() argument 69 am65_cpts_estf_disable(struct am65_cpts *cpts, int idx) am65_cpts_estf_disable() argument [all...] |
H A D | am65-cpsw-qos.c | 14 #include "am65-cpts.h" 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; am65_cpsw_configure_taprio() local [all...] |
H A D | Makefile | 16 obj-$(CONFIG_TI_CPTS) += cpts.o 29 obj-$(CONFIG_TI_K3_AM65_CPTS) += am65-cpts.o
|
H A D | netcp_ethss.c | 26 #include "cpts.h" 754 struct cpts *cpts; member 2008 if (!gbe_intf || !gbe_intf->gbe_dev->cpts) in keystone_get_ts_info() 2018 info->phc_index = gbe_intf->gbe_dev->cpts->phc_index; in keystone_get_ts_info() 2539 cpts_tx_timestamp(gbe_dev->cpts, skb); in gbe_txtstamp() 2547 return cpts_can_timestamp(gbe_intf->gbe_dev->cpts, skb); in gbe_need_txtstamp() 2592 cpts_rx_timestamp(gbe_dev->cpts, p_info->skb); in gbe_rxtstamp() 2602 struct cpts *cpts in gbe_hwtstamp_get() local 2648 struct cpts *cpts = gbe_dev->cpts; gbe_hwtstamp_set() local [all...] |
H A D | cpsw_new.c | 40 #include "cpts.h" 381 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 816 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 876 if (cpsw->cpts) { in cpsw_ndo_open() 877 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 878 dev_err(priv->dev, "error registering cpts device\n"); in cpsw_ndo_open() 926 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 938 priv->tx_ts_enabled && cpts_can_timestamp(cpts, sk in cpsw_ndo_start_xmit() [all...] |
H A D | cpsw.c | 45 #include "cpts.h" 438 cpts_rx_timestamp(cpsw->cpts, skb); in cpsw_rx_handler() 841 if (cpsw->cpts) { in cpsw_ndo_open() 842 if (cpts_register(cpsw->cpts)) in cpsw_ndo_open() 843 dev_err(priv->dev, "error registering cpts device\n"); in cpsw_ndo_open() 892 cpts_unregister(cpsw->cpts); in cpsw_ndo_stop() 913 struct cpts *cpts = cpsw->cpts; in cpsw_ndo_start_xmit() local 925 priv->tx_ts_enabled && cpts_can_timestamp(cpts, sk in cpsw_ndo_start_xmit() [all...] |
H A D | am65-cpsw-nuss.c | 35 #include "am65-cpts.h" 950 am65_cpts_tx_timestamp(common->cpts, skb); in am65_cpsw_nuss_tx_compl_packets() 1045 am65_cpts_prep_tx_timestamp(common->cpts, skb); in am65_cpsw_nuss_ndo_slave_xmit() 1292 am65_cpts_rx_enable(common->cpts, port->rx_ts_enabled); in am65_cpsw_nuss_hwtstamp_set() 1674 struct am65_cpts *cpts; in am65_cpsw_init_cpts() local 1680 node = of_get_child_by_name(dev->of_node, "cpts"); in am65_cpsw_init_cpts() 1682 dev_err(dev, "%s cpts not found\n", __func__); in am65_cpsw_init_cpts() 1687 cpts = am65_cpts_create(dev, reg_base, node); in am65_cpsw_init_cpts() 1688 if (IS_ERR(cpts)) { in am65_cpsw_init_cpts() 1689 int ret = PTR_ERR(cpts); in am65_cpsw_init_cpts() [all...] |
H A D | am65-cpsw-nuss.h | 111 struct am65_cpts *cpts; member
|
H A D | cpsw_priv.c | 25 #include "cpts.h" 70 cpts_tx_timestamp(ndev_to_cpsw(ndev)->cpts, skb); in cpsw_tx_handler() 123 cpts_misc_interrupt(cpsw->cpts); in cpsw_misc_interrupt() 535 cpts_node = of_get_child_by_name(cpsw->dev->of_node, "cpts"); in cpsw_init_common() 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()
|
H A D | cpsw_priv.h | 353 struct cpts *cpts; member
|