Lines Matching refs:txp
234 struct mt7615_txp *txp; in mt7615_tx_complete_skb() local
237 txp = mt7615_txwi_to_txp(mdev, e->txwi); in mt7615_tx_complete_skb()
240 t = idr_remove(&dev->token, le16_to_cpu(txp->token)); in mt7615_tx_complete_skb()
449 struct mt7615_txp *txp; in mt7615_txp_skb_unmap() local
452 txp = mt7615_txwi_to_txp(dev, t); in mt7615_txp_skb_unmap()
453 for (i = 1; i < txp->nbuf; i++) in mt7615_txp_skb_unmap()
454 dma_unmap_single(dev->dev, le32_to_cpu(txp->buf[i]), in mt7615_txp_skb_unmap()
455 le16_to_cpu(txp->len[i]), DMA_TO_DEVICE); in mt7615_txp_skb_unmap()
776 struct mt7615_txp *txp; in mt7615_tx_prepare_skb() local
794 txp = (struct mt7615_txp *)(txwi + MT_TXD_SIZE); in mt7615_tx_prepare_skb()
796 txp->buf[i] = cpu_to_le32(tx_info->buf[i + 1].addr); in mt7615_tx_prepare_skb()
797 txp->len[i] = cpu_to_le16(tx_info->buf[i + 1].len); in mt7615_tx_prepare_skb()
799 txp->nbuf = nbuf; in mt7615_tx_prepare_skb()
805 txp->flags = cpu_to_le16(MT_CT_INFO_APPLY_TXD); in mt7615_tx_prepare_skb()
808 txp->flags |= cpu_to_le16(MT_CT_INFO_NONE_CIPHER_FRAME); in mt7615_tx_prepare_skb()
811 txp->flags |= cpu_to_le16(MT_CT_INFO_MGMT_FRAME); in mt7615_tx_prepare_skb()
816 txp->bss_idx = mvif->idx; in mt7615_tx_prepare_skb()
828 txp->token = cpu_to_le16(id); in mt7615_tx_prepare_skb()
829 txp->rept_wds_wcid = 0xff; in mt7615_tx_prepare_skb()