Lines Matching refs:hba
117 PHBA hba = (PHBA)osext;
120 hba->pcibar[index].rid = 0x10 + index * 4;
121 base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4);
124 hba->pcibar[index].type = SYS_RES_IOPORT;
125 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev,
126 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
127 hba->pcibar[index].base = (void *)(unsigned long)(base & ~0x1);
129 hba->pcibar[index].type = SYS_RES_MEMORY;
130 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev,
131 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
132 hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset;
135 return hba->pcibar[index].base;
140 PHBA hba = (PHBA)osext;
144 if (hba->pcibar[index].base==base) {
145 bus_release_resource(hba->pcidev, hba->pcibar[index].type,
146 hba->pcibar[index].rid, hba->pcibar[index].res);
147 hba->pcibar[index].base = 0;