Lines Matching refs:addr

118 #define	RTL_CACHE_HASH_INDEX(cache, addr) \  argument
119 …RTL_CACHE_HASH_INDEX_IMPL((addr), (cache)->m_hash_shift, (cache)->m_type_shift, ((cache)->m_hash_s…
217 sal_uIntPtr addr in rtl_cache_hash_remove() argument
224 ppHead = &(cache->m_hash_table[RTL_CACHE_HASH_INDEX(cache, addr)]); in rtl_cache_hash_remove()
227 if (bufctl->m_addr == addr) in rtl_cache_hash_remove()
265 #define RTL_CACHE_SLAB(addr, size) \ argument
266 (((rtl_cache_slab_type*)(RTL_MEMORY_P2END((sal_uIntPtr)(addr), (size)))) - 1)
316 void * addr; in rtl_cache_slab_create() local
320 addr = rtl_arena_alloc (cache->m_source, &size); in rtl_cache_slab_create()
321 if (addr != NULL) in rtl_cache_slab_create()
334 slab = RTL_CACHE_SLAB(addr, cache->m_slab_size); in rtl_cache_slab_create()
339 slab->m_data = (sal_uIntPtr)(addr); in rtl_cache_slab_create()
347 rtl_arena_free (cache->m_source, addr, size); in rtl_cache_slab_create()
364 void * addr = (void*)(slab->m_data); in rtl_cache_slab_destroy() local
395 rtl_arena_free (cache->m_source, addr, cache->m_slab_size); in rtl_cache_slab_destroy()
444 void * addr = NULL; in rtl_cache_slab_alloc() local
510 addr = (void*)rtl_cache_hash_insert (cache, bufctl); in rtl_cache_slab_alloc()
512 addr = bufctl; in rtl_cache_slab_alloc()
515 OSL_DEBUG_ONLY(memset(addr, 0x77777777, cache->m_type_size)); in rtl_cache_slab_alloc()
516 VALGRIND_MEMPOOL_ALLOC(cache, addr, cache->m_type_size); in rtl_cache_slab_alloc()
520 return (addr); in rtl_cache_slab_alloc()
531 void * addr in rtl_cache_slab_free() argument
540 VALGRIND_MEMPOOL_FREE(cache, addr); in rtl_cache_slab_free()
541 /* OSL_DEBUG_ONLY() */ VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size); in rtl_cache_slab_free()
542 OSL_DEBUG_ONLY(memset(addr, 0x33333333, cache->m_type_size)); in rtl_cache_slab_free()
547 bufctl = rtl_cache_hash_remove (cache, (sal_uIntPtr)(addr)); in rtl_cache_slab_free()
553 bufctl = (rtl_cache_bufctl_type*)(addr); in rtl_cache_slab_free()
554 slab = RTL_CACHE_SLAB(addr, cache->m_slab_size); in rtl_cache_slab_free()