Lines Matching refs:txbf

1159 	struct rtw_txbuf *txbf;  in rtw_dma_free()  local
1165 txbf = list_head(&rsc->sc_txq[i].tx_free_list); in rtw_dma_free()
1166 while (txbf != NULL) { in rtw_dma_free()
1167 rtw_free_dma_mem(&txbf->bf_dma); in rtw_dma_free()
1168 list_remove(&rsc->sc_txq[i].tx_free_list, txbf); in rtw_dma_free()
1169 txbf = list_head(&rsc->sc_txq[i].tx_free_list); in rtw_dma_free()
1172 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list); in rtw_dma_free()
1173 while (txbf != NULL) { in rtw_dma_free()
1174 rtw_free_dma_mem(&txbf->bf_dma); in rtw_dma_free()
1175 list_remove(&rsc->sc_txq[i].tx_dirty_list, txbf); in rtw_dma_free()
1176 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list); in rtw_dma_free()
1211 struct rtw_txbuf *txbf; in rtw_dma_init() local
1255 txbf = (struct rtw_txbuf *)kmem_zalloc(buflen, KM_SLEEP); in rtw_dma_init()
1256 rsc->sc_txq[i].txbuf_h = txbf; in rtw_dma_init()
1257 for (j = 0; j < rtw_qlen[i]; j++, txbf++, txds++) { in rtw_dma_init()
1258 txbf->txdesc = txds; in rtw_dma_init()
1259 txbf->bf_daddr = ptx[i] + ((uintptr_t)txds - in rtw_dma_init()
1261 list_insert_tail(&rsc->sc_txq[i].tx_free_list, txbf); in rtw_dma_init()
1269 &txbf->bf_dma); in rtw_dma_init()
1273 j, txbf->bf_dma.cookie.dmac_address); in rtw_dma_init()
1329 struct rtw_txbuf *txbf; in rtw_swring_setup() local
1343 txbf = list_head(&rsc->sc_txq[i].tx_free_list); in rtw_swring_setup()
1344 while (txbf != NULL) { in rtw_swring_setup()
1345 list_remove(&rsc->sc_txq[i].tx_free_list, txbf); in rtw_swring_setup()
1346 txbf = list_head(&rsc->sc_txq[i].tx_free_list); in rtw_swring_setup()
1348 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list); in rtw_swring_setup()
1349 while (txbf != NULL) { in rtw_swring_setup()
1350 list_remove(&rsc->sc_txq[i].tx_dirty_list, txbf); in rtw_swring_setup()
1351 txbf = list_head(&rsc->sc_txq[i].tx_dirty_list); in rtw_swring_setup()
1353 txbf = rsc->sc_txq[i].txbuf_h; in rtw_swring_setup()
1357 list_insert_tail(&rsc->sc_txq[i].tx_free_list, txbf); in rtw_swring_setup()
1365 txbf->txdesc->td_next = baddr_desc; in rtw_swring_setup()
1367 txbf->txdesc->td_next = taddr_desc; in rtw_swring_setup()
1369 txbf->next_bf_daddr = txbf->txdesc->td_next; in rtw_swring_setup()
1370 RTW_DMA_SYNC(txbf->bf_dma, DDI_DMA_SYNC_FORDEV); in rtw_swring_setup()
1371 txbf->order = j; in rtw_swring_setup()
1372 txbf++; in rtw_swring_setup()