Lines Matching defs:dev
31 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/ahd_pci.c#17 $
37 #include <dev/aic7xxx/aic79xx_osm.h>
39 static int ahd_pci_probe(device_t dev);
40 static int ahd_pci_attach(device_t dev);
63 ahd_pci_probe(device_t dev)
67 entry = ahd_find_pci_device(dev);
69 device_set_desc(dev, entry->name);
76 ahd_pci_attach(device_t dev)
83 entry = ahd_find_pci_device(dev);
92 name = malloc(strlen(device_get_nameunit(dev)) + 1, M_DEVBUF, M_NOWAIT);
95 strcpy(name, device_get_nameunit(dev));
96 ahd = ahd_alloc(dev, name);
100 ahd_set_unit(ahd, device_get_unit(dev));
110 error = aic_dma_tag_create(ahd, /*parent*/bus_get_dma_tag(dev),
129 ahd->dev_softc = dev;