Lines Matching refs:rx_ring
174 struct rtw_pci_rx_ring *rx_ring)
182 for (i = 0; i < rx_ring->r.len; i++) {
183 skb = rx_ring->buf[i];
190 rx_ring->buf[i] = NULL;
195 struct rtw_pci_rx_ring *rx_ring)
198 u8 *head = rx_ring->r.head;
199 int ring_sz = rx_ring->r.desc_size * rx_ring->r.len;
201 rtw_pci_free_rx_ring_skbs(rtwdev, rx_ring);
203 dma_free_coherent(&pdev->dev, ring_sz, head, rx_ring->r.dma);
210 struct rtw_pci_rx_ring *rx_ring;
219 rx_ring = &rtwpci->rx_rings[i];
220 rtw_pci_free_rx_ring(rtwdev, rx_ring);
256 struct rtw_pci_rx_ring *rx_ring,
272 buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head +
282 struct rtw_pci_rx_ring *rx_ring,
291 buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head +
299 struct rtw_pci_rx_ring *rx_ring,
316 rx_ring->r.head = head;
327 rx_ring->buf[i] = skb;
328 ret = rtw_pci_reset_rx_desc(rtwdev, skb, rx_ring, i, desc_size);
336 rx_ring->r.dma = dma;
337 rx_ring->r.len = len;
338 rx_ring->r.desc_size = desc_size;
339 rx_ring->r.wp = 0;
340 rx_ring->r.rp = 0;
346 skb = rx_ring->buf[i];
352 rx_ring->buf[i] = NULL;
365 struct rtw_pci_rx_ring *rx_ring;
385 rx_ring = &rtwpci->rx_rings[j];
386 ret = rtw_pci_init_rx_ring(rtwdev, rx_ring, rx_desc_size,
403 rx_ring = &rtwpci->rx_rings[j];
404 rtw_pci_free_rx_ring(rtwdev, rx_ring);
734 struct rtw_pci_rx_ring *rx_ring,
743 buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head +