Lines Matching refs:state
248 static void tavor_check_iommu_bypass(tavor_state_t *state,
259 static void tavor_cfg_prop_lookup(tavor_state_t *state,
267 tavor_cfg_profile_init_phase1(tavor_state_t *state)
316 } else if (state->ts_cfg_profile_setting >= TAVOR_DDR_SIZE_256) {
328 } else if (state->ts_cfg_profile_setting == TAVOR_DDR_SIZE_128) {
340 } else if (state->ts_cfg_profile_setting == TAVOR_DDR_SIZE_MIN) {
384 state->ts_cfg_profile = cp;
395 tavor_cfg_profile_init_phase2(tavor_state_t *state)
402 cp = state->ts_cfg_profile;
411 ASSERT(state->ts_cfg_profile_setting != 0);
463 } else if (state->ts_cfg_profile_setting >= TAVOR_DDR_SIZE_256) {
501 } else if (state->ts_cfg_profile_setting == TAVOR_DDR_SIZE_128) {
539 } else if (state->ts_cfg_profile_setting == TAVOR_DDR_SIZE_MIN) {
590 tavor_check_iommu_bypass(state, cp);
610 tavor_cfg_prop_lookup(state, cp);
622 tavor_cfg_profile_fini(tavor_state_t *state)
629 kmem_free(state->ts_cfg_profile, sizeof (tavor_cfg_profile_t));
692 tavor_cfg_prop_lookup(tavor_state_t *state, tavor_cfg_profile_t *cp)
706 num_ports = ddi_prop_get_int(DDI_DEV_T_ANY, state->ts_dip,
723 status = ddi_prop_lookup_byte_array(DDI_DEV_T_ANY, state->ts_dip,
739 status = ddi_prop_lookup_byte_array(DDI_DEV_T_ANY, state->ts_dip,
755 state->ts_dip, DDI_PROP_DONTPASS, "port-2-guid", &datap,
765 status = ddi_prop_lookup_byte_array(DDI_DEV_T_ANY, state->ts_dip,
781 tavor_check_iommu_bypass(tavor_state_t *state, tavor_cfg_profile_t *cp)
801 status = ddi_dma_alloc_handle(state->ts_dip, &dma_attr,