Lines Matching refs:common_header
232 …struct pci_device_structure_header_t *common_header = (struct pci_device_structure_header_t *)kmal… in pci_read_header() local
233 common_header->bus = bus; in pci_read_header()
234 common_header->device = slot; in pci_read_header()
235 common_header->func = func; 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()
244 common_header->Command = tmp32 & 0xffff; in pci_read_header()
245 common_header->Status = (tmp32 >> 16) & 0xffff; 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()
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()
260 if (common_header->Vendor_ID == 0xffff) in pci_read_header()
263 kfree(common_header); in pci_read_header()
268 switch (common_header->HeaderType) in pci_read_header()
271 ret = common_header; in pci_read_header()
281 ret = common_header; in pci_read_header()
290 ret = common_header; in pci_read_header()
303 kfree(common_header); in pci_read_header()