Lines Matching refs:kdev
541 struct device *kdev = &priv->pdev->dev; in bcm_sysport_set_wol() local
544 if (!device_can_wakeup(kdev)) in bcm_sysport_set_wol()
560 device_set_wakeup_enable(kdev, 1); in bcm_sysport_set_wol()
565 device_set_wakeup_enable(kdev, 0); in bcm_sysport_set_wol()
680 struct device *kdev = &priv->pdev->dev; in bcm_sysport_rx_refill() local
693 mapping = dma_map_single(kdev, skb->data, in bcm_sysport_rx_refill()
695 if (dma_mapping_error(kdev, mapping)) { in bcm_sysport_rx_refill()
705 dma_unmap_single(kdev, dma_unmap_addr(cb, dma_addr), in bcm_sysport_rx_refill()
873 struct device *kdev = &priv->pdev->dev; in bcm_sysport_tx_reclaim_one() local
877 dma_unmap_single(kdev, dma_unmap_addr(cb, dma_addr), in bcm_sysport_tx_reclaim_one()
885 dma_unmap_page(kdev, dma_unmap_addr(cb, dma_addr), in bcm_sysport_tx_reclaim_one()
1281 struct device *kdev = &priv->pdev->dev; in bcm_sysport_xmit() local
1317 mapping = dma_map_single(kdev, skb->data, skb_len, DMA_TO_DEVICE); in bcm_sysport_xmit()
1318 if (dma_mapping_error(kdev, mapping)) { in bcm_sysport_xmit()
1483 struct device *kdev = &priv->pdev->dev; in bcm_sysport_init_tx_ring() local
1494 p = dma_zalloc_coherent(kdev, sizeof(struct dma_desc), &ring->desc_dma, in bcm_sysport_init_tx_ring()
1503 dma_free_coherent(kdev, sizeof(struct dma_desc), in bcm_sysport_init_tx_ring()
1583 struct device *kdev = &priv->pdev->dev; in bcm_sysport_fini_tx_ring() local
1607 dma_free_coherent(kdev, sizeof(struct dma_desc), in bcm_sysport_fini_tx_ring()