Lines Matching defs:dev
43 #include <dev/ata/ata-all.h>
47 static void ata_dmaalloc(device_t dev);
48 static void ata_dmafree(device_t dev);
66 ata_dmainit(device_t dev)
68 struct ata_channel *ch = device_get_softc(dev);
94 if (bus_dma_tag_create(bus_get_dma_tag(dev), ch->dma.alignment, 0,
122 device_printf(dev, "WARNING - DMA initialization failed, disabling DMA\n");
123 ata_dmafini(dev);
127 ata_dmafini(device_t dev)
129 struct ata_channel *ch = device_get_softc(dev);
157 ata_dmaalloc(device_t dev)
159 struct ata_channel *ch = device_get_softc(dev);
172 device_printf(ch->dev, "FAILURE - create sg_tag\n");
178 device_printf(ch->dev, "FAILURE - alloc sg_map\n");
184 device_printf(ch->dev, "FAILURE - load sg\n");
195 device_printf(ch->dev, "FAILURE - create data_tag\n");
200 device_printf(ch->dev, "FAILURE - create data_map\n");
208 device_printf(dev, "WARNING - DMA allocation failed, disabling DMA\n");
209 ata_dmafree(dev);
213 ata_dmafree(device_t dev)
215 struct ata_channel *ch = device_get_softc(dev);