Lines Matching refs:new_slot
304 struct pci_func *new_slot; in cpqhp_save_config() local
341 new_slot = cpqhp_slot_create(busnumber); in cpqhp_save_config()
342 if (new_slot == NULL) in cpqhp_save_config()
345 new_slot->bus = (u8) busnumber; in cpqhp_save_config()
346 new_slot->device = (u8) device; in cpqhp_save_config()
347 new_slot->function = 0; in cpqhp_save_config()
348 new_slot->is_a_board = 0; in cpqhp_save_config()
349 new_slot->presence_save = 0; in cpqhp_save_config()
350 new_slot->switch_save = 0; in cpqhp_save_config()
394 new_slot = cpqhp_slot_find(busnumber, device, index++); in cpqhp_save_config()
395 while (new_slot && in cpqhp_save_config()
396 (new_slot->function != (u8) function)) in cpqhp_save_config()
397 new_slot = cpqhp_slot_find(busnumber, device, index++); in cpqhp_save_config()
399 if (!new_slot) { in cpqhp_save_config()
401 new_slot = cpqhp_slot_create(busnumber); in cpqhp_save_config()
402 if (new_slot == NULL) in cpqhp_save_config()
406 new_slot->bus = (u8) busnumber; in cpqhp_save_config()
407 new_slot->device = (u8) device; in cpqhp_save_config()
408 new_slot->function = (u8) function; in cpqhp_save_config()
409 new_slot->is_a_board = 1; in cpqhp_save_config()
410 new_slot->switch_save = 0x10; in cpqhp_save_config()
412 new_slot->status = DevError; in cpqhp_save_config()
413 devfn = (new_slot->device << 3) | new_slot->function; in cpqhp_save_config()
414 new_slot->pci_dev = pci_get_domain_bus_and_slot(0, in cpqhp_save_config()
415 new_slot->bus, devfn); in cpqhp_save_config()
418 …dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(new_slot->config_space[clo… in cpqhp_save_config()
423 pci_dev_put(new_slot->pci_dev); in cpqhp_save_config()
464 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot) in cpqhp_save_slot_config() argument
479 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
480 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_slot_config()
485 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), 0x0B, &class_code); in cpqhp_save_slot_config()
486 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_HEADER_TYPE, &header_t… in cpqhp_save_slot_config()
496 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, … in cpqhp_save_slot_config()
506 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
510 new_slot->status = 0; in cpqhp_save_slot_config()
513 …bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) &(… in cpqhp_save_slot_config()
523 …pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID… in cpqhp_save_slot_config()
528 … pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code); in cpqhp_save_slot_config()
529 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &h… in cpqhp_save_slot_config()