Lines Matching refs:txch

539 	u8 txch = tx_ring->txch;  in rtw89_pci_release_txwd_skb()  local
548 txch, seq); in rtw89_pci_release_txwd_skb()
573 u8 qsel, tx_status, txch; in rtw89_pci_release_rpp() local
578 txch = rtw89_core_get_ch_dma(rtwdev, qsel); in rtw89_pci_release_rpp()
580 if (txch == RTW89_TXCH_CH12) { in rtw89_pci_release_rpp()
585 tx_ring = &rtwpci->tx_rings[txch]; in rtw89_pci_release_rpp()
947 #define DEF_TXCHADDRS_TYPE2(gen, ch_idx, txch, v...) \ argument
949 .num = R_##gen##_##txch##_TXBD_NUM ##v, \
950 .idx = R_##gen##_##txch##_TXBD_IDX ##v, \
952 .desa_l = R_##gen##_##txch##_TXBD_DESA_L ##v, \
953 .desa_h = R_##gen##_##txch##_TXBD_DESA_H ##v, \
956 #define DEF_TXCHADDRS_TYPE1(info, txch, v...) \ argument
957 [RTW89_TXCH_##txch] = { \
958 .num = R_AX_##txch##_TXBD_NUM ##v, \
959 .idx = R_AX_##txch##_TXBD_IDX ##v, \
960 .bdram = R_AX_##txch##_BDRAM_CTRL ##v, \
961 .desa_l = R_AX_##txch##_TXBD_DESA_L ##v, \
962 .desa_h = R_AX_##txch##_TXBD_DESA_H ##v, \
965 #define DEF_TXCHADDRS(info, txch, v...) \ argument
966 [RTW89_TXCH_##txch] = { \
967 .num = R_AX_##txch##_TXBD_NUM, \
968 .idx = R_AX_##txch##_TXBD_IDX, \
969 .bdram = R_AX_##txch##_BDRAM_CTRL ##v, \
970 .desa_l = R_AX_##txch##_TXBD_DESA_L ##v, \
971 .desa_h = R_AX_##txch##_TXBD_DESA_H ##v, \
1056 enum rtw89_tx_channel txch, in rtw89_pci_get_txch_addrs() argument
1061 if (txch >= RTW89_TXCH_NUM) in rtw89_pci_get_txch_addrs()
1064 *addr = &info->dma_addr_set->tx[txch]; in rtw89_pci_get_txch_addrs()
1111 u8 txch) in __rtw89_pci_check_and_reclaim_tx_resource_noio() argument
1114 struct rtw89_pci_tx_ring *tx_ring = &rtwpci->tx_rings[txch]; in __rtw89_pci_check_and_reclaim_tx_resource_noio()
1120 if (txch != RTW89_TXCH_CH12) in __rtw89_pci_check_and_reclaim_tx_resource_noio()
1128 u8 txch) in __rtw89_pci_check_and_reclaim_tx_resource() argument
1131 struct rtw89_pci_tx_ring *tx_ring = &rtwpci->tx_rings[txch]; in __rtw89_pci_check_and_reclaim_tx_resource()
1182 u8 txch) in rtw89_pci_check_and_reclaim_tx_resource() argument
1185 return __rtw89_pci_check_and_reclaim_tx_resource_noio(rtwdev, txch); in rtw89_pci_check_and_reclaim_tx_resource()
1187 if (txch == RTW89_TXCH_CH12) in rtw89_pci_check_and_reclaim_tx_resource()
1190 return __rtw89_pci_check_and_reclaim_tx_resource(rtwdev, txch); in rtw89_pci_check_and_reclaim_tx_resource()
1221 static void rtw89_pci_ops_tx_kick_off(struct rtw89_dev *rtwdev, u8 txch) in rtw89_pci_ops_tx_kick_off() argument
1224 struct rtw89_pci_tx_ring *tx_ring = &rtwpci->tx_rings[txch]; in rtw89_pci_ops_tx_kick_off()
1227 set_bit(txch, rtwpci->kick_map); in rtw89_pci_ops_tx_kick_off()
1238 int txch; in rtw89_pci_tx_kick_off_pending() local
1240 for (txch = 0; txch < RTW89_TXCH_NUM; txch++) { in rtw89_pci_tx_kick_off_pending()
1241 if (!test_and_clear_bit(txch, rtwpci->kick_map)) in rtw89_pci_tx_kick_off_pending()
1244 tx_ring = &rtwpci->tx_rings[txch]; in rtw89_pci_tx_kick_off_pending()
1249 static void __pci_flush_txch(struct rtw89_dev *rtwdev, u8 txch, bool drop) in __pci_flush_txch() argument
1252 struct rtw89_pci_tx_ring *tx_ring = &rtwpci->tx_rings[txch]; in __pci_flush_txch()
1272 rtw89_info(rtwdev, "timed out to flush pci txch: %d\n", txch); in __pci_flush_txch()
1466 if (tx_ring->txch == RTW89_TXCH_CH12) in rtw89_pci_txbd_submit()
1501 u8 txch) in rtw89_pci_tx_write() argument
1510 if ((txch == RTW89_TXCH_CH12 || in rtw89_pci_tx_write()
1512 (txch != RTW89_TXCH_CH12 || in rtw89_pci_tx_write()
1518 tx_ring = &rtwpci->tx_rings[txch]; in rtw89_pci_tx_write()
1682 int txch; in rtw89_pci_ops_reset() local
1687 for (txch = 0; txch < RTW89_TXCH_NUM; txch++) { in rtw89_pci_ops_reset()
1688 if (info->tx_dma_ch_mask & BIT(txch)) in rtw89_pci_ops_reset()
1690 if (txch == RTW89_TXCH_CH12) { in rtw89_pci_ops_reset()
1695 rtw89_pci_release_tx_ring(rtwdev, &rtwpci->tx_rings[txch]); in rtw89_pci_ops_reset()
3268 enum rtw89_tx_channel txch) in rtw89_pci_alloc_tx_wd_ring() argument
3283 if (txch == RTW89_TXCH_CH12) in rtw89_pci_alloc_tx_wd_ring()
3320 enum rtw89_tx_channel txch) in rtw89_pci_alloc_tx_ring() argument
3328 ret = rtw89_pci_alloc_tx_wd_ring(rtwdev, pdev, tx_ring, txch); in rtw89_pci_alloc_tx_ring()
3330 rtw89_err(rtwdev, "failed to alloc txwd ring of txch %d\n", txch); in rtw89_pci_alloc_tx_ring()
3334 ret = rtw89_pci_get_txch_addrs(rtwdev, txch, &txch_addr); in rtw89_pci_alloc_tx_ring()
3336 rtw89_err(rtwdev, "failed to get address of txch %d", txch); in rtw89_pci_alloc_tx_ring()
3354 tx_ring->txch = txch; in rtw89_pci_alloc_tx_ring()