Lines Matching defs:txbuf

229 	if (!htt->txbuf.vaddr_txbuff_32)
232 size = htt->txbuf.size;
233 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_32,
234 htt->txbuf.paddr);
235 htt->txbuf.vaddr_txbuff_32 = NULL;
246 htt->txbuf.vaddr_txbuff_32 = dma_alloc_coherent(ar->dev, size,
247 &htt->txbuf.paddr,
249 if (!htt->txbuf.vaddr_txbuff_32)
252 htt->txbuf.size = size;
262 if (!htt->txbuf.vaddr_txbuff_64)
265 size = htt->txbuf.size;
266 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_64,
267 htt->txbuf.paddr);
268 htt->txbuf.vaddr_txbuff_64 = NULL;
279 htt->txbuf.vaddr_txbuff_64 = dma_alloc_coherent(ar->dev, size,
280 &htt->txbuf.paddr,
282 if (!htt->txbuf.vaddr_txbuff_64)
285 htt->txbuf.size = size;
1392 struct ath10k_htt_txbuf_32 *txbuf;
1416 txbuf = htt->txbuf.vaddr_txbuff_32 + msdu_id;
1417 txbuf_paddr = htt->txbuf.paddr +
1467 frags = txbuf->frags;
1504 txbuf->htc_hdr.eid = htt->eid;
1505 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) +
1506 sizeof(txbuf->cmd_tx) +
1508 txbuf->htc_hdr.flags = 0;
1529 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM;
1530 txbuf->cmd_tx.flags0 = flags0;
1531 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1);
1532 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len);
1533 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id);
1534 txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr);
1536 txbuf->cmd_tx.offchan_tx.peerid =
1538 txbuf->cmd_tx.offchan_tx.freq =
1541 txbuf->cmd_tx.peerid =
1557 sg_items[0].vaddr = &txbuf->htc_hdr;
1559 sizeof(txbuf->frags);
1560 sg_items[0].len = sizeof(txbuf->htc_hdr) +
1561 sizeof(txbuf->cmd_hdr) +
1562 sizeof(txbuf->cmd_tx);
1597 struct ath10k_htt_txbuf_64 *txbuf;
1621 txbuf = htt->txbuf.vaddr_txbuff_64 + msdu_id;
1622 txbuf_paddr = htt->txbuf.paddr +
1673 frags = txbuf->frags;
1711 txbuf->htc_hdr.eid = htt->eid;
1712 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) +
1713 sizeof(txbuf->cmd_tx) +
1715 txbuf->htc_hdr.flags = 0;
1739 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM;
1740 txbuf->cmd_tx.flags0 = flags0;
1741 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1);
1742 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len);
1743 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id);
1746 txbuf->cmd_tx.frags_paddr = __cpu_to_le64(frags_paddr);
1748 txbuf->cmd_tx.offchan_tx.peerid =
1750 txbuf->cmd_tx.offchan_tx.freq =
1753 txbuf->cmd_tx.peerid =
1769 sg_items[0].vaddr = &txbuf->htc_hdr;
1771 sizeof(txbuf->frags);
1772 sg_items[0].len = sizeof(txbuf->htc_hdr) +
1773 sizeof(txbuf->cmd_hdr) +
1774 sizeof(txbuf->cmd_tx);