Lines Matching refs:subsys_dev
349 static unsigned int pci1xxxx_get_max_port(int subsys_dev) in pci1xxxx_get_max_port() argument
353 if (subsys_dev < ARRAY_SIZE(logical_to_physical_port_idx)) in pci1xxxx_get_max_port()
355 if (logical_to_physical_port_idx[subsys_dev][i] != -1) in pci1xxxx_get_max_port()
356 return logical_to_physical_port_idx[subsys_dev][i] + 1; in pci1xxxx_get_max_port()
359 if (subsys_dev == PCI_SUBDEVICE_ID_EFAR_PCI11414) in pci1xxxx_get_max_port()
365 static int pci1xxxx_logical_to_physical_port_translate(int subsys_dev, int port) in pci1xxxx_logical_to_physical_port_translate() argument
367 if (subsys_dev < ARRAY_SIZE(logical_to_physical_port_idx)) in pci1xxxx_logical_to_physical_port_translate()
368 return logical_to_physical_port_idx[subsys_dev][port]; in pci1xxxx_logical_to_physical_port_translate()
382 int subsys_dev; in pci1xxxx_serial_probe() local
404 subsys_dev = pdev->subsystem_device; in pci1xxxx_serial_probe()
405 max_vec_reqd = pci1xxxx_get_max_port(subsys_dev); in pci1xxxx_serial_probe()
424 port_idx = pci1xxxx_logical_to_physical_port_translate(subsys_dev, i); in pci1xxxx_serial_probe()