dev = pci_find_slot(bus, PCI_DEVFN(device, function)); 
dev = pci_get_slot(pci_bus, PCI_DEVFN(device, function)); 
find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv){	acpi_status status;	acpi_handle dummy_handle;	unsigned long *segbus = context;	unsigned long tmp;	int seg, bus, device, function;	struct pci_dev *dev;	/* get PCI address */	seg = (*segbus >> 8) & 0xff;	bus = *segbus & 0xff;	status = acpi_get_handle(handle, "_ADR", &dummy_handle);	if (ACPI_FAILURE(status))		return AE_OK;		/* continue */	status = acpi_evaluate_integer(handle, "_ADR", NULL, &tmp);	if (ACPI_FAILURE(status)) {		dbg("%s: _ADR evaluation failure\n", __FUNCTION__);		return AE_OK;	}	device = (tmp >> 16) & 0xffff;	function = tmp & 0xffff;	dev = pci_find_slot(bus, PCI_DEVFN(device, function));	if (!dev)		return AE_OK;	if (!dev->subordinate)		return AE_OK;	/* check if this bridge has ejectable slots */	if (detect_ejectable_slots(handle) > 0) {		dbg("found PCI-to-PCI bridge at PCI %s\n", pci_name(dev));		add_p2p_bridge(handle, seg, bus, device, function);	}	return AE_OK;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/42f49a6ae5dca90cd0594475502bf1c43ff1dc07/acpiphp_glue.c/buggy/drivers/pci/hotplug/acpiphp_glue.c