Lines Matching refs:rxring_idx
583 int rxring_idx, int desc_idx) in _rtl_pci_init_one_rxdesc() argument
607 rtlpci->rx_ring[rxring_idx].rx_buf[desc_idx] = skb; in _rtl_pci_init_one_rxdesc()
677 int rxring_idx = RTL_PCI_RX_MPDU_QUEUE; in _rtl_pci_rx_interrupt() local
700 struct sk_buff *skb = rtlpci->rx_ring[rxring_idx].rx_buf[ in _rtl_pci_rx_interrupt()
701 rtlpci->rx_ring[rxring_idx].idx]; in _rtl_pci_rx_interrupt()
711 buffer_desc = &rtlpci->rx_ring[rxring_idx].buffer_desc[ in _rtl_pci_rx_interrupt()
712 rtlpci->rx_ring[rxring_idx].idx]; in _rtl_pci_rx_interrupt()
715 pdesc = &rtlpci->rx_ring[rxring_idx].desc[ in _rtl_pci_rx_interrupt()
716 rtlpci->rx_ring[rxring_idx].idx]; in _rtl_pci_rx_interrupt()
836 rxring_idx, in _rtl_pci_rx_interrupt()
837 rtlpci->rx_ring[rxring_idx].idx); in _rtl_pci_rx_interrupt()
840 rxring_idx, in _rtl_pci_rx_interrupt()
841 rtlpci->rx_ring[rxring_idx].idx); in _rtl_pci_rx_interrupt()
842 if (rtlpci->rx_ring[rxring_idx].idx == in _rtl_pci_rx_interrupt()
849 rtlpci->rx_ring[rxring_idx].idx = in _rtl_pci_rx_interrupt()
850 (rtlpci->rx_ring[rxring_idx].idx + 1) % in _rtl_pci_rx_interrupt()
1225 static int _rtl_pci_init_rx_ring(struct ieee80211_hw *hw, int rxring_idx) in _rtl_pci_init_rx_ring() argument
1234 rtlpci->rx_ring[rxring_idx].buffer_desc = in _rtl_pci_init_rx_ring()
1236 sizeof(*rtlpci->rx_ring[rxring_idx].buffer_desc) * in _rtl_pci_init_rx_ring()
1238 &rtlpci->rx_ring[rxring_idx].dma, GFP_KERNEL); in _rtl_pci_init_rx_ring()
1239 if (!rtlpci->rx_ring[rxring_idx].buffer_desc || in _rtl_pci_init_rx_ring()
1240 (ulong)rtlpci->rx_ring[rxring_idx].buffer_desc & 0xFF) { in _rtl_pci_init_rx_ring()
1246 rtlpci->rx_ring[rxring_idx].idx = 0; in _rtl_pci_init_rx_ring()
1248 entry = &rtlpci->rx_ring[rxring_idx].buffer_desc[i]; in _rtl_pci_init_rx_ring()
1250 rxring_idx, i)) in _rtl_pci_init_rx_ring()
1257 rtlpci->rx_ring[rxring_idx].desc = in _rtl_pci_init_rx_ring()
1259 sizeof(*rtlpci->rx_ring[rxring_idx].desc) * in _rtl_pci_init_rx_ring()
1261 &rtlpci->rx_ring[rxring_idx].dma, GFP_KERNEL); in _rtl_pci_init_rx_ring()
1262 if (!rtlpci->rx_ring[rxring_idx].desc || in _rtl_pci_init_rx_ring()
1263 (unsigned long)rtlpci->rx_ring[rxring_idx].desc & 0xFF) { in _rtl_pci_init_rx_ring()
1269 rtlpci->rx_ring[rxring_idx].idx = 0; in _rtl_pci_init_rx_ring()
1272 entry = &rtlpci->rx_ring[rxring_idx].desc[i]; in _rtl_pci_init_rx_ring()
1274 rxring_idx, i)) in _rtl_pci_init_rx_ring()
1322 static void _rtl_pci_free_rx_ring(struct ieee80211_hw *hw, int rxring_idx) in _rtl_pci_free_rx_ring() argument
1330 struct sk_buff *skb = rtlpci->rx_ring[rxring_idx].rx_buf[i]; in _rtl_pci_free_rx_ring()
1342 sizeof(*rtlpci->rx_ring[rxring_idx].buffer_desc) * in _rtl_pci_free_rx_ring()
1344 rtlpci->rx_ring[rxring_idx].buffer_desc, in _rtl_pci_free_rx_ring()
1345 rtlpci->rx_ring[rxring_idx].dma); in _rtl_pci_free_rx_ring()
1346 rtlpci->rx_ring[rxring_idx].buffer_desc = NULL; in _rtl_pci_free_rx_ring()
1349 sizeof(*rtlpci->rx_ring[rxring_idx].desc) * in _rtl_pci_free_rx_ring()
1351 rtlpci->rx_ring[rxring_idx].desc, in _rtl_pci_free_rx_ring()
1352 rtlpci->rx_ring[rxring_idx].dma); in _rtl_pci_free_rx_ring()
1353 rtlpci->rx_ring[rxring_idx].desc = NULL; in _rtl_pci_free_rx_ring()
1361 int i, rxring_idx; in _rtl_pci_init_trx_ring() local
1366 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) { in _rtl_pci_init_trx_ring()
1367 ret = _rtl_pci_init_rx_ring(hw, rxring_idx); in _rtl_pci_init_trx_ring()
1381 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) in _rtl_pci_init_trx_ring()
1382 _rtl_pci_free_rx_ring(hw, rxring_idx); in _rtl_pci_init_trx_ring()
1394 u32 i, rxring_idx; in _rtl_pci_deinit_trx_ring() local
1397 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) in _rtl_pci_deinit_trx_ring()
1398 _rtl_pci_free_rx_ring(hw, rxring_idx); in _rtl_pci_deinit_trx_ring()
1411 int i, rxring_idx; in rtl_pci_reset_trx_ring() local
1417 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) { in rtl_pci_reset_trx_ring()
1423 rtlpci->rx_ring[rxring_idx].desc) { in rtl_pci_reset_trx_ring()
1426 rtlpci->rx_ring[rxring_idx].idx = 0; in rtl_pci_reset_trx_ring()
1428 entry = &rtlpci->rx_ring[rxring_idx].desc[i]; in rtl_pci_reset_trx_ring()
1434 [rxring_idx].desc));/*clear one entry*/ in rtl_pci_reset_trx_ring()
1458 rtlpci->rx_ring[rxring_idx].idx = 0; in rtl_pci_reset_trx_ring()