Lines Matching refs:dev
223 struct device *dev; member
470 dma_unmap_single(priv->dev, priv->tx_phys[tx_tail], in hip04_tx_reclaim()
521 phys = dma_map_single(priv->dev, skb->data, skb->len, DMA_TO_DEVICE); in hip04_mac_start_xmit()
522 if (dma_mapping_error(priv->dev, phys)) { in hip04_mac_start_xmit()
600 dma_unmap_single(priv->dev, priv->rx_phys[priv->rx_head], in hip04_rx_poll()
629 phys = dma_map_single(priv->dev, buf, in hip04_rx_poll()
631 if (dma_mapping_error(priv->dev, phys)) in hip04_rx_poll()
737 phys = dma_map_single(priv->dev, priv->rx_buf[i], in hip04_mac_open()
739 if (dma_mapping_error(priv->dev, phys)) in hip04_mac_open()
773 dma_unmap_single(priv->dev, priv->rx_phys[i], in hip04_mac_stop()
895 struct device *d = &pdev->dev; in hip04_mac_probe()
908 priv->dev = d; in hip04_mac_probe()
911 SET_NETDEV_DEV(ndev, &pdev->dev); in hip04_mac_probe()
1029 struct device *d = &pdev->dev; in hip04_remove()