Lines Matching refs:idx
137 uint32_t idx;
169 for (idx = 0; idx < pages; idx++) {
172 ret = kmem_alloc_wired(kernel_map, &ext->vmxHashPgList[idx], PAGE_SIZE);
175 bzero((char *)ext->vmxHashPgList[idx], PAGE_SIZE); /* Zero the page */
176 ext->vmxHashPgIdx[idx] = ptoa_64(pmap_find_phys(kernel_pmap, (addr64_t)ext->vmxHashPgList[idx]));
178 if (!ext->vmxHashPgIdx[idx]) { /* Hash-table page's LRA failed */
179 panic("vmm_build_shadow_hash: could not translate hash-table vaddr %08X\n", ext->vmxHashPgList[idx]);
181 map = (mapping_t *)ext->vmxHashPgList[idx];
191 for (idx = 0; idx < pages; idx++) { /* De-allocate any pages we managed to allocate */
192 if (ext->vmxHashPgList[idx]) {
193 kmem_free(kernel_map, ext->vmxHashPgList[idx], PAGE_SIZE);
209 uint32_t idx;
211 for (idx = 0; idx < GV_HPAGES; idx++) { /* Release the hash table page by page */
212 kmem_free(kernel_map, ext->vmxHashPgList[idx], PAGE_SIZE);
233 panic("vmm_activate_gsa: VMM control table not present; act = %p, idx = %lu\n",
239 panic("vmm_activate_gsa: Unexpected failure of vmm_get_entry; act = %p, idx = %lu\n",
247 panic("vmm_activate_gsa: Unexpected failure of vmm_get_adsp; act = %p, idx = %lu\n",
284 panic("vmm_deactivate_gsa: Unexpected failure of vmm_get_entry; act = %p, idx = %lu\n",
290 panic("vmm_deactivate_gsa: Unexpected failure of vmm_get_adsp; act = %p, idx = %lu\n",
317 panic("vmm_flush_context: Unexpected failure of vmm_get_entry; act = %p, idx = %lu\n",