Lines Matching full:rx_data
126 struct rtwn_rx_data *rx_data; in rtwn_pci_alloc_rx_list() local
167 rx_data = &rx_ring->rx_data[i]; in rtwn_pci_alloc_rx_list()
168 error = bus_dmamap_create(rx_ring->data_dmat, 0, &rx_data->map); in rtwn_pci_alloc_rx_list()
175 rx_data->m = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, in rtwn_pci_alloc_rx_list()
177 if (rx_data->m == NULL) { in rtwn_pci_alloc_rx_list()
184 error = bus_dmamap_load(rx_ring->data_dmat, rx_data->map, in rtwn_pci_alloc_rx_list()
185 mtod(rx_data->m, void *), MJUMPAGESIZE, in rtwn_pci_alloc_rx_list()
186 rtwn_pci_dma_map_addr, &rx_data->paddr, BUS_DMA_NOWAIT); in rtwn_pci_alloc_rx_list()
193 rtwn_pci_setup_rx_desc(pc, &rx_ring->desc[i], rx_data->paddr, in rtwn_pci_alloc_rx_list()
210 struct rtwn_rx_data *rx_data; in rtwn_pci_reset_rx_list() local
214 rx_data = &rx_ring->rx_data[i]; in rtwn_pci_reset_rx_list()
216 rx_data->paddr, MJUMPAGESIZE, i); in rtwn_pci_reset_rx_list()
226 struct rtwn_rx_data *rx_data; in rtwn_pci_free_rx_list() local
245 rx_data = &rx_ring->rx_data[i]; in rtwn_pci_free_rx_list()
247 if (rx_data->m != NULL) { in rtwn_pci_free_rx_list()
249 rx_data->map, BUS_DMASYNC_POSTREAD); in rtwn_pci_free_rx_list()
250 bus_dmamap_unload(rx_ring->data_dmat, rx_data->map); in rtwn_pci_free_rx_list()
251 m_freem(rx_data->m); in rtwn_pci_free_rx_list()
252 rx_data->m = NULL; in rtwn_pci_free_rx_list()
254 bus_dmamap_destroy(rx_ring->data_dmat, rx_data->map); in rtwn_pci_free_rx_list()
255 rx_data->map = NULL; in rtwn_pci_free_rx_list()