Lines Matching refs:pin
42 int pin; in rd88f5182_pci_preinit() local
47 pin = RD88F5182_PCI_SLOT0_IRQ_A_PIN; in rd88f5182_pci_preinit()
48 if (gpio_request(pin, "PCI IntA") == 0) { in rd88f5182_pci_preinit()
49 if (gpio_direction_input(pin) == 0) { in rd88f5182_pci_preinit()
50 irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); in rd88f5182_pci_preinit()
53 "set_irq_type pin %d\n", pin); in rd88f5182_pci_preinit()
54 gpio_free(pin); in rd88f5182_pci_preinit()
57 printk(KERN_ERR "rd88f5182_pci_preinit failed to request gpio %d\n", pin); in rd88f5182_pci_preinit()
60 pin = RD88F5182_PCI_SLOT0_IRQ_B_PIN; in rd88f5182_pci_preinit()
61 if (gpio_request(pin, "PCI IntB") == 0) { in rd88f5182_pci_preinit()
62 if (gpio_direction_input(pin) == 0) { in rd88f5182_pci_preinit()
63 irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); in rd88f5182_pci_preinit()
66 "set_irq_type pin %d\n", pin); in rd88f5182_pci_preinit()
67 gpio_free(pin); in rd88f5182_pci_preinit()
70 printk(KERN_ERR "rd88f5182_pci_preinit failed to gpio_request %d\n", pin); in rd88f5182_pci_preinit()
75 u8 pin) in rd88f5182_pci_map_irq() argument
82 irq = orion5x_pci_map_irq(dev, slot, pin); in rd88f5182_pci_map_irq()
91 if (pin == 1) in rd88f5182_pci_map_irq()