Home
last modified time | relevance | path

Searched refs:tx_ch_num (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/ti/icssg/
Dicssg_prueth_sr1.c98 tx_chn = &emac->tx_chns[emac->tx_ch_num - 1]; in emac_send_command_sr1()
463 int num_data_chn = emac->tx_ch_num - 1; in emac_ndo_open()
569 for (i = 0; i < emac->tx_ch_num; i++) { in emac_ndo_open()
576 for (i = 0; i < emac->tx_ch_num; i++) in emac_ndo_open()
610 prueth_ndev_del_tx_napi(emac, emac->tx_ch_num); in emac_ndo_open()
649 atomic_set(&emac->tdown_cnt, emac->tx_ch_num); in emac_ndo_stop()
654 for (i = 0; i < emac->tx_ch_num; i++) in emac_ndo_stop()
662 prueth_reset_tx_chan(emac, emac->tx_ch_num, true); in emac_ndo_stop()
663 for (i = 0; i < emac->tx_ch_num; i++) in emac_ndo_stop()
686 prueth_ndev_del_tx_napi(emac, emac->tx_ch_num); in emac_ndo_stop()
[all …]
Dicssg_ethtool.c149 emac->tx_ch_num = ch->tx_count; in emac_set_channels()
152 emac->tx_ch_num++; in emac_set_channels()
171 ch->tx_count = emac->tx_ch_num; in emac_get_channels()
Dicssg_prueth.c545 int ret, i, num_data_chn = emac->tx_ch_num; in emac_ndo_open()
626 for (i = 0; i < emac->tx_ch_num; i++) { in emac_ndo_open()
633 for (i = 0; i < emac->tx_ch_num; i++) in emac_ndo_open()
660 prueth_ndev_del_tx_napi(emac, emac->tx_ch_num); in emac_ndo_open()
699 atomic_set(&emac->tdown_cnt, emac->tx_ch_num); in emac_ndo_stop()
704 for (i = 0; i < emac->tx_ch_num; i++) in emac_ndo_stop()
712 prueth_reset_tx_chan(emac, emac->tx_ch_num, true); in emac_ndo_stop()
713 for (i = 0; i < emac->tx_ch_num; i++) { in emac_ndo_stop()
740 prueth_ndev_del_tx_napi(emac, emac->tx_ch_num); in emac_ndo_stop()
879 emac->tx_ch_num = 1; in prueth_netdev_init()
Dicssg_common.c60 for (i = 0; i < emac->tx_ch_num; i++) { in prueth_cleanup_tx_chns()
248 for (i = 0; i < emac->tx_ch_num; i++) { in prueth_ndev_add_tx_napi()
300 for (i = 0; i < emac->tx_ch_num; i++) { in prueth_init_tx_chns()
Dicssg_prueth.h169 int tx_ch_num; member
/linux-6.12.1/drivers/net/ethernet/ti/
Dcpsw_ethtool.c231 (cpsw->rx_ch_num + cpsw->tx_ch_num) * in cpsw_get_sset_count()
270 cpsw_add_ch_strings(&p, cpsw->tx_ch_num, 0); in cpsw_get_strings()
297 for (ch = 0; ch < cpsw->tx_ch_num; ch++) { in cpsw_get_ethtool_stats()
394 ch->tx_count = cpsw->tx_ch_num; in cpsw_get_channels()
548 ch = &cpsw->tx_ch_num; in cpsw_update_channels_res()
627 ret = netif_set_real_num_tx_queues(sl_ndev, cpsw->tx_ch_num); in cpsw_set_channels_common()
Dcpsw_priv.c299 for (ch = 0; ch < cpsw->tx_ch_num; ch++) { in cpsw_ndo_tx_timeout()
332 for (i = 0, rlim_ch_num = 0; i < cpsw->tx_ch_num; i++) { in cpsw_need_resplit()
341 if (!rlim_ch_num || rlim_ch_num == cpsw->tx_ch_num) in cpsw_need_resplit()
356 for (i = 0; i < cpsw->tx_ch_num; i++) { in cpsw_split_res()
365 if (cpsw->tx_ch_num == rlim_ch_num) { in cpsw_split_res()
368 ch_budget = NAPI_POLL_WEIGHT / cpsw->tx_ch_num; in cpsw_split_res()
385 (cpsw->tx_ch_num - rlim_ch_num); in cpsw_split_res()
387 (cpsw->tx_ch_num - rlim_ch_num); in cpsw_split_res()
392 for (i = 0; i < cpsw->tx_ch_num; i++) { in cpsw_split_res()
447 cpsw->tx_ch_num = 1; in cpsw_init_common()
Dam65-cpsw-nuss.c728 for (tx = 0; tx < common->tx_ch_num; tx++) { in am65_cpsw_nuss_common_open()
783 atomic_set(&common->tdown_cnt, common->tx_ch_num); in am65_cpsw_nuss_common_stop()
788 for (i = 0; i < common->tx_ch_num; i++) in am65_cpsw_nuss_common_stop()
795 for (i = 0; i < common->tx_ch_num; i++) { in am65_cpsw_nuss_common_stop()
800 for (i = 0; i < common->tx_ch_num; i++) { in am65_cpsw_nuss_common_stop()
893 ret = netif_set_real_num_tx_queues(ndev, common->tx_ch_num); in am65_cpsw_nuss_ndo_slave_open()
905 for (i = 0; i < common->tx_ch_num; i++) { in am65_cpsw_nuss_ndo_slave_open()
1962 tx_chn = &common->tx_chns[cpu % common->tx_ch_num]; in am65_cpsw_ndo_xdp_xmit()
2186 for (i = 0; i < common->tx_ch_num; i++) { in am65_cpsw_nuss_free_tx_chns()
2207 for (i = 0; i < common->tx_ch_num; i++) { in am65_cpsw_nuss_remove_tx_chns()
[all …]
Dam65-cpsw-nuss.h157 int tx_ch_num; member
Dcpsw_priv.h357 int rx_ch_num, tx_ch_num; member
Dcpsw.c768 ret = netif_set_real_num_tx_queues(ndev, cpsw->tx_ch_num); in cpsw_ndo_open()
921 if (q_idx >= cpsw->tx_ch_num) in cpsw_ndo_start_xmit()
922 q_idx = q_idx % cpsw->tx_ch_num; in cpsw_ndo_start_xmit()
Dam65-cpsw-qos.c1232 ch_msk = GENMASK(common->tx_ch_num - 1, queue); in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
1267 for (tx_ch = 0; tx_ch < common->tx_ch_num; tx_ch++) { in am65_cpsw_qos_tx_p0_rate_init()
Dcpsw_new.c841 ret = netif_set_real_num_tx_queues(ndev, cpsw->tx_ch_num); in cpsw_ndo_open()
937 if (q_idx >= cpsw->tx_ch_num) in cpsw_ndo_start_xmit()
938 q_idx = q_idx % cpsw->tx_ch_num; in cpsw_ndo_start_xmit()
Dam65-cpsw-ethtool.c433 ch->tx_count = common->tx_ch_num; in am65_cpsw_get_channels()