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()
1409 struct ath10k_htt_txbuf_32 *txbuf; in ath10k_htt_tx_32() local
1433 txbuf = htt->txbuf.vaddr_txbuff_32 + msdu_id; in ath10k_htt_tx_32()
1434 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_32()
1480 frags = txbuf->frags; in ath10k_htt_tx_32()
1517 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_32()
1518 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1519 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_32()
1521 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_32()
1542 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_32()
1543 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_32()
1544 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_32()
1545 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1546 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_32()
1547 txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr); in ath10k_htt_tx_32()
1549 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_32()
1551 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_32()
1554 txbuf->cmd_tx.peerid = in ath10k_htt_tx_32()
1570 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_32()
1572 sizeof(txbuf->frags); in ath10k_htt_tx_32()
1573 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_32()
1574 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1575 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_32()
1611 struct ath10k_htt_txbuf_64 *txbuf; in ath10k_htt_tx_64() local
1635 txbuf = htt->txbuf.vaddr_txbuff_64 + msdu_id; in ath10k_htt_tx_64()
1636 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_64()
1683 frags = txbuf->frags; in ath10k_htt_tx_64()
1721 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_64()
1722 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1723 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_64()
1725 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_64()
1749 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_64()
1750 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_64()
1751 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_64()
1752 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1753 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_64()
1756 txbuf->cmd_tx.frags_paddr = __cpu_to_le64(frags_paddr); in ath10k_htt_tx_64()
1758 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_64()
1760 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_64()
1763 txbuf->cmd_tx.peerid = in ath10k_htt_tx_64()
1779 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_64()
1781 sizeof(txbuf->frags); in ath10k_htt_tx_64()
1782 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_64()
1783 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1784 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_64()