Lines Matching defs:rootnex_state

140 static rootnex_state_t *rootnex_state;
426 rootnex_state = NULL;
480 ASSERT(rootnex_state == NULL);
481 rootnex_state = kmem_zalloc(sizeof (rootnex_state_t), KM_SLEEP);
483 rootnex_state->r_dip = dip;
484 rootnex_state->r_err_ibc = (ddi_iblock_cookie_t)ipltospl(15);
485 rootnex_state->r_reserved_msg_printed = B_FALSE;
487 rootnex_cnt = &rootnex_state->r_counters[0];
498 ddi_fm_init(dip, &fmcap, &rootnex_state->r_err_ibc);
503 kmem_free(rootnex_state, sizeof (rootnex_state_t));
518 &rootnex_state->r_iommulib_handle);
565 rootnex_state->r_prealloc_cookies = rootnex_prealloc_cookies;
566 rootnex_state->r_prealloc_size =
567 (rootnex_state->r_prealloc_cookies * sizeof (ddi_dma_cookie_t)) +
577 rootnex_state->r_prealloc_size + 0x10;
578 rootnex_state->r_dmahdl_cache = kmem_cache_create("rootnex_dmahdl",
580 if (rootnex_state->r_dmahdl_cache == NULL) {
702 if (!rootnex_state->r_reserved_msg_printed) {
703 rootnex_state->r_reserved_msg_printed = B_TRUE;
1744 hp = kmem_cache_alloc(rootnex_state->r_dmahdl_cache, kmflag);
1903 &rootnex_state->r_dvma_call_list_id);
1931 kmem_cache_free(rootnex_state->r_dmahdl_cache, hp);
1957 if (rootnex_state->r_dvma_call_list_id)
1958 ddi_run_callback(&rootnex_state->r_dvma_call_list_id);
2106 if (sinfo->si_max_pages <= rootnex_state->r_prealloc_cookies) {
2295 &rootnex_state->r_dvma_call_list_id);
2384 if (rootnex_state->r_dvma_call_list_id)
2385 ddi_run_callback(&rootnex_state->r_dvma_call_list_id);
3662 rootnex_state->r_prealloc_size) {
3663 state_available = rootnex_state->r_prealloc_size;
3679 ASSERT(space_used <= rootnex_state->r_prealloc_size);
3680 state_available = rootnex_state->r_prealloc_size - space_used;
5035 *ibc = rootnex_state->r_err_ibc;