Lines Matching refs:txbuf
229 if (!htt->txbuf.vaddr_txbuff_32) in ath10k_htt_tx_free_cont_txbuf_32()
232 size = htt->txbuf.size; in ath10k_htt_tx_free_cont_txbuf_32()
233 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_32, in ath10k_htt_tx_free_cont_txbuf_32()
234 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_32()
235 htt->txbuf.vaddr_txbuff_32 = NULL; in ath10k_htt_tx_free_cont_txbuf_32()
246 htt->txbuf.vaddr_txbuff_32 = dma_alloc_coherent(ar->dev, size, in ath10k_htt_tx_alloc_cont_txbuf_32()
247 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_32()
249 if (!htt->txbuf.vaddr_txbuff_32) in ath10k_htt_tx_alloc_cont_txbuf_32()
252 htt->txbuf.size = size; in ath10k_htt_tx_alloc_cont_txbuf_32()
262 if (!htt->txbuf.vaddr_txbuff_64) in ath10k_htt_tx_free_cont_txbuf_64()
265 size = htt->txbuf.size; in ath10k_htt_tx_free_cont_txbuf_64()
266 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_64, in ath10k_htt_tx_free_cont_txbuf_64()
267 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_64()
268 htt->txbuf.vaddr_txbuff_64 = NULL; in ath10k_htt_tx_free_cont_txbuf_64()
279 htt->txbuf.vaddr_txbuff_64 = dma_alloc_coherent(ar->dev, size, in ath10k_htt_tx_alloc_cont_txbuf_64()
280 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_64()
282 if (!htt->txbuf.vaddr_txbuff_64) in ath10k_htt_tx_alloc_cont_txbuf_64()
285 htt->txbuf.size = size; in ath10k_htt_tx_alloc_cont_txbuf_64()
1396 struct ath10k_htt_txbuf_32 *txbuf; in ath10k_htt_tx_32() local
1420 txbuf = htt->txbuf.vaddr_txbuff_32 + msdu_id; in ath10k_htt_tx_32()
1421 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_32()
1471 frags = txbuf->frags; in ath10k_htt_tx_32()
1508 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_32()
1509 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1510 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_32()
1512 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_32()
1533 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_32()
1534 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_32()
1535 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_32()
1536 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1537 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_32()
1538 txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr); in ath10k_htt_tx_32()
1540 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_32()
1542 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_32()
1545 txbuf->cmd_tx.peerid = in ath10k_htt_tx_32()
1561 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_32()
1563 sizeof(txbuf->frags); in ath10k_htt_tx_32()
1564 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_32()
1565 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1566 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_32()
1601 struct ath10k_htt_txbuf_64 *txbuf; in ath10k_htt_tx_64() local
1625 txbuf = htt->txbuf.vaddr_txbuff_64 + msdu_id; in ath10k_htt_tx_64()
1626 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_64()
1677 frags = txbuf->frags; in ath10k_htt_tx_64()
1715 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_64()
1716 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1717 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_64()
1719 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_64()
1743 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_64()
1744 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_64()
1745 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_64()
1746 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1747 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_64()
1750 txbuf->cmd_tx.frags_paddr = __cpu_to_le64(frags_paddr); in ath10k_htt_tx_64()
1752 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_64()
1754 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_64()
1757 txbuf->cmd_tx.peerid = in ath10k_htt_tx_64()
1773 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_64()
1775 sizeof(txbuf->frags); in ath10k_htt_tx_64()
1776 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_64()
1777 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1778 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_64()