Lines Matching refs:txbuf

231 	if (!htt->txbuf.vaddr_txbuff_32)  in ath10k_htt_tx_free_cont_txbuf_32()
234 size = htt->txbuf.size; in ath10k_htt_tx_free_cont_txbuf_32()
235 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_32, in ath10k_htt_tx_free_cont_txbuf_32()
236 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_32()
237 htt->txbuf.vaddr_txbuff_32 = NULL; in ath10k_htt_tx_free_cont_txbuf_32()
248 htt->txbuf.vaddr_txbuff_32 = dma_alloc_coherent(ar->dev, size, in ath10k_htt_tx_alloc_cont_txbuf_32()
249 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_32()
251 if (!htt->txbuf.vaddr_txbuff_32) in ath10k_htt_tx_alloc_cont_txbuf_32()
254 htt->txbuf.size = size; in ath10k_htt_tx_alloc_cont_txbuf_32()
264 if (!htt->txbuf.vaddr_txbuff_64) in ath10k_htt_tx_free_cont_txbuf_64()
267 size = htt->txbuf.size; in ath10k_htt_tx_free_cont_txbuf_64()
268 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_64, in ath10k_htt_tx_free_cont_txbuf_64()
269 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_64()
270 htt->txbuf.vaddr_txbuff_64 = NULL; in ath10k_htt_tx_free_cont_txbuf_64()
281 htt->txbuf.vaddr_txbuff_64 = dma_alloc_coherent(ar->dev, size, in ath10k_htt_tx_alloc_cont_txbuf_64()
282 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_64()
284 if (!htt->txbuf.vaddr_txbuff_64) in ath10k_htt_tx_alloc_cont_txbuf_64()
287 htt->txbuf.size = size; in ath10k_htt_tx_alloc_cont_txbuf_64()
1394 struct ath10k_htt_txbuf_32 *txbuf; in ath10k_htt_tx_32() local
1418 txbuf = htt->txbuf.vaddr_txbuff_32 + msdu_id; in ath10k_htt_tx_32()
1419 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_32()
1469 frags = txbuf->frags; in ath10k_htt_tx_32()
1506 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_32()
1507 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1508 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_32()
1510 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_32()
1531 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_32()
1532 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_32()
1533 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_32()
1534 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1535 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_32()
1536 txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr); in ath10k_htt_tx_32()
1538 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_32()
1540 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_32()
1543 txbuf->cmd_tx.peerid = in ath10k_htt_tx_32()
1559 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_32()
1561 sizeof(txbuf->frags); in ath10k_htt_tx_32()
1562 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_32()
1563 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1564 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_32()
1599 struct ath10k_htt_txbuf_64 *txbuf; in ath10k_htt_tx_64() local
1623 txbuf = htt->txbuf.vaddr_txbuff_64 + msdu_id; in ath10k_htt_tx_64()
1624 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_64()
1675 frags = txbuf->frags; in ath10k_htt_tx_64()
1713 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_64()
1714 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1715 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_64()
1717 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_64()
1741 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_64()
1742 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_64()
1743 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_64()
1744 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1745 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_64()
1748 txbuf->cmd_tx.frags_paddr = __cpu_to_le64(frags_paddr); in ath10k_htt_tx_64()
1750 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_64()
1752 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_64()
1755 txbuf->cmd_tx.peerid = in ath10k_htt_tx_64()
1771 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_64()
1773 sizeof(txbuf->frags); in ath10k_htt_tx_64()
1774 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_64()
1775 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1776 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_64()