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,
906 rc = dma_set_mask(hwdev, DMA_BIT_MASK(32));
908 dev_err(hwdev, "32-bit DMA addresses not supported by the card!?\n");
917 SET_NETDEV_DEV(dev, hwdev);
995 dev_set_drvdata(hwdev, dev);
1033 struct device *hwdev = &pdev->dev;
1073 dev_err(hwdev, "Insufficient PCI resources, aborting\n");
1089 dev_err(hwdev,
1091 dev_name(hwdev), io_size, memaddr);
1097 rc = verify_mmio(hwdev, pioaddr, ioaddr, quirks);
1141 struct device *hwdev = dev->dev.parent;
1145 ring = dma_alloc_coherent(hwdev,
1155 rp->tx_bufs = dma_alloc_coherent(hwdev,
1160 dma_free_coherent(hwdev,
1179 struct device *hwdev = dev->dev.parent;
1181 dma_free_coherent(hwdev,
1188 dma_free_coherent(hwdev, PKT_BUF_SZ * TX_RING_SIZE,
1204 struct device *hwdev = dev->dev.parent;
1211 sd->dma = dma_map_single(hwdev, sd->skb->data, size, DMA_FROM_DEVICE);
1212 if (unlikely(dma_mapping_error(hwdev, sd->dma))) {
1284 struct device *hwdev = dev->dev.parent;
1292 dma_unmap_single(hwdev,
1326 struct device *hwdev = dev->dev.parent;
1335 dma_unmap_single(hwdev,
1773 struct device *hwdev = dev->dev.parent;
1810 dma_map_single(hwdev, skb->data, skb->len,
1812 if (dma_mapping_error(hwdev, rp->tx_skbuff_dma[entry])) {
1915 struct device *hwdev = dev->dev.parent;
1973 dma_unmap_single(hwdev,
2032 struct device *hwdev = dev->dev.parent;
2090 dma_sync_single_for_cpu(hwdev,
2099 dma_sync_single_for_device(hwdev,
2111 dma_unmap_single(hwdev,
2282 struct device *hwdev = dev->dev.parent;
2285 strscpy(info->bus_info, dev_name(hwdev), sizeof(info->bus_info));