Lines Matching refs:pin
64 * Where A = pin 1, B = pin 2 and so on and pin=0 = default = A.
65 * Thus, each swizzle is ((pin-1) + (device#-4)) % 4
69 static inline int bridge_swizzle(int pin, unsigned int slot)
71 return (pin + slot) & 3;
79 int pin = *pinp;
81 if (pin == 0)
82 pin = 1;
84 pin -= 1;
86 pin = bridge_swizzle(pin, PCI_SLOT(dev->devfn));
92 *pinp = pin + 1;
102 * map the specified device/slot/pin to an IRQ. This works out such
103 * that slot 9 pin 1 is INT0, pin 2 is INT1, and slot 10 pin 1 is INT1.
105 static int __init integrator_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
107 int intnr = ((slot - 9) + (pin - 1)) & 3;