Home
last modified time | relevance | path

Searched refs:amr_dev (Results 1 – 5 of 5) sorted by relevance

/freebsd-12.1/sys/dev/amr/
H A Damr_pci.c198 sc->amr_dev = dev; in amr_pci_attach()
245 if (bus_setup_intr(sc->amr_dev, sc->amr_irq, in amr_pci_attach()
248 device_printf(sc->amr_dev, "can't set up interrupt\n"); in amr_pci_attach()
392 device_printf(sc->amr_dev, "flushing cache..."); in amr_pci_shutdown()
425 device_printf(sc->amr_dev, "flushing cache..."); in amr_pci_suspend()
512 bus_teardown_intr(sc->amr_dev, sc->amr_irq, sc->amr_intr); in amr_pci_free()
522 bus_release_resource(sc->amr_dev, in amr_pci_free()
595 device_printf(sc->amr_dev, "can't allocate s/g table\n"); in amr_sglist_map()
641 device_printf(sc->amr_dev, "can't allocate mailbox tag\n"); in amr_setup_mbox()
691 device_printf(sc->amr_dev, "can't allocate ccb tag\n"); in amr_ccb_map()
[all …]
H A Damr.c256 child = device_add_child(sc->amr_dev, "amrp", -1); in amr_attach()
261 bus_generic_attach(sc->amr_dev); in amr_attach()
271 if (device_get_unit(sc->amr_dev) == 0) in amr_attach()
355 SYSCTL_ADD_INT(device_get_sysctl_ctx(sc->amr_dev), in amr_init_sysctl()
356 SYSCTL_CHILDREN(device_get_sysctl_tree(sc->amr_dev)), in amr_init_sysctl()
384 device_delete_child(sc->amr_dev, sc->amr_pass); in amr_free()
501 device_printf(sc->amr_dev, "idle controller\n"); in amr_rescan_drives()
509 device_printf(sc->amr_dev, "flushing cache..."); in amr_rescan_drives()
515 if((error = device_delete_child(sc->amr_dev, in amr_rescan_drives()
1328 device_printf(sc->amr_dev, in amr_bio_command()
[all …]
H A Damrreg.h589 pci_write_config((sc)->amr_dev, 0x40, pci_read_config((sc)->amr_dev, 0x40, 1) | 0x20, 1); \
590 pci_write_config((sc)->amr_dev, 0x64, 0x1122, 1); \
592 #define AMR_QGET_INITSTATUS(sc) pci_read_config((sc)->amr_dev, 0x9c, 1)
593 #define AMR_QGET_INITCHAN(sc) pci_read_config((sc)->amr_dev, 0x9f, 1)
594 #define AMR_QGET_INITTARG(sc) pci_read_config((sc)->amr_dev, 0x9e, 1)
H A Damr_cam.c181 amr_cam_poll, "amr", sc, device_get_unit(sc->amr_dev), in amr_cam_attach()
184 device_printf(sc->amr_dev, "CAM SIM attach failed\n"); in amr_cam_attach()
190 error = xpt_bus_register(sc->amr_cam_sim[chn], sc->amr_dev,chn); in amr_cam_attach()
193 device_printf(sc->amr_dev, in amr_cam_attach()
H A Damrvar.h177 device_t amr_dev; member