Lines Matching defs:hwdev
671 static inline int verify_mmio(struct device *hwdev,
686 dev_err(hwdev,
896 static int rhine_init_one_common(struct device *hwdev, u32 quirks,
905 rc = dma_set_mask(hwdev, DMA_BIT_MASK(32));
907 dev_err(hwdev, "32-bit DMA addresses not supported by the card!?\n");
916 SET_NETDEV_DEV(dev, hwdev);
993 dev_set_drvdata(hwdev, dev);
1031 struct device *hwdev = &pdev->dev;
1071 dev_err(hwdev, "Insufficient PCI resources, aborting\n");
1087 dev_err(hwdev,
1089 dev_name(hwdev), io_size, memaddr);
1095 rc = verify_mmio(hwdev, pioaddr, ioaddr, quirks);
1144 struct device *hwdev = dev->dev.parent;
1148 ring = dma_alloc_coherent(hwdev,
1158 rp->tx_bufs = dma_alloc_coherent(hwdev,
1163 dma_free_coherent(hwdev,
1182 struct device *hwdev = dev->dev.parent;
1184 dma_free_coherent(hwdev,
1191 dma_free_coherent(hwdev, PKT_BUF_SZ * TX_RING_SIZE,
1207 struct device *hwdev = dev->dev.parent;
1214 sd->dma = dma_map_single(hwdev, sd->skb->data, size, DMA_FROM_DEVICE);
1215 if (unlikely(dma_mapping_error(hwdev, sd->dma))) {
1287 struct device *hwdev = dev->dev.parent;
1295 dma_unmap_single(hwdev,
1329 struct device *hwdev = dev->dev.parent;
1338 dma_unmap_single(hwdev,
1776 struct device *hwdev = dev->dev.parent;
1813 dma_map_single(hwdev, skb->data, skb->len,
1815 if (dma_mapping_error(hwdev, rp->tx_skbuff_dma[entry])) {
1918 struct device *hwdev = dev->dev.parent;
1976 dma_unmap_single(hwdev,
2035 struct device *hwdev = dev->dev.parent;
2093 dma_sync_single_for_cpu(hwdev,
2102 dma_sync_single_for_device(hwdev,
2114 dma_unmap_single(hwdev,
2285 struct device *hwdev = dev->dev.parent;
2288 strlcpy(info->bus_info, dev_name(hwdev), sizeof(info->bus_info));