Home
last modified time | relevance | path

Searched refs:tx_chn (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/dma/ti/
H A Dk3-udma-glue.c116 bool tx_chn) in of_k3_udma_glue_parse_chn_common() argument
118 if (tx_chn && !(thread_id & K3_PSIL_DST_THREAD_ID_OFFSET)) in of_k3_udma_glue_parse_chn_common()
121 if (!tx_chn && (thread_id & K3_PSIL_DST_THREAD_ID_OFFSET)) in of_k3_udma_glue_parse_chn_common()
136 if (tx_chn) in of_k3_udma_glue_parse_chn_common()
146 bool tx_chn) in of_k3_udma_glue_parse_chn() argument
186 ret = of_k3_udma_glue_parse_chn_common(common, thread_id, tx_chn); in of_k3_udma_glue_parse_chn()
195 bool tx_chn, u32 thread_id) in of_k3_udma_glue_parse_chn_by_id() argument
206 ret = of_k3_udma_glue_parse_chn_common(common, thread_id, tx_chn); in of_k3_udma_glue_parse_chn_by_id()
210 static void k3_udma_glue_dump_tx_chn(struct k3_udma_glue_tx_channel *tx_chn) in k3_udma_glue_dump_tx_chn() argument
212 struct device *dev = tx_chn in k3_udma_glue_dump_tx_chn()
242 k3_udma_glue_cfg_tx_chn(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_cfg_tx_chn() argument
277 k3_udma_glue_request_tx_chn_common(struct device * dev,struct k3_udma_glue_tx_channel * tx_chn,struct k3_udma_glue_tx_channel_cfg * cfg) k3_udma_glue_request_tx_chn_common() argument
379 struct k3_udma_glue_tx_channel *tx_chn; k3_udma_glue_request_tx_chn() local
416 struct k3_udma_glue_tx_channel *tx_chn; k3_udma_glue_request_tx_chn_for_thread_id() local
446 k3_udma_glue_release_tx_chn(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_release_tx_chn() argument
472 k3_udma_glue_push_tx_chn(struct k3_udma_glue_tx_channel * tx_chn,struct cppi5_host_desc_t * desc_tx,dma_addr_t desc_dma) k3_udma_glue_push_tx_chn() argument
488 k3_udma_glue_pop_tx_chn(struct k3_udma_glue_tx_channel * tx_chn,dma_addr_t * desc_dma) k3_udma_glue_pop_tx_chn() argument
501 k3_udma_glue_enable_tx_chn(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_enable_tx_chn() argument
526 k3_udma_glue_disable_tx_chn(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_disable_tx_chn() argument
545 k3_udma_glue_tdown_tx_chn(struct k3_udma_glue_tx_channel * tx_chn,bool sync) k3_udma_glue_tdown_tx_chn() argument
577 k3_udma_glue_reset_tx_chn(struct k3_udma_glue_tx_channel * tx_chn,void * data,void (* cleanup)(void * data,dma_addr_t desc_dma)) k3_udma_glue_reset_tx_chn() argument
611 k3_udma_glue_tx_get_hdesc_size(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_tx_get_hdesc_size() argument
617 k3_udma_glue_tx_get_txcq_id(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_tx_get_txcq_id() argument
623 k3_udma_glue_tx_get_irq(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_tx_get_irq() argument
640 k3_udma_glue_tx_get_dma_device(struct k3_udma_glue_tx_channel * tx_chn) k3_udma_glue_tx_get_dma_device() argument
650 k3_udma_glue_tx_dma_to_cppi5_addr(struct k3_udma_glue_tx_channel * tx_chn,dma_addr_t * addr) k3_udma_glue_tx_dma_to_cppi5_addr() argument
661 k3_udma_glue_tx_cppi5_to_dma_addr(struct k3_udma_glue_tx_channel * tx_chn,dma_addr_t * addr) k3_udma_glue_tx_cppi5_to_dma_addr() argument
[all...]
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_common.c66 struct prueth_tx_chn *tx_chn = &emac->tx_chns[i]; in prueth_cleanup_tx_chns() local
68 if (tx_chn->desc_pool) in prueth_cleanup_tx_chns()
69 k3_cppi_desc_pool_destroy(tx_chn->desc_pool); in prueth_cleanup_tx_chns()
71 if (tx_chn->tx_chn) in prueth_cleanup_tx_chns()
72 k3_udma_glue_release_tx_chn(tx_chn->tx_chn); in prueth_cleanup_tx_chns()
77 memset(tx_chn, 0, sizeof(*tx_chn)); in prueth_cleanup_tx_chns()
87 struct prueth_tx_chn *tx_chn = &emac->tx_chns[i]; in prueth_ndev_del_tx_napi() local
89 if (tx_chn->irq) in prueth_ndev_del_tx_napi()
90 free_irq(tx_chn->irq, tx_chn); in prueth_ndev_del_tx_napi()
91 netif_napi_del(&tx_chn->napi_tx); in prueth_ndev_del_tx_napi()
[all …]
H A Dicssg_ethtool.c216 struct prueth_tx_chn *tx_chn; in emac_get_coalesce() local
218 tx_chn = &emac->tx_chns[0]; in emac_get_coalesce()
221 coal->tx_coalesce_usecs = tx_chn->tx_pace_timeout_ns / 1000; in emac_get_coalesce()
230 struct prueth_tx_chn *tx_chn; in emac_get_per_queue_coalesce() local
235 tx_chn = &emac->tx_chns[queue]; in emac_get_per_queue_coalesce()
237 coal->tx_coalesce_usecs = tx_chn->tx_pace_timeout_ns / 1000; in emac_get_per_queue_coalesce()
249 struct prueth_tx_chn *tx_chn; in emac_set_coalesce() local
251 tx_chn = &emac->tx_chns[0]; in emac_set_coalesce()
268 tx_chn->tx_pace_timeout_ns = coal->tx_coalesce_usecs * 1000; in emac_set_coalesce()
278 struct prueth_tx_chn *tx_chn; in emac_set_per_queue_coalesce() local
[all …]
H A Dicssg_prueth.c885 struct prueth_tx_chn *tx_chn = &emac->tx_chns[queue_id]; in prueth_set_xsk_pool() local
890 tx_chn->xsk_pool = NULL; in prueth_set_xsk_pool()
893 tx_chn->xsk_pool = xsk_get_pool_from_qid(emac->ndev, queue_id); in prueth_set_xsk_pool()
907 k3_udma_glue_tdown_tx_chn(emac->tx_chns[i].tx_chn, false); in prueth_destroy_txq()
917 k3_udma_glue_reset_tx_chn(emac->tx_chns[i].tx_chn, in prueth_destroy_txq()
920 k3_udma_glue_disable_tx_chn(emac->tx_chns[i].tx_chn); in prueth_destroy_txq()
966 ret = k3_udma_glue_enable_tx_chn(emac->tx_chns[i].tx_chn); in prueth_create_txq()
1596 struct prueth_tx_chn *tx_chn = &emac->tx_chns[qid]; in prueth_xsk_wakeup() local
1609 if (!tx_chn->xsk_pool) { in prueth_xsk_wakeup()
1620 if (!napi_if_scheduled_mark_missed(&tx_chn in prueth_xsk_wakeup()
[all...]
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c412 struct am65_cpsw_tx_chn *tx_chn; in am65_cpsw_nuss_ndo_host_tx_timeout()
417 tx_chn = &common->tx_chns[txqueue]; in am65_cpsw_nuss_ndo_host_tx_timeout()
425 k3_cppi_desc_pool_avail(tx_chn->desc_pool)); in am65_cpsw_nuss_ndo_host_tx_timeout()
662 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[id]; in am65_cpsw_destroy_txq()
664 napi_disable(&tx_chn->napi_tx); in am65_cpsw_destroy_txq()
665 hrtimer_cancel(&tx_chn->tx_hrtimer); in am65_cpsw_destroy_txq()
666 k3_udma_glue_reset_tx_chn(tx_chn->tx_chn, tx_chn, in am65_cpsw_destroy_txq()
668 k3_udma_glue_disable_tx_chn(tx_chn in am65_cpsw_destroy_txq()
411 struct am65_cpsw_tx_chn *tx_chn; am65_cpsw_nuss_ndo_host_tx_timeout() local
661 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[id]; am65_cpsw_destroy_txq() local
672 struct am65_cpsw_tx_chn *tx_chn = common->tx_chns; am65_cpsw_destroy_txqs() local
695 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[id]; am65_cpsw_create_txq() local
738 am65_cpsw_nuss_set_buf_type(struct am65_cpsw_tx_chn * tx_chn,struct cppi5_host_desc_t * desc,enum am65_cpsw_tx_buf_type buf_type) am65_cpsw_nuss_set_buf_type() argument
750 am65_cpsw_nuss_buf_type(struct am65_cpsw_tx_chn * tx_chn,dma_addr_t desc_dma) am65_cpsw_nuss_buf_type() argument
792 am65_cpsw_nuss_xmit_free(struct am65_cpsw_tx_chn * tx_chn,struct cppi5_host_desc_t * desc) am65_cpsw_nuss_xmit_free() argument
829 struct am65_cpsw_tx_chn *tx_chn = data; am65_cpsw_nuss_tx_cleanup() local
1091 am65_cpsw_xdp_tx_frame(struct net_device * ndev,struct am65_cpsw_tx_chn * tx_chn,struct xdp_frame * xdpf,enum am65_cpsw_tx_buf_type buf_type) am65_cpsw_xdp_tx_frame() argument
1173 struct am65_cpsw_tx_chn *tx_chn; am65_cpsw_run_xdp() local
1437 am65_cpsw_nuss_tx_wake(struct am65_cpsw_tx_chn * tx_chn,struct net_device * ndev,struct netdev_queue * netif_txq) am65_cpsw_nuss_tx_wake() argument
1462 struct am65_cpsw_tx_chn *tx_chn; am65_cpsw_nuss_tx_compl_packets() local
1547 struct am65_cpsw_tx_chn *tx_chn = am65_cpsw_napi_to_tx_chn(napi_tx); am65_cpsw_nuss_tx_poll() local
1582 struct am65_cpsw_tx_chn *tx_chn = dev_id; am65_cpsw_nuss_tx_irq() local
1598 struct am65_cpsw_tx_chn *tx_chn; am65_cpsw_nuss_ndo_slave_xmit() local
1954 struct am65_cpsw_tx_chn *tx_chn; am65_cpsw_ndo_xdp_xmit() local
2186 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[i]; am65_cpsw_nuss_free_tx_chns() local
2205 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[i]; am65_cpsw_nuss_remove_tx_chns() local
2219 struct am65_cpsw_tx_chn *tx_chn; am65_cpsw_nuss_ndev_add_tx_napi() local
2278 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[i]; am65_cpsw_nuss_init_tx_chns() local
[all...]
H A Dam65-cpsw-qos.c1227 struct am65_cpsw_tx_chn *tx_chn; in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1269 tx_chn = &common->tx_chns[queue]; in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1270 tx_chn->rate_mbps = rate_mbps; in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1290 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[tx_ch]; in am65_cpsw_qos_tx_p0_rate_init()
1293 if (!tx_chn->rate_mbps) in am65_cpsw_qos_tx_p0_rate_init()
1296 ch_cir = am65_cpsw_qos_tx_rate_calc(tx_chn->rate_mbps, in am65_cpsw_qos_tx_p0_rate_init()
1228 struct am65_cpsw_tx_chn *tx_chn; am65_cpsw_qos_ndo_tx_p0_set_maxrate() local
1291 struct am65_cpsw_tx_chn *tx_chn = &common->tx_chns[tx_ch]; am65_cpsw_qos_tx_p0_rate_init() local
H A Dam65-cpsw-nuss.h83 struct k3_udma_glue_tx_channel *tx_chn; member