Lines Matching refs:mly_dev

219     sc->mly_dev = dev;  in mly_attach()
225 if (device_get_unit(sc->mly_dev) == 0) in mly_attach()
325 S_IRUSR | S_IWUSR, "mly%d", device_get_unit(sc->mly_dev)); in mly_attach()
359 pci_enable_busmaster(sc->mly_dev); in mly_pci_attach()
365 if ((sc->mly_regs_resource = bus_alloc_resource_any(sc->mly_dev, in mly_pci_attach()
375 if ((sc->mly_irq = bus_alloc_resource_any(sc->mly_dev, SYS_RES_IRQ, in mly_pci_attach()
380 …if (bus_setup_intr(sc->mly_dev, sc->mly_irq, INTR_TYPE_CAM | INTR_ENTROPY | INTR_MPSAFE, NULL, mly… in mly_pci_attach()
393 if (bus_dma_tag_create(bus_get_dma_tag(sc->mly_dev),/* PCI parent */ in mly_pci_attach()
449 if ((mly_identifiers[i].vendor == pci_get_vendor(sc->mly_dev)) && in mly_pci_attach()
450 (mly_identifiers[i].device == pci_get_device(sc->mly_dev))) { in mly_pci_attach()
703 bus_teardown_intr(sc->mly_dev, sc->mly_irq, sc->mly_intr); in mly_free()
745 bus_release_resource(sc->mly_dev, SYS_RES_IRQ, sc->mly_irq_rid, sc->mly_irq); in mly_free()
753 bus_release_resource(sc->mly_dev, SYS_RES_MEMORY, sc->mly_regs_rid, sc->mly_regs_resource); in mly_free()
1957 device_get_unit(sc->mly_dev), in mly_cam_attach()
1964 if (xpt_bus_register(sc->mly_cam_sim[chn], sc->mly_dev, chn)) { in mly_cam_attach()
1980 device_get_unit(sc->mly_dev), in mly_cam_attach()
1987 if (xpt_bus_register(sc->mly_cam_sim[chn], sc->mly_dev, chn)) { in mly_cam_attach()
2802 device_printf(sc->mly_dev, "queue curr max\n"); in mly_print_controller()
2803 device_printf(sc->mly_dev, "free %04d/%04d\n", in mly_print_controller()
2805 device_printf(sc->mly_dev, "busy %04d/%04d\n", in mly_print_controller()
2807 device_printf(sc->mly_dev, "complete %04d/%04d\n", in mly_print_controller()
2995 device_printf(sc->mly_dev, in mly_timeout()