Lines Matching refs:dev
41 dev_err(oq->dev, "Rx buffer alloc failed\n"); in octep_oq_fill_ring_buffers()
44 desc_ring[i].buffer_ptr = dma_map_page(oq->dev, page, 0, in octep_oq_fill_ring_buffers()
47 if (dma_mapping_error(oq->dev, desc_ring[i].buffer_ptr)) { in octep_oq_fill_ring_buffers()
48 dev_err(oq->dev, in octep_oq_fill_ring_buffers()
63 dma_unmap_page(oq->dev, desc_ring[i].buffer_ptr, PAGE_SIZE, DMA_FROM_DEVICE); in octep_oq_fill_ring_buffers()
89 dev_err(oq->dev, "refill: rx buffer alloc failed\n"); in octep_oq_refill()
94 desc_ring[refill_idx].buffer_ptr = dma_map_page(oq->dev, page, 0, in octep_oq_refill()
96 if (dma_mapping_error(oq->dev, desc_ring[refill_idx].buffer_ptr)) { in octep_oq_refill()
97 dev_err(oq->dev, in octep_oq_refill()
135 oq->dev = &oct->pdev->dev; in octep_setup_oq()
152 oq->desc_ring = dma_alloc_coherent(oq->dev, desc_ring_size, in octep_setup_oq()
156 dev_err(oq->dev, in octep_setup_oq()
163 dev_err(&oct->pdev->dev, in octep_setup_oq()
181 dma_free_coherent(oq->dev, desc_ring_size, in octep_setup_oq()
208 dma_unmap_page(oq->dev, desc_ring[i].buffer_ptr, in octep_oq_free_ring_buffers()
235 dma_free_coherent(oq->dev, in octep_free_oq()
258 dev_err(&oct->pdev->dev, in octep_setup_oqs()
262 dev_dbg(&oct->pdev->dev, "Successfully setup OQ(RxQ)-%d.\n", i); in octep_setup_oqs()
303 dev_dbg(&oct->pdev->dev, in octep_free_oqs()
354 dma_unmap_page(oq->dev, oq->desc_ring[*read_idx].buffer_ptr, in octep_oq_next_pkt()
481 skb->dev = oq->netdev; in __octep_oq_process_rx()
482 skb->protocol = eth_type_trans(skb, skb->dev); in __octep_oq_process_rx()