Lines Matching refs:rootnex_state
140 static rootnex_state_t *rootnex_state; variable
426 rootnex_state = NULL; in _init()
480 ASSERT(rootnex_state == NULL); in rootnex_attach()
481 rootnex_state = kmem_zalloc(sizeof (rootnex_state_t), KM_SLEEP); in rootnex_attach()
483 rootnex_state->r_dip = dip; in rootnex_attach()
484 rootnex_state->r_err_ibc = (ddi_iblock_cookie_t)ipltospl(15); in rootnex_attach()
485 rootnex_state->r_reserved_msg_printed = B_FALSE; in rootnex_attach()
487 rootnex_cnt = &rootnex_state->r_counters[0]; in rootnex_attach()
498 ddi_fm_init(dip, &fmcap, &rootnex_state->r_err_ibc); in rootnex_attach()
503 kmem_free(rootnex_state, sizeof (rootnex_state_t)); in rootnex_attach()
518 &rootnex_state->r_iommulib_handle); in rootnex_attach()
565 rootnex_state->r_prealloc_cookies = rootnex_prealloc_cookies; in rootnex_dma_init()
566 rootnex_state->r_prealloc_size = in rootnex_dma_init()
567 (rootnex_state->r_prealloc_cookies * sizeof (ddi_dma_cookie_t)) + in rootnex_dma_init()
577 rootnex_state->r_prealloc_size + 0x10; in rootnex_dma_init()
578 rootnex_state->r_dmahdl_cache = kmem_cache_create("rootnex_dmahdl", in rootnex_dma_init()
580 if (rootnex_state->r_dmahdl_cache == NULL) { in rootnex_dma_init()
702 if (!rootnex_state->r_reserved_msg_printed) { in rootnex_ctlops()
703 rootnex_state->r_reserved_msg_printed = B_TRUE; in rootnex_ctlops()
1739 hp = kmem_cache_alloc(rootnex_state->r_dmahdl_cache, kmflag); in rootnex_coredma_allochdl()
1898 &rootnex_state->r_dvma_call_list_id); in rootnex_dma_allochdl()
1926 kmem_cache_free(rootnex_state->r_dmahdl_cache, hp); in rootnex_coredma_freehdl()
1952 if (rootnex_state->r_dvma_call_list_id) in rootnex_dma_freehdl()
1953 ddi_run_callback(&rootnex_state->r_dvma_call_list_id); in rootnex_dma_freehdl()
2101 if (sinfo->si_max_pages <= rootnex_state->r_prealloc_cookies) { in rootnex_coredma_bindhdl()
2290 &rootnex_state->r_dvma_call_list_id); in rootnex_dma_bindhdl()
2379 if (rootnex_state->r_dvma_call_list_id) in rootnex_dma_unbindhdl()
2380 ddi_run_callback(&rootnex_state->r_dvma_call_list_id); in rootnex_dma_unbindhdl()
3657 rootnex_state->r_prealloc_size) { in rootnex_setup_windows()
3658 state_available = rootnex_state->r_prealloc_size; in rootnex_setup_windows()
3674 ASSERT(space_used <= rootnex_state->r_prealloc_size); in rootnex_setup_windows()
3675 state_available = rootnex_state->r_prealloc_size - space_used; in rootnex_setup_windows()
5030 *ibc = rootnex_state->r_err_ibc; in rootnex_fm_init()