Lines Matching refs:drb_skb
231 struct dpmaif_drb_skb *drb_skb = drb_skb_base + cur_idx; in t7xx_record_drb_skb() local
233 drb_skb->skb = skb; in t7xx_record_drb_skb()
234 drb_skb->bus_addr = bus_addr; in t7xx_record_drb_skb()
235 drb_skb->data_len = data_len; in t7xx_record_drb_skb()
236 drb_skb->index = cur_idx; in t7xx_record_drb_skb()
237 drb_skb->is_msg = is_msg; in t7xx_record_drb_skb()
238 drb_skb->is_frag = is_frag; in t7xx_record_drb_skb()
239 drb_skb->is_last = is_last_one; in t7xx_record_drb_skb()
320 struct dpmaif_drb_skb *drb_skb = txq->drb_skb_base; in t7xx_dpmaif_add_skb_to_ring() local
323 drb_skb += cur_idx; in t7xx_dpmaif_add_skb_to_ring()
324 dma_unmap_single(dpmaif_ctrl->dev, drb_skb->bus_addr, in t7xx_dpmaif_add_skb_to_ring()
325 drb_skb->data_len, DMA_TO_DEVICE); in t7xx_dpmaif_add_skb_to_ring()
565 struct dpmaif_drb_skb *drb_skb, *drb_skb_base = txq->drb_skb_base; in t7xx_dpmaif_tx_free_drb_skb() local
572 drb_skb = drb_skb_base + i; in t7xx_dpmaif_tx_free_drb_skb()
573 if (!drb_skb->skb) in t7xx_dpmaif_tx_free_drb_skb()
576 if (!drb_skb->is_msg) in t7xx_dpmaif_tx_free_drb_skb()
577 dma_unmap_single(txq->dpmaif_ctrl->dev, drb_skb->bus_addr, in t7xx_dpmaif_tx_free_drb_skb()
578 drb_skb->data_len, DMA_TO_DEVICE); in t7xx_dpmaif_tx_free_drb_skb()
580 if (drb_skb->is_last) { in t7xx_dpmaif_tx_free_drb_skb()
581 dev_kfree_skb(drb_skb->skb); in t7xx_dpmaif_tx_free_drb_skb()
582 drb_skb->skb = NULL; in t7xx_dpmaif_tx_free_drb_skb()