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()
1353 struct ath10k_htt_txbuf_32 *txbuf; in ath10k_htt_tx_32() local
1377 txbuf = htt->txbuf.vaddr_txbuff_32 + msdu_id; in ath10k_htt_tx_32()
1378 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_32()
1424 frags = txbuf->frags; in ath10k_htt_tx_32()
1461 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_32()
1462 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1463 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_32()
1465 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_32()
1486 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_32()
1487 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_32()
1488 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_32()
1489 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1490 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_32()
1491 txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr); in ath10k_htt_tx_32()
1493 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_32()
1495 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_32()
1498 txbuf->cmd_tx.peerid = in ath10k_htt_tx_32()
1514 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_32()
1516 sizeof(txbuf->frags); in ath10k_htt_tx_32()
1517 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_32()
1518 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_32()
1519 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_32()
1553 struct ath10k_htt_txbuf_64 *txbuf; in ath10k_htt_tx_64() local
1577 txbuf = htt->txbuf.vaddr_txbuff_64 + msdu_id; in ath10k_htt_tx_64()
1578 txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx_64()
1625 frags = txbuf->frags; in ath10k_htt_tx_64()
1663 txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx_64()
1664 txbuf->htc_hdr.len = __cpu_to_le16(sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1665 sizeof(txbuf->cmd_tx) + in ath10k_htt_tx_64()
1667 txbuf->htc_hdr.flags = 0; in ath10k_htt_tx_64()
1691 txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx_64()
1692 txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx_64()
1693 txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_64()
1694 txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx_64()
1695 txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_64()
1698 txbuf->cmd_tx.frags_paddr = __cpu_to_le64(frags_paddr); in ath10k_htt_tx_64()
1700 txbuf->cmd_tx.offchan_tx.peerid = in ath10k_htt_tx_64()
1702 txbuf->cmd_tx.offchan_tx.freq = in ath10k_htt_tx_64()
1705 txbuf->cmd_tx.peerid = in ath10k_htt_tx_64()
1721 sg_items[0].vaddr = &txbuf->htc_hdr; in ath10k_htt_tx_64()
1723 sizeof(txbuf->frags); in ath10k_htt_tx_64()
1724 sg_items[0].len = sizeof(txbuf->htc_hdr) + in ath10k_htt_tx_64()
1725 sizeof(txbuf->cmd_hdr) + in ath10k_htt_tx_64()
1726 sizeof(txbuf->cmd_tx); in ath10k_htt_tx_64()