Lines Matching refs:mly_dev
220 sc->mly_dev = dev; in mly_attach()
226 if (device_get_unit(sc->mly_dev) == 0) in mly_attach()
326 S_IRUSR | S_IWUSR, "mly%d", device_get_unit(sc->mly_dev)); in mly_attach()
358 pci_enable_busmaster(sc->mly_dev); in mly_pci_attach()
364 if ((sc->mly_regs_resource = bus_alloc_resource_any(sc->mly_dev, in mly_pci_attach()
374 if ((sc->mly_irq = bus_alloc_resource_any(sc->mly_dev, SYS_RES_IRQ, in mly_pci_attach()
379 …if (bus_setup_intr(sc->mly_dev, sc->mly_irq, INTR_TYPE_CAM | INTR_ENTROPY | INTR_MPSAFE, NULL, mly… in mly_pci_attach()
392 if (bus_dma_tag_create(bus_get_dma_tag(sc->mly_dev),/* PCI parent */ in mly_pci_attach()
448 if ((mly_identifiers[i].vendor == pci_get_vendor(sc->mly_dev)) && in mly_pci_attach()
449 (mly_identifiers[i].device == pci_get_device(sc->mly_dev))) { in mly_pci_attach()
702 bus_teardown_intr(sc->mly_dev, sc->mly_irq, sc->mly_intr); in mly_free()
744 bus_release_resource(sc->mly_dev, SYS_RES_IRQ, sc->mly_irq_rid, sc->mly_irq); in mly_free()
752 bus_release_resource(sc->mly_dev, SYS_RES_MEMORY, sc->mly_regs_rid, sc->mly_regs_resource); in mly_free()
1961 device_get_unit(sc->mly_dev), in mly_cam_attach()
1968 if (xpt_bus_register(sc->mly_cam_sim[chn], sc->mly_dev, chn)) { in mly_cam_attach()
1984 device_get_unit(sc->mly_dev), in mly_cam_attach()
1991 if (xpt_bus_register(sc->mly_cam_sim[chn], sc->mly_dev, chn)) { in mly_cam_attach()
2807 device_printf(sc->mly_dev, "queue curr max\n"); in mly_print_controller()
2808 device_printf(sc->mly_dev, "free %04d/%04d\n", in mly_print_controller()
2810 device_printf(sc->mly_dev, "busy %04d/%04d\n", in mly_print_controller()
2812 device_printf(sc->mly_dev, "complete %04d/%04d\n", in mly_print_controller()
3001 device_printf(sc->mly_dev, in mly_timeout()