Lines Matching refs:st

458 	agp_target_softstate_t *st;
466 st = ddi_get_soft_state(agptarget_glob_soft_handle, instance);
467 if (st != NULL) {
468 mutex_enter(&st->tsoft_lock);
469 *resultp = st->tsoft_dip;
470 mutex_exit(&st->tsoft_lock);
630 agp_target_softstate_t *st;
638 st = GETSOFTC(instance);
640 if (st == NULL)
643 mutex_enter(&st->tsoft_lock);
650 if (is_intel_br(st))
652 else if (is_64bit_aper(st))
660 mutex_exit(&st->tsoft_lock);
670 if (!is_intel_br(st)) {
671 mutex_exit(&st->tsoft_lock);
675 prealloc_size = i8xx_biosmem_detect(st);
678 mutex_exit(&st->tsoft_lock);
690 ASSERT(st->tsoft_acaptr);
692 cap = st->tsoft_acaptr;
693 value = pci_config_get32(st->tsoft_pcihdl, cap);
696 info.iagp_devid = st->tsoft_devid;
697 info.iagp_mode = pci_config_get32(st->tsoft_pcihdl,
699 info.iagp_aperbase = agp_target_get_apbase(st);
700 info.iagp_apersize = agp_target_get_apsize(st);
704 mutex_exit(&st->tsoft_lock);
724 mutex_exit(&st->tsoft_lock);
728 agp_target_set_gartaddr(st, gartaddr);
737 mutex_exit(&st->tsoft_lock);
741 ASSERT(st->tsoft_acaptr);
743 pci_config_put32(st->tsoft_pcihdl,
744 st->tsoft_acaptr + AGP_CONF_COMMAND,
753 ASSERT(st->tsoft_acaptr);
755 value = pci_config_get16(st->tsoft_pcihdl,
756 st->tsoft_acaptr + AGP_CONF_CONTROL);
758 pci_config_put16(st->tsoft_pcihdl,
759 st->tsoft_acaptr + AGP_CONF_CONTROL, value);
761 pci_config_put16(st->tsoft_pcihdl,
762 st->tsoft_acaptr + AGP_CONF_CONTROL, value);
770 ASSERT(st->tsoft_acaptr);
780 if (is_intel_br(st)) {
781 value = pci_config_get8(st->tsoft_pcihdl,
782 st->tsoft_acaptr + AGP_CONF_MISC);
784 pci_config_put8(st->tsoft_pcihdl,
785 st->tsoft_acaptr + AGP_CONF_MISC, value);
795 ASSERT(st->tsoft_acaptr);
797 pci_config_put16(st->tsoft_pcihdl,
798 st->tsoft_acaptr + AGP_CONF_CONTROL, 0x0);
800 if (is_intel_br(st)) {
801 value2 = pci_config_get8(st->tsoft_pcihdl,
802 st->tsoft_acaptr + AGP_CONF_MISC);
804 pci_config_put8(st->tsoft_pcihdl,
805 st->tsoft_acaptr + AGP_CONF_MISC, value2);
808 value1 = pci_config_get32(st->tsoft_pcihdl,
809 st->tsoft_acaptr + AGP_CONF_COMMAND);
811 pci_config_put32(st->tsoft_pcihdl,
812 st->tsoft_acaptr + AGP_CONF_COMMAND,
815 pci_config_put32(st->tsoft_pcihdl,
816 st->tsoft_acaptr + AGP_CONF_ATTBASE, 0x0);
826 mutex_exit(&st->tsoft_lock);
830 mutex_exit(&st->tsoft_lock);
840 agp_target_softstate_t *st;
845 st = GETSOFTC(instance);
847 if (st == NULL)
858 agp_target_softstate_t *st;
860 st = GETSOFTC(instance);
862 if (st == NULL)