Lines Matching refs:statep
883 struct simba_cfg_state *statep; in simba_save_config_regs() local
900 for (statep = simba_p->simba_config_state_p, in simba_save_config_regs()
934 statep->dip = dip; in simba_save_config_regs()
935 statep->command = pci_config_get16(ch, PCI_CONF_COMM); in simba_save_config_regs()
936 statep->header_type = pci_config_get8(ch, PCI_CONF_HEADER); in simba_save_config_regs()
937 if ((statep->header_type & PCI_HEADER_TYPE_M) == PCI_HEADER_ONE) in simba_save_config_regs()
938 statep->bridge_control = in simba_save_config_regs()
940 statep->cache_line_size = in simba_save_config_regs()
942 statep->latency_timer = in simba_save_config_regs()
944 if ((statep->header_type & PCI_HEADER_TYPE_M) == PCI_HEADER_ONE) in simba_save_config_regs()
945 statep->sec_latency_timer = in simba_save_config_regs()
953 statep->bus_number = in simba_save_config_regs()
955 statep->sec_bus_number = in simba_save_config_regs()
957 statep->sub_bus_number = in simba_save_config_regs()
959 statep->bridge_control = in simba_save_config_regs()
963 statep++; in simba_save_config_regs()
984 struct simba_cfg_state *statep = simba_p->simba_config_state_p; in simba_restore_config_regs() local
988 for (i = 0; i < simba_p->config_state_index; i++, statep++) { in simba_restore_config_regs()
989 dip = statep->dip; in simba_restore_config_regs()
1014 pci_config_put16(ch, PCI_CONF_COMM, statep->command); in simba_restore_config_regs()
1015 if ((statep->header_type & PCI_HEADER_TYPE_M) == PCI_HEADER_ONE) in simba_restore_config_regs()
1017 statep->bridge_control); in simba_restore_config_regs()
1024 statep->bus_number); in simba_restore_config_regs()
1026 statep->sec_bus_number); in simba_restore_config_regs()
1028 statep->sub_bus_number); in simba_restore_config_regs()
1030 statep->bridge_control); in simba_restore_config_regs()
1034 statep->cache_line_size); in simba_restore_config_regs()
1036 statep->latency_timer); in simba_restore_config_regs()
1037 if ((statep->header_type & PCI_HEADER_TYPE_M) == PCI_HEADER_ONE) in simba_restore_config_regs()
1039 statep->sec_latency_timer); in simba_restore_config_regs()