Lines Matching refs:bufctl

194 	rtl_cache_bufctl_type * bufctl  in rtl_cache_hash_insert()  argument
199 ppHead = &(cache->m_hash_table[RTL_CACHE_HASH_INDEX(cache, bufctl->m_addr)]); in rtl_cache_hash_insert()
201 bufctl->m_next = (*ppHead); in rtl_cache_hash_insert()
202 (*ppHead) = bufctl; in rtl_cache_hash_insert()
204 return (bufctl->m_addr); in rtl_cache_hash_insert()
221 rtl_cache_bufctl_type * bufctl; in rtl_cache_hash_remove() local
225 while ((bufctl = *ppHead) != NULL) in rtl_cache_hash_remove()
227 if (bufctl->m_addr == addr) in rtl_cache_hash_remove()
229 *ppHead = bufctl->m_next, bufctl->m_next = NULL; in rtl_cache_hash_remove()
234 ppHead = &(bufctl->m_next); in rtl_cache_hash_remove()
237 OSL_ASSERT (bufctl != NULL); /* bad free */ in rtl_cache_hash_remove()
258 return (bufctl); in rtl_cache_hash_remove()
373 rtl_cache_bufctl_type * bufctl = slab->m_sp; in rtl_cache_slab_destroy() local
376 slab->m_sp = bufctl->m_next, bufctl->m_next = NULL; in rtl_cache_slab_destroy()
379 rtl_cache_free (gp_cache_bufctl_cache, bufctl); in rtl_cache_slab_destroy()
453 rtl_cache_bufctl_type * bufctl; in rtl_cache_slab_alloc() local
466 bufctl = (rtl_cache_bufctl_type*)rtl_cache_alloc (gp_cache_bufctl_cache); in rtl_cache_slab_alloc()
467 if (bufctl == NULL) in rtl_cache_slab_alloc()
474 bufctl->m_addr = slab->m_bp; in rtl_cache_slab_alloc()
475 bufctl->m_slab = (sal_uIntPtr)(slab); in rtl_cache_slab_alloc()
480 bufctl = (rtl_cache_bufctl_type*)(slab->m_bp); in rtl_cache_slab_alloc()
482 bufctl->m_next = NULL; in rtl_cache_slab_alloc()
488 slab->m_sp = bufctl; in rtl_cache_slab_alloc()
492 bufctl = slab->m_sp; in rtl_cache_slab_alloc()
493 slab->m_sp = bufctl->m_next; in rtl_cache_slab_alloc()
510 addr = (void*)rtl_cache_hash_insert (cache, bufctl); in rtl_cache_slab_alloc()
512 addr = bufctl; in rtl_cache_slab_alloc()
534 rtl_cache_bufctl_type * bufctl; in rtl_cache_slab_free() local
547 bufctl = rtl_cache_hash_remove (cache, (sal_uIntPtr)(addr)); in rtl_cache_slab_free()
548 slab = (bufctl != NULL) ? (rtl_cache_slab_type*)(bufctl->m_slab) : 0; in rtl_cache_slab_free()
553 bufctl = (rtl_cache_bufctl_type*)(addr); in rtl_cache_slab_free()
570 bufctl->m_next = slab->m_sp; in rtl_cache_slab_free()
571 slab->m_sp = bufctl; in rtl_cache_slab_free()
1067 rtl_cache_bufctl_type * bufctl; in rtl_cache_deactivate() local
1068 while ((bufctl = cache->m_hash_table[i]) != NULL) in rtl_cache_deactivate()
1071 cache->m_hash_table[i] = bufctl->m_next, bufctl->m_next = NULL; in rtl_cache_deactivate()
1074 rtl_cache_free (gp_cache_bufctl_cache, bufctl); in rtl_cache_deactivate()