Lines Matching refs:new_slot

305 	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()
413new_slot->pci_dev = pci_get_bus_and_slot(new_slot->bus, (new_slot->device << 3) | new_slot->functi… in cpqhp_save_config()
416 …word(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) & (new_slot-> config_space [c… in cpqhp_save_config()
421 pci_dev_put(new_slot->pci_dev); in cpqhp_save_config()
462 int cpqhp_save_slot_config (struct controller *ctrl, struct pci_func * new_slot) in cpqhp_save_slot_config() argument
477 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
478 pci_bus_read_config_dword (ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_slot_config()
483 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), 0x0B, &class_code); in cpqhp_save_slot_config()
484 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_HEADER_TYPE, &header_t… in cpqhp_save_slot_config()
494 …pci_bus_read_config_byte (ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS,… in cpqhp_save_slot_config()
504 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
508 new_slot->status = 0; in cpqhp_save_slot_config()
511 …us_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) & ( in cpqhp_save_slot_config()
521 …pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID… in cpqhp_save_slot_config()
526 … pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code); in cpqhp_save_slot_config()
527 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &h… in cpqhp_save_slot_config()