host-drivers/base-driver/vca/plx87xx/plx_hw.c
static struct pci_dev *
plx_find_root_port(struct pci_dev *pdev)
{
	for (pdev = pdev->bus->self;
		pdev && (pci_pcie_type(pdev) != PCI_EXP_TYPE_ROOT_PORT);
		pdev = pdev->bus->self)
		;
	return pdev;
}
/*
 * plx_find_root_port - find root port which plx chip connects to
 *
 * @pdev: The PCIe device
 *
 * RETURNS: struct pci_dev *, NULL on don't find a root port device which will
 *          never happen.
 */
find root port which plx chip connects to
@pdev: The PCIe device

struct pci_dev *, NULL on don't find a root port device which will
never happen.
find root port which plx chip connects to @pdev : The PCIe device struct pci_dev * NULL on don ' t find a root port device which will never happen .
static struct pci_dev *
plx_find_root_port(struct pci_dev *pdev)
{
	for (pdev = pdev->bus->self;
		pdev && (pci_pcie_type(pdev) != PCI_EXP_TYPE_ROOT_PORT);
		pdev = pdev->bus->self)
		;
	return pdev;
}
static struct pci_dev * plx_find_root_port ( struct pci_dev * pdev ) { for ( pdev = pdev -> bus -> self ; pdev && ( pci_pcie_type ( pdev ) != PCI_EXP_TYPE_ROOT_PORT ) ; pdev = pdev -> bus -> self ) ; return pdev ; }
plx_find_root_port - find root port which plx chip connects to
 @pdev: The PCIe device
plx_find_root_port - find root port which plx chip connects to @pdev : The PCIe device