• Home
  • Raw
  • Download

Lines Matching refs:rxring_idx

590 				    int rxring_idx, int desc_idx)  in _rtl_pci_init_one_rxdesc()  argument
614 rtlpci->rx_ring[rxring_idx].rx_buf[desc_idx] = skb; in _rtl_pci_init_one_rxdesc()
684 int rxring_idx = RTL_PCI_RX_MPDU_QUEUE; in _rtl_pci_rx_interrupt() local
707 struct sk_buff *skb = rtlpci->rx_ring[rxring_idx].rx_buf[ in _rtl_pci_rx_interrupt()
708 rtlpci->rx_ring[rxring_idx].idx]; in _rtl_pci_rx_interrupt()
718 buffer_desc = &rtlpci->rx_ring[rxring_idx].buffer_desc[ in _rtl_pci_rx_interrupt()
719 rtlpci->rx_ring[rxring_idx].idx]; in _rtl_pci_rx_interrupt()
722 pdesc = &rtlpci->rx_ring[rxring_idx].desc[ in _rtl_pci_rx_interrupt()
723 rtlpci->rx_ring[rxring_idx].idx]; in _rtl_pci_rx_interrupt()
843 rxring_idx, in _rtl_pci_rx_interrupt()
844 rtlpci->rx_ring[rxring_idx].idx); in _rtl_pci_rx_interrupt()
847 rxring_idx, in _rtl_pci_rx_interrupt()
848 rtlpci->rx_ring[rxring_idx].idx); in _rtl_pci_rx_interrupt()
849 if (rtlpci->rx_ring[rxring_idx].idx == in _rtl_pci_rx_interrupt()
856 rtlpci->rx_ring[rxring_idx].idx = in _rtl_pci_rx_interrupt()
857 (rtlpci->rx_ring[rxring_idx].idx + 1) % in _rtl_pci_rx_interrupt()
1232 static int _rtl_pci_init_rx_ring(struct ieee80211_hw *hw, int rxring_idx) in _rtl_pci_init_rx_ring() argument
1241 rtlpci->rx_ring[rxring_idx].buffer_desc = in _rtl_pci_init_rx_ring()
1243 sizeof(*rtlpci->rx_ring[rxring_idx].buffer_desc) * in _rtl_pci_init_rx_ring()
1245 &rtlpci->rx_ring[rxring_idx].dma, GFP_KERNEL); in _rtl_pci_init_rx_ring()
1246 if (!rtlpci->rx_ring[rxring_idx].buffer_desc || in _rtl_pci_init_rx_ring()
1247 (ulong)rtlpci->rx_ring[rxring_idx].buffer_desc & 0xFF) { in _rtl_pci_init_rx_ring()
1253 rtlpci->rx_ring[rxring_idx].idx = 0; in _rtl_pci_init_rx_ring()
1255 entry = &rtlpci->rx_ring[rxring_idx].buffer_desc[i]; in _rtl_pci_init_rx_ring()
1257 rxring_idx, i)) in _rtl_pci_init_rx_ring()
1264 rtlpci->rx_ring[rxring_idx].desc = in _rtl_pci_init_rx_ring()
1266 sizeof(*rtlpci->rx_ring[rxring_idx].desc) * in _rtl_pci_init_rx_ring()
1268 &rtlpci->rx_ring[rxring_idx].dma, GFP_KERNEL); in _rtl_pci_init_rx_ring()
1269 if (!rtlpci->rx_ring[rxring_idx].desc || in _rtl_pci_init_rx_ring()
1270 (unsigned long)rtlpci->rx_ring[rxring_idx].desc & 0xFF) { in _rtl_pci_init_rx_ring()
1276 rtlpci->rx_ring[rxring_idx].idx = 0; in _rtl_pci_init_rx_ring()
1279 entry = &rtlpci->rx_ring[rxring_idx].desc[i]; in _rtl_pci_init_rx_ring()
1281 rxring_idx, i)) in _rtl_pci_init_rx_ring()
1329 static void _rtl_pci_free_rx_ring(struct ieee80211_hw *hw, int rxring_idx) in _rtl_pci_free_rx_ring() argument
1337 struct sk_buff *skb = rtlpci->rx_ring[rxring_idx].rx_buf[i]; in _rtl_pci_free_rx_ring()
1349 sizeof(*rtlpci->rx_ring[rxring_idx].buffer_desc) * in _rtl_pci_free_rx_ring()
1351 rtlpci->rx_ring[rxring_idx].buffer_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].buffer_desc = NULL; in _rtl_pci_free_rx_ring()
1356 sizeof(*rtlpci->rx_ring[rxring_idx].desc) * in _rtl_pci_free_rx_ring()
1358 rtlpci->rx_ring[rxring_idx].desc, in _rtl_pci_free_rx_ring()
1359 rtlpci->rx_ring[rxring_idx].dma); in _rtl_pci_free_rx_ring()
1360 rtlpci->rx_ring[rxring_idx].desc = NULL; in _rtl_pci_free_rx_ring()
1368 int i, rxring_idx; in _rtl_pci_init_trx_ring() local
1373 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) { in _rtl_pci_init_trx_ring()
1374 ret = _rtl_pci_init_rx_ring(hw, rxring_idx); in _rtl_pci_init_trx_ring()
1388 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) in _rtl_pci_init_trx_ring()
1389 _rtl_pci_free_rx_ring(hw, rxring_idx); in _rtl_pci_init_trx_ring()
1401 u32 i, rxring_idx; in _rtl_pci_deinit_trx_ring() local
1404 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) in _rtl_pci_deinit_trx_ring()
1405 _rtl_pci_free_rx_ring(hw, rxring_idx); in _rtl_pci_deinit_trx_ring()
1418 int i, rxring_idx; in rtl_pci_reset_trx_ring() local
1424 for (rxring_idx = 0; rxring_idx < RTL_PCI_MAX_RX_QUEUE; rxring_idx++) { in rtl_pci_reset_trx_ring()
1430 rtlpci->rx_ring[rxring_idx].desc) { in rtl_pci_reset_trx_ring()
1433 rtlpci->rx_ring[rxring_idx].idx = 0; in rtl_pci_reset_trx_ring()
1435 entry = &rtlpci->rx_ring[rxring_idx].desc[i]; in rtl_pci_reset_trx_ring()
1441 [rxring_idx].desc));/*clear one entry*/ in rtl_pci_reset_trx_ring()
1465 rtlpci->rx_ring[rxring_idx].idx = 0; in rtl_pci_reset_trx_ring()