Lines Matching refs:entryp

1230 agp_fill_empty_keyent(agpgart_softstate_t *softstate, keytable_ent_t *entryp)  in agp_fill_empty_keyent()  argument
1236 ASSERT(entryp); in agp_fill_empty_keyent()
1237 ASSERT(entryp->kte_memhdl); in agp_fill_empty_keyent()
1238 ASSERT(entryp->kte_pfnarray); in agp_fill_empty_keyent()
1255 bcopy(entryp, newentryp, sizeof (keytable_ent_t)); in agp_fill_empty_keyent()
1281 keytable_ent_t *entryp; in agp_find_bound_keyent() local
1287 entryp = &softstate->asoft_table[keycount]; in agp_find_bound_keyent()
1288 if (entryp->kte_bound == 0) { in agp_find_bound_keyent()
1292 if (pg_offset < entryp->kte_pgoff) in agp_find_bound_keyent()
1294 if (pg_offset >= (entryp->kte_pgoff + entryp->kte_pages)) in agp_find_bound_keyent()
1297 ASSERT(entryp->kte_memhdl); in agp_find_bound_keyent()
1298 ASSERT(entryp->kte_pfnarray); in agp_find_bound_keyent()
1300 return (entryp); in agp_find_bound_keyent()
1324 agp_check_off(keytable_ent_t *entryp, uint32_t pg_start, uint32_t pg_num) in agp_check_off() argument
1330 ASSERT(entryp); in agp_check_off()
1334 if (!entryp[key].kte_bound) in agp_check_off()
1337 kpg_end = entryp[key].kte_pgoff + entryp[key].kte_pages; in agp_check_off()
1338 if (!((pg_end <= entryp[key].kte_pgoff) || in agp_check_off()
1401 uint32_t *entryp; in agp_remove_from_gart() local
1403 entryp = tablep + pg_offset; in agp_remove_from_gart()
1405 *(entryp + items) = 0; in agp_remove_from_gart()
1429 agp_unbind_key(agpgart_softstate_t *softstate, keytable_ent_t *entryp) in agp_unbind_key() argument
1433 ASSERT(entryp); in agp_unbind_key()
1434 ASSERT((entryp->kte_key >= 0) && (entryp->kte_key < AGP_MAXKEYS)); in agp_unbind_key()
1436 if (!entryp->kte_bound) { in agp_unbind_key()
1439 entryp->kte_key)); in agp_unbind_key()
1442 if (entryp->kte_refcnt) { in agp_unbind_key()
1448 ASSERT((entryp->kte_pgoff + entryp->kte_pages) <= in agp_unbind_key()
1456 entryp->kte_pgoff, entryp->kte_pages, in agp_unbind_key()
1461 entryp->kte_key)); in agp_unbind_key()
1467 agp_remove_from_gart(entryp->kte_pgoff, in agp_unbind_key()
1468 entryp->kte_pages, in agp_unbind_key()
1477 entryp->kte_bound = 0; in agp_unbind_key()
1493 agp_dealloc_kmem(keytable_ent_t *entryp) in agp_dealloc_kmem() argument
1495 kmem_free(entryp->kte_pfnarray, sizeof (pfn_t) * entryp->kte_pages); in agp_dealloc_kmem()
1496 entryp->kte_pfnarray = NULL; in agp_dealloc_kmem()
1498 (void) ddi_dma_unbind_handle(KMEMP(entryp->kte_memhdl)->kmem_handle); in agp_dealloc_kmem()
1499 KMEMP(entryp->kte_memhdl)->kmem_cookies_num = 0; in agp_dealloc_kmem()
1500 ddi_dma_mem_free(&KMEMP(entryp->kte_memhdl)->kmem_acchdl); in agp_dealloc_kmem()
1501 KMEMP(entryp->kte_memhdl)->kmem_acchdl = NULL; in agp_dealloc_kmem()
1502 KMEMP(entryp->kte_memhdl)->kmem_reallen = 0; in agp_dealloc_kmem()
1503 KMEMP(entryp->kte_memhdl)->kmem_kvaddr = NULL; in agp_dealloc_kmem()
1505 ddi_dma_free_handle(&(KMEMP(entryp->kte_memhdl)->kmem_handle)); in agp_dealloc_kmem()
1506 KMEMP(entryp->kte_memhdl)->kmem_handle = NULL; in agp_dealloc_kmem()
1508 kmem_free(entryp->kte_memhdl, sizeof (agp_kmem_handle_t)); in agp_dealloc_kmem()
1509 entryp->kte_memhdl = NULL; in agp_dealloc_kmem()
1529 agp_dealloc_mem(agpgart_softstate_t *st, keytable_ent_t *entryp) in agp_dealloc_mem() argument
1532 ASSERT(entryp); in agp_dealloc_mem()
1534 ASSERT(entryp->kte_memhdl); in agp_dealloc_mem()
1538 if (entryp->kte_bound && !entryp->kte_refcnt) { in agp_dealloc_mem()
1541 entryp->kte_key)); in agp_dealloc_mem()
1551 (void) agp_unbind_key(st, entryp); in agp_dealloc_mem()
1553 if (entryp->kte_refcnt) { in agp_dealloc_mem()
1559 switch (entryp->kte_type) { in agp_dealloc_mem()
1562 agp_dealloc_kmem(entryp); in agp_dealloc_mem()
2033 keytable_ent_t *entryp; in agp_alloc_kmem() local
2119 entryp = agp_fill_empty_keyent(softstate, &keyentry); in agp_alloc_kmem()
2120 if (!entryp) { in agp_alloc_kmem()
2126 ASSERT((entryp->kte_key >= 0) && (entryp->kte_key < AGP_MAXKEYS)); in agp_alloc_kmem()
2128 return (entryp); in agp_alloc_kmem()
2345 uint32_t *entryp; in agp_add_to_gart() local
2348 entryp = tablep + pg_offset; in agp_add_to_gart()
2352 *(entryp + items) = itemv; in agp_add_to_gart()
2949 keytable_ent_t *entryp; in ioctl_agpgart_alloc() local
2978 entryp = agp_alloc_mem(st, length, alloc_info.agpa_type); in ioctl_agpgart_alloc()
2979 if (!entryp) { in ioctl_agpgart_alloc()
2985 ASSERT((entryp->kte_key >= 0) && (entryp->kte_key < AGP_MAXKEYS)); in ioctl_agpgart_alloc()
2986 alloc_info.agpa_key = entryp->kte_key; in ioctl_agpgart_alloc()
2989 (uint32_t)(entryp->kte_pfnarray[0] << AGP_PAGE_SHIFT); in ioctl_agpgart_alloc()