• Home
  • Raw
  • Download

Lines Matching refs:new_slot

306 	struct pci_func *new_slot;  in cpqhp_save_config()  local
343 new_slot = cpqhp_slot_create(busnumber); in cpqhp_save_config()
344 if (new_slot == NULL) in cpqhp_save_config()
347 new_slot->bus = (u8) busnumber; in cpqhp_save_config()
348 new_slot->device = (u8) device; in cpqhp_save_config()
349 new_slot->function = 0; in cpqhp_save_config()
350 new_slot->is_a_board = 0; in cpqhp_save_config()
351 new_slot->presence_save = 0; in cpqhp_save_config()
352 new_slot->switch_save = 0; in cpqhp_save_config()
396 new_slot = cpqhp_slot_find(busnumber, device, index++); in cpqhp_save_config()
397 while (new_slot && in cpqhp_save_config()
398 (new_slot->function != (u8) function)) in cpqhp_save_config()
399 new_slot = cpqhp_slot_find(busnumber, device, index++); in cpqhp_save_config()
401 if (!new_slot) { in cpqhp_save_config()
403 new_slot = cpqhp_slot_create(busnumber); in cpqhp_save_config()
404 if (new_slot == NULL) in cpqhp_save_config()
408 new_slot->bus = (u8) busnumber; in cpqhp_save_config()
409 new_slot->device = (u8) device; in cpqhp_save_config()
410 new_slot->function = (u8) function; in cpqhp_save_config()
411 new_slot->is_a_board = 1; in cpqhp_save_config()
412 new_slot->switch_save = 0x10; in cpqhp_save_config()
414 new_slot->status = DevError; in cpqhp_save_config()
415 devfn = (new_slot->device << 3) | new_slot->function; in cpqhp_save_config()
416 new_slot->pci_dev = pci_get_domain_bus_and_slot(0, in cpqhp_save_config()
417 new_slot->bus, devfn); in cpqhp_save_config()
420 …dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(new_slot->config_space[clo… in cpqhp_save_config()
425 pci_dev_put(new_slot->pci_dev); in cpqhp_save_config()
466 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot) in cpqhp_save_slot_config() argument
481 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
482 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_slot_config()
487 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), 0x0B, &class_code); in cpqhp_save_slot_config()
488 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_HEADER_TYPE, &header_t… in cpqhp_save_slot_config()
498 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, … in cpqhp_save_slot_config()
508 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
512 new_slot->status = 0; in cpqhp_save_slot_config()
515 …bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) &( in cpqhp_save_slot_config()
525 …pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID… in cpqhp_save_slot_config()
530 … pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code); in cpqhp_save_slot_config()
531 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &h… in cpqhp_save_slot_config()