Lines Matching full:hba

71 	PHBA hba = (PHBA)device_get_softc(dev);  in hpt_attach()  local
86 hba->ext_type = EXT_TYPE_HBA; in hpt_attach()
87 hba->ldm_adapter.him = him; in hpt_attach()
96 hba->ldm_adapter.him_handle = malloc(size, M_DEVBUF, M_WAITOK); in hpt_attach()
97 hba->pcidev = dev; in hpt_attach()
98 hba->pciaddr.tree = 0; in hpt_attach()
99 hba->pciaddr.bus = pci_get_bus(dev); in hpt_attach()
100 hba->pciaddr.device = pci_get_slot(dev); in hpt_attach()
101 hba->pciaddr.function = pci_get_function(dev); in hpt_attach()
103 if (!him->create_adapter(&pci_id, hba->pciaddr, hba->ldm_adapter.him_handle, hba)) { in hpt_attach()
104 free(hba->ldm_adapter.him_handle, M_DEVBUF); in hpt_attach()
109 hba->pciaddr.bus, hba->pciaddr.device, hba->pciaddr.function, pci_get_irq(dev)); in hpt_attach()
111 if (!ldm_register_adapter(&hba->ldm_adapter)) { in hpt_attach()
117 ldm_register_adapter(&hba->ldm_adapter); in hpt_attach()
121 if (hba->ldm_adapter.vbus==vbus) { in hpt_attach()
122 hba->vbus_ext = vbus_ext; in hpt_attach()
123 hba->next = vbus_ext->hba_list; in hpt_attach()
124 vbus_ext->hba_list = hba; in hpt_attach()
149 PHBA hba; in hpt_alloc_mem() local
154 for (hba = vbus_ext->hba_list; hba; hba = hba->next) in hpt_alloc_mem()
155 hba->ldm_adapter.him->get_meminfo(hba->ldm_adapter.him_handle); in hpt_alloc_mem()
254 PHBA hba; in hpt_init_vbus() local
256 for (hba = vbus_ext->hba_list; hba; hba = hba->next) in hpt_init_vbus()
257 if (!hba->ldm_adapter.him->initialize(hba->ldm_adapter.him_handle)) { in hpt_init_vbus()
258 KdPrint(("fail to initialize %p", hba)); in hpt_init_vbus()
340 PHBA hba; in hpt_shutdown_vbus() local
365 for (hba=vbus_ext->hba_list; hba; hba=hba->next) in hpt_shutdown_vbus()
366 bus_teardown_intr(hba->pcidev, hba->irq_res, hba->irq_handle); in hpt_shutdown_vbus()
370 while ((hba=vbus_ext->hba_list)) { in hpt_shutdown_vbus()
371 vbus_ext->hba_list = hba->next; in hpt_shutdown_vbus()
372 free(hba->ldm_adapter.him_handle, M_DEVBUF); in hpt_shutdown_vbus()
1048 PHBA hba; in hpt_final_init() local
1158 for (hba = vbus_ext->hba_list; hba; hba = hba->next) { in hpt_final_init()
1160 if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, in hpt_final_init()
1166 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, in hpt_final_init()
1167 NULL, hpt_pci_intr, vbus_ext, &hba->irq_handle)) in hpt_final_init()
1172 hba->ldm_adapter.him->intr_control(hba->ldm_adapter.him_handle, HPT_TRUE); in hpt_final_init()
1267 sizeof(HBA)