Lines Matching refs:keyentry
2032 keytable_ent_t keyentry;
2038 bzero(&keyentry, sizeof (keytable_ent_t));
2040 keyentry.kte_pages = AGP_BYTES2PAGES(length);
2041 keyentry.kte_type = type;
2049 agpgart_dma_attr.dma_attr_sgllen = (int)keyentry.kte_pages;
2052 keyentry.kte_memhdl = kmem_zalloc(sizeof (agp_kmem_handle_t), KM_SLEEP);
2057 &(KMEMP(keyentry.kte_memhdl)->kmem_handle))) {
2064 KMEMP(keyentry.kte_memhdl)->kmem_handle,
2069 &KMEMP(keyentry.kte_memhdl)->kmem_kvaddr,
2070 &KMEMP(keyentry.kte_memhdl)->kmem_reallen,
2071 &KMEMP(keyentry.kte_memhdl)->kmem_acchdl)) != 0) {
2079 KMEMP(keyentry.kte_memhdl)->kmem_handle,
2081 KMEMP(keyentry.kte_memhdl)->kmem_kvaddr,
2086 &KMEMP(keyentry.kte_memhdl)->kmem_dcookie,
2087 &KMEMP(keyentry.kte_memhdl)->kmem_cookies_num);
2096 (KMEMP(keyentry.kte_memhdl)->kmem_cookies_num != 1))) {
2102 keyentry.kte_pfnarray = (pfn_t *)kmem_zalloc(sizeof (pfn_t) *
2103 keyentry.kte_pages, KM_SLEEP);
2106 KMEMP(keyentry.kte_memhdl)->kmem_handle,
2107 &KMEMP(keyentry.kte_memhdl)->kmem_dcookie,
2108 KMEMP(keyentry.kte_memhdl)->kmem_cookies_num,
2109 keyentry.kte_pfnarray)) {
2115 keyentry.kte_pfnarray, keyentry.kte_pages));
2117 keyentry.kte_pfnarray, keyentry.kte_pages))
2119 entryp = agp_fill_empty_keyent(softstate, &keyentry);
2131 kmem_free(keyentry.kte_pfnarray, sizeof (pfn_t) * keyentry.kte_pages);
2132 keyentry.kte_pfnarray = NULL;
2133 (void) ddi_dma_unbind_handle(KMEMP(keyentry.kte_memhdl)->kmem_handle);
2134 KMEMP(keyentry.kte_memhdl)->kmem_cookies_num = 0;
2136 ddi_dma_mem_free(&KMEMP(keyentry.kte_memhdl)->kmem_acchdl);
2137 KMEMP(keyentry.kte_memhdl)->kmem_acchdl = NULL;
2138 KMEMP(keyentry.kte_memhdl)->kmem_reallen = 0;
2139 KMEMP(keyentry.kte_memhdl)->kmem_kvaddr = NULL;
2141 ddi_dma_free_handle(&(KMEMP(keyentry.kte_memhdl)->kmem_handle));
2142 KMEMP(keyentry.kte_memhdl)->kmem_handle = NULL;
2144 kmem_free(keyentry.kte_memhdl, sizeof (agp_kmem_handle_t));
2145 keyentry.kte_memhdl = NULL;