Lines Matching refs:hba
103 PHBA hba = (PHBA)osext;
106 hba->pcibar[index].rid = 0x10 + index * 4;
107 base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4);
110 hba->pcibar[index].type = SYS_RES_IOPORT;
111 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev,
112 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
113 hba->pcibar[index].base = (void *)(unsigned long)(base & ~0x1);
115 hba->pcibar[index].type = SYS_RES_MEMORY;
116 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev,
117 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
118 hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset;
121 return hba->pcibar[index].base;
126 PHBA hba = (PHBA)osext;
130 if (hba->pcibar[index].base==base) {
131 bus_release_resource(hba->pcidev, hba->pcibar[index].type,
132 hba->pcibar[index].rid, hba->pcibar[index].res);
133 hba->pcibar[index].base = 0;