Lines Matching refs:pdev_dev
385 struct device *dev = adap->pdev_dev; in free_tx_desc()
488 dma_unmap_page(adap->pdev_dev, get_buf_addr(d), in free_rx_bufs()
515 dma_unmap_page(adap->pdev_dev, get_buf_addr(d), in unmap_rx_buf()
596 node = dev_to_node(adap->pdev_dev); in refill_fl()
611 mapping = dma_map_page(adap->pdev_dev, pg, 0, in refill_fl()
614 if (unlikely(dma_mapping_error(adap->pdev_dev, mapping))) { in refill_fl()
641 mapping = dma_map_page(adap->pdev_dev, pg, 0, PAGE_SIZE, in refill_fl()
643 if (unlikely(dma_mapping_error(adap->pdev_dev, mapping))) { in refill_fl()
1193 dev_err(adap->pdev_dev, in t4_eth_xmit()
1203 unlikely(map_skb(adap->pdev_dev, skb, addr) < 0)) { in t4_eth_xmit()
1578 else if (map_skb(q->adap->pdev_dev, skb, in service_ofldq()
2104 dma_sync_single_for_cpu(q->adap->pdev_dev, in process_responses()
2462 iq->desc = alloc_ring(adap->pdev_dev, iq->size, iq->iqe_len, 0, in t4_sge_alloc_rxq()
2501 fl->desc = alloc_ring(adap->pdev_dev, fl->size, sizeof(__be64), in t4_sge_alloc_rxq()
2597 dev_warn(adap->pdev_dev, "Failed to set Congestion" in t4_sge_alloc_rxq()
2608 dma_free_coherent(adap->pdev_dev, iq->size * iq->iqe_len, in t4_sge_alloc_rxq()
2615 dma_free_coherent(adap->pdev_dev, flsz * sizeof(struct tx_desc), in t4_sge_alloc_rxq()
2649 txq->q.desc = alloc_ring(adap->pdev_dev, txq->q.size, in t4_sge_alloc_eth_txq()
2680 dma_free_coherent(adap->pdev_dev, in t4_sge_alloc_eth_txq()
2706 txq->q.desc = alloc_ring(adap->pdev_dev, nentries, in t4_sge_alloc_ctrl_txq()
2708 NULL, 0, dev_to_node(adap->pdev_dev)); in t4_sge_alloc_ctrl_txq()
2733 dma_free_coherent(adap->pdev_dev, in t4_sge_alloc_ctrl_txq()
2759 txq->q.desc = alloc_ring(adap->pdev_dev, txq->q.size, in t4_sge_alloc_ofld_txq()
2788 dma_free_coherent(adap->pdev_dev, in t4_sge_alloc_ofld_txq()
2808 dma_free_coherent(adap->pdev_dev, in free_txq()
2825 dma_free_coherent(adap->pdev_dev, (rq->size + 1) * rq->iqe_len, in free_rspq_fl()
2835 dma_free_coherent(adap->pdev_dev, fl->size * 8 + s->stat_len, in free_rspq_fl()
2994 dev_err(adap->pdev_dev, "bad SGE CPL MODE\n"); in t4_sge_init_soft()
3027 dev_err(adap->pdev_dev, "bad SGE FL page buffer sizes [%d, %d]\n", in t4_sge_init_soft()
3036 dev_err(adap->pdev_dev, "bad SGE FL MTU sizes [%d, %d]\n", in t4_sge_init_soft()