Lines Matching refs:ldcssp

129 extern void i_ldc_init_mapin(ldc_soft_state_t *ldcssp, uint64_t major,
143 ldc_soft_state_t *ldcssp; variable
390 ldcssp = kmem_zalloc(sizeof (ldc_soft_state_t), KM_SLEEP); in _init()
392 i_ldc_init_mapin(ldcssp, ldc_hsvc.hsvc_major, ldc_sup_minor); in _init()
397 kmem_free(ldcssp, sizeof (ldc_soft_state_t)); in _init()
402 mutex_init(&ldcssp->lock, NULL, MUTEX_DRIVER, NULL); in _init()
404 mutex_enter(&ldcssp->lock); in _init()
407 ldcssp->memhdl_cache = kmem_cache_create("ldc_memhdl_cache", in _init()
409 if (ldcssp->memhdl_cache == NULL) { in _init()
411 mutex_exit(&ldcssp->lock); in _init()
416 ldcssp->memseg_cache = kmem_cache_create("ldc_memseg_cache", in _init()
418 if (ldcssp->memseg_cache == NULL) { in _init()
420 mutex_exit(&ldcssp->lock); in _init()
425 ldcssp->channel_count = 0; in _init()
426 ldcssp->channels_open = 0; in _init()
427 ldcssp->chan_list = NULL; in _init()
428 ldcssp->dring_list = NULL; in _init()
433 mutex_exit(&ldcssp->lock); in _init()
464 dringp = ldcssp->dring_list; in _fini()
483 ldcssp->dring_list = NULL; in _fini()
486 ldcp = ldcssp->chan_list; in _fini()
495 ldcssp->chan_list = NULL; in _fini()
498 kmem_cache_destroy(ldcssp->memhdl_cache); in _fini()
499 kmem_cache_destroy(ldcssp->memseg_cache); in _fini()
505 mutex_destroy(&ldcssp->lock); in _fini()
506 kmem_free(ldcssp, sizeof (ldc_soft_state_t)); in _fini()
743 ldcp = ldcssp->chan_list; in i_ldc_debug_enter()
760 ldc_cnex_t *cinfo = &ldcssp->cinfo; in i_ldc_clear_intr()
1972 ldc_cnex_t *cinfo = &ldcssp->cinfo; in i_ldc_register_channel()
2018 ldc_cnex_t *cinfo = &ldcssp->cinfo; in i_ldc_unregister_channel()
2065 rv = cinfo->unreg_chan(ldcssp->cinfo.dip, ldcp->id); in i_ldc_unregister_channel()
2591 mutex_enter(&ldcssp->lock); in ldc_init()
2592 ldcp = ldcssp->chan_list; in ldc_init()
2597 mutex_exit(&ldcssp->lock); in ldc_init()
2602 mutex_exit(&ldcssp->lock); in ldc_init()
2789 mutex_enter(&ldcssp->lock); in ldc_init()
2790 ldcp->next = ldcssp->chan_list; in ldc_init()
2791 ldcssp->chan_list = ldcp; in ldc_init()
2792 ldcssp->channel_count++; in ldc_init()
2793 mutex_exit(&ldcssp->lock); in ldc_init()
2853 mutex_enter(&ldcssp->lock); in ldc_fini()
2854 tmp_ldcp = ldcssp->chan_list; in ldc_fini()
2856 ldcssp->chan_list = ldcp->next; in ldc_fini()
2869 mutex_exit(&ldcssp->lock); in ldc_fini()
2875 ldcssp->channel_count--; in ldc_fini()
2877 mutex_exit(&ldcssp->lock); in ldc_fini()
3068 mutex_enter(&ldcssp->lock); in ldc_open()
3069 ldcssp->channels_open++; in ldc_open()
3070 mutex_exit(&ldcssp->lock); in ldc_open()
3248 mutex_enter(&ldcssp->lock); in ldc_close()
3249 ldcssp->channels_open--; in ldc_close()
3250 mutex_exit(&ldcssp->lock); in ldc_close()
4661 mutex_enter(&ldcssp->lock); in ldc_register()
4664 ldcssp->cinfo.dip = cinfo->dip; in ldc_register()
4665 ldcssp->cinfo.reg_chan = cinfo->reg_chan; in ldc_register()
4666 ldcssp->cinfo.unreg_chan = cinfo->unreg_chan; in ldc_register()
4667 ldcssp->cinfo.add_intr = cinfo->add_intr; in ldc_register()
4668 ldcssp->cinfo.rem_intr = cinfo->rem_intr; in ldc_register()
4669 ldcssp->cinfo.clr_intr = cinfo->clr_intr; in ldc_register()
4672 ldcp = ldcssp->chan_list; in ldc_register()
4681 mutex_exit(&ldcssp->lock); in ldc_register()
4694 mutex_enter(&ldcssp->lock); in ldc_unregister()
4696 if (cinfo->dip != ldcssp->cinfo.dip) { in ldc_unregister()
4698 mutex_exit(&ldcssp->lock); in ldc_unregister()
4703 ldcssp->cinfo.dip = NULL; in ldc_unregister()
4704 ldcssp->cinfo.reg_chan = NULL; in ldc_unregister()
4705 ldcssp->cinfo.unreg_chan = NULL; in ldc_unregister()
4706 ldcssp->cinfo.add_intr = NULL; in ldc_unregister()
4707 ldcssp->cinfo.rem_intr = NULL; in ldc_unregister()
4708 ldcssp->cinfo.clr_intr = NULL; in ldc_unregister()
4710 mutex_exit(&ldcssp->lock); in ldc_unregister()
4752 if (ldcssp->mapin_size <= ldc_dring_direct_map_rsvd) { in ldc_info()
4757 avail = ldcssp->mapin_size - ldc_dring_direct_map_rsvd; in ldc_info()