Lines Matching refs:mapped_buff
100 req->mapped_buff = dma_map_single(md_ctrl->dev, req->skb->data, size, DMA_FROM_DEVICE); in t7xx_cldma_alloc_and_map_skb()
101 if (dma_mapping_error(md_ctrl->dev, req->mapped_buff)) { in t7xx_cldma_alloc_and_map_skb()
104 req->mapped_buff = 0; in t7xx_cldma_alloc_and_map_skb()
154 if (req->mapped_buff) { in t7xx_cldma_gpd_rx_from_q()
155 dma_unmap_single(md_ctrl->dev, req->mapped_buff, in t7xx_cldma_gpd_rx_from_q()
157 req->mapped_buff = 0; in t7xx_cldma_gpd_rx_from_q()
182 t7xx_cldma_gpd_set_data_ptr(gpd, req->mapped_buff); in t7xx_cldma_gpd_rx_from_q()
281 dma_free = req->mapped_buff; in t7xx_cldma_gpd_tx_collect()
376 if (req_cur->mapped_buff && req_cur->skb) { in t7xx_cldma_ring_free()
377 dma_unmap_single(md_ctrl->dev, req_cur->mapped_buff, in t7xx_cldma_ring_free()
379 req_cur->mapped_buff = 0; in t7xx_cldma_ring_free()
437 t7xx_cldma_gpd_set_data_ptr(gpd, req->mapped_buff); in t7xx_cldma_rx_ring_init()
808 t7xx_cldma_gpd_set_data_ptr(req->gpd, req->mapped_buff); in t7xx_cldma_clear_rxq()
852 tx_req->mapped_buff = dma_map_single(md_ctrl->dev, skb->data, skb->len, DMA_TO_DEVICE); in t7xx_cldma_gpd_handle_tx_request()
854 if (dma_mapping_error(md_ctrl->dev, tx_req->mapped_buff)) { in t7xx_cldma_gpd_handle_tx_request()
859 t7xx_cldma_gpd_set_data_ptr(gpd, tx_req->mapped_buff); in t7xx_cldma_gpd_handle_tx_request()