Lines Matching full:hba

73 	PHBA hba = (PHBA)device_get_softc(dev);  in hpt_attach()  local
88 hba->ext_type = EXT_TYPE_HBA; in hpt_attach()
89 hba->ldm_adapter.him = him; in hpt_attach()
99 hba->ldm_adapter.him_handle = malloc(size, M_DEVBUF, M_WAITOK); in hpt_attach()
101 hba->pcidev = dev; in hpt_attach()
102 hba->pciaddr.tree = 0; in hpt_attach()
103 hba->pciaddr.bus = pci_get_bus(dev); in hpt_attach()
104 hba->pciaddr.device = pci_get_slot(dev); in hpt_attach()
105 hba->pciaddr.function = pci_get_function(dev); in hpt_attach()
107 if (!him->create_adapter(&pci_id, hba->pciaddr, hba->ldm_adapter.him_handle, hba)) { in hpt_attach()
108 free(hba->ldm_adapter.him_handle, M_DEVBUF); in hpt_attach()
113 hba->pciaddr.bus, hba->pciaddr.device, hba->pciaddr.function, pci_get_irq(dev)); in hpt_attach()
115 if (!ldm_register_adapter(&hba->ldm_adapter)) { in hpt_attach()
121 ldm_register_adapter(&hba->ldm_adapter); in hpt_attach()
125 if (hba->ldm_adapter.vbus==vbus) { in hpt_attach()
126 hba->vbus_ext = vbus_ext; in hpt_attach()
127 hba->next = vbus_ext->hba_list; in hpt_attach()
128 vbus_ext->hba_list = hba; in hpt_attach()
153 PHBA hba; in hpt_alloc_mem() local
158 for (hba = vbus_ext->hba_list; hba; hba = hba->next) in hpt_alloc_mem()
159 hba->ldm_adapter.him->get_meminfo(hba->ldm_adapter.him_handle); in hpt_alloc_mem()
258 PHBA hba; in hpt_init_vbus() local
260 for (hba = vbus_ext->hba_list; hba; hba = hba->next) in hpt_init_vbus()
261 if (!hba->ldm_adapter.him->initialize(hba->ldm_adapter.him_handle)) { in hpt_init_vbus()
262 KdPrint(("fail to initialize %p", hba)); in hpt_init_vbus()
341 PHBA hba; in hpt_shutdown_vbus() local
366 for (hba=vbus_ext->hba_list; hba; hba=hba->next) in hpt_shutdown_vbus()
367 bus_teardown_intr(hba->pcidev, hba->irq_res, hba->irq_handle); in hpt_shutdown_vbus()
371 while ((hba=vbus_ext->hba_list)) { in hpt_shutdown_vbus()
372 vbus_ext->hba_list = hba->next; in hpt_shutdown_vbus()
373 free(hba->ldm_adapter.him_handle, M_DEVBUF); in hpt_shutdown_vbus()
1335 PHBA hba; in hpt_final_init() local
1447 for (hba = vbus_ext->hba_list; hba; hba = hba->next) { in hpt_final_init()
1449 if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, in hpt_final_init()
1456 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, in hpt_final_init()
1457 NULL, hpt_pci_intr, vbus_ext, &hba->irq_handle)) in hpt_final_init()
1462 hba->ldm_adapter.him->intr_control(hba->ldm_adapter.him_handle, HPT_TRUE); in hpt_final_init()
1557 sizeof(HBA)