Lines Matching refs:skb_cb

448 	struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu);  in ath10k_htt_mgmt_tx()  local
449 u8 vdev_id = skb_cb->vdev_id; in ath10k_htt_mgmt_tx()
486 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_mgmt_tx()
488 res = dma_mapping_error(dev, skb_cb->paddr); in ath10k_htt_mgmt_tx()
506 skb_cb->htt.txbuf = NULL; in ath10k_htt_mgmt_tx()
515 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_mgmt_tx()
533 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(msdu); in ath10k_htt_tx() local
536 u8 vdev_id = skb_cb->vdev_id; in ath10k_htt_tx()
537 u8 tid = skb_cb->htt.tid; in ath10k_htt_tx()
570 skb_cb->htt.txbuf = &htt->txbuf.vaddr[msdu_id]; in ath10k_htt_tx()
571 skb_cb->htt.txbuf_paddr = htt->txbuf.paddr + in ath10k_htt_tx()
579 } else if (!skb_cb->htt.nohwcrypt && in ath10k_htt_tx()
580 skb_cb->txmode == ATH10K_HW_TXRX_RAW && in ath10k_htt_tx()
585 skb_cb->paddr = dma_map_single(dev, msdu->data, msdu->len, in ath10k_htt_tx()
587 res = dma_mapping_error(dev, skb_cb->paddr); in ath10k_htt_tx()
593 switch (skb_cb->txmode) { in ath10k_htt_tx()
606 __cpu_to_le32(skb_cb->paddr); in ath10k_htt_tx()
613 frags = skb_cb->htt.txbuf->frags; in ath10k_htt_tx()
615 __cpu_to_le32(skb_cb->paddr); in ath10k_htt_tx()
620 frags_paddr = skb_cb->htt.txbuf_paddr; in ath10k_htt_tx()
622 flags0 |= SM(skb_cb->txmode, HTT_DATA_TX_DESC_FLAGS0_PKT_TYPE); in ath10k_htt_tx()
629 frags_paddr = skb_cb->paddr; in ath10k_htt_tx()
649 skb_cb->htt.txbuf->htc_hdr.eid = htt->eid; in ath10k_htt_tx()
650 skb_cb->htt.txbuf->htc_hdr.len = __cpu_to_le16( in ath10k_htt_tx()
651 sizeof(skb_cb->htt.txbuf->cmd_hdr) + in ath10k_htt_tx()
652 sizeof(skb_cb->htt.txbuf->cmd_tx) + in ath10k_htt_tx()
654 skb_cb->htt.txbuf->htc_hdr.flags = 0; in ath10k_htt_tx()
656 if (skb_cb->htt.nohwcrypt) in ath10k_htt_tx()
659 if (!skb_cb->is_protected) in ath10k_htt_tx()
678 skb_cb->htt.txbuf->cmd_hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FRM; in ath10k_htt_tx()
679 skb_cb->htt.txbuf->cmd_tx.flags0 = flags0; in ath10k_htt_tx()
680 skb_cb->htt.txbuf->cmd_tx.flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx()
681 skb_cb->htt.txbuf->cmd_tx.len = __cpu_to_le16(msdu->len); in ath10k_htt_tx()
682 skb_cb->htt.txbuf->cmd_tx.id = __cpu_to_le16(msdu_id); in ath10k_htt_tx()
683 skb_cb->htt.txbuf->cmd_tx.frags_paddr = __cpu_to_le32(frags_paddr); in ath10k_htt_tx()
684 skb_cb->htt.txbuf->cmd_tx.peerid = __cpu_to_le16(HTT_INVALID_PEERID); in ath10k_htt_tx()
685 skb_cb->htt.txbuf->cmd_tx.freq = __cpu_to_le16(skb_cb->htt.freq); in ath10k_htt_tx()
691 (u32)skb_cb->paddr, vdev_id, tid, skb_cb->htt.freq); in ath10k_htt_tx()
699 sg_items[0].vaddr = &skb_cb->htt.txbuf->htc_hdr; in ath10k_htt_tx()
700 sg_items[0].paddr = skb_cb->htt.txbuf_paddr + in ath10k_htt_tx()
701 sizeof(skb_cb->htt.txbuf->frags); in ath10k_htt_tx()
702 sg_items[0].len = sizeof(skb_cb->htt.txbuf->htc_hdr) + in ath10k_htt_tx()
703 sizeof(skb_cb->htt.txbuf->cmd_hdr) + in ath10k_htt_tx()
704 sizeof(skb_cb->htt.txbuf->cmd_tx); in ath10k_htt_tx()
709 sg_items[1].paddr = skb_cb->paddr; in ath10k_htt_tx()
721 dma_unmap_single(dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE); in ath10k_htt_tx()