Lines Matching refs:txbuf
226 if (!htt->txbuf.vaddr_txbuff_32) in ath10k_htt_tx_free_cont_txbuf_32()
229 size = htt->txbuf.size; in ath10k_htt_tx_free_cont_txbuf_32()
230 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_32, in ath10k_htt_tx_free_cont_txbuf_32()
231 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_32()
232 htt->txbuf.vaddr_txbuff_32 = NULL; in ath10k_htt_tx_free_cont_txbuf_32()
243 htt->txbuf.vaddr_txbuff_32 = dma_alloc_coherent(ar->dev, size, in ath10k_htt_tx_alloc_cont_txbuf_32()
244 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_32()
246 if (!htt->txbuf.vaddr_txbuff_32) in ath10k_htt_tx_alloc_cont_txbuf_32()
249 htt->txbuf.size = size; in ath10k_htt_tx_alloc_cont_txbuf_32()
259 if (!htt->txbuf.vaddr_txbuff_64) in ath10k_htt_tx_free_cont_txbuf_64()
262 size = htt->txbuf.size; in ath10k_htt_tx_free_cont_txbuf_64()
263 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_64, in ath10k_htt_tx_free_cont_txbuf_64()
264 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_64()
265 htt->txbuf.vaddr_txbuff_64 = NULL; in ath10k_htt_tx_free_cont_txbuf_64()
276 htt->txbuf.vaddr_txbuff_64 = dma_alloc_coherent(ar->dev, size, in ath10k_htt_tx_alloc_cont_txbuf_64()
277 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_64()
279 if (!htt->txbuf.vaddr_txbuff_64) in ath10k_htt_tx_alloc_cont_txbuf_64()
282 htt->txbuf.size = size; in ath10k_htt_tx_alloc_cont_txbuf_64()
1411 struct ath10k_htt_txbuf_32 *txbuf; in ath10k_htt_tx_32() local
1435 txbuf = htt->txbuf.vaddr_txbuff_32 + msdu_id; in ath10k_htt_tx_32()
1436 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_32()
1482 frags = txbuf->frags; in ath10k_htt_tx_32()
1519 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_32()
1520 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1521 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_32()
1523 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_32()
1544 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_32()
1545 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_32()
1546 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_32()
1547 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1548 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_32()
1549 txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr); in ath10k_htt_tx_32()
1551 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_32()
1553 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_32()
1556 txbuf->cmd_tx.peerid = in ath10k_htt_tx_32()
1572 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_32()
1574 sizeof(txbuf->frags); in ath10k_htt_tx_32()
1575 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_32()
1576 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1577 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_32()
1613 struct ath10k_htt_txbuf_64 *txbuf; in ath10k_htt_tx_64() local
1637 txbuf = htt->txbuf.vaddr_txbuff_64 + msdu_id; in ath10k_htt_tx_64()
1638 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_64()
1685 frags = txbuf->frags; in ath10k_htt_tx_64()
1723 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_64()
1724 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1725 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_64()
1727 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_64()
1751 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_64()
1752 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_64()
1753 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_64()
1754 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1755 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_64()
1758 txbuf->cmd_tx.frags_paddr = __cpu_to_le64(frags_paddr); in ath10k_htt_tx_64()
1760 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_64()
1762 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_64()
1765 txbuf->cmd_tx.peerid = in ath10k_htt_tx_64()
1781 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_64()
1783 sizeof(txbuf->frags); in ath10k_htt_tx_64()
1784 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_64()
1785 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1786 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_64()