Home
last modified time | relevance | path

Searched refs:ldcssp (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/uts/sun4v/io/
H A Dldc.c129 extern void i_ldc_init_mapin(ldc_soft_state_t *ldcssp, uint64_t major,
143 ldc_soft_state_t *ldcssp; variable
406 ldcssp = kmem_zalloc(sizeof (ldc_soft_state_t), KM_SLEEP); in _init()
408 i_ldc_init_mapin(ldcssp, ldc_hsvc.hsvc_major, ldc_sup_minor); in _init()
413 kmem_free(ldcssp, sizeof (ldc_soft_state_t)); in _init()
418 mutex_init(&ldcssp->lock, NULL, MUTEX_DRIVER, NULL); in _init()
420 mutex_enter(&ldcssp->lock); in _init()
423 ldcssp->memhdl_cache = kmem_cache_create("ldc_memhdl_cache", in _init()
425 if (ldcssp->memhdl_cache == NULL) { in _init()
427 mutex_exit(&ldcssp->lock); in _init()
[all …]
H A Dldc_shm.c51 extern ldc_soft_state_t *ldcssp;
155 i_ldc_init_mapin(ldc_soft_state_t *ldcssp, uint64_t major, uint64_t minor) in i_ldc_init_mapin() argument
162 ldcssp->mapin_size = LDC_DIRECT_MAP_SIZE_DEFAULT; in i_ldc_init_mapin()
180 ldcssp->mapin_size = sz; in i_ldc_init_mapin()
216 mhdl = kmem_cache_alloc(ldcssp->memhdl_cache, KM_SLEEP); in ldc_mem_alloc_handle()
284 kmem_cache_free(ldcssp->memhdl_cache, mhdl); in ldc_mem_free_handle()
295 kmem_cache_free(ldcssp->memhdl_cache, mhdl); in ldc_mem_free_handle()
489 kmem_cache_alloc(ldcssp->memseg_cache, KM_SLEEP); in i_ldc_mem_bind_handle()
808 kmem_cache_free(ldcssp->memseg_cache, memseg); in ldc_mem_unbind_handle()
1326 kmem_cache_alloc(ldcssp->memseg_cache, KM_SLEEP); in i_ldc_mem_map()
[all …]