Lines Matching refs:tmp32
90 uint32_t tmp32; in pci_read_general_device_header() local
99 tmp32 = pci_read_config(bus, slot, func, 0x2c); in pci_read_general_device_header()
100 header->Subsystem_Vendor_ID = tmp32 & 0xffff; in pci_read_general_device_header()
101 header->Subsystem_ID = (tmp32 >> 16) & 0xffff; in pci_read_general_device_header()
105 tmp32 = pci_read_config(bus, slot, func, 0x34); in pci_read_general_device_header()
106 header->Capabilities_Pointer = tmp32 & 0xff; in pci_read_general_device_header()
107 header->reserved0 = (tmp32 >> 8) & 0xff; in pci_read_general_device_header()
108 header->reserved1 = (tmp32 >> 16) & 0xffff; in pci_read_general_device_header()
112 tmp32 = pci_read_config(bus, slot, func, 0x3c); in pci_read_general_device_header()
113 header->Interrupt_Line = tmp32 & 0xff; in pci_read_general_device_header()
114 header->Interrupt_PIN = (tmp32 >> 8) & 0xff; in pci_read_general_device_header()
115 header->Min_Grant = (tmp32 >> 16) & 0xff; in pci_read_general_device_header()
116 header->Max_Latency = (tmp32 >> 24) & 0xff; in pci_read_general_device_header()
129 uint32_t tmp32; in pci_read_pci_to_pci_bridge_header() local
133 tmp32 = pci_read_config(bus, slot, func, 0x18); in pci_read_pci_to_pci_bridge_header()
135 header->Primary_Bus_Number = tmp32 & 0xff; in pci_read_pci_to_pci_bridge_header()
136 header->Secondary_Bus_Number = (tmp32 >> 8) & 0xff; in pci_read_pci_to_pci_bridge_header()
137 header->Subordinate_Bus_Number = (tmp32 >> 16) & 0xff; in pci_read_pci_to_pci_bridge_header()
138 header->Secondary_Latency_Timer = (tmp32 >> 24) & 0xff; in pci_read_pci_to_pci_bridge_header()
140 tmp32 = pci_read_config(bus, slot, func, 0x1c); in pci_read_pci_to_pci_bridge_header()
141 header->io_base = tmp32 & 0xff; in pci_read_pci_to_pci_bridge_header()
142 header->io_limit = (tmp32 >> 8) & 0xff; in pci_read_pci_to_pci_bridge_header()
143 header->Secondary_Status = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_pci_bridge_header()
145 tmp32 = pci_read_config(bus, slot, func, 0x20); in pci_read_pci_to_pci_bridge_header()
146 header->Memory_Base = tmp32 & 0xffff; in pci_read_pci_to_pci_bridge_header()
147 header->Memory_Limit = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_pci_bridge_header()
149 tmp32 = pci_read_config(bus, slot, func, 0x24); in pci_read_pci_to_pci_bridge_header()
150 header->Prefetchable_Memory_Base = tmp32 & 0xffff; in pci_read_pci_to_pci_bridge_header()
151 header->Prefetchable_Memory_Limit = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_pci_bridge_header()
156 tmp32 = pci_read_config(bus, slot, func, 0x30); in pci_read_pci_to_pci_bridge_header()
157 header->io_Base_Upper_16_Bits = tmp32 & 0xffff; in pci_read_pci_to_pci_bridge_header()
158 header->io_Limit_Upper_16_Bits = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_pci_bridge_header()
160 tmp32 = pci_read_config(bus, slot, func, 0x34); in pci_read_pci_to_pci_bridge_header()
161 header->Capability_Pointer = tmp32 & 0xff; in pci_read_pci_to_pci_bridge_header()
162 header->reserved0 = (tmp32 >> 8) & 0xff; in pci_read_pci_to_pci_bridge_header()
163 header->reserved1 = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_pci_bridge_header()
167 tmp32 = pci_read_config(bus, slot, func, 0x3c); in pci_read_pci_to_pci_bridge_header()
168 header->Interrupt_Line = tmp32 & 0xff; in pci_read_pci_to_pci_bridge_header()
169 header->Interrupt_PIN = (tmp32 >> 8) & 0xff; in pci_read_pci_to_pci_bridge_header()
170 header->Bridge_Control = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_pci_bridge_header()
183 uint32_t tmp32; in pci_read_pci_to_cardbus_bridge_header() local
187 tmp32 = pci_read_config(bus, slot, func, 0x14); in pci_read_pci_to_cardbus_bridge_header()
188 header->Offset_of_capabilities_list = tmp32 & 0xff; in pci_read_pci_to_cardbus_bridge_header()
189 header->Reserved = (tmp32 >> 8) & 0xff; in pci_read_pci_to_cardbus_bridge_header()
190 header->Secondary_status = (tmp32 >> 16) & 0xff; in pci_read_pci_to_cardbus_bridge_header()
192 tmp32 = pci_read_config(bus, slot, func, 0x18); in pci_read_pci_to_cardbus_bridge_header()
193 header->PCI_bus_number = tmp32 & 0xff; in pci_read_pci_to_cardbus_bridge_header()
194 header->CardBus_bus_number = (tmp32 >> 8) & 0xff; in pci_read_pci_to_cardbus_bridge_header()
195 header->Subordinate_bus_number = (tmp32 >> 16) & 0xff; in pci_read_pci_to_cardbus_bridge_header()
196 header->CardBus_latency_timer = (tmp32 >> 24) & 0xff; in pci_read_pci_to_cardbus_bridge_header()
208 tmp32 = pci_read_config(bus, slot, func, 0x3c); in pci_read_pci_to_cardbus_bridge_header()
209 header->Interrupt_Line = tmp32 & 0xff; in pci_read_pci_to_cardbus_bridge_header()
210 header->Interrupt_PIN = (tmp32 >> 8) & 0xff; in pci_read_pci_to_cardbus_bridge_header()
211 header->Bridge_Control = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_cardbus_bridge_header()
213 tmp32 = pci_read_config(bus, slot, func, 0x40); in pci_read_pci_to_cardbus_bridge_header()
214 header->Subsystem_Device_ID = tmp32 & 0xffff; in pci_read_pci_to_cardbus_bridge_header()
215 header->Subsystem_Vendor_ID = (tmp32 >> 16) & 0xffff; in pci_read_pci_to_cardbus_bridge_header()
237 uint32_t tmp32; in pci_read_header() local
239 tmp32 = pci_read_config(bus, slot, func, 0x0); in pci_read_header()
240 common_header->Vendor_ID = tmp32 & 0xffff; in pci_read_header()
241 common_header->Device_ID = (tmp32 >> 16) & 0xffff; in pci_read_header()
243 tmp32 = pci_read_config(bus, slot, func, 0x4); in pci_read_header()
244 common_header->Command = tmp32 & 0xffff; in pci_read_header()
245 common_header->Status = (tmp32 >> 16) & 0xffff; in pci_read_header()
247 tmp32 = pci_read_config(bus, slot, func, 0x8); in pci_read_header()
248 common_header->RevisionID = tmp32 & 0xff; in pci_read_header()
249 common_header->ProgIF = (tmp32 >> 8) & 0xff; in pci_read_header()
250 common_header->SubClass = (tmp32 >> 16) & 0xff; in pci_read_header()
251 common_header->Class_code = (tmp32 >> 24) & 0xff; in pci_read_header()
253 tmp32 = pci_read_config(bus, slot, func, 0xc); in pci_read_header()
254 common_header->CacheLineSize = tmp32 & 0xff; in pci_read_header()
255 common_header->LatencyTimer = (tmp32 >> 8) & 0xff; in pci_read_header()
256 common_header->HeaderType = (tmp32 >> 16) & 0xff; in pci_read_header()
257 common_header->BIST = (tmp32 >> 24) & 0xff; in pci_read_header()