pin 121 arch/alpha/kernel/pci_impl.h if (slot >= min_idsel && slot <= max_idsel && pin < irqs_per_slot) \ pin 122 arch/alpha/kernel/pci_impl.h _ctl_ = irq_tab[slot - min_idsel][pin]; \ pin 186 arch/alpha/kernel/sys_alcor.c alcor_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 178 arch/alpha/kernel/sys_cabriolet.c eb66p_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 208 arch/alpha/kernel/sys_cabriolet.c cabriolet_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 292 arch/alpha/kernel/sys_cabriolet.c alphapc164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 377 arch/alpha/kernel/sys_dp264.c dp264_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 399 arch/alpha/kernel/sys_dp264.c monet_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 431 arch/alpha/kernel/sys_dp264.c int slot, pin = *pinp; pin 448 arch/alpha/kernel/sys_dp264.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 456 arch/alpha/kernel/sys_dp264.c *pinp = pin; pin 461 arch/alpha/kernel/sys_dp264.c webbrick_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 483 arch/alpha/kernel/sys_dp264.c clipper_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 172 arch/alpha/kernel/sys_eb64p.c eb64p_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 146 arch/alpha/kernel/sys_eiger.c eiger_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 166 arch/alpha/kernel/sys_eiger.c int slot, pin = *pinp; pin 191 arch/alpha/kernel/sys_eiger.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 196 arch/alpha/kernel/sys_eiger.c *pinp = pin; pin 320 arch/alpha/kernel/sys_marvel.c marvel_map_irq(const struct pci_dev *cdev, u8 slot, u8 pin) pin 154 arch/alpha/kernel/sys_miata.c miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 203 arch/alpha/kernel/sys_miata.c int slot, pin = *pinp; pin 222 arch/alpha/kernel/sys_miata.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 230 arch/alpha/kernel/sys_miata.c *pinp = pin; pin 150 arch/alpha/kernel/sys_mikasa.c mikasa_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 67 arch/alpha/kernel/sys_nautilus.c nautilus_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 75 arch/alpha/kernel/sys_nautilus.c if (slot == 1 && pin == 2 && pin 198 arch/alpha/kernel/sys_noritake.c noritake_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 228 arch/alpha/kernel/sys_noritake.c int slot, pin = *pinp; pin 245 arch/alpha/kernel/sys_noritake.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 253 arch/alpha/kernel/sys_noritake.c *pinp = pin; pin 226 arch/alpha/kernel/sys_rawhide.c rawhide_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 122 arch/alpha/kernel/sys_ruffian.c ruffian_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 146 arch/alpha/kernel/sys_ruffian.c int slot, pin = *pinp; pin 163 arch/alpha/kernel/sys_ruffian.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 171 arch/alpha/kernel/sys_ruffian.c *pinp = pin; pin 147 arch/alpha/kernel/sys_rx164.c rx164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 197 arch/alpha/kernel/sys_sable.c sable_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 379 arch/alpha/kernel/sys_sable.c lynx_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 411 arch/alpha/kernel/sys_sable.c int slot, pin = *pinp; pin 428 arch/alpha/kernel/sys_sable.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 436 arch/alpha/kernel/sys_sable.c *pinp = pin; pin 165 arch/alpha/kernel/sys_sio.c noname_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 211 arch/alpha/kernel/sys_sio.c p2k_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 99 arch/alpha/kernel/sys_sx164.c sx164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 160 arch/alpha/kernel/sys_takara.c takara_map_irq_srm(const struct pci_dev *dev, u8 slot, u8 pin) pin 191 arch/alpha/kernel/sys_takara.c takara_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 218 arch/alpha/kernel/sys_takara.c int pin = *pinp; pin 230 arch/alpha/kernel/sys_takara.c if (pin == 1) pin 231 arch/alpha/kernel/sys_takara.c pin += (20 - busslot); pin 242 arch/alpha/kernel/sys_takara.c *pinp = pin; pin 308 arch/alpha/kernel/sys_titan.c titan_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 293 arch/alpha/kernel/sys_wildfire.c wildfire_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 145 arch/arm/common/it8152.c int __init it8152_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 112 arch/arm/include/asm/hardware/it8152.h extern int it8152_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 29 arch/arm/include/asm/mach/pci.h u8 (*swizzle)(struct pci_dev *dev, u8 *pin); pin 30 arch/arm/include/asm/mach/pci.h int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); pin 379 arch/arm/kernel/bios32.c static u8 pcibios_swizzle(struct pci_dev *dev, u8 *pin) pin 382 arch/arm/kernel/bios32.c int slot, oldpin = *pin; pin 385 arch/arm/kernel/bios32.c slot = sys->swizzle(dev, pin); pin 387 arch/arm/kernel/bios32.c slot = pci_common_swizzle(dev, pin); pin 391 arch/arm/kernel/bios32.c pci_name(dev), oldpin, *pin, slot); pin 399 arch/arm/kernel/bios32.c static int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 405 arch/arm/kernel/bios32.c irq = sys->map_irq(dev, slot, pin); pin 409 arch/arm/kernel/bios32.c pci_name(dev), slot, pin, irq); pin 128 arch/arm/mach-cns3xxx/pcie.c static int cns3xxx_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 135 arch/arm/mach-cns3xxx/pcie.c PCI_FUNC(dev->devfn), slot, pin, irq); pin 174 arch/arm/mach-dove/pcie.c static int __init dove_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 20 arch/arm/mach-footbridge/cats-pci.c static u8 cats_no_swizzle(struct pci_dev *dev, u8 *pin) pin 25 arch/arm/mach-footbridge/cats-pci.c static int __init cats_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 19 arch/arm/mach-footbridge/ebsa285-pci.c static int __init ebsa285_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 29 arch/arm/mach-footbridge/ebsa285-pci.c return irqmap_ebsa285[(slot + pin) & 3]; pin 21 arch/arm/mach-footbridge/netwinder-pci.c static int __init netwinder_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 23 arch/arm/mach-footbridge/personal-pci.c u8 pin) pin 58 arch/arm/mach-imx/iomux-imx31.c void mxc_iomux_set_pad(enum iomux_pins pin, u32 config) pin 63 arch/arm/mach-imx/iomux-imx31.c pin &= IOMUX_PADNUM_MASK; pin 64 arch/arm/mach-imx/iomux-imx31.c reg = IOMUXSW_PAD_CTL + (pin + 2) / 3 * 4; pin 65 arch/arm/mach-imx/iomux-imx31.c field = (pin + 2) % 3; pin 68 arch/arm/mach-imx/iomux-imx31.c __func__, (pin + 2) / 3, field); pin 85 arch/arm/mach-imx/iomux-imx31.c int mxc_iomux_alloc_pin(unsigned int pin, const char *label) pin 87 arch/arm/mach-imx/iomux-imx31.c unsigned pad = pin & IOMUX_PADNUM_MASK; pin 100 arch/arm/mach-imx/iomux-imx31.c mxc_iomux_mode(pin); pin 125 arch/arm/mach-imx/iomux-imx31.c void mxc_iomux_release_pin(unsigned int pin) pin 127 arch/arm/mach-imx/iomux-imx31.c unsigned pad = pin & IOMUX_PADNUM_MASK; pin 102 arch/arm/mach-imx/iomux-mx3.h int mxc_iomux_alloc_pin(unsigned int pin, const char *label); pin 116 arch/arm/mach-imx/iomux-mx3.h void mxc_iomux_release_pin(unsigned int pin); pin 146 arch/arm/mach-imx/iomux-mx3.h #define IOMUX_MODE(pin, mode) (pin | mode << IOMUX_MODE_SHIFT) pin 48 arch/arm/mach-imx/iomux-v1.c unsigned int port, unsigned int pin, int on) pin 50 arch/arm/mach-imx/iomux-v1.c unsigned long mask = 1 << pin; pin 56 arch/arm/mach-imx/iomux-v1.c unsigned int port, unsigned int pin, int out) pin 58 arch/arm/mach-imx/iomux-v1.c unsigned long mask = 1 << pin; pin 64 arch/arm/mach-imx/iomux-v1.c unsigned int port, unsigned int pin, int af) pin 66 arch/arm/mach-imx/iomux-v1.c unsigned long mask = 1 << pin; pin 72 arch/arm/mach-imx/iomux-v1.c unsigned int port, unsigned int pin, int inuse) pin 74 arch/arm/mach-imx/iomux-v1.c unsigned long mask = 1 << pin; pin 80 arch/arm/mach-imx/iomux-v1.c unsigned int port, unsigned int pin, unsigned int ocr) pin 82 arch/arm/mach-imx/iomux-v1.c unsigned long shift = (pin & 0xf) << 1; pin 85 arch/arm/mach-imx/iomux-v1.c unsigned long offset = pin < 16 ? MXC_OCR1(port) : MXC_OCR2(port); pin 91 arch/arm/mach-imx/iomux-v1.c unsigned int port, unsigned int pin, unsigned int aout) pin 93 arch/arm/mach-imx/iomux-v1.c unsigned long shift = (pin & 0xf) << 1; pin 96 arch/arm/mach-imx/iomux-v1.c unsigned long offset = pin < 16 ? MXC_ICONFA1(port) : MXC_ICONFA2(port); pin 102 arch/arm/mach-imx/iomux-v1.c unsigned int port, unsigned int pin, unsigned int bout) pin 104 arch/arm/mach-imx/iomux-v1.c unsigned long shift = (pin & 0xf) << 1; pin 107 arch/arm/mach-imx/iomux-v1.c unsigned long offset = pin < 16 ? MXC_ICONFB1(port) : MXC_ICONFB2(port); pin 114 arch/arm/mach-imx/iomux-v1.c unsigned int pin = gpio_mode & GPIO_PIN_MASK; pin 124 arch/arm/mach-imx/iomux-v1.c imx_iomuxv1_set_puen(port, pin, gpio_mode & GPIO_PUEN); pin 127 arch/arm/mach-imx/iomux-v1.c imx_iomuxv1_set_ddir(port, pin, gpio_mode & GPIO_OUT); pin 130 arch/arm/mach-imx/iomux-v1.c imx_iomuxv1_set_gpr(port, pin, gpio_mode & GPIO_AF); pin 133 arch/arm/mach-imx/iomux-v1.c imx_iomuxv1_set_gius(port, pin, !(gpio_mode & (GPIO_PF | GPIO_AF))); pin 135 arch/arm/mach-imx/iomux-v1.c imx_iomuxv1_set_ocr(port, pin, ocr); pin 137 arch/arm/mach-imx/iomux-v1.c imx_iomuxv1_set_iconfa(port, pin, aout); pin 139 arch/arm/mach-imx/iomux-v1.c imx_iomuxv1_set_iconfb(port, pin, bout); pin 80 arch/arm/mach-iop32x/em7210.c em7210_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 95 arch/arm/mach-iop32x/em7210.c if (pin < 1 || pin > 4) pin 98 arch/arm/mach-iop32x/em7210.c return pci_irq_table[slot % 6][pin - 1]; pin 75 arch/arm/mach-iop32x/glantank.c glantank_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 88 arch/arm/mach-iop32x/glantank.c BUG_ON(pin < 1 || pin > 4); pin 90 arch/arm/mach-iop32x/glantank.c return pci_irq_table[slot % 4][pin - 1]; pin 101 arch/arm/mach-iop32x/iq31244.c ep80219_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 136 arch/arm/mach-iop32x/iq31244.c iq31244_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 69 arch/arm/mach-iop32x/iq80321.c iq80321_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 73 arch/arm/mach-iop32x/iq80321.c if ((slot == 2 || slot == 6) && pin == 1) { pin 76 arch/arm/mach-iop32x/iq80321.c } else if ((slot == 2 || slot == 6) && pin == 2) { pin 79 arch/arm/mach-iop32x/iq80321.c } else if ((slot == 2 || slot == 6) && pin == 3) { pin 82 arch/arm/mach-iop32x/iq80321.c } else if ((slot == 2 || slot == 6) && pin == 4) { pin 76 arch/arm/mach-iop32x/n2100.c static int n2100_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 89 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 4 && pin == 1) { pin 92 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 4 && pin == 2) { pin 95 arch/arm/mach-iop32x/n2100.c } else if (PCI_SLOT(dev->devfn) == 4 && pin == 3) { pin 47 arch/arm/mach-ixp4xx/avila-pci.c static int __init avila_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 58 arch/arm/mach-ixp4xx/avila-pci.c pin >= 1 && pin <= IRQ_LINES) pin 59 arch/arm/mach-ixp4xx/avila-pci.c return pci_irq_table[(slot + pin - 2) % 4]; pin 38 arch/arm/mach-ixp4xx/coyote-pci.c static int __init coyote_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 45 arch/arm/mach-ixp4xx/dsmg600-pci.c static int __init dsmg600_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 55 arch/arm/mach-ixp4xx/dsmg600-pci.c if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) pin 56 arch/arm/mach-ixp4xx/dsmg600-pci.c return pci_irq_table[slot - 1][pin - 1]; pin 39 arch/arm/mach-ixp4xx/fsg-pci.c static int __init fsg_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 50 arch/arm/mach-ixp4xx/fsg-pci.c if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) pin 53 arch/arm/mach-ixp4xx/fsg-pci.c __func__, slot, pin, irq); pin 37 arch/arm/mach-ixp4xx/gateway7001-pci.c u8 pin) pin 465 arch/arm/mach-ixp4xx/goramo_mlr.c static int __init gmlr_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 40 arch/arm/mach-ixp4xx/gtwx5715-pci.c static int __init gtwx5715_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 44 arch/arm/mach-ixp4xx/gtwx5715-pci.c if ((slot == SLOT0_DEVID && pin == 1) || pin 45 arch/arm/mach-ixp4xx/gtwx5715-pci.c (slot == SLOT1_DEVID && pin == 2)) pin 47 arch/arm/mach-ixp4xx/gtwx5715-pci.c else if ((slot == SLOT0_DEVID && pin == 2) || pin 48 arch/arm/mach-ixp4xx/gtwx5715-pci.c (slot == SLOT1_DEVID && pin == 1)) pin 52 arch/arm/mach-ixp4xx/gtwx5715-pci.c __func__, slot, pin, rc); pin 44 arch/arm/mach-ixp4xx/ixdp425-pci.c static int __init ixdp425_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 53 arch/arm/mach-ixp4xx/ixdp425-pci.c if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) pin 54 arch/arm/mach-ixp4xx/ixdp425-pci.c return pci_irq_table[(slot + pin - 2) % 4]; pin 32 arch/arm/mach-ixp4xx/ixdpg425-pci.c static int __init ixdpg425_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 45 arch/arm/mach-ixp4xx/miccpt-pci.c static int __init miccpt_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 54 arch/arm/mach-ixp4xx/miccpt-pci.c if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) pin 55 arch/arm/mach-ixp4xx/miccpt-pci.c return pci_irq_table[(slot + pin - 2) % 4]; pin 42 arch/arm/mach-ixp4xx/nas100d-pci.c static int __init nas100d_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 51 arch/arm/mach-ixp4xx/nas100d-pci.c if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) pin 52 arch/arm/mach-ixp4xx/nas100d-pci.c return pci_irq_table[slot - 1][pin - 1]; pin 39 arch/arm/mach-ixp4xx/nslu2-pci.c static int __init nslu2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 47 arch/arm/mach-ixp4xx/nslu2-pci.c if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES) pin 48 arch/arm/mach-ixp4xx/nslu2-pci.c return pci_irq_table[(slot + pin - 2) % IRQ_LINES]; pin 44 arch/arm/mach-ixp4xx/vulcan-pci.c static int __init vulcan_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 36 arch/arm/mach-ixp4xx/wg302v2-pci.c static int __init wg302v2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 15 arch/arm/mach-mmp/mfp-pxa168.h #define MFP_CFG(pin, af) \ pin 16 arch/arm/mach-mmp/mfp-pxa168.h (MFP_LPM_INPUT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_MEDIUM) pin 18 arch/arm/mach-mmp/mfp-pxa168.h #define MFP_CFG_DRV(pin, af, drv) \ pin 19 arch/arm/mach-mmp/mfp-pxa168.h (MFP_LPM_INPUT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_##drv) pin 29 arch/arm/mach-mmp/mfp.h #define MFP_CFG(pin, af) \ pin 30 arch/arm/mach-mmp/mfp.h (MFP_LPM_FLOAT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_MEDIUM) pin 32 arch/arm/mach-mmp/mfp.h #define MFP_CFG_DRV(pin, af, drv) \ pin 33 arch/arm/mach-mmp/mfp.h (MFP_LPM_FLOAT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_##drv) pin 216 arch/arm/mach-mv78xx0/pcie.c u8 pin) pin 27 arch/arm/mach-orion5x/board-mss2.c static int __init mss2_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 34 arch/arm/mach-orion5x/board-mss2.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 42 arch/arm/mach-orion5x/board-rd88f5182.c int pin; pin 47 arch/arm/mach-orion5x/board-rd88f5182.c pin = RD88F5182_PCI_SLOT0_IRQ_A_PIN; pin 48 arch/arm/mach-orion5x/board-rd88f5182.c if (gpio_request(pin, "PCI IntA") == 0) { pin 49 arch/arm/mach-orion5x/board-rd88f5182.c if (gpio_direction_input(pin) == 0) { pin 50 arch/arm/mach-orion5x/board-rd88f5182.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 53 arch/arm/mach-orion5x/board-rd88f5182.c "set_irq_type pin %d\n", pin); pin 54 arch/arm/mach-orion5x/board-rd88f5182.c gpio_free(pin); pin 57 arch/arm/mach-orion5x/board-rd88f5182.c printk(KERN_ERR "rd88f5182_pci_preinit failed to request gpio %d\n", pin); pin 60 arch/arm/mach-orion5x/board-rd88f5182.c pin = RD88F5182_PCI_SLOT0_IRQ_B_PIN; pin 61 arch/arm/mach-orion5x/board-rd88f5182.c if (gpio_request(pin, "PCI IntB") == 0) { pin 62 arch/arm/mach-orion5x/board-rd88f5182.c if (gpio_direction_input(pin) == 0) { pin 63 arch/arm/mach-orion5x/board-rd88f5182.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 66 arch/arm/mach-orion5x/board-rd88f5182.c "set_irq_type pin %d\n", pin); pin 67 arch/arm/mach-orion5x/board-rd88f5182.c gpio_free(pin); pin 70 arch/arm/mach-orion5x/board-rd88f5182.c printk(KERN_ERR "rd88f5182_pci_preinit failed to gpio_request %d\n", pin); pin 75 arch/arm/mach-orion5x/board-rd88f5182.c u8 pin) pin 82 arch/arm/mach-orion5x/board-rd88f5182.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 91 arch/arm/mach-orion5x/board-rd88f5182.c if (pin == 1) pin 67 arch/arm/mach-orion5x/common.h int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 207 arch/arm/mach-orion5x/db88f5281-setup.c int pin; pin 212 arch/arm/mach-orion5x/db88f5281-setup.c pin = DB88F5281_PCI_SLOT0_IRQ_PIN; pin 213 arch/arm/mach-orion5x/db88f5281-setup.c if (gpio_request(pin, "PCI Int1") == 0) { pin 214 arch/arm/mach-orion5x/db88f5281-setup.c if (gpio_direction_input(pin) == 0) { pin 215 arch/arm/mach-orion5x/db88f5281-setup.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 218 arch/arm/mach-orion5x/db88f5281-setup.c "set_irq_type pin %d\n", pin); pin 219 arch/arm/mach-orion5x/db88f5281-setup.c gpio_free(pin); pin 222 arch/arm/mach-orion5x/db88f5281-setup.c printk(KERN_ERR "db88f5281_pci_preinit failed to gpio_request %d\n", pin); pin 225 arch/arm/mach-orion5x/db88f5281-setup.c pin = DB88F5281_PCI_SLOT1_SLOT2_IRQ_PIN; pin 226 arch/arm/mach-orion5x/db88f5281-setup.c if (gpio_request(pin, "PCI Int2") == 0) { pin 227 arch/arm/mach-orion5x/db88f5281-setup.c if (gpio_direction_input(pin) == 0) { pin 228 arch/arm/mach-orion5x/db88f5281-setup.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 231 arch/arm/mach-orion5x/db88f5281-setup.c "to set_irq_type pin %d\n", pin); pin 232 arch/arm/mach-orion5x/db88f5281-setup.c gpio_free(pin); pin 235 arch/arm/mach-orion5x/db88f5281-setup.c printk(KERN_ERR "db88f5281_pci_preinit failed to gpio_request %d\n", pin); pin 240 arch/arm/mach-orion5x/db88f5281-setup.c u8 pin) pin 247 arch/arm/mach-orion5x/db88f5281-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 74 arch/arm/mach-orion5x/dns323-setup.c static int __init dns323_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 81 arch/arm/mach-orion5x/dns323-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 122 arch/arm/mach-orion5x/kurobox_pro-setup.c u8 pin) pin 129 arch/arm/mach-orion5x/kurobox_pro-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 581 arch/arm/mach-orion5x/pci.c int __init orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 129 arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c rd88f5181l_fxo_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 136 arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 137 arch/arm/mach-orion5x/rd88f5181l-ge-setup.c rd88f5181l_ge_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 144 arch/arm/mach-orion5x/rd88f5181l-ge-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 151 arch/arm/mach-orion5x/rd88f5181l-ge-setup.c if (pin == 1) pin 113 arch/arm/mach-orion5x/rd88f5182-setup.c int pin; pin 118 arch/arm/mach-orion5x/rd88f5182-setup.c pin = RD88F5182_PCI_SLOT0_IRQ_A_PIN; pin 119 arch/arm/mach-orion5x/rd88f5182-setup.c if (gpio_request(pin, "PCI IntA") == 0) { pin 120 arch/arm/mach-orion5x/rd88f5182-setup.c if (gpio_direction_input(pin) == 0) { pin 121 arch/arm/mach-orion5x/rd88f5182-setup.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 124 arch/arm/mach-orion5x/rd88f5182-setup.c "set_irq_type pin %d\n", pin); pin 125 arch/arm/mach-orion5x/rd88f5182-setup.c gpio_free(pin); pin 128 arch/arm/mach-orion5x/rd88f5182-setup.c printk(KERN_ERR "rd88f5182_pci_preinit failed to request gpio %d\n", pin); pin 131 arch/arm/mach-orion5x/rd88f5182-setup.c pin = RD88F5182_PCI_SLOT0_IRQ_B_PIN; pin 132 arch/arm/mach-orion5x/rd88f5182-setup.c if (gpio_request(pin, "PCI IntB") == 0) { pin 133 arch/arm/mach-orion5x/rd88f5182-setup.c if (gpio_direction_input(pin) == 0) { pin 134 arch/arm/mach-orion5x/rd88f5182-setup.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 137 arch/arm/mach-orion5x/rd88f5182-setup.c "set_irq_type pin %d\n", pin); pin 138 arch/arm/mach-orion5x/rd88f5182-setup.c gpio_free(pin); pin 141 arch/arm/mach-orion5x/rd88f5182-setup.c printk(KERN_ERR "rd88f5182_pci_preinit failed to gpio_request %d\n", pin); pin 146 arch/arm/mach-orion5x/rd88f5182-setup.c u8 pin) pin 153 arch/arm/mach-orion5x/rd88f5182-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 162 arch/arm/mach-orion5x/rd88f5182-setup.c if (pin == 1) pin 78 arch/arm/mach-orion5x/terastation_pro2-setup.c int pin; pin 83 arch/arm/mach-orion5x/terastation_pro2-setup.c pin = TSP2_PCI_SLOT0_IRQ_PIN; pin 84 arch/arm/mach-orion5x/terastation_pro2-setup.c if (gpio_request(pin, "PCI Int1") == 0) { pin 85 arch/arm/mach-orion5x/terastation_pro2-setup.c if (gpio_direction_input(pin) == 0) { pin 86 arch/arm/mach-orion5x/terastation_pro2-setup.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 89 arch/arm/mach-orion5x/terastation_pro2-setup.c "to set_irq_type pin %d\n", pin); pin 90 arch/arm/mach-orion5x/terastation_pro2-setup.c gpio_free(pin); pin 94 arch/arm/mach-orion5x/terastation_pro2-setup.c "gpio_request %d\n", pin); pin 98 arch/arm/mach-orion5x/terastation_pro2-setup.c static int __init tsp2_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 105 arch/arm/mach-orion5x/terastation_pro2-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 107 arch/arm/mach-orion5x/ts209-setup.c int pin; pin 112 arch/arm/mach-orion5x/ts209-setup.c pin = QNAP_TS209_PCI_SLOT0_IRQ_PIN; pin 113 arch/arm/mach-orion5x/ts209-setup.c if (gpio_request(pin, "PCI Int1") == 0) { pin 114 arch/arm/mach-orion5x/ts209-setup.c if (gpio_direction_input(pin) == 0) { pin 115 arch/arm/mach-orion5x/ts209-setup.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 118 arch/arm/mach-orion5x/ts209-setup.c "set_irq_type pin %d\n", pin); pin 119 arch/arm/mach-orion5x/ts209-setup.c gpio_free(pin); pin 123 arch/arm/mach-orion5x/ts209-setup.c "%d\n", pin); pin 126 arch/arm/mach-orion5x/ts209-setup.c pin = QNAP_TS209_PCI_SLOT1_IRQ_PIN; pin 127 arch/arm/mach-orion5x/ts209-setup.c if (gpio_request(pin, "PCI Int2") == 0) { pin 128 arch/arm/mach-orion5x/ts209-setup.c if (gpio_direction_input(pin) == 0) { pin 129 arch/arm/mach-orion5x/ts209-setup.c irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); pin 132 arch/arm/mach-orion5x/ts209-setup.c "to set_irq_type pin %d\n", pin); pin 133 arch/arm/mach-orion5x/ts209-setup.c gpio_free(pin); pin 137 arch/arm/mach-orion5x/ts209-setup.c "%d\n", pin); pin 142 arch/arm/mach-orion5x/ts209-setup.c u8 pin) pin 149 arch/arm/mach-orion5x/ts209-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 120 arch/arm/mach-orion5x/ts409-setup.c u8 pin) pin 127 arch/arm/mach-orion5x/ts409-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 133 arch/arm/mach-orion5x/wnr854t-setup.c u8 pin) pin 140 arch/arm/mach-orion5x/wnr854t-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 221 arch/arm/mach-orion5x/wrt350n-v2-setup.c u8 pin) pin 228 arch/arm/mach-orion5x/wrt350n-v2-setup.c irq = orion5x_pci_map_irq(dev, slot, pin); pin 77 arch/arm/mach-pxa/cm-x2xx-pci.c static int __init cmx2xx_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 81 arch/arm/mach-pxa/cm-x2xx-pci.c dev_dbg(&dev->dev, "%s: slot=%x, pin=%x\n", __func__, slot, pin); pin 83 arch/arm/mach-pxa/cm-x2xx-pci.c irq = it8152_pci_map_irq(dev, slot, pin); pin 45 arch/arm/mach-pxa/mfp-pxa2xx.h #define MFP_CFG_IN(pin, af) \ pin 47 arch/arm/mach-pxa/mfp-pxa2xx.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DIR_IN)) pin 52 arch/arm/mach-pxa/mfp-pxa2xx.h #define MFP_CFG_OUT(pin, af, state) \ pin 54 arch/arm/mach-pxa/mfp-pxa2xx.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DIR_OUT | MFP_LPM_##state)) pin 5 arch/arm/mach-pxa/mioa701.h #define MIO_CFG_IN(pin, af) \ pin 7 arch/arm/mach-pxa/mioa701.h (MFP_PIN(pin) | MFP_##af | MFP_DIR_IN)) pin 9 arch/arm/mach-pxa/mioa701.h #define MIO_CFG_OUT(pin, af, state) \ pin 11 arch/arm/mach-pxa/mioa701.h (MFP_PIN(pin) | MFP_##af | MFP_DIR_OUT | MFP_LPM_##state)) pin 64 arch/arm/mach-s3c24xx/pm.c static void s3c_pm_check_resume_pin(unsigned int pin, unsigned int irqoffs) pin 68 arch/arm/mach-s3c24xx/pm.c int irq = gpio_to_irq(pin); pin 75 arch/arm/mach-s3c24xx/pm.c pinstate = s3c_gpio_getcfg(pin); pin 79 arch/arm/mach-s3c24xx/pm.c S3C_PMDBG("Leaving IRQ %d (pin %d) as is\n", irq, pin); pin 82 arch/arm/mach-s3c24xx/pm.c S3C_PMDBG("Disabling IRQ %d (pin %d)\n", irq, pin); pin 83 arch/arm/mach-s3c24xx/pm.c s3c_gpio_cfgpin(pin, S3C2410_GPIO_INPUT); pin 95 arch/arm/mach-s3c24xx/pm.c int pin; pin 102 arch/arm/mach-s3c24xx/pm.c for (pin = S3C2410_GPF(0); pin <= S3C2410_GPF(7); pin++) { pin 103 arch/arm/mach-s3c24xx/pm.c s3c_pm_check_resume_pin(pin, pin - S3C2410_GPF(0)); pin 106 arch/arm/mach-s3c24xx/pm.c for (pin = S3C2410_GPG(0); pin <= S3C2410_GPG(7); pin++) { pin 107 arch/arm/mach-s3c24xx/pm.c s3c_pm_check_resume_pin(pin, (pin - S3C2410_GPG(0))+8); pin 282 arch/arm/mach-s3c64xx/common.c int pin, pin_val; pin 340 arch/arm/mach-s3c64xx/common.c pin = S3C64XX_GPN(offs); pin 343 arch/arm/mach-s3c64xx/common.c pin = S3C64XX_GPL(offs + 8 - 16); pin 346 arch/arm/mach-s3c64xx/common.c pin = S3C64XX_GPM(offs - 23); pin 350 arch/arm/mach-s3c64xx/common.c s3c_gpio_cfgpin(pin, pin_val); pin 36 arch/arm/mach-sa1100/pci-nanoengine.c u8 pin) pin 96 arch/arm/plat-orion/gpio.c __set_direction(struct orion_gpio_chip *ochip, unsigned pin, int input) pin 102 arch/arm/plat-orion/gpio.c u |= 1 << pin; pin 104 arch/arm/plat-orion/gpio.c u &= ~(1 << pin); pin 108 arch/arm/plat-orion/gpio.c static void __set_level(struct orion_gpio_chip *ochip, unsigned pin, int high) pin 114 arch/arm/plat-orion/gpio.c u |= 1 << pin; pin 116 arch/arm/plat-orion/gpio.c u &= ~(1 << pin); pin 121 arch/arm/plat-orion/gpio.c __set_blinking(struct orion_gpio_chip *ochip, unsigned pin, int blink) pin 127 arch/arm/plat-orion/gpio.c u |= 1 << pin; pin 129 arch/arm/plat-orion/gpio.c u &= ~(1 << pin); pin 134 arch/arm/plat-orion/gpio.c orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode) pin 136 arch/arm/plat-orion/gpio.c if (pin >= ochip->chip.ngpio) pin 139 arch/arm/plat-orion/gpio.c if ((mode & GPIO_INPUT_OK) && !test_bit(pin, &ochip->valid_input)) pin 142 arch/arm/plat-orion/gpio.c if ((mode & GPIO_OUTPUT_OK) && !test_bit(pin, &ochip->valid_output)) pin 148 arch/arm/plat-orion/gpio.c pr_debug("%s: invalid GPIO %d\n", __func__, pin); pin 155 arch/arm/plat-orion/gpio.c static int orion_gpio_request(struct gpio_chip *chip, unsigned pin) pin 159 arch/arm/plat-orion/gpio.c if (orion_gpio_is_valid(ochip, pin, GPIO_INPUT_OK) || pin 160 arch/arm/plat-orion/gpio.c orion_gpio_is_valid(ochip, pin, GPIO_OUTPUT_OK)) pin 166 arch/arm/plat-orion/gpio.c static int orion_gpio_direction_input(struct gpio_chip *chip, unsigned pin) pin 171 arch/arm/plat-orion/gpio.c if (!orion_gpio_is_valid(ochip, pin, GPIO_INPUT_OK)) pin 175 arch/arm/plat-orion/gpio.c __set_direction(ochip, pin, 1); pin 181 arch/arm/plat-orion/gpio.c static int orion_gpio_get(struct gpio_chip *chip, unsigned pin) pin 186 arch/arm/plat-orion/gpio.c if (readl(GPIO_IO_CONF(ochip)) & (1 << pin)) { pin 192 arch/arm/plat-orion/gpio.c return (val >> pin) & 1; pin 196 arch/arm/plat-orion/gpio.c orion_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int value) pin 201 arch/arm/plat-orion/gpio.c if (!orion_gpio_is_valid(ochip, pin, GPIO_OUTPUT_OK)) pin 205 arch/arm/plat-orion/gpio.c __set_blinking(ochip, pin, 0); pin 206 arch/arm/plat-orion/gpio.c __set_level(ochip, pin, value); pin 207 arch/arm/plat-orion/gpio.c __set_direction(ochip, pin, 0); pin 213 arch/arm/plat-orion/gpio.c static void orion_gpio_set(struct gpio_chip *chip, unsigned pin, int value) pin 219 arch/arm/plat-orion/gpio.c __set_level(ochip, pin, value); pin 223 arch/arm/plat-orion/gpio.c static int orion_gpio_to_irq(struct gpio_chip *chip, unsigned pin) pin 228 arch/arm/plat-orion/gpio.c ochip->secondary_irq_base + pin); pin 234 arch/arm/plat-orion/gpio.c static struct orion_gpio_chip *orion_gpio_chip_find(int pin) pin 242 arch/arm/plat-orion/gpio.c if (pin >= chip->base && pin < chip->base + chip->ngpio) pin 249 arch/arm/plat-orion/gpio.c void __init orion_gpio_set_unused(unsigned pin) pin 251 arch/arm/plat-orion/gpio.c struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); pin 256 arch/arm/plat-orion/gpio.c pin -= ochip->chip.base; pin 259 arch/arm/plat-orion/gpio.c __set_level(ochip, pin, 0); pin 260 arch/arm/plat-orion/gpio.c __set_direction(ochip, pin, 0); pin 263 arch/arm/plat-orion/gpio.c void __init orion_gpio_set_valid(unsigned pin, int mode) pin 265 arch/arm/plat-orion/gpio.c struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); pin 270 arch/arm/plat-orion/gpio.c pin -= ochip->chip.base; pin 276 arch/arm/plat-orion/gpio.c __set_bit(pin, &ochip->valid_input); pin 278 arch/arm/plat-orion/gpio.c __clear_bit(pin, &ochip->valid_input); pin 281 arch/arm/plat-orion/gpio.c __set_bit(pin, &ochip->valid_output); pin 283 arch/arm/plat-orion/gpio.c __clear_bit(pin, &ochip->valid_output); pin 286 arch/arm/plat-orion/gpio.c void orion_gpio_set_blink(unsigned pin, int blink) pin 288 arch/arm/plat-orion/gpio.c struct orion_gpio_chip *ochip = orion_gpio_chip_find(pin); pin 295 arch/arm/plat-orion/gpio.c __set_level(ochip, pin & 31, 0); pin 296 arch/arm/plat-orion/gpio.c __set_blinking(ochip, pin & 31, blink); pin 356 arch/arm/plat-orion/gpio.c int pin; pin 359 arch/arm/plat-orion/gpio.c pin = d->hwirq - ochip->secondary_irq_base; pin 361 arch/arm/plat-orion/gpio.c u = readl(GPIO_IO_CONF(ochip)) & (1 << pin); pin 380 arch/arm/plat-orion/gpio.c u &= ~(1 << pin); pin 384 arch/arm/plat-orion/gpio.c u |= 1 << pin; pin 395 arch/arm/plat-orion/gpio.c if (v & (1 << pin)) pin 396 arch/arm/plat-orion/gpio.c u |= 1 << pin; /* falling */ pin 398 arch/arm/plat-orion/gpio.c u &= ~(1 << pin); /* rising */ pin 23 arch/arm/plat-orion/include/plat/orion-gpio.h void orion_gpio_set_unused(unsigned pin); pin 24 arch/arm/plat-orion/include/plat/orion-gpio.h void orion_gpio_set_blink(unsigned pin, int blink); pin 30 arch/arm/plat-orion/include/plat/orion-gpio.h void orion_gpio_set_valid(unsigned pin, int mode); pin 407 arch/arm/plat-pxa/include/plat/mfp.h #define MFP_CFG(pin, af) \ pin 409 arch/arm/plat-pxa/include/plat/mfp.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af)) pin 411 arch/arm/plat-pxa/include/plat/mfp.h #define MFP_CFG_DRV(pin, af, drv) \ pin 413 arch/arm/plat-pxa/include/plat/mfp.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv)) pin 415 arch/arm/plat-pxa/include/plat/mfp.h #define MFP_CFG_LPM(pin, af, lpm) \ pin 417 arch/arm/plat-pxa/include/plat/mfp.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm)) pin 419 arch/arm/plat-pxa/include/plat/mfp.h #define MFP_CFG_X(pin, af, drv, lpm) \ pin 421 arch/arm/plat-pxa/include/plat/mfp.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm)) pin 451 arch/arm/plat-pxa/include/plat/mfp.h #define MFP_ADDR(pin, offset) \ pin 452 arch/arm/plat-pxa/include/plat/mfp.h { MFP_PIN_##pin, -1, offset } pin 171 arch/arm/plat-pxa/mfp.c int pin, af, drv, lpm, edge, pull; pin 173 arch/arm/plat-pxa/mfp.c pin = MFP_PIN(c); pin 174 arch/arm/plat-pxa/mfp.c BUG_ON(pin >= MFP_PIN_MAX); pin 175 arch/arm/plat-pxa/mfp.c p = &mfp_table[pin]; pin 269 arch/arm/plat-pxa/mfp.c int pin; pin 271 arch/arm/plat-pxa/mfp.c for (pin = 0; pin < ARRAY_SIZE(mfp_table); pin++, p++) pin 278 arch/arm/plat-pxa/mfp.c int pin; pin 280 arch/arm/plat-pxa/mfp.c for (pin = 0; pin < ARRAY_SIZE(mfp_table); pin++, p++) pin 885 arch/arm/plat-samsung/gpio-samsung.c static int s3c64xx_gpiolib_mbank_to_irq(struct gpio_chip *chip, unsigned pin) pin 887 arch/arm/plat-samsung/gpio-samsung.c return pin < 5 ? IRQ_EINT(23) + pin : -ENXIO; pin 890 arch/arm/plat-samsung/gpio-samsung.c static int s3c64xx_gpiolib_lbank_to_irq(struct gpio_chip *chip, unsigned pin) pin 892 arch/arm/plat-samsung/gpio-samsung.c return pin >= 8 ? IRQ_EINT(16) + pin - 8 : -ENXIO; pin 1200 arch/arm/plat-samsung/gpio-samsung.c int s3c_gpio_cfgpin(unsigned int pin, unsigned int config) pin 1202 arch/arm/plat-samsung/gpio-samsung.c struct samsung_gpio_chip *chip = samsung_gpiolib_getchip(pin); pin 1210 arch/arm/plat-samsung/gpio-samsung.c offset = pin - chip->chip.base; pin 1251 arch/arm/plat-samsung/gpio-samsung.c unsigned s3c_gpio_getcfg(unsigned int pin) pin 1253 arch/arm/plat-samsung/gpio-samsung.c struct samsung_gpio_chip *chip = samsung_gpiolib_getchip(pin); pin 1259 arch/arm/plat-samsung/gpio-samsung.c offset = pin - chip->chip.base; pin 1270 arch/arm/plat-samsung/gpio-samsung.c int s3c_gpio_setpull(unsigned int pin, samsung_gpio_pull_t pull) pin 1272 arch/arm/plat-samsung/gpio-samsung.c struct samsung_gpio_chip *chip = samsung_gpiolib_getchip(pin); pin 1279 arch/arm/plat-samsung/gpio-samsung.c offset = pin - chip->chip.base; pin 1289 arch/arm/plat-samsung/gpio-samsung.c samsung_gpio_pull_t s3c_gpio_getpull(unsigned int pin) pin 1291 arch/arm/plat-samsung/gpio-samsung.c struct samsung_gpio_chip *chip = samsung_gpiolib_getchip(pin); pin 1297 arch/arm/plat-samsung/gpio-samsung.c offset = pin - chip->chip.base; pin 95 arch/arm/plat-samsung/include/plat/gpio-cfg.h extern int s3c_gpio_cfgpin(unsigned int pin, unsigned int to); pin 106 arch/arm/plat-samsung/include/plat/gpio-cfg.h extern unsigned s3c_gpio_getcfg(unsigned int pin); pin 143 arch/arm/plat-samsung/include/plat/gpio-cfg.h extern int s3c_gpio_setpull(unsigned int pin, samsung_gpio_pull_t pull); pin 151 arch/arm/plat-samsung/include/plat/gpio-cfg.h extern samsung_gpio_pull_t s3c_gpio_getpull(unsigned int pin); pin 172 arch/arm/plat-samsung/include/plat/gpio-cfg.h static inline int s3c_gpio_cfgrange_nopull(unsigned int pin, unsigned int size, pin 175 arch/arm/plat-samsung/include/plat/gpio-cfg.h return s3c_gpio_cfgall_range(pin, size, cfg, S3C_GPIO_PULL_NONE); pin 111 arch/arm/plat-samsung/include/plat/gpio-core.h static inline struct samsung_gpio_chip *samsung_gpiolib_getchip(unsigned int pin) pin 115 arch/arm/plat-samsung/include/plat/gpio-core.h if (pin > S3C_GPIO_END) pin 118 arch/arm/plat-samsung/include/plat/gpio-core.h chip = &s3c24xx_gpios[pin/32]; pin 119 arch/arm/plat-samsung/include/plat/gpio-core.h return ((pin - chip->chip.base) < chip->chip.ngpio) ? chip : NULL; pin 19 arch/ia64/include/asm/pci.h __u8 pin; /* PCI PIN (0 = A, 1 = B, 2 = C, 3 = D) */ pin 156 arch/m68k/coldfire/pci.c static int mcf_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 258 arch/mips/alchemy/board-gpr.c static int gpr_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin) pin 260 arch/mips/alchemy/board-gpr.c if ((slot == 0) && (pin == 1)) pin 262 arch/mips/alchemy/board-gpr.c else if ((slot == 0) && (pin == 2)) pin 240 arch/mips/alchemy/board-mtx1.c static int mtx1_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin) pin 242 arch/mips/alchemy/board-mtx1.c return mtx1_irqtab[slot][pin]; pin 55 arch/mips/alchemy/devboards/db1000.c static int db1500_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin) pin 57 arch/mips/alchemy/devboards/db1000.c if ((slot < 12) || (slot > 13) || pin == 0) pin 60 arch/mips/alchemy/devboards/db1000.c return (pin == 1) ? AU1500_PCI_INTA : 0xff; pin 62 arch/mips/alchemy/devboards/db1000.c switch (pin) { pin 417 arch/mips/alchemy/devboards/db1550.c static int db1550_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin) pin 419 arch/mips/alchemy/devboards/db1550.c if ((slot < 11) || (slot > 13) || pin == 0) pin 422 arch/mips/alchemy/devboards/db1550.c return (pin == 1) ? AU1550_PCI_INTC : 0xff; pin 424 arch/mips/alchemy/devboards/db1550.c switch (pin) { pin 432 arch/mips/alchemy/devboards/db1550.c switch (pin) { pin 442 arch/mips/alchemy/devboards/db1550.c static int pb1550_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin) pin 444 arch/mips/alchemy/devboards/db1550.c if ((slot < 12) || (slot > 13) || pin == 0) pin 447 arch/mips/alchemy/devboards/db1550.c switch (pin) { pin 455 arch/mips/alchemy/devboards/db1550.c switch (pin) { pin 1154 arch/mips/cavium-octeon/octeon-irq.c unsigned int pin; pin 1163 arch/mips/cavium-octeon/octeon-irq.c pin = intspec[0]; pin 1164 arch/mips/cavium-octeon/octeon-irq.c if (pin >= 16) pin 1190 arch/mips/cavium-octeon/octeon-irq.c *out_hwirq = pin; pin 798 arch/mips/include/asm/mach-au1x00/au1000.h int (*board_map_irq)(const struct pci_dev *d, u8 slot, u8 pin); pin 107 arch/mips/include/asm/mach-loongson64/cs5536/cs5536_pci.h #define CFG_PCI_INTERRUPT_LINE(pin, mod_intr) \ pin 109 arch/mips/include/asm/mach-loongson64/cs5536/cs5536_pci.h ((pin) << 8) | (mod_intr)) pin 43 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_select_input(unsigned int pin) pin 45 arch/mips/include/asm/mach-pnx833x/gpio.h if (pin < 32) pin 46 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_DIR, pin); pin 48 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_DIR2, pin & 31); pin 50 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_select_output(unsigned int pin) pin 52 arch/mips/include/asm/mach-pnx833x/gpio.h if (pin < 32) pin 53 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_DIR, pin); pin 55 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_DIR2, pin & 31); pin 59 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_select_function_io(unsigned int pin) pin 61 arch/mips/include/asm/mach-pnx833x/gpio.h if (pin < 32) pin 62 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_SEL, pin); pin 64 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_SEL2, pin & 31); pin 66 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_select_function_alt(unsigned int pin) pin 68 arch/mips/include/asm/mach-pnx833x/gpio.h if (pin < 32) pin 69 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_SEL, pin); pin 71 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_SEL2, pin & 31); pin 75 arch/mips/include/asm/mach-pnx833x/gpio.h static inline int pnx833x_gpio_read(unsigned int pin) pin 77 arch/mips/include/asm/mach-pnx833x/gpio.h if (pin < 32) pin 78 arch/mips/include/asm/mach-pnx833x/gpio.h return (PNX833X_PIO_IN >> pin) & 1; pin 80 arch/mips/include/asm/mach-pnx833x/gpio.h return (PNX833X_PIO_IN2 >> (pin & 31)) & 1; pin 84 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_write(unsigned int val, unsigned int pin) pin 86 arch/mips/include/asm/mach-pnx833x/gpio.h if (pin < 32) { pin 88 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_OUT, pin); pin 90 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_OUT, pin); pin 93 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_OUT2, pin & 31); pin 95 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_OUT2, pin & 31); pin 106 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_setup_irq(int when, unsigned int pin) pin 110 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_EDGE, pin); pin 111 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_HI, pin); pin 112 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_LO, pin); pin 115 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_EDGE, pin); pin 116 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_HI, pin); pin 117 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_LO, pin); pin 120 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_EDGE, pin); pin 121 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_HI, pin); pin 122 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_LO, pin); pin 125 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_EDGE, pin); pin 126 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_HI, pin); pin 127 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_LO, pin); pin 130 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_EDGE, pin); pin 131 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_HI, pin); pin 132 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_LO, pin); pin 135 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_EDGE, pin); pin 136 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_HI, pin); pin 137 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_LO, pin); pin 143 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_enable_irq(unsigned int pin) pin 145 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_ENABLE, pin); pin 147 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_disable_irq(unsigned int pin) pin 149 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_ENABLE, pin); pin 153 arch/mips/include/asm/mach-pnx833x/gpio.h static inline void pnx833x_gpio_clear_irq(unsigned int pin) pin 155 arch/mips/include/asm/mach-pnx833x/gpio.h SET_REG_BIT(PNX833X_PIO_INT_CLEAR, pin); pin 156 arch/mips/include/asm/mach-pnx833x/gpio.h CLEAR_REG_BIT(PNX833X_PIO_INT_CLEAR, pin); pin 33 arch/mips/include/asm/octeon/pci-octeon.h u8 slot, u8 pin); pin 64 arch/mips/include/asm/pci.h extern int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 8 arch/mips/include/asm/sn/irq_alloc.h int pin; pin 40 arch/mips/include/asm/txx9/generic.h int (*pci_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); pin 177 arch/mips/include/asm/txx9/jmr3927.h int jmr3927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 90 arch/mips/include/asm/txx9/rbtx4927.h int rbtx4927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 143 arch/mips/include/asm/txx9/rbtx4938.h int rbtx4938_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 511 arch/mips/include/asm/txx9/tx4939.h int tx4939_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 31 arch/mips/include/asm/vr41xx/giu.h extern void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger, pin 39 arch/mips/include/asm/vr41xx/giu.h extern void vr41xx_set_irq_level(unsigned int pin, irq_level_t level); pin 15 arch/mips/pci/fixup-ath79.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 17 arch/mips/pci/fixup-ath79.c return of_irq_parse_and_map_pci(dev, slot, pin); pin 13 arch/mips/pci/fixup-bcm63xx.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 28 arch/mips/pci/fixup-capcella.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 30 arch/mips/pci/fixup-capcella.c return irq_tab_capcella[slot][pin]; pin 177 arch/mips/pci/fixup-cobalt.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 75 arch/mips/pci/fixup-emma2rh.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 77 arch/mips/pci/fixup-emma2rh.c return irq_map[slot][pin]; pin 18 arch/mips/pci/fixup-fuloong2e.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 35 arch/mips/pci/fixup-fuloong2e.c irq = LOONGSON_IRQ_BASE + 25 + pin; pin 43 arch/mips/pci/fixup-ip32.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 45 arch/mips/pci/fixup-ip32.c return irq_tab_mace[slot][pin]; pin 34 arch/mips/pci/fixup-jmr3927.c int jmr3927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 36 arch/mips/pci/fixup-jmr3927.c unsigned char irq = pin; pin 24 arch/mips/pci/fixup-lantiq.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 26 arch/mips/pci/fixup-lantiq.c return of_irq_parse_and_map_pci(dev, slot, pin); pin 50 arch/mips/pci/fixup-lemote2f.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 56 arch/mips/pci/fixup-lemote2f.c virq = irq_tab[slot][pin]; pin 57 arch/mips/pci/fixup-lemote2f.c printk(KERN_INFO "slot: %d, pin: %d, irq: %d\n", slot, pin, pin 35 arch/mips/pci/fixup-loongson3.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 42 arch/mips/pci/fixup-malta.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 45 arch/mips/pci/fixup-malta.c virq = irq_tab[slot][pin]; pin 24 arch/mips/pci/fixup-mpc30x.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 205 arch/mips/pci/fixup-pmcmsp.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 211 arch/mips/pci/fixup-pmcmsp.c irq_tab[slot][pin], slot, pin); pin 213 arch/mips/pci/fixup-pmcmsp.c return irq_tab[slot][pin]; pin 39 arch/mips/pci/fixup-rbtx4927.c int rbtx4927_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 41 arch/mips/pci/fixup-rbtx4927.c unsigned char irq = pin; pin 16 arch/mips/pci/fixup-rbtx4938.c int rbtx4938_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 22 arch/mips/pci/fixup-rbtx4938.c irq = pin; pin 39 arch/mips/pci/fixup-rc32434.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 133 arch/mips/pci/fixup-sni.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 147 arch/mips/pci/fixup-sni.c return irq_tab_pcit_cplus[slot][pin]; pin 149 arch/mips/pci/fixup-sni.c return irq_tab_pcit[slot][pin]; pin 153 arch/mips/pci/fixup-sni.c return irq_tab_rm300d[slot][pin]; pin 157 arch/mips/pci/fixup-sni.c return irq_tab_rm200[slot][pin]; pin 160 arch/mips/pci/fixup-sni.c return irq_tab_rm300e[slot][pin]; pin 13 arch/mips/pci/fixup-tb0219.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 13 arch/mips/pci/fixup-tb0226.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 33 arch/mips/pci/fixup-tb0226.c switch (pin) { pin 12 arch/mips/pci/fixup-tb0287.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 45 arch/mips/pci/pci-alchemy.c int (*board_map_irq)(const struct pci_dev *d, u8 slot, u8 pin); pin 526 arch/mips/pci/pci-alchemy.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 530 arch/mips/pci/pci-alchemy.c return ctx->board_map_irq(dev, slot, pin); pin 513 arch/mips/pci/pci-ar2315.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 65 arch/mips/pci/pci-bcm1480.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 67 arch/mips/pci/pci-bcm1480.c if (pin == 0) pin 70 arch/mips/pci/pci-bcm1480.c return K_BCM1480_INT_PCI_INTA - 1 + pin; pin 31 arch/mips/pci/pci-bcm47xx.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 40 arch/mips/pci/pci-bcm47xx.c u8 slot, pin; pin 49 arch/mips/pci/pci-bcm47xx.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 51 arch/mips/pci/pci-bcm47xx.c res = ssb_pcibios_map_irq(dev, slot, pin); pin 64 arch/mips/pci/pci-lasat.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 70 arch/mips/pci/pci-lasat.c return LASAT_IRQ_PCIA + (((slot-1) + (pin-1)) % 4); pin 361 arch/mips/pci/pci-mt7620.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 60 arch/mips/pci/pci-octeon.c int (*octeon_pcibios_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); pin 74 arch/mips/pci/pci-octeon.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 77 arch/mips/pci/pci-octeon.c return octeon_pcibios_map_irq(dev, slot, pin); pin 235 arch/mips/pci/pci-octeon.c u8 slot, u8 pin) pin 246 arch/mips/pci/pci-octeon.c irq_num = ((interrupts[dev_num] - 'A' + pin - 1) & 3) + pin 249 arch/mips/pci/pci-octeon.c irq_num = ((slot + pin - 3) & 3) + OCTEON_IRQ_PCI_INT0; pin 181 arch/mips/pci/pci-rt2880.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 562 arch/mips/pci/pci-rt3883.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 564 arch/mips/pci/pci-rt3883.c return of_irq_parse_and_map_pci(dev, slot, pin); pin 75 arch/mips/pci/pci-sb1250.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 71 arch/mips/pci/pci-tx4939.c int tx4939_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 77 arch/mips/pci/pci-tx4939.c irq = pin; pin 38 arch/mips/pci/pci-virtio-guest.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 40 arch/mips/pci/pci-virtio-guest.c return ((pin + slot) % 4)+ MIPS_IRQ_PCIA; pin 208 arch/mips/pci/pci-xlp.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 318 arch/mips/pci/pci-xlr.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 281 arch/mips/pci/pci-xtalk-bridge.c int pin = d->hwirq; pin 288 arch/mips/pci/pci-xtalk-bridge.c bridge_write(data->bc, b_int_addr[pin].addr, pin 324 arch/mips/pci/pci-xtalk-bridge.c irq_domain_set_info(domain, virq, info->pin, &bridge_irq_chip, pin 351 arch/mips/pci/pci-xtalk-bridge.c int pin = irqd->hwirq; pin 354 arch/mips/pci/pci-xtalk-bridge.c bridge_write(bc, b_int_addr[pin].addr, pin 357 arch/mips/pci/pci-xtalk-bridge.c bridge_set(bc, b_int_enable, (1 << pin)); pin 367 arch/mips/pci/pci-xtalk-bridge.c bridge_set(bc, b_int_mode, (1UL << pin)); pin 374 arch/mips/pci/pci-xtalk-bridge.c device &= ~(7 << (pin*3)); pin 375 arch/mips/pci/pci-xtalk-bridge.c device |= (pin << (pin*3)); pin 407 arch/mips/pci/pci-xtalk-bridge.c static int bridge_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 417 arch/mips/pci/pci-xtalk-bridge.c info.pin = slot; pin 1465 arch/mips/pci/pcie-octeon.c int octeon_pcie_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 1492 arch/mips/pci/pcie-octeon.c pin = ((pin - 3) & 3) + 1; pin 1500 arch/mips/pci/pcie-octeon.c return pin - 1 + OCTEON_IRQ_PCI_INT0; pin 123 arch/mips/pic32/pic32mzda/early_pin.c void pic32_pps_input(int function, int pin) pin 130 arch/mips/pic32/pic32mzda/early_pin.c __raw_writel(pin, pps_base + input_pin_reg[i].reg); pin 195 arch/mips/pic32/pic32mzda/early_pin.c int pin; pin 253 arch/mips/pic32/pic32mzda/early_pin.c void pic32_pps_output(int function, int pin) pin 259 arch/mips/pic32/pic32mzda/early_pin.c if (output_pin_reg[i].pin == pin) { pin 230 arch/mips/pic32/pic32mzda/early_pin.h void pic32_pps_input(int function, int pin); pin 231 arch/mips/pic32/pic32mzda/early_pin.h void pic32_pps_output(int function, int pin); pin 101 arch/mips/pnx833x/common/interrupts.c int pin; pin 102 arch/mips/pnx833x/common/interrupts.c while ((pin = ffs(mask & 0xffff))) { pin 103 arch/mips/pnx833x/common/interrupts.c pin -= 1; pin 104 arch/mips/pnx833x/common/interrupts.c do_IRQ(PNX833X_GPIO_IRQ_BASE + pin); pin 105 arch/mips/pnx833x/common/interrupts.c mask &= ~(1 << pin); pin 180 arch/mips/pnx833x/common/interrupts.c int pin = d->irq - PNX833X_GPIO_IRQ_BASE; pin 183 arch/mips/pnx833x/common/interrupts.c pnx833x_gpio_enable_irq(pin); pin 189 arch/mips/pnx833x/common/interrupts.c int pin = d->irq - PNX833X_GPIO_IRQ_BASE; pin 192 arch/mips/pnx833x/common/interrupts.c pnx833x_gpio_disable_irq(pin); pin 198 arch/mips/pnx833x/common/interrupts.c int pin = d->irq - PNX833X_GPIO_IRQ_BASE; pin 222 arch/mips/pnx833x/common/interrupts.c pnx833x_gpio_setup_irq(gpio_mode, pin); pin 389 arch/mips/txx9/generic/pci.c static int (*txx9_pci_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); pin 390 arch/mips/txx9/generic/pci.c int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 392 arch/mips/txx9/generic/pci.c return txx9_pci_map_irq(dev, slot, pin); pin 468 arch/mips/vr41xx/common/icu.c unsigned int pin; pin 470 arch/mips/vr41xx/common/icu.c pin = SYSINT1_IRQ_TO_PIN(irq); pin 477 arch/mips/vr41xx/common/icu.c switch (pin) { pin 515 arch/mips/vr41xx/common/icu.c sysint1_assign[pin] = assign; pin 528 arch/mips/vr41xx/common/icu.c unsigned int pin; pin 530 arch/mips/vr41xx/common/icu.c pin = SYSINT2_IRQ_TO_PIN(irq); pin 537 arch/mips/vr41xx/common/icu.c switch (pin) { pin 583 arch/mips/vr41xx/common/icu.c sysint2_assign[pin] = assign; pin 575 arch/powerpc/include/asm/cpm1.h void cpm1_set_pin(enum cpm_port port, int pin, int flags); pin 1146 arch/powerpc/include/asm/cpm2.h void cpm2_set_pin(int port, int pin, int flags); pin 351 arch/powerpc/include/asm/mpc52xx.h extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level); pin 376 arch/powerpc/kernel/pci-common.c u8 line, pin; pin 385 arch/powerpc/kernel/pci-common.c if (pci_read_config_byte(pci_dev, PCI_INTERRUPT_PIN, &pin)) pin 387 arch/powerpc/kernel/pci-common.c if (pin == 0) pin 394 arch/powerpc/kernel/pci-common.c line, pin); pin 1059 arch/powerpc/kvm/book3s.c entries->irqchip.pin = gsi; pin 1063 arch/powerpc/kvm/book3s.c int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) pin 1065 arch/powerpc/kvm/book3s.c return pin; pin 1795 arch/powerpc/kvm/mpic.c u32 irq = e->irqchip.pin; pin 1836 arch/powerpc/kvm/mpic.c e->irqchip.pin = ue->u.irqchip.pin; pin 1837 arch/powerpc/kvm/mpic.c if (e->irqchip.pin >= KVM_IRQCHIP_NUM_PINS) pin 174 arch/powerpc/platforms/52xx/efika.c u8 pin = 4; /* GPIO_WKUP_4 (GPIO_PSC6_0 - IRDA_RX) */ pin 177 arch/powerpc/platforms/52xx/efika.c mpc52xx_set_wakeup_gpio(pin, level); pin 125 arch/powerpc/platforms/52xx/lite5200.c u8 pin = 1; /* GPIO_WKUP_1 (GPIO_PSC2_4) */ pin 127 arch/powerpc/platforms/52xx/lite5200.c mpc52xx_set_wakeup_gpio(pin, level); pin 37 arch/powerpc/platforms/52xx/mpc52xx_pm.c int mpc52xx_set_wakeup_gpio(u8 pin, u8 level) pin 42 arch/powerpc/platforms/52xx/mpc52xx_pm.c out_8(&gpiow->wkup_gpioe, in_8(&gpiow->wkup_gpioe) | (1 << pin)); pin 44 arch/powerpc/platforms/52xx/mpc52xx_pm.c out_8(&gpiow->wkup_ddr, in_8(&gpiow->wkup_ddr) & ~(1 << pin)); pin 46 arch/powerpc/platforms/52xx/mpc52xx_pm.c out_8(&gpiow->wkup_inten, in_8(&gpiow->wkup_inten) | (1 << pin)); pin 49 arch/powerpc/platforms/52xx/mpc52xx_pm.c tmp &= ~(0x3 << (pin * 2)); pin 50 arch/powerpc/platforms/52xx/mpc52xx_pm.c tmp |= (!level + 1) << (pin * 2); pin 167 arch/powerpc/platforms/82xx/ep8248e.c int port, pin, flags; pin 237 arch/powerpc/platforms/82xx/ep8248e.c const struct cpm_pin *pin = &ep8248e_pins[i]; pin 238 arch/powerpc/platforms/82xx/ep8248e.c cpm2_set_pin(pin->port, pin->pin, pin->flags); pin 44 arch/powerpc/platforms/82xx/km82xx.c int port, pin, flags; pin 139 arch/powerpc/platforms/82xx/km82xx.c const struct cpm_pin *pin = &km82xx_pins[i]; pin 140 arch/powerpc/platforms/82xx/km82xx.c cpm2_set_pin(pin->port, pin->pin, pin->flags); pin 49 arch/powerpc/platforms/82xx/mpc8272_ads.c int port, pin, flags; pin 116 arch/powerpc/platforms/82xx/mpc8272_ads.c struct cpm_pin *pin = &mpc8272_ads_pins[i]; pin 117 arch/powerpc/platforms/82xx/mpc8272_ads.c cpm2_set_pin(pin->port, pin->pin, pin->flags); pin 47 arch/powerpc/platforms/82xx/pq2fads.c int port, pin, flags; pin 101 arch/powerpc/platforms/82xx/pq2fads.c struct cpm_pin *pin = &pq2fads_pins[i]; pin 102 arch/powerpc/platforms/82xx/pq2fads.c cpm2_set_pin(pin->port, pin->pin, pin->flags); pin 72 arch/powerpc/platforms/85xx/ksi8560.c int port, pin, flags; pin 111 arch/powerpc/platforms/85xx/ksi8560.c struct cpm_pin *pin = &ksi8560_pins[i]; pin 112 arch/powerpc/platforms/85xx/ksi8560.c cpm2_set_pin(pin->port, pin->pin, pin->flags); pin 50 arch/powerpc/platforms/85xx/mpc85xx_ads.c int port, pin, flags; pin 108 arch/powerpc/platforms/85xx/mpc85xx_ads.c const struct cpm_pin *pin = &mpc8560_ads_pins[i]; pin 109 arch/powerpc/platforms/85xx/mpc85xx_ads.c cpm2_set_pin(pin->port, pin->pin, pin->flags); pin 23 arch/powerpc/platforms/8xx/adder875.c int port, pin, flags; pin 70 arch/powerpc/platforms/8xx/adder875.c const struct cpm_pin *pin = &adder875_pins[i]; pin 71 arch/powerpc/platforms/8xx/adder875.c cpm1_set_pin(pin->port, pin->pin, pin->flags); pin 309 arch/powerpc/platforms/8xx/cpm1.c static void cpm1_set_pin32(int port, int pin, int flags) pin 312 arch/powerpc/platforms/8xx/cpm1.c pin = 1 << (31 - pin); pin 322 arch/powerpc/platforms/8xx/cpm1.c setbits32(&iop->dir, pin); pin 324 arch/powerpc/platforms/8xx/cpm1.c clrbits32(&iop->dir, pin); pin 327 arch/powerpc/platforms/8xx/cpm1.c setbits32(&iop->par, pin); pin 329 arch/powerpc/platforms/8xx/cpm1.c clrbits32(&iop->par, pin); pin 333 arch/powerpc/platforms/8xx/cpm1.c setbits16(&mpc8xx_immr->im_cpm.cp_pbodr, pin); pin 335 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&mpc8xx_immr->im_cpm.cp_pbodr, pin); pin 340 arch/powerpc/platforms/8xx/cpm1.c setbits32(&iop->sor, pin); pin 342 arch/powerpc/platforms/8xx/cpm1.c clrbits32(&iop->sor, pin); pin 345 arch/powerpc/platforms/8xx/cpm1.c setbits32(&mpc8xx_immr->im_cpm.cp_peodr, pin); pin 347 arch/powerpc/platforms/8xx/cpm1.c clrbits32(&mpc8xx_immr->im_cpm.cp_peodr, pin); pin 351 arch/powerpc/platforms/8xx/cpm1.c static void cpm1_set_pin16(int port, int pin, int flags) pin 356 arch/powerpc/platforms/8xx/cpm1.c pin = 1 << (15 - pin); pin 362 arch/powerpc/platforms/8xx/cpm1.c setbits16(&iop->dir, pin); pin 364 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&iop->dir, pin); pin 367 arch/powerpc/platforms/8xx/cpm1.c setbits16(&iop->par, pin); pin 369 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&iop->par, pin); pin 373 arch/powerpc/platforms/8xx/cpm1.c setbits16(&iop->odr_sor, pin); pin 375 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&iop->odr_sor, pin); pin 379 arch/powerpc/platforms/8xx/cpm1.c setbits16(&iop->odr_sor, pin); pin 381 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&iop->odr_sor, pin); pin 383 arch/powerpc/platforms/8xx/cpm1.c setbits16(&iop->intr, pin); pin 385 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&iop->intr, pin); pin 389 arch/powerpc/platforms/8xx/cpm1.c void cpm1_set_pin(enum cpm_port port, int pin, int flags) pin 392 arch/powerpc/platforms/8xx/cpm1.c cpm1_set_pin32(port, pin, flags); pin 394 arch/powerpc/platforms/8xx/cpm1.c cpm1_set_pin16(port, pin, flags); pin 25 arch/powerpc/platforms/8xx/ep88xc.c int port, pin, flags; pin 93 arch/powerpc/platforms/8xx/ep88xc.c struct cpm_pin *pin = &ep88xc_pins[i]; pin 94 arch/powerpc/platforms/8xx/ep88xc.c cpm1_set_pin(pin->port, pin->pin, pin->flags); pin 34 arch/powerpc/platforms/8xx/mpc86xads_setup.c int port, pin, flags; pin 80 arch/powerpc/platforms/8xx/mpc86xads_setup.c struct cpm_pin *pin = &mpc866ads_pins[i]; pin 81 arch/powerpc/platforms/8xx/mpc86xads_setup.c cpm1_set_pin(pin->port, pin->pin, pin->flags); pin 49 arch/powerpc/platforms/8xx/mpc885ads_setup.c int port, pin, flags; pin 116 arch/powerpc/platforms/8xx/mpc885ads_setup.c struct cpm_pin *pin = &mpc885ads_pins[i]; pin 117 arch/powerpc/platforms/8xx/mpc885ads_setup.c cpm1_set_pin(pin->port, pin->pin, pin->flags); pin 48 arch/powerpc/platforms/8xx/tqm8xx_setup.c int port, pin, flags; pin 83 arch/powerpc/platforms/8xx/tqm8xx_setup.c static void __init init_pins(int n, struct cpm_pin *pin) pin 88 arch/powerpc/platforms/8xx/tqm8xx_setup.c cpm1_set_pin(pin->port, pin->pin, pin->flags); pin 89 arch/powerpc/platforms/8xx/tqm8xx_setup.c pin++; pin 330 arch/powerpc/sysdev/cpm2.c void cpm2_set_pin(int port, int pin, int flags) pin 335 arch/powerpc/sysdev/cpm2.c pin = 1 << (31 - pin); pin 338 arch/powerpc/sysdev/cpm2.c setbits32(&iop[port].dir, pin); pin 340 arch/powerpc/sysdev/cpm2.c clrbits32(&iop[port].dir, pin); pin 343 arch/powerpc/sysdev/cpm2.c setbits32(&iop[port].par, pin); pin 345 arch/powerpc/sysdev/cpm2.c clrbits32(&iop[port].par, pin); pin 348 arch/powerpc/sysdev/cpm2.c setbits32(&iop[port].sor, pin); pin 350 arch/powerpc/sysdev/cpm2.c clrbits32(&iop[port].sor, pin); pin 353 arch/powerpc/sysdev/cpm2.c setbits32(&iop[port].odr, pin); pin 355 arch/powerpc/sysdev/cpm2.c clrbits32(&iop[port].odr, pin); pin 31 arch/powerpc/sysdev/simple_gpio.c static u8 u8_pin2mask(unsigned int pin) pin 33 arch/powerpc/sysdev/simple_gpio.c return 1 << (8 - 1 - pin); pin 65 arch/sh/boards/mach-x3proto/gpio.c int pin; pin 70 arch/sh/boards/mach-x3proto/gpio.c for_each_set_bit(pin, &mask, NR_BASEBOARD_GPIOS) pin 71 arch/sh/boards/mach-x3proto/gpio.c generic_handle_irq(irq_linear_revmap(x3proto_irq_domain, pin)); pin 9 arch/sh/drivers/pci/fixups-cayman.c int pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 34 arch/sh/drivers/pci/fixups-cayman.c int pin; pin 41 arch/sh/drivers/pci/fixups-cayman.c pin = path[i].pin = pci_swizzle_interrupt_pin(dev, pin); pin 55 arch/sh/drivers/pci/fixups-cayman.c result = IRQ_INTA + pci_swizzle_interrupt_pin(dev, pin) - 1; pin 59 arch/sh/drivers/pci/fixups-cayman.c pin = path[i].pin; pin 67 arch/sh/drivers/pci/fixups-cayman.c pin = path[i].pin; pin 69 arch/sh/drivers/pci/fixups-cayman.c result = IRQ_P2INTA + (pin - 1); pin 74 arch/sh/drivers/pci/fixups-dreamcast.c int pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 21 arch/sh/drivers/pci/fixups-landisk.c int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 29 arch/sh/drivers/pci/fixups-landisk.c int irq = ((slot + pin - 1) & 0x3) + evt2irq(0x2a0); pin 31 arch/sh/drivers/pci/fixups-landisk.c if ((slot | (pin - 1)) > 0x3) { pin 33 arch/sh/drivers/pci/fixups-landisk.c slot, pin - 1 + 'A'); pin 15 arch/sh/drivers/pci/fixups-r7780rp.c int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 31 arch/sh/drivers/pci/fixups-rts7751r2d.c int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 37 arch/sh/drivers/pci/fixups-sdk7780.c int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 39 arch/sh/drivers/pci/fixups-sdk7780.c return sdk7780_irq_tab[pin-1][slot]; pin 11 arch/sh/drivers/pci/fixups-se7751.c int pcibios_map_platform_irq(const struct pci_dev *, u8 slot, u8 pin) pin 8 arch/sh/drivers/pci/fixups-sh03.c int pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 23 arch/sh/drivers/pci/fixups-sh03.c switch (pin) { pin 20 arch/sh/drivers/pci/fixups-snapgear.c int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 34 arch/sh/drivers/pci/fixups-snapgear.c slot, pin - 1 + 'A', irq); pin 28 arch/sh/drivers/pci/fixups-titan.c int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 33 arch/sh/drivers/pci/fixups-titan.c slot, pin - 1 + 'A', irq); pin 483 arch/sh/drivers/pci/pcie-sh7786.c int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 83 arch/sh/include/asm/pci.h int pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 157 arch/sh/include/asm/processor.h int test_mode_pin(int pin); pin 361 arch/sh/kernel/setup.c int test_mode_pin(int pin) pin 363 arch/sh/kernel/setup.c return sh_mv.mv_mode_pins() & pin; pin 17 arch/sparc/include/asm/leon_pci.h int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); pin 319 arch/sparc/kernel/chmc.c int pin; pin 321 arch/sparc/kernel/chmc.c get_pin_and_dimm_str(syndrome_code, phys_addr, &pin, pin 323 arch/sparc/kernel/chmc.c sprintf(buf, "%s, pin %3d", dimm_str, pin); pin 565 arch/sparc/kernel/chmc.c int pin; pin 567 arch/sparc/kernel/chmc.c get_pin_and_dimm_str(syndrome_code, phys_addr, &pin, pin 569 arch/sparc/kernel/chmc.c sprintf(buf, "%s, pin %3d", dimm_str, pin); pin 105 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 112 arch/sparc/kernel/leon_pci_grpci1.c pin = ((pin - 1) + irq_group) & 0x3; pin 114 arch/sparc/kernel/leon_pci_grpci1.c return priv->irq_map[pin]; pin 222 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 229 arch/sparc/kernel/leon_pci_grpci2.c pin = ((pin - 1) + irq_group) & 0x3; pin 231 arch/sparc/kernel/leon_pci_grpci2.c return priv->irq_map[pin]; pin 61 arch/sparc/kernel/pcic.c unsigned char pin; /* PCIC external interrupt pin */ pin 560 arch/sparc/kernel/pcic.c i = p->pin; pin 580 arch/sparc/kernel/pcic.c p->pin); pin 583 arch/sparc/kernel/pcic.c i = p->pin; pin 100 arch/unicore32/kernel/pci.c static int pci_puv3_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 197 arch/x86/include/asm/io_apic.h extern int IO_APIC_get_PCI_irq_vector(int bus, int devfn, int pin); pin 1300 arch/x86/include/asm/kvm_host.h void kvm_fire_mask_notifiers(struct kvm *kvm, unsigned irqchip, unsigned pin, pin 96 arch/x86/include/asm/pci.h int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq); pin 379 arch/x86/kernel/acpi/boot.c u8 pin; pin 389 arch/x86/kernel/acpi/boot.c pin = pdev->pin; pin 396 arch/x86/kernel/acpi/boot.c mp_irq.srcbusirq = (((devfn >> 3) & 0x1f) << 2) | ((pin - 1) & 3); pin 410 arch/x86/kernel/acpi/boot.c int ioapic, pin; pin 419 arch/x86/kernel/acpi/boot.c pin = mp_find_ioapic_pin(ioapic, gsi); pin 427 arch/x86/kernel/acpi/boot.c mp_irq.dstirq = pin; pin 1110 arch/x86/kernel/acpi/boot.c int ioapic, pin; pin 1125 arch/x86/kernel/acpi/boot.c pin = mp_find_ioapic_pin(ioapic, gsi); pin 1136 arch/x86/kernel/acpi/boot.c if (irq->dstapic == dstapic && irq->dstirq == pin) pin 1151 arch/x86/kernel/acpi/boot.c mp_irq.dstirq = pin; pin 73 arch/x86/kernel/apic/io_apic.c #define for_each_pin(idx, pin) \ pin 74 arch/x86/kernel/apic/io_apic.c for ((pin) = 0; (pin) < ioapics[(idx)].nr_registers; (pin)++) pin 75 arch/x86/kernel/apic/io_apic.c #define for_each_ioapic_pin(idx, pin) \ pin 77 arch/x86/kernel/apic/io_apic.c for_each_pin((idx), (pin)) pin 88 arch/x86/kernel/apic/io_apic.c int apic, pin; pin 147 arch/x86/kernel/apic/io_apic.c static inline u32 mp_pin_to_gsi(int ioapic, int pin) pin 149 arch/x86/kernel/apic/io_apic.c return mp_ioapic_gsi_routing(ioapic)->gsi_base + pin; pin 307 arch/x86/kernel/apic/io_apic.c static struct IO_APIC_route_entry __ioapic_read_entry(int apic, int pin) pin 311 arch/x86/kernel/apic/io_apic.c eu.w1 = io_apic_read(apic, 0x10 + 2 * pin); pin 312 arch/x86/kernel/apic/io_apic.c eu.w2 = io_apic_read(apic, 0x11 + 2 * pin); pin 317 arch/x86/kernel/apic/io_apic.c static struct IO_APIC_route_entry ioapic_read_entry(int apic, int pin) pin 323 arch/x86/kernel/apic/io_apic.c eu.entry = __ioapic_read_entry(apic, pin); pin 335 arch/x86/kernel/apic/io_apic.c static void __ioapic_write_entry(int apic, int pin, struct IO_APIC_route_entry e) pin 340 arch/x86/kernel/apic/io_apic.c io_apic_write(apic, 0x11 + 2*pin, eu.w2); pin 341 arch/x86/kernel/apic/io_apic.c io_apic_write(apic, 0x10 + 2*pin, eu.w1); pin 344 arch/x86/kernel/apic/io_apic.c static void ioapic_write_entry(int apic, int pin, struct IO_APIC_route_entry e) pin 349 arch/x86/kernel/apic/io_apic.c __ioapic_write_entry(apic, pin, e); pin 358 arch/x86/kernel/apic/io_apic.c static void ioapic_mask_entry(int apic, int pin) pin 364 arch/x86/kernel/apic/io_apic.c io_apic_write(apic, 0x10 + 2*pin, eu.w1); pin 365 arch/x86/kernel/apic/io_apic.c io_apic_write(apic, 0x11 + 2*pin, eu.w2); pin 375 arch/x86/kernel/apic/io_apic.c int node, int apic, int pin) pin 381 arch/x86/kernel/apic/io_apic.c if (entry->apic == apic && entry->pin == pin) pin 387 arch/x86/kernel/apic/io_apic.c node, apic, pin); pin 391 arch/x86/kernel/apic/io_apic.c entry->pin = pin; pin 397 arch/x86/kernel/apic/io_apic.c static void __remove_pin_from_irq(struct mp_chip_data *data, int apic, int pin) pin 402 arch/x86/kernel/apic/io_apic.c if (entry->apic == apic && entry->pin == pin) { pin 410 arch/x86/kernel/apic/io_apic.c int node, int apic, int pin) pin 412 arch/x86/kernel/apic/io_apic.c if (__add_pin_to_irq_node(data, node, apic, pin)) pin 426 arch/x86/kernel/apic/io_apic.c if (entry->apic == oldapic && entry->pin == oldpin) { pin 428 arch/x86/kernel/apic/io_apic.c entry->pin = newpin; pin 451 arch/x86/kernel/apic/io_apic.c io_apic_write(entry->apic, 0x10 + 2 * entry->pin, eu.w1); pin 510 arch/x86/kernel/apic/io_apic.c static void __eoi_ioapic_pin(int apic, int pin, int vector) pin 517 arch/x86/kernel/apic/io_apic.c entry = entry1 = __ioapic_read_entry(apic, pin); pin 525 arch/x86/kernel/apic/io_apic.c __ioapic_write_entry(apic, pin, entry1); pin 530 arch/x86/kernel/apic/io_apic.c __ioapic_write_entry(apic, pin, entry); pin 541 arch/x86/kernel/apic/io_apic.c __eoi_ioapic_pin(entry->apic, entry->pin, vector); pin 545 arch/x86/kernel/apic/io_apic.c static void clear_IO_APIC_pin(unsigned int apic, unsigned int pin) pin 550 arch/x86/kernel/apic/io_apic.c entry = ioapic_read_entry(apic, pin); pin 560 arch/x86/kernel/apic/io_apic.c ioapic_write_entry(apic, pin, entry); pin 561 arch/x86/kernel/apic/io_apic.c entry = ioapic_read_entry(apic, pin); pin 574 arch/x86/kernel/apic/io_apic.c ioapic_write_entry(apic, pin, entry); pin 577 arch/x86/kernel/apic/io_apic.c __eoi_ioapic_pin(apic, pin, entry.vector); pin 585 arch/x86/kernel/apic/io_apic.c ioapic_mask_entry(apic, pin); pin 586 arch/x86/kernel/apic/io_apic.c entry = ioapic_read_entry(apic, pin); pin 589 arch/x86/kernel/apic/io_apic.c mpc_ioapic_id(apic), pin); pin 594 arch/x86/kernel/apic/io_apic.c int apic, pin; pin 596 arch/x86/kernel/apic/io_apic.c for_each_ioapic_pin(apic, pin) pin 597 arch/x86/kernel/apic/io_apic.c clear_IO_APIC_pin(apic, pin); pin 643 arch/x86/kernel/apic/io_apic.c int apic, pin; pin 652 arch/x86/kernel/apic/io_apic.c for_each_pin(apic, pin) pin 653 arch/x86/kernel/apic/io_apic.c ioapics[apic].saved_registers[pin] = pin 654 arch/x86/kernel/apic/io_apic.c ioapic_read_entry(apic, pin); pin 665 arch/x86/kernel/apic/io_apic.c int apic, pin; pin 671 arch/x86/kernel/apic/io_apic.c for_each_pin(apic, pin) { pin 674 arch/x86/kernel/apic/io_apic.c entry = ioapics[apic].saved_registers[pin]; pin 677 arch/x86/kernel/apic/io_apic.c ioapic_write_entry(apic, pin, entry); pin 688 arch/x86/kernel/apic/io_apic.c int apic, pin; pin 694 arch/x86/kernel/apic/io_apic.c for_each_pin(apic, pin) pin 695 arch/x86/kernel/apic/io_apic.c ioapic_write_entry(apic, pin, pin 696 arch/x86/kernel/apic/io_apic.c ioapics[apic].saved_registers[pin]); pin 704 arch/x86/kernel/apic/io_apic.c static int find_irq_entry(int ioapic_idx, int pin, int type) pin 712 arch/x86/kernel/apic/io_apic.c mp_irqs[i].dstirq == pin) pin 888 arch/x86/kernel/apic/io_apic.c u32 gsi, int ioapic_idx, int pin) pin 895 arch/x86/kernel/apic/io_apic.c dst->ioapic_pin = pin; pin 1002 arch/x86/kernel/apic/io_apic.c int irq, int ioapic, int pin, pin 1034 arch/x86/kernel/apic/io_apic.c static int mp_map_pin_to_irq(u32 gsi, int idx, int ioapic, int pin, pin 1054 arch/x86/kernel/apic/io_apic.c irq = irq_find_mapping(domain, pin); pin 1059 arch/x86/kernel/apic/io_apic.c ioapic_copy_alloc_attr(&tmp, info, gsi, ioapic, pin); pin 1062 arch/x86/kernel/apic/io_apic.c ioapic, pin, &tmp); pin 1063 arch/x86/kernel/apic/io_apic.c else if ((irq = irq_find_mapping(domain, pin)) == 0) pin 1077 arch/x86/kernel/apic/io_apic.c static int pin_2_irq(int idx, int ioapic, int pin, unsigned int flags) pin 1079 arch/x86/kernel/apic/io_apic.c u32 gsi = mp_pin_to_gsi(ioapic, pin); pin 1084 arch/x86/kernel/apic/io_apic.c if (mp_irqs[idx].dstirq != pin) pin 1091 arch/x86/kernel/apic/io_apic.c if ((pin >= 16) && (pin <= 23)) { pin 1092 arch/x86/kernel/apic/io_apic.c if (pirq_entries[pin-16] != -1) { pin 1093 arch/x86/kernel/apic/io_apic.c if (!pirq_entries[pin-16]) { pin 1095 arch/x86/kernel/apic/io_apic.c "disabling PIRQ%d\n", pin-16); pin 1097 arch/x86/kernel/apic/io_apic.c int irq = pirq_entries[pin-16]; pin 1100 arch/x86/kernel/apic/io_apic.c pin-16, irq); pin 1107 arch/x86/kernel/apic/io_apic.c return mp_map_pin_to_irq(gsi, idx, ioapic, pin, flags, NULL); pin 1112 arch/x86/kernel/apic/io_apic.c int ioapic, pin, idx; pin 1118 arch/x86/kernel/apic/io_apic.c pin = mp_find_ioapic_pin(ioapic, gsi); pin 1119 arch/x86/kernel/apic/io_apic.c idx = find_irq_entry(ioapic, pin, mp_INT); pin 1123 arch/x86/kernel/apic/io_apic.c return mp_map_pin_to_irq(gsi, idx, ioapic, pin, flags, info); pin 1148 arch/x86/kernel/apic/io_apic.c int IO_APIC_get_PCI_irq_vector(int bus, int slot, int pin) pin 1154 arch/x86/kernel/apic/io_apic.c bus, slot, pin); pin 1183 arch/x86/kernel/apic/io_apic.c if (pin == (mp_irqs[i].srcbusirq & 3)) { pin 1211 arch/x86/kernel/apic/io_apic.c unsigned int ioapic, pin; pin 1216 arch/x86/kernel/apic/io_apic.c for_each_ioapic_pin(ioapic, pin) { pin 1217 arch/x86/kernel/apic/io_apic.c idx = find_irq_entry(ioapic, pin, mp_INT); pin 1221 arch/x86/kernel/apic/io_apic.c mpc_ioapic_id(ioapic), pin); pin 1223 arch/x86/kernel/apic/io_apic.c pin_2_irq(idx, ioapic, pin, pin 1356 arch/x86/kernel/apic/io_apic.c pr_cont("-> %d:%d", entry->apic, entry->pin); pin 1364 arch/x86/kernel/apic/io_apic.c static struct { int pin, apic; } ioapic_i8259 = { -1, -1 }; pin 1369 arch/x86/kernel/apic/io_apic.c int apic, pin; pin 1377 arch/x86/kernel/apic/io_apic.c for_each_ioapic_pin(apic, pin) { pin 1379 arch/x86/kernel/apic/io_apic.c struct IO_APIC_route_entry entry = ioapic_read_entry(apic, pin); pin 1386 arch/x86/kernel/apic/io_apic.c ioapic_i8259.pin = pin; pin 1399 arch/x86/kernel/apic/io_apic.c if ((ioapic_i8259.pin == -1) && (i8259_pin >= 0)) { pin 1401 arch/x86/kernel/apic/io_apic.c ioapic_i8259.pin = i8259_pin; pin 1405 arch/x86/kernel/apic/io_apic.c if (((ioapic_i8259.apic != i8259_apic) || (ioapic_i8259.pin != i8259_pin)) && pin 1406 arch/x86/kernel/apic/io_apic.c (i8259_pin >= 0) && (ioapic_i8259.pin >= 0)) pin 1424 arch/x86/kernel/apic/io_apic.c if (ioapic_i8259.pin != -1) { pin 1438 arch/x86/kernel/apic/io_apic.c ioapic_write_entry(ioapic_i8259.apic, ioapic_i8259.pin, entry); pin 1442 arch/x86/kernel/apic/io_apic.c disconnect_bsp_APIC(ioapic_i8259.pin != -1); pin 1713 arch/x86/kernel/apic/io_apic.c int pin; pin 1715 arch/x86/kernel/apic/io_apic.c pin = entry->pin; pin 1716 arch/x86/kernel/apic/io_apic.c reg = io_apic_read(entry->apic, 0x10 + pin*2); pin 1881 arch/x86/kernel/apic/io_apic.c __ioapic_write_entry(entry->apic, entry->pin, mpd->entry); pin 1928 arch/x86/kernel/apic/io_apic.c rentry = __ioapic_read_entry(p->apic, p->pin); pin 2040 arch/x86/kernel/apic/io_apic.c int apic, pin, i; pin 2044 arch/x86/kernel/apic/io_apic.c pin = find_isa_irq_pin(8, mp_INT); pin 2045 arch/x86/kernel/apic/io_apic.c if (pin == -1) { pin 2055 arch/x86/kernel/apic/io_apic.c entry0 = ioapic_read_entry(apic, pin); pin 2056 arch/x86/kernel/apic/io_apic.c clear_IO_APIC_pin(apic, pin); pin 2068 arch/x86/kernel/apic/io_apic.c ioapic_write_entry(apic, pin, entry1); pin 2085 arch/x86/kernel/apic/io_apic.c clear_IO_APIC_pin(apic, pin); pin 2087 arch/x86/kernel/apic/io_apic.c ioapic_write_entry(apic, pin, entry0); pin 2099 arch/x86/kernel/apic/io_apic.c static int mp_alloc_timer_irq(int ioapic, int pin) pin 2109 arch/x86/kernel/apic/io_apic.c info.ioapic_pin = pin; pin 2111 arch/x86/kernel/apic/io_apic.c irq = alloc_isa_irq_from_domain(domain, 0, ioapic, pin, &info); pin 2160 arch/x86/kernel/apic/io_apic.c pin2 = ioapic_i8259.pin; pin 2599 arch/x86/kernel/apic/io_apic.c int ioapic, pin, idx; pin 2608 arch/x86/kernel/apic/io_apic.c pin = mp_find_ioapic_pin(ioapic, gsi); pin 2609 arch/x86/kernel/apic/io_apic.c if (pin < 0) pin 2612 arch/x86/kernel/apic/io_apic.c idx = find_irq_entry(ioapic, pin, mp_INT); pin 2889 arch/x86/kernel/apic/io_apic.c int ioapic, pin; pin 2902 arch/x86/kernel/apic/io_apic.c for_each_pin(ioapic, pin) { pin 2903 arch/x86/kernel/apic/io_apic.c u32 gsi = mp_pin_to_gsi(ioapic, pin); pin 2911 arch/x86/kernel/apic/io_apic.c pin, ioapic); pin 2977 arch/x86/kernel/apic/io_apic.c int ret, ioapic, pin; pin 2991 arch/x86/kernel/apic/io_apic.c pin = info->ioapic_pin; pin 2992 arch/x86/kernel/apic/io_apic.c if (irq_find_mapping(domain, (irq_hw_number_t)pin) > 0) pin 3011 arch/x86/kernel/apic/io_apic.c mp_irqdomain_get_attr(mp_pin_to_gsi(ioapic, pin), data, info); pin 3014 arch/x86/kernel/apic/io_apic.c add_pin_to_irq_node(data, ioapic_alloc_attr_node(info), ioapic, pin); pin 3026 arch/x86/kernel/apic/io_apic.c ioapic, mpc_ioapic_id(ioapic), pin, cfg->vector, pin 90 arch/x86/kernel/devicetree.c u8 pin; pin 92 arch/x86/kernel/devicetree.c ret = pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 95 arch/x86/kernel/devicetree.c if (!pin) pin 35 arch/x86/kvm/irq_comm.c return kvm_pic_set_irq(pic, e->irqchip.pin, irq_source_id, level); pin 43 arch/x86/kvm/irq_comm.c return kvm_ioapic_set_irq(ioapic, e->irqchip.pin, irq_source_id, level, pin 251 arch/x86/kvm/irq_comm.c void kvm_fire_mask_notifiers(struct kvm *kvm, unsigned irqchip, unsigned pin, pin 258 arch/x86/kvm/irq_comm.c gsi = kvm_irq_map_chip_pin(kvm, irqchip, pin); pin 283 arch/x86/kvm/irq_comm.c e->irqchip.pin = ue->u.irqchip.pin; pin 286 arch/x86/kvm/irq_comm.c e->irqchip.pin += PIC_NUM_PINS / 2; pin 289 arch/x86/kvm/irq_comm.c if (ue->u.irqchip.pin >= PIC_NUM_PINS / 2) pin 294 arch/x86/kvm/irq_comm.c if (ue->u.irqchip.pin >= KVM_IOAPIC_NUM_PINS) pin 353 arch/x86/kvm/irq_comm.c .u.irqchip = { .irqchip = KVM_IRQCHIP_IOAPIC, .pin = (irq) } } pin 358 arch/x86/kvm/irq_comm.c .u.irqchip = { .irqchip = SELECT_PIC(irq), .pin = (irq) % 8 } } pin 386 arch/x86/kvm/trace.h TP_PROTO(__u8 chip, __u8 pin, __u8 elcr, __u8 imr, bool coalesced), pin 387 arch/x86/kvm/trace.h TP_ARGS(chip, pin, elcr, imr, coalesced), pin 391 arch/x86/kvm/trace.h __field( __u8, pin ) pin 399 arch/x86/kvm/trace.h __entry->pin = pin; pin 406 arch/x86/kvm/trace.h __entry->chip, __entry->pin, pin 407 arch/x86/kvm/trace.h (__entry->elcr & (1 << __entry->pin)) ? "level":"edge", pin 408 arch/x86/kvm/trace.h (__entry->imr & (1 << __entry->pin)) ? "|masked":"", pin 48 arch/x86/kvm/vmx/vmcs.h u32 pin; pin 427 arch/x86/kvm/vmx/vmx.h BUILD_CONTROLS_SHADOW(pin, PIN_BASED_VM_EXEC_CONTROL) pin 533 arch/x86/pci/irq.c int pin = pci_get_interrupt_pin(dev, &bridge); pin 534 arch/x86/pci/irq.c return pcibios_set_irq_routing(bridge, pin - 1, irq); pin 883 arch/x86/pci/irq.c u8 pin; pin 893 arch/x86/pci/irq.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 894 arch/x86/pci/irq.c if (!pin) { pin 910 arch/x86/pci/irq.c 'A' + pin - 1); pin 913 arch/x86/pci/irq.c pirq = info->irq[pin - 1].link; pin 914 arch/x86/pci/irq.c mask = info->irq[pin - 1].bitmap; pin 916 arch/x86/pci/irq.c dev_dbg(&dev->dev, "PCI INT %c not routed\n", 'A' + pin - 1); pin 920 arch/x86/pci/irq.c 'A' + pin - 1, pirq, mask, pirq_table->exclusive_irqs); pin 962 arch/x86/pci/irq.c dev_dbg(&dev->dev, "PCI INT %c -> newirq %d", 'A' + pin - 1, newirq); pin 990 arch/x86/pci/irq.c dev_info(&dev->dev, "%s PCI INT %c -> IRQ %d\n", msg, 'A' + pin - 1, irq); pin 994 arch/x86/pci/irq.c pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin); pin 995 arch/x86/pci/irq.c if (!pin) pin 1001 arch/x86/pci/irq.c if (info->irq[pin - 1].link == pirq) { pin 1029 arch/x86/pci/irq.c u8 pin; pin 1057 arch/x86/pci/irq.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 1058 arch/x86/pci/irq.c if (!pin) pin 1199 arch/x86/pci/irq.c u8 pin = 0; pin 1201 arch/x86/pci/irq.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 1202 arch/x86/pci/irq.c if (pin && !pcibios_lookup_irq(dev, 1)) { pin 1217 arch/x86/pci/irq.c PCI_SLOT(dev->devfn), pin - 1); pin 1228 arch/x86/pci/irq.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 1231 arch/x86/pci/irq.c pin - 1); pin 1235 arch/x86/pci/irq.c pci_name(bridge), 'A' + pin - 1, pin 1244 arch/x86/pci/irq.c "INT %c -> IRQ %d\n", 'A' + pin - 1, irq); pin 1263 arch/x86/pci/irq.c 'A' + pin - 1, msg); pin 405 arch/x86/pci/pcbios.c int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq) pin 416 arch/x86/pci/pcbios.c "c" ((irq << 8) | (pin + 10)), pin 123 arch/xtensa/lib/pci-auto.c u8 pin; pin 126 arch/xtensa/lib/pci-auto.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 130 arch/xtensa/lib/pci-auto.c if (pin == 0 || pin > 4) pin 131 arch/xtensa/lib/pci-auto.c pin = 1; pin 134 arch/xtensa/lib/pci-auto.c irq = pci_ctrl->map_irq(dev, PCI_SLOT(devfn), pin); pin 139 arch/xtensa/lib/pci-auto.c pr_debug("PCI Autoconfig: Interrupt %d, pin %d\n", irq, pin); pin 285 drivers/acpi/acpica/rscreate.c user_prt->pin = (u32) obj_desc->integer.value; pin 529 drivers/acpi/acpica/rsdumpinfo.c {ACPI_RSD_UINT32, ACPI_PRT_OFFSET(pin), "Pin", NULL}, pin 32 drivers/acpi/pci_irq.c u8 pin; pin 37 drivers/acpi/pci_irq.c static inline char pin_name(int pin) pin 39 drivers/acpi/pci_irq.c return 'A' + pin - 1; pin 88 drivers/acpi/pci_irq.c unsigned char pin; pin 126 drivers/acpi/pci_irq.c entry->pin == quirk->pin && pin 133 drivers/acpi/pci_irq.c entry->id.device, pin_name(entry->pin), pin 141 drivers/acpi/pci_irq.c int pin, struct acpi_pci_routing_table *prt, pin 150 drivers/acpi/pci_irq.c prt->pin + 1 != pin) pin 165 drivers/acpi/pci_irq.c entry->pin = prt->pin + 1; pin 198 drivers/acpi/pci_irq.c entry->id.device, pin_name(entry->pin), pin 207 drivers/acpi/pci_irq.c int pin, struct acpi_prt_entry **entry_ptr) pin 229 drivers/acpi/pci_irq.c if (!acpi_pci_irq_check_entry(handle, dev, pin, pin 298 drivers/acpi/pci_irq.c static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin) pin 302 drivers/acpi/pci_irq.c u8 bridge_pin, orig_pin = pin; pin 305 drivers/acpi/pci_irq.c ret = acpi_pci_irq_find_prt_entry(dev, pin, &entry); pin 311 drivers/acpi/pci_irq.c pci_name(dev), pin_name(pin))); pin 321 drivers/acpi/pci_irq.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 325 drivers/acpi/pci_irq.c bridge_pin = bridge->pin; pin 332 drivers/acpi/pci_irq.c pin = bridge_pin; pin 335 drivers/acpi/pci_irq.c ret = acpi_pci_irq_find_prt_entry(bridge, pin, &entry); pin 363 drivers/acpi/pci_irq.c pin_name(dev->pin), dev->irq); pin 378 drivers/acpi/pci_irq.c static inline bool acpi_pci_irq_valid(struct pci_dev *dev, u8 pin) pin 388 drivers/acpi/pci_irq.c pin_name(pin)); pin 399 drivers/acpi/pci_irq.c u8 pin; pin 414 drivers/acpi/pci_irq.c pin = dev->pin; pin 415 drivers/acpi/pci_irq.c if (!pin) { pin 425 drivers/acpi/pci_irq.c entry = acpi_pci_irq_lookup(dev, pin); pin 452 drivers/acpi/pci_irq.c if (!acpi_pci_irq_valid(dev, pin)) { pin 459 drivers/acpi/pci_irq.c pin_name(pin)); pin 468 drivers/acpi/pci_irq.c pin_name(pin)); pin 481 drivers/acpi/pci_irq.c pin_name(pin), link_desc, gsi, pin 493 drivers/acpi/pci_irq.c u8 pin; pin 495 drivers/acpi/pci_irq.c pin = dev->pin; pin 496 drivers/acpi/pci_irq.c if (!pin || !dev->irq_managed || dev->irq <= 0) pin 507 drivers/acpi/pci_irq.c entry = acpi_pci_irq_lookup(dev, pin); pin 523 drivers/acpi/pci_irq.c dev_dbg(&dev->dev, "PCI INT %c disabled\n", pin_name(pin)); pin 629 drivers/auxdisplay/panel.c static void pin_to_bits(int pin, unsigned char *d_val, unsigned char *c_val) pin 640 drivers/auxdisplay/panel.c if (pin == 0) pin 643 drivers/auxdisplay/panel.c inv = (pin < 0); pin 645 drivers/auxdisplay/panel.c pin = -pin; pin 650 drivers/auxdisplay/panel.c switch (pin) { pin 656 drivers/auxdisplay/panel.c d_bit = 1 << (pin - 2); pin 3064 drivers/bluetooth/btusb.c u16 pin, gap, opcode; pin 3069 drivers/bluetooth/btusb.c if (of_property_read_u16(dev->of_node, "marvell,wakeup-pin", &pin) || pin 3078 drivers/bluetooth/btusb.c cmd[3] = pin; pin 88 drivers/char/tb0219.c static inline char get_gpio_input_pin(unsigned int pin) pin 93 drivers/char/tb0219.c if (values & (1 << pin)) pin 99 drivers/char/tb0219.c static inline char get_gpio_output_pin(unsigned int pin) pin 104 drivers/char/tb0219.c if (values & (1 << pin)) pin 110 drivers/char/tb0219.c static inline char get_dip_switch(unsigned int pin) pin 115 drivers/char/tb0219.c if (values & (1 << pin)) pin 128 drivers/char/tb0219.c static inline int set_gpio_output_pin(unsigned int pin, char command) pin 139 drivers/char/tb0219.c value &= ~(1 << pin); pin 141 drivers/char/tb0219.c value |= 1 << pin; pin 44 drivers/gpio/gpio-74x164.c u8 pin = offset % 8; pin 48 drivers/gpio/gpio-74x164.c ret = (chip->buffer[bank] >> pin) & 0x1; pin 59 drivers/gpio/gpio-74x164.c u8 pin = offset % 8; pin 63 drivers/gpio/gpio-74x164.c chip->buffer[bank] |= (1 << pin); pin 65 drivers/gpio/gpio-74x164.c chip->buffer[bank] &= ~(1 << pin); pin 65 drivers/gpio/gpio-dln2.c __le16 pin; pin 69 drivers/gpio/gpio-dln2.c __le16 pin __packed; pin 88 drivers/gpio/gpio-dln2.c static int dln2_gpio_pin_cmd(struct dln2_gpio *dln2, int cmd, unsigned pin) pin 91 drivers/gpio/gpio-dln2.c .pin = cpu_to_le16(pin), pin 97 drivers/gpio/gpio-dln2.c static int dln2_gpio_pin_val(struct dln2_gpio *dln2, int cmd, unsigned int pin) pin 101 drivers/gpio/gpio-dln2.c .pin = cpu_to_le16(pin), pin 109 drivers/gpio/gpio-dln2.c if (len < sizeof(rsp) || req.pin != rsp.pin) pin 115 drivers/gpio/gpio-dln2.c static int dln2_gpio_pin_get_in_val(struct dln2_gpio *dln2, unsigned int pin) pin 119 drivers/gpio/gpio-dln2.c ret = dln2_gpio_pin_val(dln2, DLN2_GPIO_PIN_GET_VAL, pin); pin 125 drivers/gpio/gpio-dln2.c static int dln2_gpio_pin_get_out_val(struct dln2_gpio *dln2, unsigned int pin) pin 129 drivers/gpio/gpio-dln2.c ret = dln2_gpio_pin_val(dln2, DLN2_GPIO_PIN_GET_OUT_VAL, pin); pin 136 drivers/gpio/gpio-dln2.c unsigned int pin, int value) pin 139 drivers/gpio/gpio-dln2.c .pin = cpu_to_le16(pin), pin 154 drivers/gpio/gpio-dln2.c .pin = cpu_to_le16(offset), pin 169 drivers/gpio/gpio-dln2.c if (len < sizeof(rsp) || req.pin != rsp.pin) { pin 235 drivers/gpio/gpio-dln2.c .pin = cpu_to_le16(offset), pin 285 drivers/gpio/gpio-dln2.c static int dln2_gpio_set_event_cfg(struct dln2_gpio *dln2, unsigned pin, pin 289 drivers/gpio/gpio-dln2.c __le16 pin; pin 293 drivers/gpio/gpio-dln2.c .pin = cpu_to_le16(pin), pin 306 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); pin 308 drivers/gpio/gpio-dln2.c set_bit(pin, dln2->unmasked_irqs); pin 315 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); pin 317 drivers/gpio/gpio-dln2.c clear_bit(pin, dln2->unmasked_irqs); pin 324 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); pin 328 drivers/gpio/gpio-dln2.c dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_HIGH; pin 331 drivers/gpio/gpio-dln2.c dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_LOW; pin 334 drivers/gpio/gpio-dln2.c dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE; pin 337 drivers/gpio/gpio-dln2.c dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_RISING; pin 340 drivers/gpio/gpio-dln2.c dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_FALLING; pin 361 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); pin 366 drivers/gpio/gpio-dln2.c enabled = test_bit(pin, dln2->enabled_irqs); pin 367 drivers/gpio/gpio-dln2.c unmasked = test_bit(pin, dln2->unmasked_irqs); pin 371 drivers/gpio/gpio-dln2.c type = dln2->irq_type[pin] & DLN2_GPIO_EVENT_MASK; pin 372 drivers/gpio/gpio-dln2.c set_bit(pin, dln2->enabled_irqs); pin 375 drivers/gpio/gpio-dln2.c clear_bit(pin, dln2->enabled_irqs); pin 378 drivers/gpio/gpio-dln2.c ret = dln2_gpio_set_event_cfg(dln2, pin, type, 0); pin 398 drivers/gpio/gpio-dln2.c int pin, irq; pin 403 drivers/gpio/gpio-dln2.c __le16 pin; pin 413 drivers/gpio/gpio-dln2.c pin = le16_to_cpu(event->pin); pin 414 drivers/gpio/gpio-dln2.c if (pin >= dln2->gpio.ngpio) { pin 415 drivers/gpio/gpio-dln2.c dev_err(dln2->gpio.parent, "out of bounds pin %d\n", pin); pin 419 drivers/gpio/gpio-dln2.c irq = irq_find_mapping(dln2->gpio.irq.domain, pin); pin 421 drivers/gpio/gpio-dln2.c dev_err(dln2->gpio.parent, "pin %d not mapped to IRQ\n", pin); pin 425 drivers/gpio/gpio-dln2.c switch (dln2->irq_type[pin]) { pin 57 drivers/gpio/gpio-lpc18xx.c u32 pin, bool set) pin 62 drivers/gpio/gpio-lpc18xx.c val &= ~BIT(pin); pin 64 drivers/gpio/gpio-lpc18xx.c val |= BIT(pin); pin 70 drivers/gpio/gpio-lpc18xx.c u32 pin, u32 reg) pin 72 drivers/gpio/gpio-lpc18xx.c writel_relaxed(BIT(pin), ic->base + reg); pin 285 drivers/gpio/gpio-lpc18xx.c u32 port, pin, dir; pin 288 drivers/gpio/gpio-lpc18xx.c pin = offset % LPC18XX_PINS_PER_PORT; pin 293 drivers/gpio/gpio-lpc18xx.c dir |= BIT(pin); pin 295 drivers/gpio/gpio-lpc18xx.c dir &= ~BIT(pin); pin 179 drivers/gpio/gpio-lpc32xx.c unsigned pin, int input) pin 182 drivers/gpio/gpio-lpc32xx.c gpreg_write(group, GPIO012_PIN_TO_BIT(pin), pin 185 drivers/gpio/gpio-lpc32xx.c gpreg_write(group, GPIO012_PIN_TO_BIT(pin), pin 190 drivers/gpio/gpio-lpc32xx.c unsigned pin, int input) pin 192 drivers/gpio/gpio-lpc32xx.c u32 u = GPIO3_PIN_TO_BIT(pin); pin 201 drivers/gpio/gpio-lpc32xx.c unsigned pin, int high) pin 204 drivers/gpio/gpio-lpc32xx.c gpreg_write(group, GPIO012_PIN_TO_BIT(pin), pin 207 drivers/gpio/gpio-lpc32xx.c gpreg_write(group, GPIO012_PIN_TO_BIT(pin), pin 212 drivers/gpio/gpio-lpc32xx.c unsigned pin, int high) pin 214 drivers/gpio/gpio-lpc32xx.c u32 u = GPIO3_PIN_TO_BIT(pin); pin 223 drivers/gpio/gpio-lpc32xx.c unsigned pin, int high) pin 226 drivers/gpio/gpio-lpc32xx.c gpreg_write(group, GPO3_PIN_TO_BIT(pin), group->gpio_grp->outp_set); pin 228 drivers/gpio/gpio-lpc32xx.c gpreg_write(group, GPO3_PIN_TO_BIT(pin), group->gpio_grp->outp_clr); pin 232 drivers/gpio/gpio-lpc32xx.c unsigned pin) pin 235 drivers/gpio/gpio-lpc32xx.c pin); pin 239 drivers/gpio/gpio-lpc32xx.c unsigned pin) pin 247 drivers/gpio/gpio-lpc32xx.c return GPIO3_PIN_IN_SEL(state, pin); pin 251 drivers/gpio/gpio-lpc32xx.c unsigned pin) pin 253 drivers/gpio/gpio-lpc32xx.c return GPI3_PIN_IN_SEL(gpreg_read(group, group->gpio_grp->inp_state), pin); pin 257 drivers/gpio/gpio-lpc32xx.c unsigned pin) pin 259 drivers/gpio/gpio-lpc32xx.c return GPO3_PIN_IN_SEL(gpreg_read(group, group->gpio_grp->outp_state), pin); pin 266 drivers/gpio/gpio-lpc32xx.c unsigned pin) pin 270 drivers/gpio/gpio-lpc32xx.c __set_gpio_dir_p012(group, pin, 1); pin 276 drivers/gpio/gpio-lpc32xx.c unsigned pin) pin 280 drivers/gpio/gpio-lpc32xx.c __set_gpio_dir_p3(group, pin, 1); pin 286 drivers/gpio/gpio-lpc32xx.c unsigned pin) pin 291 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpio_get_value_p012(struct gpio_chip *chip, unsigned pin) pin 295 drivers/gpio/gpio-lpc32xx.c return !!__get_gpio_state_p012(group, pin); pin 298 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpio_get_value_p3(struct gpio_chip *chip, unsigned pin) pin 302 drivers/gpio/gpio-lpc32xx.c return !!__get_gpio_state_p3(group, pin); pin 305 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpi_get_value(struct gpio_chip *chip, unsigned pin) pin 309 drivers/gpio/gpio-lpc32xx.c return !!__get_gpi_state_p3(group, pin); pin 312 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpio_dir_output_p012(struct gpio_chip *chip, unsigned pin, pin 317 drivers/gpio/gpio-lpc32xx.c __set_gpio_level_p012(group, pin, value); pin 318 drivers/gpio/gpio-lpc32xx.c __set_gpio_dir_p012(group, pin, 0); pin 323 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpio_dir_output_p3(struct gpio_chip *chip, unsigned pin, pin 328 drivers/gpio/gpio-lpc32xx.c __set_gpio_level_p3(group, pin, value); pin 329 drivers/gpio/gpio-lpc32xx.c __set_gpio_dir_p3(group, pin, 0); pin 334 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpio_dir_out_always(struct gpio_chip *chip, unsigned pin, pin 339 drivers/gpio/gpio-lpc32xx.c __set_gpo_level_p3(group, pin, value); pin 343 drivers/gpio/gpio-lpc32xx.c static void lpc32xx_gpio_set_value_p012(struct gpio_chip *chip, unsigned pin, pin 348 drivers/gpio/gpio-lpc32xx.c __set_gpio_level_p012(group, pin, value); pin 351 drivers/gpio/gpio-lpc32xx.c static void lpc32xx_gpio_set_value_p3(struct gpio_chip *chip, unsigned pin, pin 356 drivers/gpio/gpio-lpc32xx.c __set_gpio_level_p3(group, pin, value); pin 359 drivers/gpio/gpio-lpc32xx.c static void lpc32xx_gpo_set_value(struct gpio_chip *chip, unsigned pin, pin 364 drivers/gpio/gpio-lpc32xx.c __set_gpo_level_p3(group, pin, value); pin 367 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpo_get_value(struct gpio_chip *chip, unsigned pin) pin 371 drivers/gpio/gpio-lpc32xx.c return !!__get_gpo_state_p3(group, pin); pin 374 drivers/gpio/gpio-lpc32xx.c static int lpc32xx_gpio_request(struct gpio_chip *chip, unsigned pin) pin 376 drivers/gpio/gpio-lpc32xx.c if (pin < chip->ngpio) pin 236 drivers/gpio/gpio-lynxpoint.c u32 base, pin; pin 246 drivers/gpio/gpio-lynxpoint.c for_each_set_bit(pin, &pending, 32) { pin 250 drivers/gpio/gpio-lynxpoint.c outl(BIT(pin), reg); pin 252 drivers/gpio/gpio-lynxpoint.c irq = irq_find_mapping(lg->chip.irq.domain, base + pin); pin 230 drivers/gpio/gpio-msic.c u8 pin; pin 233 drivers/gpio/gpio-msic.c intel_msic_irq_read(msic, INTEL_MSIC_GPIO0LVIRQ + i, &pin); pin 234 drivers/gpio/gpio-msic.c pending = pin; pin 113 drivers/gpio/gpio-mt7621.c int pin = d->hwirq; pin 122 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_REDGE, rise | (BIT(pin) & rg->rising)); pin 123 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_FEDGE, fall | (BIT(pin) & rg->falling)); pin 124 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_HLVL, high | (BIT(pin) & rg->hlevel)); pin 125 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_LLVL, low | (BIT(pin) & rg->llevel)); pin 134 drivers/gpio/gpio-mt7621.c int pin = d->hwirq; pin 143 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_FEDGE, fall & ~BIT(pin)); pin 144 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_REDGE, rise & ~BIT(pin)); pin 145 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_HLVL, high & ~BIT(pin)); pin 146 drivers/gpio/gpio-mt7621.c mtk_gpio_w32(rg, GPIO_REG_LLVL, low & ~BIT(pin)); pin 155 drivers/gpio/gpio-mt7621.c int pin = d->hwirq; pin 156 drivers/gpio/gpio-mt7621.c u32 mask = BIT(pin); pin 299 drivers/gpio/gpio-mvebu.c static void mvebu_gpio_set(struct gpio_chip *chip, unsigned int pin, int value) pin 304 drivers/gpio/gpio-mvebu.c BIT(pin), value ? BIT(pin) : 0); pin 307 drivers/gpio/gpio-mvebu.c static int mvebu_gpio_get(struct gpio_chip *chip, unsigned int pin) pin 314 drivers/gpio/gpio-mvebu.c if (u & BIT(pin)) { pin 326 drivers/gpio/gpio-mvebu.c return (u >> pin) & 1; pin 329 drivers/gpio/gpio-mvebu.c static void mvebu_gpio_blink(struct gpio_chip *chip, unsigned int pin, pin 335 drivers/gpio/gpio-mvebu.c BIT(pin), value ? BIT(pin) : 0); pin 338 drivers/gpio/gpio-mvebu.c static int mvebu_gpio_direction_input(struct gpio_chip *chip, unsigned int pin) pin 347 drivers/gpio/gpio-mvebu.c ret = pinctrl_gpio_direction_input(chip->base + pin); pin 352 drivers/gpio/gpio-mvebu.c BIT(pin), BIT(pin)); pin 357 drivers/gpio/gpio-mvebu.c static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned int pin, pin 367 drivers/gpio/gpio-mvebu.c ret = pinctrl_gpio_direction_output(chip->base + pin); pin 371 drivers/gpio/gpio-mvebu.c mvebu_gpio_blink(chip, pin, 0); pin 372 drivers/gpio/gpio-mvebu.c mvebu_gpio_set(chip, pin, value); pin 375 drivers/gpio/gpio-mvebu.c BIT(pin), 0); pin 380 drivers/gpio/gpio-mvebu.c static int mvebu_gpio_get_direction(struct gpio_chip *chip, unsigned int pin) pin 387 drivers/gpio/gpio-mvebu.c return !!(u & BIT(pin)); pin 390 drivers/gpio/gpio-mvebu.c static int mvebu_gpio_to_irq(struct gpio_chip *chip, unsigned int pin) pin 394 drivers/gpio/gpio-mvebu.c return irq_create_mapping(mvchip->domain, pin); pin 494 drivers/gpio/gpio-mvebu.c int pin; pin 497 drivers/gpio/gpio-mvebu.c pin = d->hwirq; pin 500 drivers/gpio/gpio-mvebu.c if ((u & BIT(pin)) == 0) pin 520 drivers/gpio/gpio-mvebu.c BIT(pin), 0); pin 526 drivers/gpio/gpio-mvebu.c BIT(pin), BIT(pin)); pin 539 drivers/gpio/gpio-mvebu.c if ((data_in ^ in_pol) & BIT(pin)) pin 540 drivers/gpio/gpio-mvebu.c val = BIT(pin); /* falling */ pin 546 drivers/gpio/gpio-mvebu.c BIT(pin), val); pin 58 drivers/gpio/gpio-sama5d2-piobu.c static int sama5d2_piobu_setup_pin(struct gpio_chip *chip, unsigned int pin) pin 63 drivers/gpio/gpio-sama5d2-piobu.c unsigned int mask = BIT(PIOBU_DET_OFFSET + pin); pin 79 drivers/gpio/gpio-sama5d2-piobu.c static int sama5d2_piobu_write_value(struct gpio_chip *chip, unsigned int pin, pin 86 drivers/gpio/gpio-sama5d2-piobu.c reg = PIOBU_BASE + pin * PIOBU_REG_SIZE; pin 95 drivers/gpio/gpio-sama5d2-piobu.c static int sama5d2_piobu_read_value(struct gpio_chip *chip, unsigned int pin, pin 103 drivers/gpio/gpio-sama5d2-piobu.c reg = PIOBU_BASE + pin * PIOBU_REG_SIZE; pin 115 drivers/gpio/gpio-sama5d2-piobu.c unsigned int pin) pin 117 drivers/gpio/gpio-sama5d2-piobu.c int ret = sama5d2_piobu_read_value(chip, pin, PIOBU_DIRECTION); pin 129 drivers/gpio/gpio-sama5d2-piobu.c unsigned int pin) pin 131 drivers/gpio/gpio-sama5d2-piobu.c return sama5d2_piobu_write_value(chip, pin, PIOBU_DIRECTION, PIOBU_IN); pin 138 drivers/gpio/gpio-sama5d2-piobu.c unsigned int pin, int value) pin 145 drivers/gpio/gpio-sama5d2-piobu.c return sama5d2_piobu_write_value(chip, pin, PIOBU_DIRECTION | PIOBU_SOD, pin 152 drivers/gpio/gpio-sama5d2-piobu.c static int sama5d2_piobu_get(struct gpio_chip *chip, unsigned int pin) pin 155 drivers/gpio/gpio-sama5d2-piobu.c int ret = sama5d2_piobu_get_direction(chip, pin); pin 158 drivers/gpio/gpio-sama5d2-piobu.c ret = sama5d2_piobu_read_value(chip, pin, PIOBU_PDS); pin 160 drivers/gpio/gpio-sama5d2-piobu.c ret = sama5d2_piobu_read_value(chip, pin, PIOBU_SOD); pin 171 drivers/gpio/gpio-sama5d2-piobu.c static void sama5d2_piobu_set(struct gpio_chip *chip, unsigned int pin, pin 179 drivers/gpio/gpio-sama5d2-piobu.c sama5d2_piobu_write_value(chip, pin, PIOBU_SOD, value); pin 374 drivers/gpio/gpio-tegra.c unsigned int port, pin, gpio; pin 390 drivers/gpio/gpio-tegra.c for_each_set_bit(pin, &sta, 8) { pin 391 drivers/gpio/gpio-tegra.c tegra_gpio_writel(tgi, 1 << pin, pin 398 drivers/gpio/gpio-tegra.c if (!unmasked && lvl & (0x100 << pin)) { pin 404 drivers/gpio/gpio-tegra.c gpio + pin)); pin 70 drivers/gpio/gpio-tegra186.c tegra186_gpio_get_port(struct tegra_gpio *gpio, unsigned int *pin) pin 77 drivers/gpio/gpio-tegra186.c if (*pin >= start && *pin < start + port->pins) { pin 78 drivers/gpio/gpio-tegra186.c *pin -= start; pin 89 drivers/gpio/gpio-tegra186.c unsigned int pin) pin 93 drivers/gpio/gpio-tegra186.c port = tegra186_gpio_get_port(gpio, &pin); pin 97 drivers/gpio/gpio-tegra186.c return gpio->base + port->offset + pin * 0x20; pin 212 drivers/gpio/gpio-tegra186.c unsigned int port, pin, i, offset = 0; pin 221 drivers/gpio/gpio-tegra186.c pin = spec->args[0] % 8; pin 234 drivers/gpio/gpio-tegra186.c return offset + pin; pin 346 drivers/gpio/gpio-tegra186.c unsigned int pin, irq; pin 355 drivers/gpio/gpio-tegra186.c for_each_set_bit(pin, &value, port->pins) { pin 356 drivers/gpio/gpio-tegra186.c irq = irq_find_mapping(domain, offset + pin); pin 377 drivers/gpio/gpio-tegra186.c unsigned int port, pin, i, offset = 0; pin 383 drivers/gpio/gpio-tegra186.c pin = spec[0] % 8; pin 394 drivers/gpio/gpio-tegra186.c *hwirq = offset + pin; pin 142 drivers/gpio/gpio-vf610.c int pin; pin 149 drivers/gpio/gpio-vf610.c for_each_set_bit(pin, &irq_isfr, VF610_GPIO_PER_PORT) { pin 150 drivers/gpio/gpio-vf610.c vf610_gpio_writel(BIT(pin), port->base + PORT_ISFR); pin 152 drivers/gpio/gpio-vf610.c generic_handle_irq(irq_find_mapping(port->gc.irq.domain, pin)); pin 114 drivers/gpio/gpio-vr41xx.c unsigned int pin; pin 116 drivers/gpio/gpio-vr41xx.c pin = GPIO_PIN_OF_IRQ(d->irq); pin 117 drivers/gpio/gpio-vr41xx.c giu_clear(GIUINTENL, 1 << pin); pin 118 drivers/gpio/gpio-vr41xx.c giu_write(GIUINTSTATL, 1 << pin); pin 172 drivers/gpio/gpio-vr41xx.c unsigned int pin; pin 174 drivers/gpio/gpio-vr41xx.c pin = GPIO_PIN_OF_IRQ(d->irq) - GIUINT_HIGH_OFFSET; pin 175 drivers/gpio/gpio-vr41xx.c giu_clear(GIUINTENH, 1 << pin); pin 176 drivers/gpio/gpio-vr41xx.c giu_write(GIUINTSTATH, 1 << pin); pin 225 drivers/gpio/gpio-vr41xx.c void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger, pin 230 drivers/gpio/gpio-vr41xx.c if (pin < GIUINT_HIGH_OFFSET) { pin 231 drivers/gpio/gpio-vr41xx.c mask = 1 << pin; pin 254 drivers/gpio/gpio-vr41xx.c irq_set_chip_and_handler(GIU_IRQ(pin), pin 260 drivers/gpio/gpio-vr41xx.c irq_set_chip_and_handler(GIU_IRQ(pin), pin 265 drivers/gpio/gpio-vr41xx.c } else if (pin < GIUINT_HIGH_MAX) { pin 266 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - GIUINT_HIGH_OFFSET); pin 289 drivers/gpio/gpio-vr41xx.c irq_set_chip_and_handler(GIU_IRQ(pin), pin 295 drivers/gpio/gpio-vr41xx.c irq_set_chip_and_handler(GIU_IRQ(pin), pin 304 drivers/gpio/gpio-vr41xx.c void vr41xx_set_irq_level(unsigned int pin, irq_level_t level) pin 308 drivers/gpio/gpio-vr41xx.c if (pin < GIUINT_HIGH_OFFSET) { pin 309 drivers/gpio/gpio-vr41xx.c mask = 1 << pin; pin 315 drivers/gpio/gpio-vr41xx.c } else if (pin < GIUINT_HIGH_MAX) { pin 316 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - GIUINT_HIGH_OFFSET); pin 326 drivers/gpio/gpio-vr41xx.c static int giu_set_direction(struct gpio_chip *chip, unsigned pin, int dir) pin 331 drivers/gpio/gpio-vr41xx.c if (pin >= chip->ngpio) pin 334 drivers/gpio/gpio-vr41xx.c if (pin < 16) { pin 336 drivers/gpio/gpio-vr41xx.c mask = 1 << pin; pin 337 drivers/gpio/gpio-vr41xx.c } else if (pin < 32) { pin 339 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 16); pin 343 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 32); pin 345 drivers/gpio/gpio-vr41xx.c switch (pin) { pin 374 drivers/gpio/gpio-vr41xx.c static int vr41xx_gpio_get(struct gpio_chip *chip, unsigned pin) pin 378 drivers/gpio/gpio-vr41xx.c if (pin >= chip->ngpio) pin 381 drivers/gpio/gpio-vr41xx.c if (pin < 16) { pin 383 drivers/gpio/gpio-vr41xx.c mask = 1 << pin; pin 384 drivers/gpio/gpio-vr41xx.c } else if (pin < 32) { pin 386 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 16); pin 387 drivers/gpio/gpio-vr41xx.c } else if (pin < 48) { pin 389 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 32); pin 392 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 48); pin 401 drivers/gpio/gpio-vr41xx.c static void vr41xx_gpio_set(struct gpio_chip *chip, unsigned pin, pin 407 drivers/gpio/gpio-vr41xx.c if (pin >= chip->ngpio) pin 410 drivers/gpio/gpio-vr41xx.c if (pin < 16) { pin 412 drivers/gpio/gpio-vr41xx.c mask = 1 << pin; pin 413 drivers/gpio/gpio-vr41xx.c } else if (pin < 32) { pin 415 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 16); pin 416 drivers/gpio/gpio-vr41xx.c } else if (pin < 48) { pin 418 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 32); pin 421 drivers/gpio/gpio-vr41xx.c mask = 1 << (pin - 48); pin 470 drivers/gpio/gpio-vr41xx.c unsigned int trigger, i, pin; pin 506 drivers/gpio/gpio-vr41xx.c pin = GPIO_PIN_OF_IRQ(i); pin 507 drivers/gpio/gpio-vr41xx.c if (pin < GIUINT_HIGH_OFFSET) pin 512 drivers/gpio/gpio-vr41xx.c if (trigger & (1 << pin)) pin 60 drivers/gpio/gpio-zevio.c static inline u32 zevio_gpio_port_get(struct zevio_gpio *c, unsigned pin, pin 63 drivers/gpio/gpio-zevio.c unsigned section_offset = ((pin >> 3) & 3)*ZEVIO_GPIO_SECTION_SIZE; pin 67 drivers/gpio/gpio-zevio.c static inline void zevio_gpio_port_set(struct zevio_gpio *c, unsigned pin, pin 70 drivers/gpio/gpio-zevio.c unsigned section_offset = ((pin >> 3) & 3)*ZEVIO_GPIO_SECTION_SIZE; pin 75 drivers/gpio/gpio-zevio.c static int zevio_gpio_get(struct gpio_chip *chip, unsigned pin) pin 81 drivers/gpio/gpio-zevio.c dir = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_DIRECTION); pin 82 drivers/gpio/gpio-zevio.c if (dir & BIT(ZEVIO_GPIO_BIT(pin))) pin 83 drivers/gpio/gpio-zevio.c val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_INPUT); pin 85 drivers/gpio/gpio-zevio.c val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_OUTPUT); pin 88 drivers/gpio/gpio-zevio.c return (val >> ZEVIO_GPIO_BIT(pin)) & 0x1; pin 91 drivers/gpio/gpio-zevio.c static void zevio_gpio_set(struct gpio_chip *chip, unsigned pin, int value) pin 97 drivers/gpio/gpio-zevio.c val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_OUTPUT); pin 99 drivers/gpio/gpio-zevio.c val |= BIT(ZEVIO_GPIO_BIT(pin)); pin 101 drivers/gpio/gpio-zevio.c val &= ~BIT(ZEVIO_GPIO_BIT(pin)); pin 103 drivers/gpio/gpio-zevio.c zevio_gpio_port_set(controller, pin, ZEVIO_GPIO_OUTPUT, val); pin 107 drivers/gpio/gpio-zevio.c static int zevio_gpio_direction_input(struct gpio_chip *chip, unsigned pin) pin 114 drivers/gpio/gpio-zevio.c val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_DIRECTION); pin 115 drivers/gpio/gpio-zevio.c val |= BIT(ZEVIO_GPIO_BIT(pin)); pin 116 drivers/gpio/gpio-zevio.c zevio_gpio_port_set(controller, pin, ZEVIO_GPIO_DIRECTION, val); pin 124 drivers/gpio/gpio-zevio.c unsigned pin, int value) pin 130 drivers/gpio/gpio-zevio.c val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_OUTPUT); pin 132 drivers/gpio/gpio-zevio.c val |= BIT(ZEVIO_GPIO_BIT(pin)); pin 134 drivers/gpio/gpio-zevio.c val &= ~BIT(ZEVIO_GPIO_BIT(pin)); pin 136 drivers/gpio/gpio-zevio.c zevio_gpio_port_set(controller, pin, ZEVIO_GPIO_OUTPUT, val); pin 137 drivers/gpio/gpio-zevio.c val = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_DIRECTION); pin 138 drivers/gpio/gpio-zevio.c val &= ~BIT(ZEVIO_GPIO_BIT(pin)); pin 139 drivers/gpio/gpio-zevio.c zevio_gpio_port_set(controller, pin, ZEVIO_GPIO_DIRECTION, val); pin 146 drivers/gpio/gpio-zevio.c static int zevio_gpio_to_irq(struct gpio_chip *chip, unsigned pin) pin 216 drivers/gpio/gpio-zynq.c static int zynq_gpio_get_value(struct gpio_chip *chip, unsigned int pin) pin 222 drivers/gpio/gpio-zynq.c zynq_gpio_get_bank_pin(pin, &bank_num, &bank_pin_num, gpio); pin 259 drivers/gpio/gpio-zynq.c static void zynq_gpio_set_value(struct gpio_chip *chip, unsigned int pin, pin 265 drivers/gpio/gpio-zynq.c zynq_gpio_get_bank_pin(pin, &bank_num, &bank_pin_num, gpio); pin 296 drivers/gpio/gpio-zynq.c static int zynq_gpio_dir_in(struct gpio_chip *chip, unsigned int pin) pin 302 drivers/gpio/gpio-zynq.c zynq_gpio_get_bank_pin(pin, &bank_num, &bank_pin_num, gpio); pin 332 drivers/gpio/gpio-zynq.c static int zynq_gpio_dir_out(struct gpio_chip *chip, unsigned int pin, pin 339 drivers/gpio/gpio-zynq.c zynq_gpio_get_bank_pin(pin, &bank_num, &bank_pin_num, gpio); pin 352 drivers/gpio/gpio-zynq.c zynq_gpio_set_value(chip, pin, state); pin 365 drivers/gpio/gpio-zynq.c static int zynq_gpio_get_direction(struct gpio_chip *chip, unsigned int pin) pin 371 drivers/gpio/gpio-zynq.c zynq_gpio_get_bank_pin(pin, &bank_num, &bank_pin_num, gpio); pin 57 drivers/gpio/gpiolib-acpi.c unsigned int pin; pin 67 drivers/gpio/gpiolib-acpi.c unsigned int pin; pin 114 drivers/gpio/gpiolib-acpi.c static struct gpio_desc *acpi_get_gpiod(char *path, int pin) pin 128 drivers/gpio/gpiolib-acpi.c return gpiochip_get_desc(chip, pin); pin 144 drivers/gpio/gpiolib-acpi.c acpi_execute_simple_method(event->handle, NULL, event->pin); pin 211 drivers/gpio/gpiolib-acpi.c int len, pin; pin 223 drivers/gpio/gpiolib-acpi.c pin = simple_strtoul(pin_str + 1, &endp, 10); pin 227 drivers/gpio/gpiolib-acpi.c if (pin == pin_in) pin 246 drivers/gpio/gpiolib-acpi.c int pin = agpio->pin_table[0]; pin 251 drivers/gpio/gpiolib-acpi.c if (acpi_gpio_in_ignore_list(dev_name(parent), pin)) { pin 252 drivers/gpio/gpiolib-acpi.c dev_info(parent, "Ignoring wakeup on pin %d\n", pin); pin 269 drivers/gpio/gpiolib-acpi.c int ret, pin, irq; pin 275 drivers/gpio/gpiolib-acpi.c pin = agpio->pin_table[0]; pin 277 drivers/gpio/gpiolib-acpi.c if (pin <= 255) { pin 281 drivers/gpio/gpiolib-acpi.c pin); pin 292 drivers/gpio/gpiolib-acpi.c desc = gpiochip_request_own_desc(chip, pin, "ACPI:Event", pin 299 drivers/gpio/gpiolib-acpi.c ret = gpiochip_lock_as_irq(chip, pin); pin 340 drivers/gpio/gpiolib-acpi.c event->pin = pin; pin 348 drivers/gpio/gpiolib-acpi.c gpiochip_unlock_as_irq(chip, pin); pin 438 drivers/gpio/gpiolib-acpi.c gpiochip_unlock_as_irq(chip, event->pin); pin 1003 drivers/gpio/gpiolib-acpi.c int pin = agpio->pin_table[i]; pin 1012 drivers/gpio/gpiolib-acpi.c if (conn->pin == pin) { pin 1029 drivers/gpio/gpiolib-acpi.c if (event->pin == pin) { pin 1041 drivers/gpio/gpiolib-acpi.c desc = gpiochip_request_own_desc(chip, pin, label, pin 1058 drivers/gpio/gpiolib-acpi.c conn->pin = pin; pin 167 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c ATOM_GPIO_PIN_ASSIGNMENT *pin; pin 180 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c pin = gpio_info->asGPIO_Pin; pin 182 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (id == pin->ucGPIO_ID) { pin 183 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c gpio.id = pin->ucGPIO_ID; pin 184 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex); pin 185 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c gpio.shift = pin->ucGpioPinBitShift; pin 186 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c gpio.mask = (1 << pin->ucGpioPinBitShift); pin 190 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c pin = (ATOM_GPIO_PIN_ASSIGNMENT *) pin 191 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c ((u8 *)pin + sizeof(ATOM_GPIO_PIN_ASSIGNMENT)); pin 241 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct amdgpu_audio_pin *pin; pin 260 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct amdgpu_audio_pin pin[AMDGPU_MAX_AFMT_BLOCKS]; pin 1178 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c offset = adev->mode_info.audio.pin[i].offset; pin 1184 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].connected = false; pin 1186 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].connected = true; pin 1197 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (adev->mode_info.audio.pin[i].connected) pin 1198 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c return &adev->mode_info.audio.pin[i]; pin 1211 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1215 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); pin 1230 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1258 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1273 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1295 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1308 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1339 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1390 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, eld_reg_to_type[i][0], tmp); pin 1397 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct amdgpu_audio_pin *pin, pin 1400 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!pin) pin 1403 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c WREG32_AUDIO_ENDPT(pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL, pin 1430 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].channels = -1; pin 1431 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].rate = -1; pin 1432 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].bits_per_sample = -1; pin 1433 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].status_bits = 0; pin 1434 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].category_code = 0; pin 1435 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].connected = false; pin 1436 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].offset = pin_offsets[i]; pin 1437 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c adev->mode_info.audio.pin[i].id = i; pin 1440 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1457 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1578 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dig->afmt->pin = dce_v10_0_audio_get_pin(adev); pin 1579 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_enable(adev, dig->afmt->pin, false); pin 1728 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_enable(adev, dig->afmt->pin, true); pin 1747 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!enable && dig->afmt->pin) { pin 1748 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_enable(adev, dig->afmt->pin, false); pin 1749 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dig->afmt->pin = NULL; pin 2853 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 2869 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1204 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c offset = adev->mode_info.audio.pin[i].offset; pin 1210 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].connected = false; pin 1212 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].connected = true; pin 1223 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (adev->mode_info.audio.pin[i].connected) pin 1224 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c return &adev->mode_info.audio.pin[i]; pin 1237 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1241 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); pin 1256 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1284 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1299 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1321 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1334 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1365 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1416 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, eld_reg_to_type[i][0], tmp); pin 1423 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct amdgpu_audio_pin *pin, pin 1426 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!pin) pin 1429 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c WREG32_AUDIO_ENDPT(pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL, pin 1472 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].channels = -1; pin 1473 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].rate = -1; pin 1474 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].bits_per_sample = -1; pin 1475 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].status_bits = 0; pin 1476 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].category_code = 0; pin 1477 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].connected = false; pin 1478 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].offset = pin_offsets[i]; pin 1479 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c adev->mode_info.audio.pin[i].id = i; pin 1482 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1499 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1620 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dig->afmt->pin = dce_v11_0_audio_get_pin(adev); pin 1621 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_enable(adev, dig->afmt->pin, false); pin 1770 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_enable(adev, dig->afmt->pin, true); pin 1789 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!enable && dig->afmt->pin) { pin 1790 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_enable(adev, dig->afmt->pin, false); pin 1791 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dig->afmt->pin = NULL; pin 2986 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 3002 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1085 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c tmp = RREG32_AUDIO_ENDPT(adev->mode_info.audio.pin[i].offset, pin 1089 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].connected = false; pin 1091 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].connected = true; pin 1103 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (adev->mode_info.audio.pin[i].connected) pin 1104 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c return &adev->mode_info.audio.pin[i]; pin 1116 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1121 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dig->afmt->pin->id)); pin 1161 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1195 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1216 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, pin 1294 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, eld_reg_to_type[i][0], tmp); pin 1302 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct amdgpu_audio_pin *pin, pin 1305 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!pin) pin 1308 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c WREG32_AUDIO_ENDPT(pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL, pin 1345 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].channels = -1; pin 1346 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].rate = -1; pin 1347 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].bits_per_sample = -1; pin 1348 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].status_bits = 0; pin 1349 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].category_code = 0; pin 1350 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].connected = false; pin 1351 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].offset = pin_offsets[i]; pin 1352 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c adev->mode_info.audio.pin[i].id = i; pin 1353 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1370 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1657 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dig->afmt->pin = dce_v6_0_audio_get_pin(adev); pin 1658 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!dig->afmt->pin) pin 1667 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_enable(adev, dig->afmt->pin, false); pin 1691 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_enable(adev, dig->afmt->pin, true); pin 1711 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!enable && dig->afmt->pin) { pin 1712 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_enable(adev, dig->afmt->pin, false); pin 1713 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dig->afmt->pin = NULL; pin 2721 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 2737 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1115 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c offset = adev->mode_info.audio.pin[i].offset; pin 1121 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].connected = false; pin 1123 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].connected = true; pin 1134 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (adev->mode_info.audio.pin[i].connected) pin 1135 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c return &adev->mode_info.audio.pin[i]; pin 1148 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1154 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); pin 1167 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1170 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c offset = dig->afmt->pin->offset; pin 1226 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1229 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c offset = dig->afmt->pin->offset; pin 1290 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!dig || !dig->afmt || !dig->afmt->pin) pin 1293 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c offset = dig->afmt->pin->offset; pin 1351 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct amdgpu_audio_pin *pin, pin 1354 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!pin) pin 1357 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c WREG32_AUDIO_ENDPT(pin->offset, ixAZALIA_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL, pin 1393 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].channels = -1; pin 1394 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].rate = -1; pin 1395 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].bits_per_sample = -1; pin 1396 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].status_bits = 0; pin 1397 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].category_code = 0; pin 1398 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].connected = false; pin 1399 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].offset = pin_offsets[i]; pin 1400 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c adev->mode_info.audio.pin[i].id = i; pin 1403 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1420 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 1527 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dig->afmt->pin = dce_v8_0_audio_get_pin(adev); pin 1528 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_enable(adev, dig->afmt->pin, false); pin 1657 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_enable(adev, dig->afmt->pin, true); pin 1676 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!enable && dig->afmt->pin) { pin 1677 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_enable(adev, dig->afmt->pin, false); pin 1678 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dig->afmt->pin = NULL; pin 2748 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 2764 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_enable(adev, &adev->mode_info.audio.pin[i], false); pin 596 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].channels = -1; pin 597 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].rate = -1; pin 598 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].bits_per_sample = -1; pin 599 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].status_bits = 0; pin 600 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].category_code = 0; pin 601 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].connected = false; pin 602 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].id = pin 604 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->mode_info.audio.pin[i].offset = 0; pin 634 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c void amdgpu_dm_audio_eld_notify(struct amdgpu_device *adev, int pin) pin 639 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c DRM_DEBUG_KMS("Notify ELD: %d\n", pin); pin 642 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c pin, -1); pin 117 drivers/gpu/drm/amd/display/dc/gpio/dce110/hw_factory_dce110.c struct hw_gpio_pin *pin, pin 120 drivers/gpu/drm/amd/display/dc/gpio/dce110/hw_factory_dce110.c struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); pin 122 drivers/gpu/drm/amd/display/dc/gpio/dce110/hw_factory_dce110.c switch (pin->id) { pin 141 drivers/gpu/drm/amd/display/dc/gpio/dce110/hw_factory_dce110.c static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) pin 143 drivers/gpu/drm/amd/display/dc/gpio/dce110/hw_factory_dce110.c struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); pin 130 drivers/gpu/drm/amd/display/dc/gpio/dce120/hw_factory_dce120.c struct hw_gpio_pin *pin, pin 133 drivers/gpu/drm/amd/display/dc/gpio/dce120/hw_factory_dce120.c struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); pin 135 drivers/gpu/drm/amd/display/dc/gpio/dce120/hw_factory_dce120.c switch (pin->id) { pin 154 drivers/gpu/drm/amd/display/dc/gpio/dce120/hw_factory_dce120.c static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) pin 156 drivers/gpu/drm/amd/display/dc/gpio/dce120/hw_factory_dce120.c struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); pin 117 drivers/gpu/drm/amd/display/dc/gpio/dce80/hw_factory_dce80.c struct hw_gpio_pin *pin, pin 120 drivers/gpu/drm/amd/display/dc/gpio/dce80/hw_factory_dce80.c struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); pin 122 drivers/gpu/drm/amd/display/dc/gpio/dce80/hw_factory_dce80.c switch (pin->id) { pin 141 drivers/gpu/drm/amd/display/dc/gpio/dce80/hw_factory_dce80.c static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) pin 143 drivers/gpu/drm/amd/display/dc/gpio/dce80/hw_factory_dce80.c struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); pin 151 drivers/gpu/drm/amd/display/dc/gpio/dcn10/hw_factory_dcn10.c static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) pin 153 drivers/gpu/drm/amd/display/dc/gpio/dcn10/hw_factory_dcn10.c struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin); pin 162 drivers/gpu/drm/amd/display/dc/gpio/dcn10/hw_factory_dcn10.c struct hw_gpio_pin *pin, pin 165 drivers/gpu/drm/amd/display/dc/gpio/dcn10/hw_factory_dcn10.c struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); pin 167 drivers/gpu/drm/amd/display/dc/gpio/dcn10/hw_factory_dcn10.c switch (pin->id) { pin 186 drivers/gpu/drm/amd/display/dc/gpio/dcn10/hw_factory_dcn10.c static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) pin 188 drivers/gpu/drm/amd/display/dc/gpio/dcn10/hw_factory_dcn10.c struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); pin 169 drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c struct hw_gpio_pin *pin, pin 172 drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); pin 174 drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c switch (pin->id) { pin 193 drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) pin 195 drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); pin 203 drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) pin 205 drivers/gpu/drm/amd/display/dc/gpio/dcn20/hw_factory_dcn20.c struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin); pin 160 drivers/gpu/drm/amd/display/dc/gpio/dcn21/hw_factory_dcn21.c static void define_generic_registers(struct hw_gpio_pin *pin, uint32_t en) pin 162 drivers/gpu/drm/amd/display/dc/gpio/dcn21/hw_factory_dcn21.c struct hw_generic *generic = HW_GENERIC_FROM_BASE(pin); pin 171 drivers/gpu/drm/amd/display/dc/gpio/dcn21/hw_factory_dcn21.c struct hw_gpio_pin *pin, pin 174 drivers/gpu/drm/amd/display/dc/gpio/dcn21/hw_factory_dcn21.c struct hw_ddc *ddc = HW_DDC_FROM_BASE(pin); pin 176 drivers/gpu/drm/amd/display/dc/gpio/dcn21/hw_factory_dcn21.c switch (pin->id) { pin 195 drivers/gpu/drm/amd/display/dc/gpio/dcn21/hw_factory_dcn21.c static void define_hpd_registers(struct hw_gpio_pin *pin, uint32_t en) pin 197 drivers/gpu/drm/amd/display/dc/gpio/dcn21/hw_factory_dcn21.c struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); pin 65 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c if (gpio->pin) { pin 84 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c if (!gpio->pin) { pin 89 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c return gpio->pin->funcs->get_value(gpio->pin, value); pin 96 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c if (!gpio->pin) { pin 101 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c return gpio->pin->funcs->set_value(gpio->pin, value); pin 126 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c if (!gpio->pin) { pin 131 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c return gpio->pin->funcs->change_mode(gpio->pin, mode); pin 150 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c if (!gpio->pin) { pin 155 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c return gpio->pin->funcs->set_config(gpio->pin, config_data); pin 259 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c dal_gpio_service_close(gpio->service, &gpio->pin); pin 283 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c gpio->pin = NULL; pin 310 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c gpio->pin = NULL; pin 184 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c struct gpio_pin_info pin; pin 187 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c service->translate.funcs->id_to_offset(id, en, &pin); pin 189 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c pin.mask = 0xFFFFFFFF; pin 190 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c pin.offset = 0xFFFFFFFF; pin 193 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c return pin; pin 300 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c struct hw_gpio_pin **pin = &gpio->pin; pin 315 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c *pin = service->factory.funcs->get_ddc_pin(gpio); pin 316 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c service->factory.funcs->define_ddc_registers(*pin, en); pin 319 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c *pin = service->factory.funcs->get_ddc_pin(gpio); pin 320 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c service->factory.funcs->define_ddc_registers(*pin, en); pin 323 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c *pin = service->factory.funcs->get_generic_pin(gpio); pin 324 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c service->factory.funcs->define_generic_registers(*pin, en); pin 327 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c *pin = service->factory.funcs->get_hpd_pin(gpio); pin 328 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c service->factory.funcs->define_hpd_registers(*pin, en); pin 340 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c if (!*pin) { pin 345 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c if (!(*pin)->funcs->open(*pin, mode)) { pin 347 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c dal_gpio_service_close(service, pin); pin 359 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c struct hw_gpio_pin *pin; pin 366 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c pin = *ptr; pin 368 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c if (pin) { pin 369 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c set_pin_free(service, pin->id, pin->en); pin 371 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c pin->funcs->close(pin); pin 575 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c hw_data = FROM_HW_GPIO_PIN(ddc->pin_data->pin); pin 576 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c hw_clock = FROM_HW_GPIO_PIN(ddc->pin_clock->pin); pin 52 drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c struct hw_ddc *pin) pin 54 drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c dal_hw_gpio_destruct(&pin->base); pin 60 drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c struct hw_ddc *pin = HW_DDC_FROM_BASE(*ptr); pin 62 drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c destruct(pin); pin 64 drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c kfree(pin); pin 61 drivers/gpu/drm/amd/display/dc/gpio/hw_factory.h struct hw_gpio_pin *pin, pin 64 drivers/gpu/drm/amd/display/dc/gpio/hw_factory.h struct hw_gpio_pin *pin, pin 67 drivers/gpu/drm/amd/display/dc/gpio/hw_factory.h struct hw_gpio_pin *pin, pin 50 drivers/gpu/drm/amd/display/dc/gpio/hw_generic.c struct hw_generic *pin, pin 55 drivers/gpu/drm/amd/display/dc/gpio/hw_generic.c dal_hw_gpio_construct(&pin->base, id, en, ctx); pin 59 drivers/gpu/drm/amd/display/dc/gpio/hw_generic.c struct hw_generic *pin) pin 61 drivers/gpu/drm/amd/display/dc/gpio/hw_generic.c dal_hw_gpio_destruct(&pin->base); pin 64 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr); pin 66 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c store_registers(pin); pin 68 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c ptr->opened = (dal_hw_gpio_config_mode(pin, mode) == GPIO_RESULT_OK); pin 125 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr); pin 127 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c return dal_hw_gpio_config_mode(pin, mode); pin 133 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c struct hw_gpio *pin = FROM_HW_GPIO_PIN(ptr); pin 135 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c restore_registers(pin); pin 180 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c struct hw_gpio *pin, pin 185 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->base.ctx = ctx; pin 186 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->base.id = id; pin 187 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->base.en = en; pin 188 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->base.mode = GPIO_MODE_UNKNOWN; pin 189 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->base.opened = false; pin 191 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->store.mask = 0; pin 192 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->store.a = 0; pin 193 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->store.en = 0; pin 194 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->store.mux = 0; pin 196 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->mux_supported = false; pin 200 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c struct hw_gpio *pin) pin 202 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c ASSERT(!pin->base.opened); pin 52 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio_pin *pin, pin 55 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h const struct hw_gpio_pin *pin, pin 58 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h const struct hw_gpio_pin *pin, pin 61 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio_pin *pin, pin 64 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio_pin *pin, pin 67 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio_pin *pin); pin 113 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio *pin, pin 119 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio_pin *pin, pin 123 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h const struct hw_gpio_pin *pin, pin 127 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio *pin, pin 131 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h struct hw_gpio *pin); pin 50 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c struct hw_hpd *pin, pin 55 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c dal_hw_gpio_construct(&pin->base, id, en, ctx); pin 59 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c struct hw_hpd *pin) pin 61 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c dal_hw_gpio_destruct(&pin->base); pin 40 drivers/gpu/drm/amd/display/dc/inc/hw/gpio.h struct hw_gpio_pin *pin; pin 1224 drivers/gpu/drm/drm_gem.c if (obj->funcs && obj->funcs->pin) pin 1225 drivers/gpu/drm/drm_gem.c return obj->funcs->pin(obj); pin 30 drivers/gpu/drm/drm_gem_shmem_helper.c .pin = drm_gem_shmem_pin, pin 633 drivers/gpu/drm/drm_gem_vram_helper.c .pin = drm_gem_vram_object_pin, pin 582 drivers/gpu/drm/gma500/cdv_intel_lvds.c u8 pin; pin 587 drivers/gpu/drm/gma500/cdv_intel_lvds.c pin = GMBUS_PORT_PANEL; pin 588 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (!lvds_is_present_in_vbt(dev, &pin)) { pin 171 drivers/gpu/drm/gma500/intel_gmbus.c intel_gpio_create(struct drm_psb_private *dev_priv, u32 pin) pin 185 drivers/gpu/drm/gma500/intel_gmbus.c if (pin >= ARRAY_SIZE(map_pin_to_reg) || !map_pin_to_reg[pin]) pin 192 drivers/gpu/drm/gma500/intel_gmbus.c gpio->reg = map_pin_to_reg[pin]; pin 196 drivers/gpu/drm/gma500/intel_gmbus.c "gma500 GPIO%c", "?BACDE?F"[pin]); pin 1948 drivers/gpu/drm/gma500/psb_intel_sdvo.c u8 pin, speed; pin 1955 drivers/gpu/drm/gma500/psb_intel_sdvo.c pin = GMBUS_PORT_DPB; pin 1958 drivers/gpu/drm/gma500/psb_intel_sdvo.c pin = mapping->i2c_pin; pin 1962 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (pin < GMBUS_NUM_PORTS) { pin 1963 drivers/gpu/drm/gma500/psb_intel_sdvo.c sdvo->i2c = &dev_priv->gmbus[pin].adapter; pin 96 drivers/gpu/drm/i915/display/intel_gmbus.c unsigned int pin) pin 99 drivers/gpu/drm/i915/display/intel_gmbus.c return &gmbus_pins_icp[pin]; pin 101 drivers/gpu/drm/i915/display/intel_gmbus.c return &gmbus_pins_cnp[pin]; pin 103 drivers/gpu/drm/i915/display/intel_gmbus.c return &gmbus_pins_bxt[pin]; pin 105 drivers/gpu/drm/i915/display/intel_gmbus.c return &gmbus_pins_skl[pin]; pin 107 drivers/gpu/drm/i915/display/intel_gmbus.c return &gmbus_pins_bdw[pin]; pin 109 drivers/gpu/drm/i915/display/intel_gmbus.c return &gmbus_pins[pin]; pin 113 drivers/gpu/drm/i915/display/intel_gmbus.c unsigned int pin) pin 130 drivers/gpu/drm/i915/display/intel_gmbus.c return pin < size && get_gmbus_pin(dev_priv, pin)->name; pin 306 drivers/gpu/drm/i915/display/intel_gmbus.c intel_gpio_setup(struct intel_gmbus *bus, unsigned int pin) pin 313 drivers/gpu/drm/i915/display/intel_gmbus.c bus->gpio_reg = GPIO(get_gmbus_pin(dev_priv, pin)->gpio); pin 836 drivers/gpu/drm/i915/display/intel_gmbus.c unsigned int pin; pin 854 drivers/gpu/drm/i915/display/intel_gmbus.c for (pin = 0; pin < ARRAY_SIZE(dev_priv->gmbus); pin++) { pin 855 drivers/gpu/drm/i915/display/intel_gmbus.c if (!intel_gmbus_is_valid_pin(dev_priv, pin)) pin 858 drivers/gpu/drm/i915/display/intel_gmbus.c bus = &dev_priv->gmbus[pin]; pin 865 drivers/gpu/drm/i915/display/intel_gmbus.c get_gmbus_pin(dev_priv, pin)->name); pin 880 drivers/gpu/drm/i915/display/intel_gmbus.c bus->reg0 = pin | GMBUS_RATE_100KHZ; pin 886 drivers/gpu/drm/i915/display/intel_gmbus.c intel_gpio_setup(bus, pin); pin 898 drivers/gpu/drm/i915/display/intel_gmbus.c while (pin--) { pin 899 drivers/gpu/drm/i915/display/intel_gmbus.c if (!intel_gmbus_is_valid_pin(dev_priv, pin)) pin 902 drivers/gpu/drm/i915/display/intel_gmbus.c bus = &dev_priv->gmbus[pin]; pin 909 drivers/gpu/drm/i915/display/intel_gmbus.c unsigned int pin) pin 911 drivers/gpu/drm/i915/display/intel_gmbus.c if (WARN_ON(!intel_gmbus_is_valid_pin(dev_priv, pin))) pin 914 drivers/gpu/drm/i915/display/intel_gmbus.c return &dev_priv->gmbus[pin].adapter; pin 949 drivers/gpu/drm/i915/display/intel_gmbus.c unsigned int pin; pin 951 drivers/gpu/drm/i915/display/intel_gmbus.c for (pin = 0; pin < ARRAY_SIZE(dev_priv->gmbus); pin++) { pin 952 drivers/gpu/drm/i915/display/intel_gmbus.c if (!intel_gmbus_is_valid_pin(dev_priv, pin)) pin 955 drivers/gpu/drm/i915/display/intel_gmbus.c bus = &dev_priv->gmbus[pin]; pin 39 drivers/gpu/drm/i915/display/intel_gmbus.h unsigned int pin); pin 43 drivers/gpu/drm/i915/display/intel_gmbus.h intel_gmbus_get_adapter(struct drm_i915_private *dev_priv, unsigned int pin); pin 153 drivers/gpu/drm/i915/display/intel_hotplug.c enum hpd_pin pin, bool long_hpd) pin 156 drivers/gpu/drm/i915/display/intel_hotplug.c unsigned long start = hpd->stats[pin].last_jiffies; pin 167 drivers/gpu/drm/i915/display/intel_hotplug.c hpd->stats[pin].last_jiffies = jiffies; pin 168 drivers/gpu/drm/i915/display/intel_hotplug.c hpd->stats[pin].count = 0; pin 171 drivers/gpu/drm/i915/display/intel_hotplug.c hpd->stats[pin].count += increment; pin 172 drivers/gpu/drm/i915/display/intel_hotplug.c if (hpd->stats[pin].count > threshold) { pin 173 drivers/gpu/drm/i915/display/intel_hotplug.c hpd->stats[pin].state = HPD_MARK_DISABLED; pin 174 drivers/gpu/drm/i915/display/intel_hotplug.c DRM_DEBUG_KMS("HPD interrupt storm detected on PIN %d\n", pin); pin 177 drivers/gpu/drm/i915/display/intel_hotplug.c DRM_DEBUG_KMS("Received HPD interrupt on PIN %d - cnt: %d\n", pin, pin 178 drivers/gpu/drm/i915/display/intel_hotplug.c hpd->stats[pin].count); pin 192 drivers/gpu/drm/i915/display/intel_hotplug.c enum hpd_pin pin; pin 207 drivers/gpu/drm/i915/display/intel_hotplug.c pin = intel_encoder->hpd_pin; pin 208 drivers/gpu/drm/i915/display/intel_hotplug.c if (pin == HPD_NONE || pin 209 drivers/gpu/drm/i915/display/intel_hotplug.c dev_priv->hotplug.stats[pin].state != HPD_MARK_DISABLED) pin 216 drivers/gpu/drm/i915/display/intel_hotplug.c dev_priv->hotplug.stats[pin].state = HPD_DISABLED; pin 238 drivers/gpu/drm/i915/display/intel_hotplug.c enum hpd_pin pin; pin 243 drivers/gpu/drm/i915/display/intel_hotplug.c for_each_hpd_pin(pin) { pin 247 drivers/gpu/drm/i915/display/intel_hotplug.c if (dev_priv->hotplug.stats[pin].state != HPD_DISABLED) pin 250 drivers/gpu/drm/i915/display/intel_hotplug.c dev_priv->hotplug.stats[pin].state = HPD_ENABLED; pin 258 drivers/gpu/drm/i915/display/intel_hotplug.c intel_connector->encoder->hpd_pin == pin) { pin 457 drivers/gpu/drm/i915/display/intel_hotplug.c enum hpd_pin pin; pin 475 drivers/gpu/drm/i915/display/intel_hotplug.c pin = encoder->hpd_pin; pin 476 drivers/gpu/drm/i915/display/intel_hotplug.c if (!(BIT(pin) & pin_mask)) pin 482 drivers/gpu/drm/i915/display/intel_hotplug.c long_hpd = long_mask & BIT(pin); pin 489 drivers/gpu/drm/i915/display/intel_hotplug.c long_hpd_pulse_mask |= BIT(pin); pin 492 drivers/gpu/drm/i915/display/intel_hotplug.c short_hpd_pulse_mask |= BIT(pin); pin 498 drivers/gpu/drm/i915/display/intel_hotplug.c for_each_hpd_pin(pin) { pin 501 drivers/gpu/drm/i915/display/intel_hotplug.c if (!(BIT(pin) & pin_mask)) pin 504 drivers/gpu/drm/i915/display/intel_hotplug.c if (dev_priv->hotplug.stats[pin].state == HPD_DISABLED) { pin 512 drivers/gpu/drm/i915/display/intel_hotplug.c "Received HPD interrupt on pin %d although disabled\n", pin); pin 516 drivers/gpu/drm/i915/display/intel_hotplug.c if (dev_priv->hotplug.stats[pin].state != HPD_ENABLED) pin 524 drivers/gpu/drm/i915/display/intel_hotplug.c if (((short_hpd_pulse_mask | long_hpd_pulse_mask) & BIT(pin))) { pin 525 drivers/gpu/drm/i915/display/intel_hotplug.c long_hpd = long_hpd_pulse_mask & BIT(pin); pin 527 drivers/gpu/drm/i915/display/intel_hotplug.c dev_priv->hotplug.event_bits |= BIT(pin); pin 532 drivers/gpu/drm/i915/display/intel_hotplug.c if (intel_hpd_irq_storm_detect(dev_priv, pin, long_hpd)) { pin 533 drivers/gpu/drm/i915/display/intel_hotplug.c dev_priv->hotplug.event_bits &= ~BIT(pin); pin 701 drivers/gpu/drm/i915/display/intel_hotplug.c bool intel_hpd_disable(struct drm_i915_private *dev_priv, enum hpd_pin pin) pin 705 drivers/gpu/drm/i915/display/intel_hotplug.c if (pin == HPD_NONE) pin 709 drivers/gpu/drm/i915/display/intel_hotplug.c if (dev_priv->hotplug.stats[pin].state == HPD_ENABLED) { pin 710 drivers/gpu/drm/i915/display/intel_hotplug.c dev_priv->hotplug.stats[pin].state = HPD_DISABLED; pin 718 drivers/gpu/drm/i915/display/intel_hotplug.c void intel_hpd_enable(struct drm_i915_private *dev_priv, enum hpd_pin pin) pin 720 drivers/gpu/drm/i915/display/intel_hotplug.c if (pin == HPD_NONE) pin 724 drivers/gpu/drm/i915/display/intel_hotplug.c dev_priv->hotplug.stats[pin].state = HPD_ENABLED; pin 28 drivers/gpu/drm/i915/display/intel_hotplug.h bool intel_hpd_disable(struct drm_i915_private *dev_priv, enum hpd_pin pin); pin 29 drivers/gpu/drm/i915/display/intel_hotplug.h void intel_hpd_enable(struct drm_i915_private *dev_priv, enum hpd_pin pin); pin 825 drivers/gpu/drm/i915/display/intel_lvds.c u8 pin; pin 852 drivers/gpu/drm/i915/display/intel_lvds.c pin = GMBUS_PIN_PANEL; pin 853 drivers/gpu/drm/i915/display/intel_lvds.c if (!intel_bios_is_lvds_present(dev_priv, &pin)) { pin 941 drivers/gpu/drm/i915/display/intel_lvds.c intel_gmbus_get_adapter(dev_priv, pin)); pin 944 drivers/gpu/drm/i915/display/intel_lvds.c intel_gmbus_get_adapter(dev_priv, pin)); pin 2543 drivers/gpu/drm/i915/display/intel_sdvo.c u8 pin; pin 2552 drivers/gpu/drm/i915/display/intel_sdvo.c pin = mapping->i2c_pin; pin 2554 drivers/gpu/drm/i915/display/intel_sdvo.c pin = GMBUS_PIN_DPB; pin 2556 drivers/gpu/drm/i915/display/intel_sdvo.c sdvo->i2c = intel_gmbus_get_adapter(dev_priv, pin); pin 66 drivers/gpu/drm/i915/gt/intel_context.c err = ce->ops->pin(ce); pin 28 drivers/gpu/drm/i915/gt/intel_context_types.h int (*pin)(struct intel_context *ce); pin 1860 drivers/gpu/drm/i915/gt/intel_lrc.c .pin = execlists_context_pin, pin 3516 drivers/gpu/drm/i915/gt/intel_lrc.c .pin = virtual_context_pin, pin 1520 drivers/gpu/drm/i915/gt/intel_ringbuffer.c .pin = ring_context_pin, pin 157 drivers/gpu/drm/i915/gt/mock_engine.c .pin = mock_context_pin, pin 63 drivers/gpu/drm/i915/i915_irq.c typedef bool (*long_pulse_detect_func)(enum hpd_pin pin, u32 val); pin 1350 drivers/gpu/drm/i915/i915_irq.c static bool gen11_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1352 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1366 drivers/gpu/drm/i915/i915_irq.c static bool gen12_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1368 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1386 drivers/gpu/drm/i915/i915_irq.c static bool bxt_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1388 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1400 drivers/gpu/drm/i915/i915_irq.c static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1402 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1414 drivers/gpu/drm/i915/i915_irq.c static bool icp_tc_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1416 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1430 drivers/gpu/drm/i915/i915_irq.c static bool tgp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1432 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1444 drivers/gpu/drm/i915/i915_irq.c static bool tgp_tc_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1446 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1464 drivers/gpu/drm/i915/i915_irq.c static bool spt_port_hotplug2_long_detect(enum hpd_pin pin, u32 val) pin 1466 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1474 drivers/gpu/drm/i915/i915_irq.c static bool spt_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1476 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1490 drivers/gpu/drm/i915/i915_irq.c static bool ilk_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1492 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1500 drivers/gpu/drm/i915/i915_irq.c static bool pch_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1502 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1514 drivers/gpu/drm/i915/i915_irq.c static bool i9xx_port_hotplug_long_detect(enum hpd_pin pin, u32 val) pin 1516 drivers/gpu/drm/i915/i915_irq.c switch (pin) { pin 1539 drivers/gpu/drm/i915/i915_irq.c bool long_pulse_detect(enum hpd_pin pin, u32 val)) pin 1541 drivers/gpu/drm/i915/i915_irq.c enum hpd_pin pin; pin 1545 drivers/gpu/drm/i915/i915_irq.c for_each_hpd_pin(pin) { pin 1546 drivers/gpu/drm/i915/i915_irq.c if ((hpd[pin] & hotplug_trigger) == 0) pin 1549 drivers/gpu/drm/i915/i915_irq.c *pin_mask |= BIT(pin); pin 1551 drivers/gpu/drm/i915/i915_irq.c if (long_pulse_detect(pin, dig_hotplug_reg)) pin 1552 drivers/gpu/drm/i915/i915_irq.c *long_mask |= BIT(pin); pin 301 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_input *pin = &pll->in; pin 319 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c if (pin->plllock_cnt == 0) pin 321 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c else if (pin->plllock_cnt == 1) pin 323 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c else if (pin->plllock_cnt == 2) pin 354 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_input *pin = &pll->in; pin 361 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = fref * pin->vco_measure_time; pin 368 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data *= pin->vco_measure_time; pin 372 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = fref * pin->kvco_measure_time; pin 381 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c cnt *= pin->kvco_measure_time; pin 386 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c pout->pll_resetsm_cntrl2 = pin->bandgap_timer << 3; pin 387 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c pout->pll_resetsm_cntrl5 = pin->pll_wakeup_timer; pin 394 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_input *pin = &pll->in; pin 398 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->ssc_adj_period; pin 401 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = (pin->ssc_adj_period >> 8); pin 419 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = (pin->ssc_center & 0x01); pin 428 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_input *pin, pin 461 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_ie_trim; pin 464 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_ip_trim; pin 467 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_cpmset_cur << 3 | pin->pll_cpcset_cur; pin 470 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_icpcset_p << 3 | pin->pll_icpcset_m; pin 473 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_icpmset_p << 3 | pin->pll_icpcset_m; pin 476 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_icpmset << 3 | pin->pll_icpcset; pin 479 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_lpf_cap2 << 4 | pin->pll_lpf_cap1; pin 482 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_iptat_trim; pin 485 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->pll_c3ctrl | pin->pll_r3ctrl << 4; pin 507 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_input *pin, pin 519 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c pll_db_commit_common(pll, pin, pout); pin 523 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->dsiclk_sel; /* set dsiclk_sel = 1 */ pin 549 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = pin->plllock_cnt << 1 | pin->plllock_rng << 3; pin 562 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c data = (pout->pll_postdiv - 1) << 4 | pin->pll_lpf_res1; pin 565 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c if (pin->ssc_en) pin 579 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c struct dsi_pll_input *pin = &pll_14nm->in; pin 604 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c if (pin->ssc_en) pin 616 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c pll_db_commit_14nm(pll_14nm_slave, pin, pout); pin 619 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c pll_db_commit_14nm(pll_14nm, pin, pout); pin 205 drivers/gpu/drm/panfrost/panfrost_gem.c .pin = panfrost_gem_pin, pin 67 drivers/gpu/drm/radeon/dce6_afmt.c offset = rdev->audio.pin[i].offset; pin 71 drivers/gpu/drm/radeon/dce6_afmt.c rdev->audio.pin[i].connected = false; pin 73 drivers/gpu/drm/radeon/dce6_afmt.c rdev->audio.pin[i].connected = true; pin 82 drivers/gpu/drm/radeon/dce6_afmt.c struct r600_audio_pin *pin = NULL; pin 88 drivers/gpu/drm/radeon/dce6_afmt.c if (rdev->audio.pin[i].connected) { pin 89 drivers/gpu/drm/radeon/dce6_afmt.c pin = &rdev->audio.pin[i]; pin 96 drivers/gpu/drm/radeon/dce6_afmt.c if (dig->pin == pin) pin 102 drivers/gpu/drm/radeon/dce6_afmt.c return pin; pin 105 drivers/gpu/drm/radeon/dce6_afmt.c if (!pin) pin 107 drivers/gpu/drm/radeon/dce6_afmt.c return pin; pin 116 drivers/gpu/drm/radeon/dce6_afmt.c if (!dig || !dig->afmt || !dig->pin) pin 120 drivers/gpu/drm/radeon/dce6_afmt.c AFMT_AUDIO_SRC_SELECT(dig->pin->id)); pin 132 drivers/gpu/drm/radeon/dce6_afmt.c if (!dig || !dig->afmt || !dig->pin) pin 148 drivers/gpu/drm/radeon/dce6_afmt.c WREG32_ENDPOINT(dig->pin->offset, pin 160 drivers/gpu/drm/radeon/dce6_afmt.c if (!dig || !dig->afmt || !dig->pin) pin 164 drivers/gpu/drm/radeon/dce6_afmt.c tmp = RREG32_ENDPOINT(dig->pin->offset, pin 173 drivers/gpu/drm/radeon/dce6_afmt.c WREG32_ENDPOINT(dig->pin->offset, pin 185 drivers/gpu/drm/radeon/dce6_afmt.c if (!dig || !dig->afmt || !dig->pin) pin 189 drivers/gpu/drm/radeon/dce6_afmt.c tmp = RREG32_ENDPOINT(dig->pin->offset, pin 198 drivers/gpu/drm/radeon/dce6_afmt.c WREG32_ENDPOINT(dig->pin->offset, pin 224 drivers/gpu/drm/radeon/dce6_afmt.c if (!dig || !dig->afmt || !dig->pin) pin 253 drivers/gpu/drm/radeon/dce6_afmt.c WREG32_ENDPOINT(dig->pin->offset, eld_reg_to_type[i][0], value); pin 258 drivers/gpu/drm/radeon/dce6_afmt.c struct r600_audio_pin *pin, pin 261 drivers/gpu/drm/radeon/dce6_afmt.c if (!pin) pin 264 drivers/gpu/drm/radeon/dce6_afmt.c WREG32_ENDPOINT(pin->offset, AZ_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL, pin 38 drivers/gpu/drm/radeon/evergreen_hdmi.c struct r600_audio_pin *pin, pin 43 drivers/gpu/drm/radeon/evergreen_hdmi.c if (!pin) pin 123 drivers/gpu/drm/radeon/r600_hdmi.c if (rdev->audio.pin[0].channels != audio_status.channels || pin 124 drivers/gpu/drm/radeon/r600_hdmi.c rdev->audio.pin[0].rate != audio_status.rate || pin 125 drivers/gpu/drm/radeon/r600_hdmi.c rdev->audio.pin[0].bits_per_sample != audio_status.bits_per_sample || pin 126 drivers/gpu/drm/radeon/r600_hdmi.c rdev->audio.pin[0].status_bits != audio_status.status_bits || pin 127 drivers/gpu/drm/radeon/r600_hdmi.c rdev->audio.pin[0].category_code != audio_status.category_code) { pin 128 drivers/gpu/drm/radeon/r600_hdmi.c rdev->audio.pin[0] = audio_status; pin 142 drivers/gpu/drm/radeon/r600_hdmi.c struct r600_audio_pin *pin, pin 147 drivers/gpu/drm/radeon/r600_hdmi.c if (!pin) pin 174 drivers/gpu/drm/radeon/r600_hdmi.c return &rdev->audio.pin[0]; pin 1758 drivers/gpu/drm/radeon/radeon.h struct r600_audio_pin pin[RADEON_MAX_AFMT_BLOCKS]; pin 2874 drivers/gpu/drm/radeon/radeon.h struct r600_audio_pin *pin, pin 2877 drivers/gpu/drm/radeon/radeon.h struct r600_audio_pin *pin, pin 210 drivers/gpu/drm/radeon/radeon_atombios.c ATOM_GPIO_PIN_ASSIGNMENT *pin; pin 223 drivers/gpu/drm/radeon/radeon_atombios.c pin = gpio_info->asGPIO_Pin; pin 225 drivers/gpu/drm/radeon/radeon_atombios.c if (id == pin->ucGPIO_ID) { pin 226 drivers/gpu/drm/radeon/radeon_atombios.c gpio.id = pin->ucGPIO_ID; pin 227 drivers/gpu/drm/radeon/radeon_atombios.c gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex) * 4; pin 228 drivers/gpu/drm/radeon/radeon_atombios.c gpio.shift = pin->ucGpioPinBitShift; pin 229 drivers/gpu/drm/radeon/radeon_atombios.c gpio.mask = (1 << pin->ucGpioPinBitShift); pin 233 drivers/gpu/drm/radeon/radeon_atombios.c pin = (ATOM_GPIO_PIN_ASSIGNMENT *) pin 234 drivers/gpu/drm/radeon/radeon_atombios.c ((u8 *)pin + sizeof(ATOM_GPIO_PIN_ASSIGNMENT)); pin 32 drivers/gpu/drm/radeon/radeon_audio.c void r600_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, pin 34 drivers/gpu/drm/radeon/radeon_audio.c void dce4_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, pin 36 drivers/gpu/drm/radeon/radeon_audio.c void dce6_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, pin 246 drivers/gpu/drm/radeon/radeon_audio.c struct r600_audio_pin *pin, u8 enable_mask) pin 253 drivers/gpu/drm/radeon/radeon_audio.c if (!pin) pin 261 drivers/gpu/drm/radeon/radeon_audio.c if (dig->pin == pin) pin 271 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.funcs->enable(rdev, pin, enable_mask); pin 325 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].channels = -1; pin 326 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].rate = -1; pin 327 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].bits_per_sample = -1; pin 328 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].status_bits = 0; pin 329 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].category_code = 0; pin 330 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].connected = false; pin 331 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].offset = pin_offsets[i]; pin 332 drivers/gpu/drm/radeon/radeon_audio.c rdev->audio.pin[i].id = i; pin 339 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_enable(rdev, &rdev->audio.pin[i], 0); pin 469 drivers/gpu/drm/radeon/radeon_audio.c if (!dig->pin) pin 470 drivers/gpu/drm/radeon/radeon_audio.c dig->pin = radeon_audio_get_pin(encoder); pin 471 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_enable(rdev, dig->pin, 0xf); pin 473 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_enable(rdev, dig->pin, 0); pin 474 drivers/gpu/drm/radeon/radeon_audio.c dig->pin = NULL; pin 477 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_enable(rdev, dig->pin, 0); pin 478 drivers/gpu/drm/radeon/radeon_audio.c dig->pin = NULL; pin 490 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_enable(rdev, &rdev->audio.pin[i], 0); pin 41 drivers/gpu/drm/radeon/radeon_audio.h struct r600_audio_pin *pin, u8 enable_mask); pin 443 drivers/gpu/drm/radeon/radeon_mode.h struct r600_audio_pin *pin; pin 106 drivers/gpu/drm/tegra/gem.c .pin = tegra_bo_pin, pin 56 drivers/gpu/drm/v3d/v3d_bo.c .pin = drm_gem_shmem_pin, pin 335 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c void vmw_bo_pin_reserved(struct vmw_buffer_object *vbo, bool pin) pin 346 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c if (pin) { pin 359 drivers/gpu/drm/vmwgfx/vmwgfx_bo.c if (pin) pin 761 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h extern void vmw_bo_pin_reserved(struct vmw_buffer_object *bo, bool pin); pin 1358 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c vfb->pin = vmw_framebuffer_pin; pin 219 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h int (*pin)(struct vmw_framebuffer *fb); pin 173 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c if (vfb->pin) pin 174 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c vfb->pin(vfb); pin 227 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c bool pin, bool inter) pin 229 drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c if (!pin) pin 534 drivers/gpu/ipu-v3/ipu-di.c static u32 ipu_di_gen_polarity(int pin) pin 536 drivers/gpu/ipu-v3/ipu-di.c switch (pin) { pin 1189 drivers/hid/hid-cp2112.c int pin) pin 1193 drivers/hid/hid-cp2112.c if (dev->desc[pin]) pin 1196 drivers/hid/hid-cp2112.c dev->desc[pin] = gpiochip_request_own_desc(&dev->gc, pin, pin 1200 drivers/hid/hid-cp2112.c if (IS_ERR(dev->desc[pin])) { pin 1202 drivers/hid/hid-cp2112.c return PTR_ERR(dev->desc[pin]); pin 1205 drivers/hid/hid-cp2112.c ret = cp2112_gpio_direction_input(&dev->gc, pin); pin 1211 drivers/hid/hid-cp2112.c ret = gpiochip_lock_as_irq(&dev->gc, pin); pin 1217 drivers/hid/hid-cp2112.c ret = gpiod_to_irq(dev->desc[pin]); pin 1226 drivers/hid/hid-cp2112.c gpiochip_unlock_as_irq(&dev->gc, pin); pin 1228 drivers/hid/hid-cp2112.c gpiochip_free_own_desc(dev->desc[pin]); pin 1229 drivers/hid/hid-cp2112.c dev->desc[pin] = NULL; pin 531 drivers/iio/accel/mma9551_core.c int mma9551_gpio_config(struct i2c_client *client, enum mma9551_gpio_pin pin, pin 537 drivers/iio/accel/mma9551_core.c if (pin > mma9551_gpio_max) { pin 546 drivers/iio/accel/mma9551_core.c reg = pin * 2; pin 562 drivers/iio/accel/mma9551_core.c switch (pin) { pin 61 drivers/iio/accel/mma9551_core.h int mma9551_gpio_config(struct i2c_client *client, enum mma9551_gpio_pin pin, pin 1045 drivers/iio/imu/adis16480.c enum adis16480_int_pin pin; pin 1067 drivers/iio/imu/adis16480.c pin = ADIS16480_PIN_DIO1; pin 1071 drivers/iio/imu/adis16480.c pin = i; pin 1076 drivers/iio/imu/adis16480.c val |= ADIS16480_DRDY_SEL(pin); pin 1101 drivers/iio/imu/adis16480.c enum adis16480_int_pin pin; pin 1104 drivers/iio/imu/adis16480.c pin = ADIS16480_PIN_DIO2; pin 1116 drivers/iio/imu/adis16480.c return pin; pin 1124 drivers/iio/imu/adis16480.c enum adis16480_int_pin pin; pin 1132 drivers/iio/imu/adis16480.c pin = adis16480_of_get_ext_clk_pin(st, of_node); pin 1138 drivers/iio/imu/adis16480.c if (pin == ADIS16480_DRDY_SEL(val)) pin 1141 drivers/iio/imu/adis16480.c pin + 1); pin 1143 drivers/iio/imu/adis16480.c mode = ADIS16480_SYNC_EN(enable) | ADIS16480_SYNC_SEL(pin); pin 552 drivers/iio/imu/bmi160/bmi160_core.c static int bmi160_config_pin(struct regmap *regmap, enum bmi160_int_pin pin, pin 565 drivers/iio/imu/bmi160/bmi160_core.c switch (pin) { pin 610 drivers/iio/imu/bmi160/bmi160_core.c switch (pin) { pin 637 drivers/iio/imu/bmi160/bmi160_core.c static int bmi160_get_irq(struct device_node *of_node, enum bmi160_int_pin *pin) pin 644 drivers/iio/imu/bmi160/bmi160_core.c *pin = BMI160_PIN_INT1; pin 650 drivers/iio/imu/bmi160/bmi160_core.c *pin = BMI160_PIN_INT2; pin 656 drivers/iio/imu/bmi160/bmi160_core.c enum bmi160_int_pin pin) pin 680 drivers/iio/imu/bmi160/bmi160_core.c return bmi160_config_pin(data->regmap, pin, open_drain, irq_mask, pin 685 drivers/iio/imu/bmi160/bmi160_core.c enum bmi160_int_pin pin) pin 699 drivers/iio/imu/bmi160/bmi160_core.c ret = bmi160_config_device_irq(indio_dev, irq_type, pin); pin 173 drivers/input/keyboard/adp5588-keys.c pin_used[kpad->gpimap[i].pin - GPI_PIN_BASE] = true; pin 277 drivers/input/keyboard/adp5588-keys.c if (key_val == kpad->gpimap[j].pin) { pin 351 drivers/input/keyboard/adp5588-keys.c unsigned short pin = pdata->gpimap[i].pin; pin 353 drivers/input/keyboard/adp5588-keys.c if (pin <= GPI_PIN_ROW_END) { pin 354 drivers/input/keyboard/adp5588-keys.c evt_mode1 |= (1 << (pin - GPI_PIN_ROW_BASE)); pin 356 drivers/input/keyboard/adp5588-keys.c evt_mode2 |= ((1 << (pin - GPI_PIN_COL_BASE)) & 0xFF); pin 357 drivers/input/keyboard/adp5588-keys.c evt_mode3 |= ((1 << (pin - GPI_PIN_COL_BASE)) >> 8); pin 402 drivers/input/keyboard/adp5588-keys.c unsigned short pin = kpad->gpimap[i].pin; pin 404 drivers/input/keyboard/adp5588-keys.c if (pin <= GPI_PIN_ROW_END) { pin 406 drivers/input/keyboard/adp5588-keys.c pin_loc = pin - GPI_PIN_ROW_BASE; pin 407 drivers/input/keyboard/adp5588-keys.c } else if ((pin - GPI_PIN_COL_BASE) < 8) { pin 409 drivers/input/keyboard/adp5588-keys.c pin_loc = pin - GPI_PIN_COL_BASE; pin 412 drivers/input/keyboard/adp5588-keys.c pin_loc = pin - GPI_PIN_COL_BASE - 8; pin 418 drivers/input/keyboard/adp5588-keys.c pin); pin 474 drivers/input/keyboard/adp5588-keys.c unsigned short pin = pdata->gpimap[i].pin; pin 476 drivers/input/keyboard/adp5588-keys.c if (pin < GPI_PIN_BASE || pin > GPI_PIN_END) { pin 481 drivers/input/keyboard/adp5588-keys.c if (pin <= GPI_PIN_ROW_END) { pin 482 drivers/input/keyboard/adp5588-keys.c if (pin - GPI_PIN_ROW_BASE + 1 <= pdata->rows) { pin 487 drivers/input/keyboard/adp5588-keys.c if (pin - GPI_PIN_COL_BASE + 1 <= pdata->cols) { pin 480 drivers/input/keyboard/adp5589-keys.c pin_used[kpad->gpimap[i].pin - kpad->var->gpi_pin_base] = true; pin 590 drivers/input/keyboard/adp5589-keys.c if (key_val == kpad->gpimap[i].pin) { pin 689 drivers/input/keyboard/adp5589-keys.c unsigned short pin = pdata->gpimap[i].pin; pin 691 drivers/input/keyboard/adp5589-keys.c if (pin <= kpad->var->gpi_pin_row_end) { pin 692 drivers/input/keyboard/adp5589-keys.c evt_mode1 |= (1 << (pin - kpad->var->gpi_pin_row_base)); pin 695 drivers/input/keyboard/adp5589-keys.c ((1 << (pin - kpad->var->gpi_pin_col_base)) & 0xFF); pin 697 drivers/input/keyboard/adp5589-keys.c evt_mode3 |= ((1 << (pin - pin 832 drivers/input/keyboard/adp5589-keys.c unsigned short pin = kpad->gpimap[i].pin; pin 834 drivers/input/keyboard/adp5589-keys.c if (pin <= kpad->var->gpi_pin_row_end) { pin 836 drivers/input/keyboard/adp5589-keys.c pin_loc = pin - kpad->var->gpi_pin_row_base; pin 837 drivers/input/keyboard/adp5589-keys.c } else if ((pin - kpad->var->gpi_pin_col_base) < 8) { pin 839 drivers/input/keyboard/adp5589-keys.c pin_loc = pin - kpad->var->gpi_pin_col_base; pin 842 drivers/input/keyboard/adp5589-keys.c pin_loc = pin - kpad->var->gpi_pin_col_base - 8; pin 848 drivers/input/keyboard/adp5589-keys.c pin); pin 927 drivers/input/keyboard/adp5589-keys.c unsigned short pin = pdata->gpimap[i].pin; pin 929 drivers/input/keyboard/adp5589-keys.c if (pin < kpad->var->gpi_pin_base || pin 930 drivers/input/keyboard/adp5589-keys.c pin > kpad->var->gpi_pin_end) { pin 936 drivers/input/keyboard/adp5589-keys.c if ((1 << (pin - kpad->var->gpi_pin_row_base)) & pin 31 drivers/input/misc/ixp4xx-beeper.c static void ixp4xx_spkr_control(unsigned int pin, unsigned int count) pin 38 drivers/input/misc/ixp4xx-beeper.c gpio_direction_output(pin, 0); pin 41 drivers/input/misc/ixp4xx-beeper.c gpio_direction_output(pin, 1); pin 42 drivers/input/misc/ixp4xx-beeper.c gpio_direction_input(pin); pin 51 drivers/input/misc/ixp4xx-beeper.c unsigned int pin = (unsigned int) input_get_drvdata(dev); pin 70 drivers/input/misc/ixp4xx-beeper.c ixp4xx_spkr_control(pin, count); pin 77 drivers/input/misc/ixp4xx-beeper.c unsigned int pin = (unsigned int) dev_id; pin 83 drivers/input/misc/ixp4xx-beeper.c gpio_set_value(pin, !gpio_get_value(pin)); pin 150 drivers/input/misc/ixp4xx-beeper.c unsigned int pin = (unsigned int) input_get_drvdata(input_dev); pin 156 drivers/input/misc/ixp4xx-beeper.c ixp4xx_spkr_control(pin, 0); pin 167 drivers/input/misc/ixp4xx-beeper.c unsigned int pin = (unsigned int) input_get_drvdata(input_dev); pin 171 drivers/input/misc/ixp4xx-beeper.c ixp4xx_spkr_control(pin, 0); pin 69 drivers/irqchip/irq-mbigen.c unsigned int nid, pin; pin 73 drivers/irqchip/irq-mbigen.c pin = hwirq % IRQS_PER_MBIGEN_NODE; pin 75 drivers/irqchip/irq-mbigen.c return pin * 4 + nid * MBIGEN_NODE_OFFSET pin 160 drivers/irqchip/qcom-pdc.c static irq_hw_number_t get_parent_hwirq(int pin) pin 167 drivers/irqchip/qcom-pdc.c if (pin >= region->pin_base && pin 168 drivers/irqchip/qcom-pdc.c pin < region->pin_base + region->cnt) pin 169 drivers/irqchip/qcom-pdc.c return (region->parent_base + pin - region->pin_base); pin 67 drivers/leds/leds-bcm6328.c unsigned long pin; pin 97 drivers/leds/leds-bcm6328.c static unsigned long bcm6328_pin2shift(unsigned long pin) pin 99 drivers/leds/leds-bcm6328.c if (pin < 8) pin 100 drivers/leds/leds-bcm6328.c return pin + 16; /* LEDs 0-7 (bits 47:32) */ pin 102 drivers/leds/leds-bcm6328.c return pin - 8; /* LEDs 8-23 (bits 31:0) */ pin 110 drivers/leds/leds-bcm6328.c shift = bcm6328_pin2shift(led->pin); pin 130 drivers/leds/leds-bcm6328.c *(led->blink_leds) &= ~BIT(led->pin); pin 180 drivers/leds/leds-bcm6328.c *(led->blink_leds) == BIT(led->pin) || pin 184 drivers/leds/leds-bcm6328.c *(led->blink_leds) |= BIT(led->pin); pin 288 drivers/leds/leds-bcm6328.c led->pin = reg; pin 309 drivers/leds/leds-bcm6328.c shift = bcm6328_pin2shift(led->pin); pin 42 drivers/leds/leds-bcm6358.c unsigned long pin; pin 87 drivers/leds/leds-bcm6358.c val |= BIT(led->pin); pin 89 drivers/leds/leds-bcm6358.c val &= ~(BIT(led->pin)); pin 105 drivers/leds/leds-bcm6358.c led->pin = reg; pin 123 drivers/leds/leds-bcm6358.c val &= BIT(led->pin); pin 69 drivers/leds/leds-netxbig.c int pin; pin 71 drivers/leds/leds-netxbig.c for (pin = 0; pin < gpio_ext->num_addr; pin++) pin 72 drivers/leds/leds-netxbig.c gpio_set_value(gpio_ext->addr[pin], (addr >> pin) & 1); pin 77 drivers/leds/leds-netxbig.c int pin; pin 79 drivers/leds/leds-netxbig.c for (pin = 0; pin < gpio_ext->num_data; pin++) pin 80 drivers/leds/leds-netxbig.c gpio_set_value(gpio_ext->data[pin], (data >> pin) & 1); pin 111 drivers/md/bcache/alloc.c !atomic_read(&b->pin)) { pin 137 drivers/md/bcache/alloc.c !atomic_read(&b->pin) && pin 151 drivers/md/bcache/alloc.c atomic_inc(&b->pin); pin 448 drivers/md/bcache/alloc.c BUG_ON(atomic_read(&b->pin) != 1); pin 696 drivers/md/bcache/alloc.c atomic_inc(&PTR_BUCKET(c, &b->key, i)->pin); pin 198 drivers/md/bcache/bcache.h atomic_t pin; pin 190 drivers/md/bcache/btree.c atomic_dec_bug(&PTR_BUCKET(c, k, i)->pin); pin 1752 drivers/md/bcache/btree.c if (!atomic_read(&b->pin)) { pin 1815 drivers/md/bcache/btree.c if (atomic_read(&b->pin)) pin 200 drivers/md/bcache/extents.c buf, PTR_BUCKET_NR(b->c, k, i), atomic_read(&g->pin), pin 532 drivers/md/bcache/extents.c buf, PTR_BUCKET_NR(b->c, k, ptr), atomic_read(&g->pin), pin 317 drivers/md/bcache/journal.c i->pin = NULL; pin 320 drivers/md/bcache/journal.c if (fifo_free(&j->pin) > 1) { pin 321 drivers/md/bcache/journal.c fifo_push_front(&j->pin, p); pin 322 drivers/md/bcache/journal.c atomic_set(&fifo_front(&j->pin), 0); pin 325 drivers/md/bcache/journal.c if (fifo_free(&j->pin) > 1) { pin 326 drivers/md/bcache/journal.c fifo_push_front(&j->pin, p); pin 327 drivers/md/bcache/journal.c i->pin = &fifo_front(&j->pin); pin 328 drivers/md/bcache/journal.c atomic_set(i->pin, 1); pin 339 drivers/md/bcache/journal.c atomic_inc(&PTR_BUCKET(c, k, j)->pin); pin 369 drivers/md/bcache/journal.c BUG_ON(i->pin && atomic_read(i->pin) != 1); pin 390 drivers/md/bcache/journal.c ret = bch_btree_insert(s, &keylist, i->pin, NULL); pin 400 drivers/md/bcache/journal.c if (i->pin) pin 401 drivers/md/bcache/journal.c atomic_dec(i->pin); pin 443 drivers/md/bcache/journal.c fifo_front_p = &fifo_front(&c->journal.pin); pin 455 drivers/md/bcache/journal.c mask = c->journal.pin.mask; pin 468 drivers/md/bcache/journal.c now_fifo_front_p = &fifo_front(&c->journal.pin); pin 576 drivers/md/bcache/journal.c #define last_seq(j) ((j)->seq - fifo_used(&(j)->pin) + 1) pin 649 drivers/md/bcache/journal.c while (!atomic_read(&fifo_front(&c->journal.pin))) pin 650 drivers/md/bcache/journal.c fifo_pop(&c->journal.pin, p); pin 713 drivers/md/bcache/journal.c BUG_ON(!fifo_push(&j->pin, p)); pin 714 drivers/md/bcache/journal.c atomic_set(&fifo_back(&j->pin), 1); pin 721 drivers/md/bcache/journal.c if (fifo_full(&j->pin)) pin 722 drivers/md/bcache/journal.c pr_debug("journal_pin full (%zu)", fifo_used(&j->pin)); pin 825 drivers/md/bcache/journal.c atomic_dec_bug(&fifo_back(&c->journal.pin)); pin 953 drivers/md/bcache/journal.c ret = &fifo_back(&c->journal.pin); pin 988 drivers/md/bcache/journal.c free_fifo(&c->journal.pin); pin 1004 drivers/md/bcache/journal.c if (!(init_fifo(&j->pin, JOURNAL_PIN, GFP_KERNEL)) || pin 85 drivers/md/bcache/journal.h atomic_t *pin; pin 117 drivers/md/bcache/journal.h DECLARE_FIFO(atomic_t, pin); pin 162 drivers/md/bcache/journal.h (fifo_idx(&(c)->journal.pin, (l)) > fifo_idx(&(c)->journal.pin, (r))) pin 167 drivers/md/bcache/journal.h (!(j)->blocks_free || fifo_free(&(j)->pin) <= 1) pin 219 drivers/md/bcache/movinggc.c atomic_read(&b->pin)) pin 589 drivers/md/bcache/super.c atomic_dec_bug(&ca->buckets[bucket].pin); pin 2235 drivers/md/bcache/super.c atomic_set(&b->pin, 0); pin 764 drivers/md/bcache/sysfs.c sysfs_print(active_journal_entries, fifo_used(&c->journal.pin)); pin 291 drivers/md/bcache/writeback.c atomic_inc(&PTR_BUCKET(dc->disk.c, &w->key, i)->pin); pin 583 drivers/media/cec/cec-api.c if (adap->pin && adap->pin->ops->read_hpd) { pin 584 drivers/media/cec/cec-api.c err = adap->pin->ops->read_hpd(adap); pin 591 drivers/media/cec/cec-api.c if (adap->pin && adap->pin->ops->read_5v) { pin 592 drivers/media/cec/cec-api.c err = adap->pin->ops->read_5v(adap); pin 49 drivers/media/cec/cec-pin-error-inj.c u16 cec_pin_rx_error_inj(struct cec_pin *pin) pin 54 drivers/media/cec/cec-pin-error-inj.c if (!(pin->error_inj[cmd] & CEC_ERROR_INJ_RX_MASK) && pin 55 drivers/media/cec/cec-pin-error-inj.c pin->rx_bit >= 18) pin 56 drivers/media/cec/cec-pin-error-inj.c cmd = pin->rx_msg.msg[1]; pin 57 drivers/media/cec/cec-pin-error-inj.c return (pin->error_inj[cmd] & CEC_ERROR_INJ_RX_MASK) ? cmd : pin 61 drivers/media/cec/cec-pin-error-inj.c u16 cec_pin_tx_error_inj(struct cec_pin *pin) pin 65 drivers/media/cec/cec-pin-error-inj.c if (!(pin->error_inj[cmd] & CEC_ERROR_INJ_TX_MASK) && pin 66 drivers/media/cec/cec-pin-error-inj.c pin->tx_msg.len > 1) pin 67 drivers/media/cec/cec-pin-error-inj.c cmd = pin->tx_msg.msg[1]; pin 68 drivers/media/cec/cec-pin-error-inj.c return (pin->error_inj[cmd] & CEC_ERROR_INJ_TX_MASK) ? cmd : pin 75 drivers/media/cec/cec-pin-error-inj.c struct cec_pin *pin = adap->pin; pin 91 drivers/media/cec/cec-pin-error-inj.c memset(pin->error_inj, 0, sizeof(pin->error_inj)); pin 92 drivers/media/cec/cec-pin-error-inj.c pin->rx_toggle = pin->tx_toggle = false; pin 93 drivers/media/cec/cec-pin-error-inj.c pin->tx_ignore_nack_until_eom = false; pin 94 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_pulse = false; pin 95 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_low_usecs = CEC_TIM_CUSTOM_DEFAULT; pin 96 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_high_usecs = CEC_TIM_CUSTOM_DEFAULT; pin 101 drivers/media/cec/cec-pin-error-inj.c pin->error_inj[i] &= ~CEC_ERROR_INJ_RX_MASK; pin 102 drivers/media/cec/cec-pin-error-inj.c pin->rx_toggle = false; pin 107 drivers/media/cec/cec-pin-error-inj.c pin->error_inj[i] &= ~CEC_ERROR_INJ_TX_MASK; pin 108 drivers/media/cec/cec-pin-error-inj.c pin->tx_toggle = false; pin 109 drivers/media/cec/cec-pin-error-inj.c pin->tx_ignore_nack_until_eom = false; pin 110 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_pulse = false; pin 111 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_low_usecs = CEC_TIM_CUSTOM_DEFAULT; pin 112 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_high_usecs = CEC_TIM_CUSTOM_DEFAULT; pin 116 drivers/media/cec/cec-pin-error-inj.c pin->tx_ignore_nack_until_eom = true; pin 120 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_pulse = true; pin 121 drivers/media/cec/cec-pin-error-inj.c cec_pin_start_timer(pin); pin 133 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_low_usecs = usecs; pin 141 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_high_usecs = usecs; pin 150 drivers/media/cec/cec-pin-error-inj.c error = pin->error_inj + CEC_ERROR_INJ_OP_ANY; pin 151 drivers/media/cec/cec-pin-error-inj.c args = pin->error_inj_args[CEC_ERROR_INJ_OP_ANY]; pin 154 drivers/media/cec/cec-pin-error-inj.c error = pin->error_inj + op; pin 155 drivers/media/cec/cec-pin-error-inj.c args = pin->error_inj_args[op]; pin 264 drivers/media/cec/cec-pin-error-inj.c struct cec_pin *pin = adap->pin; pin 311 drivers/media/cec/cec-pin-error-inj.c for (i = 0; i < ARRAY_SIZE(pin->error_inj); i++) { pin 312 drivers/media/cec/cec-pin-error-inj.c u64 e = pin->error_inj[i]; pin 329 drivers/media/cec/cec-pin-error-inj.c pin->error_inj_args[i][arg_idx]); pin 334 drivers/media/cec/cec-pin-error-inj.c if (pin->tx_ignore_nack_until_eom) pin 336 drivers/media/cec/cec-pin-error-inj.c if (pin->tx_custom_pulse) pin 338 drivers/media/cec/cec-pin-error-inj.c if (pin->tx_custom_low_usecs != CEC_TIM_CUSTOM_DEFAULT) pin 340 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_low_usecs); pin 341 drivers/media/cec/cec-pin-error-inj.c if (pin->tx_custom_high_usecs != CEC_TIM_CUSTOM_DEFAULT) pin 343 drivers/media/cec/cec-pin-error-inj.c pin->tx_custom_high_usecs); pin 231 drivers/media/cec/cec-pin-priv.h void cec_pin_start_timer(struct cec_pin *pin); pin 237 drivers/media/cec/cec-pin-priv.h u16 cec_pin_rx_error_inj(struct cec_pin *pin); pin 238 drivers/media/cec/cec-pin-priv.h u16 cec_pin_tx_error_inj(struct cec_pin *pin); pin 111 drivers/media/cec/cec-pin.c static void cec_pin_update(struct cec_pin *pin, bool v, bool force) pin 113 drivers/media/cec/cec-pin.c if (!force && v == pin->adap->cec_pin_is_high) pin 116 drivers/media/cec/cec-pin.c pin->adap->cec_pin_is_high = v; pin 117 drivers/media/cec/cec-pin.c if (atomic_read(&pin->work_pin_num_events) < CEC_NUM_PIN_EVENTS) { pin 120 drivers/media/cec/cec-pin.c if (pin->work_pin_events_dropped) { pin 121 drivers/media/cec/cec-pin.c pin->work_pin_events_dropped = false; pin 124 drivers/media/cec/cec-pin.c pin->work_pin_events[pin->work_pin_events_wr] = ev; pin 125 drivers/media/cec/cec-pin.c pin->work_pin_ts[pin->work_pin_events_wr] = ktime_get(); pin 126 drivers/media/cec/cec-pin.c pin->work_pin_events_wr = pin 127 drivers/media/cec/cec-pin.c (pin->work_pin_events_wr + 1) % CEC_NUM_PIN_EVENTS; pin 128 drivers/media/cec/cec-pin.c atomic_inc(&pin->work_pin_num_events); pin 130 drivers/media/cec/cec-pin.c pin->work_pin_events_dropped = true; pin 131 drivers/media/cec/cec-pin.c pin->work_pin_events_dropped_cnt++; pin 133 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 136 drivers/media/cec/cec-pin.c static bool cec_pin_read(struct cec_pin *pin) pin 138 drivers/media/cec/cec-pin.c bool v = pin->ops->read(pin->adap); pin 140 drivers/media/cec/cec-pin.c cec_pin_update(pin, v, false); pin 144 drivers/media/cec/cec-pin.c static void cec_pin_low(struct cec_pin *pin) pin 146 drivers/media/cec/cec-pin.c pin->ops->low(pin->adap); pin 147 drivers/media/cec/cec-pin.c cec_pin_update(pin, false, false); pin 150 drivers/media/cec/cec-pin.c static bool cec_pin_high(struct cec_pin *pin) pin 152 drivers/media/cec/cec-pin.c pin->ops->high(pin->adap); pin 153 drivers/media/cec/cec-pin.c return cec_pin_read(pin); pin 156 drivers/media/cec/cec-pin.c static bool rx_error_inj(struct cec_pin *pin, unsigned int mode_offset, pin 160 drivers/media/cec/cec-pin.c u16 cmd = cec_pin_rx_error_inj(pin); pin 161 drivers/media/cec/cec-pin.c u64 e = pin->error_inj[cmd]; pin 165 drivers/media/cec/cec-pin.c u8 pos = pin->error_inj_args[cmd][arg_idx]; pin 169 drivers/media/cec/cec-pin.c else if (pos != pin->rx_bit) pin 175 drivers/media/cec/cec-pin.c pin->error_inj[cmd] &= pin 181 drivers/media/cec/cec-pin.c return pin->rx_toggle; pin 190 drivers/media/cec/cec-pin.c static bool rx_nack(struct cec_pin *pin) pin 192 drivers/media/cec/cec-pin.c return rx_error_inj(pin, CEC_ERROR_INJ_RX_NACK_OFFSET, -1, NULL); pin 195 drivers/media/cec/cec-pin.c static bool rx_low_drive(struct cec_pin *pin) pin 197 drivers/media/cec/cec-pin.c return rx_error_inj(pin, CEC_ERROR_INJ_RX_LOW_DRIVE_OFFSET, pin 201 drivers/media/cec/cec-pin.c static bool rx_add_byte(struct cec_pin *pin) pin 203 drivers/media/cec/cec-pin.c return rx_error_inj(pin, CEC_ERROR_INJ_RX_ADD_BYTE_OFFSET, -1, NULL); pin 206 drivers/media/cec/cec-pin.c static bool rx_remove_byte(struct cec_pin *pin) pin 208 drivers/media/cec/cec-pin.c return rx_error_inj(pin, CEC_ERROR_INJ_RX_REMOVE_BYTE_OFFSET, -1, NULL); pin 211 drivers/media/cec/cec-pin.c static bool rx_arb_lost(struct cec_pin *pin, u8 *poll) pin 213 drivers/media/cec/cec-pin.c return pin->tx_msg.len == 0 && pin 214 drivers/media/cec/cec-pin.c rx_error_inj(pin, CEC_ERROR_INJ_RX_ARB_LOST_OFFSET, pin 218 drivers/media/cec/cec-pin.c static bool tx_error_inj(struct cec_pin *pin, unsigned int mode_offset, pin 222 drivers/media/cec/cec-pin.c u16 cmd = cec_pin_tx_error_inj(pin); pin 223 drivers/media/cec/cec-pin.c u64 e = pin->error_inj[cmd]; pin 227 drivers/media/cec/cec-pin.c u8 pos = pin->error_inj_args[cmd][arg_idx]; pin 231 drivers/media/cec/cec-pin.c else if (pos != pin->tx_bit) pin 237 drivers/media/cec/cec-pin.c pin->error_inj[cmd] &= pin 243 drivers/media/cec/cec-pin.c return pin->tx_toggle; pin 252 drivers/media/cec/cec-pin.c static bool tx_no_eom(struct cec_pin *pin) pin 254 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_NO_EOM_OFFSET, -1, NULL); pin 257 drivers/media/cec/cec-pin.c static bool tx_early_eom(struct cec_pin *pin) pin 259 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_EARLY_EOM_OFFSET, -1, NULL); pin 262 drivers/media/cec/cec-pin.c static bool tx_short_bit(struct cec_pin *pin) pin 264 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_SHORT_BIT_OFFSET, pin 268 drivers/media/cec/cec-pin.c static bool tx_long_bit(struct cec_pin *pin) pin 270 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_LONG_BIT_OFFSET, pin 274 drivers/media/cec/cec-pin.c static bool tx_custom_bit(struct cec_pin *pin) pin 276 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_CUSTOM_BIT_OFFSET, pin 280 drivers/media/cec/cec-pin.c static bool tx_short_start(struct cec_pin *pin) pin 282 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_SHORT_START_OFFSET, -1, NULL); pin 285 drivers/media/cec/cec-pin.c static bool tx_long_start(struct cec_pin *pin) pin 287 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_LONG_START_OFFSET, -1, NULL); pin 290 drivers/media/cec/cec-pin.c static bool tx_custom_start(struct cec_pin *pin) pin 292 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_CUSTOM_START_OFFSET, pin 296 drivers/media/cec/cec-pin.c static bool tx_last_bit(struct cec_pin *pin) pin 298 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_LAST_BIT_OFFSET, pin 302 drivers/media/cec/cec-pin.c static u8 tx_add_bytes(struct cec_pin *pin) pin 306 drivers/media/cec/cec-pin.c if (tx_error_inj(pin, CEC_ERROR_INJ_TX_ADD_BYTES_OFFSET, pin 312 drivers/media/cec/cec-pin.c static bool tx_remove_byte(struct cec_pin *pin) pin 314 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_REMOVE_BYTE_OFFSET, -1, NULL); pin 317 drivers/media/cec/cec-pin.c static bool tx_low_drive(struct cec_pin *pin) pin 319 drivers/media/cec/cec-pin.c return tx_error_inj(pin, CEC_ERROR_INJ_TX_LOW_DRIVE_OFFSET, pin 323 drivers/media/cec/cec-pin.c static void cec_pin_to_idle(struct cec_pin *pin) pin 329 drivers/media/cec/cec-pin.c pin->rx_bit = pin->tx_bit = 0; pin 330 drivers/media/cec/cec-pin.c pin->rx_msg.len = 0; pin 331 drivers/media/cec/cec-pin.c memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.msg)); pin 332 drivers/media/cec/cec-pin.c pin->ts = ns_to_ktime(0); pin 333 drivers/media/cec/cec-pin.c pin->tx_generated_poll = false; pin 334 drivers/media/cec/cec-pin.c pin->tx_post_eom = false; pin 335 drivers/media/cec/cec-pin.c if (pin->state >= CEC_ST_TX_WAIT && pin 336 drivers/media/cec/cec-pin.c pin->state <= CEC_ST_TX_LOW_DRIVE) pin 337 drivers/media/cec/cec-pin.c pin->tx_toggle ^= 1; pin 338 drivers/media/cec/cec-pin.c if (pin->state >= CEC_ST_RX_START_BIT_LOW && pin 339 drivers/media/cec/cec-pin.c pin->state <= CEC_ST_RX_LOW_DRIVE) pin 340 drivers/media/cec/cec-pin.c pin->rx_toggle ^= 1; pin 341 drivers/media/cec/cec-pin.c pin->state = CEC_ST_IDLE; pin 370 drivers/media/cec/cec-pin.c static void cec_pin_tx_states(struct cec_pin *pin, ktime_t ts) pin 375 drivers/media/cec/cec-pin.c switch (pin->state) { pin 377 drivers/media/cec/cec-pin.c if (cec_pin_read(pin)) pin 378 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 382 drivers/media/cec/cec-pin.c if (tx_short_start(pin)) { pin 387 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_START_BIT_HIGH_SHORT; pin 388 drivers/media/cec/cec-pin.c } else if (tx_long_start(pin)) { pin 393 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_START_BIT_HIGH_LONG; pin 395 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_START_BIT_HIGH; pin 398 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 402 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_START_BIT_HIGH_CUSTOM; pin 404 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 410 drivers/media/cec/cec-pin.c if (pin->tx_nacked) { pin 411 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 412 drivers/media/cec/cec-pin.c pin->tx_msg.len = 0; pin 413 drivers/media/cec/cec-pin.c if (pin->tx_generated_poll) pin 415 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; pin 416 drivers/media/cec/cec-pin.c pin->work_tx_status = CEC_TX_STATUS_NACK; pin 417 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 435 drivers/media/cec/cec-pin.c if (!cec_pin_read(pin) && !pin->tx_generated_poll) { pin 440 drivers/media/cec/cec-pin.c pin->tx_msg.len = 0; pin 441 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_WAIT_FOR_HIGH; pin 442 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; pin 443 drivers/media/cec/cec-pin.c pin->work_tx_status = CEC_TX_STATUS_LOW_DRIVE; pin 444 drivers/media/cec/cec-pin.c pin->tx_low_drive_cnt++; pin 445 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 450 drivers/media/cec/cec-pin.c if (tx_last_bit(pin)) { pin 452 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 453 drivers/media/cec/cec-pin.c pin->tx_msg.len = 0; pin 454 drivers/media/cec/cec-pin.c if (pin->tx_generated_poll) pin 456 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; pin 457 drivers/media/cec/cec-pin.c pin->work_tx_status = CEC_TX_STATUS_OK; pin 458 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 461 drivers/media/cec/cec-pin.c pin->tx_bit++; pin 467 drivers/media/cec/cec-pin.c if (tx_low_drive(pin)) { pin 469 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 470 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_LOW_DRIVE; pin 471 drivers/media/cec/cec-pin.c pin->tx_msg.len = 0; pin 472 drivers/media/cec/cec-pin.c if (pin->tx_generated_poll) pin 474 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; pin 475 drivers/media/cec/cec-pin.c pin->work_tx_status = CEC_TX_STATUS_LOW_DRIVE; pin 476 drivers/media/cec/cec-pin.c pin->tx_low_drive_cnt++; pin 477 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 480 drivers/media/cec/cec-pin.c if (pin->tx_bit / 10 >= pin->tx_msg.len + pin->tx_extra_bytes) { pin 481 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 482 drivers/media/cec/cec-pin.c pin->tx_msg.len = 0; pin 483 drivers/media/cec/cec-pin.c if (pin->tx_generated_poll) pin 485 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; pin 486 drivers/media/cec/cec-pin.c pin->work_tx_status = CEC_TX_STATUS_OK; pin 487 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 491 drivers/media/cec/cec-pin.c switch (pin->tx_bit % 10) { pin 499 drivers/media/cec/cec-pin.c unsigned int idx = (pin->tx_bit / 10); pin 502 drivers/media/cec/cec-pin.c if (idx < pin->tx_msg.len) pin 503 drivers/media/cec/cec-pin.c val = pin->tx_msg.msg[idx]; pin 504 drivers/media/cec/cec-pin.c v = val & (1 << (7 - (pin->tx_bit % 10))); pin 506 drivers/media/cec/cec-pin.c pin->state = v ? CEC_ST_TX_DATA_BIT_1_LOW : pin 511 drivers/media/cec/cec-pin.c unsigned int tot_len = pin->tx_msg.len + pin 512 drivers/media/cec/cec-pin.c pin->tx_extra_bytes; pin 513 drivers/media/cec/cec-pin.c unsigned int tx_byte_idx = pin->tx_bit / 10; pin 515 drivers/media/cec/cec-pin.c v = !pin->tx_post_eom && tx_byte_idx == tot_len - 1; pin 517 drivers/media/cec/cec-pin.c tx_early_eom(pin)) { pin 520 drivers/media/cec/cec-pin.c pin->tx_post_eom = true; pin 521 drivers/media/cec/cec-pin.c } else if (v && tx_no_eom(pin)) { pin 525 drivers/media/cec/cec-pin.c pin->state = v ? CEC_ST_TX_DATA_BIT_1_LOW : pin 530 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_DATA_BIT_1_LOW; pin 533 drivers/media/cec/cec-pin.c if (tx_custom_bit(pin)) pin 534 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_DATA_BIT_LOW_CUSTOM; pin 535 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 540 drivers/media/cec/cec-pin.c v = pin->state == CEC_ST_TX_DATA_BIT_1_LOW; pin 541 drivers/media/cec/cec-pin.c is_ack_bit = pin->tx_bit % 10 == ACK_BIT; pin 542 drivers/media/cec/cec-pin.c if (v && (pin->tx_bit < 4 || is_ack_bit)) { pin 543 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_DATA_BIT_1_HIGH_PRE_SAMPLE; pin 544 drivers/media/cec/cec-pin.c } else if (!is_ack_bit && tx_short_bit(pin)) { pin 546 drivers/media/cec/cec-pin.c pin->state = v ? CEC_ST_TX_DATA_BIT_1_HIGH_SHORT : pin 548 drivers/media/cec/cec-pin.c } else if (!is_ack_bit && tx_long_bit(pin)) { pin 550 drivers/media/cec/cec-pin.c pin->state = v ? CEC_ST_TX_DATA_BIT_1_HIGH_LONG : pin 553 drivers/media/cec/cec-pin.c pin->state = v ? CEC_ST_TX_DATA_BIT_1_HIGH : pin 556 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 560 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_DATA_BIT_HIGH_CUSTOM; pin 561 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 566 drivers/media/cec/cec-pin.c v = cec_pin_read(pin); pin 567 drivers/media/cec/cec-pin.c is_ack_bit = pin->tx_bit % 10 == ACK_BIT; pin 576 drivers/media/cec/cec-pin.c if (!v && !is_ack_bit && !pin->tx_generated_poll) { pin 577 drivers/media/cec/cec-pin.c pin->tx_msg.len = 0; pin 578 drivers/media/cec/cec-pin.c pin->work_tx_ts = ts; pin 579 drivers/media/cec/cec-pin.c pin->work_tx_status = CEC_TX_STATUS_ARB_LOST; pin 580 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 581 drivers/media/cec/cec-pin.c pin->rx_bit = pin->tx_bit; pin 582 drivers/media/cec/cec-pin.c pin->tx_bit = 0; pin 583 drivers/media/cec/cec-pin.c memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.msg)); pin 584 drivers/media/cec/cec-pin.c pin->rx_msg.msg[0] = pin->tx_msg.msg[0]; pin 585 drivers/media/cec/cec-pin.c pin->rx_msg.msg[0] &= (0xff << (8 - pin->rx_bit)); pin 586 drivers/media/cec/cec-pin.c pin->rx_msg.len = 0; pin 587 drivers/media/cec/cec-pin.c pin->ts = ktime_sub_us(ts, CEC_TIM_DATA_BIT_SAMPLE); pin 588 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_DATA_POST_SAMPLE; pin 589 drivers/media/cec/cec-pin.c pin->rx_bit++; pin 592 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_DATA_BIT_1_HIGH_POST_SAMPLE; pin 593 drivers/media/cec/cec-pin.c if (!is_ack_bit && tx_short_bit(pin)) { pin 595 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_DATA_BIT_1_HIGH_POST_SAMPLE_SHORT; pin 596 drivers/media/cec/cec-pin.c } else if (!is_ack_bit && tx_long_bit(pin)) { pin 598 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_DATA_BIT_1_HIGH_POST_SAMPLE_LONG; pin 603 drivers/media/cec/cec-pin.c ack = cec_msg_is_broadcast(&pin->tx_msg) ? v : !v; pin 604 drivers/media/cec/cec-pin.c if (!ack && (!pin->tx_ignore_nack_until_eom || pin 605 drivers/media/cec/cec-pin.c pin->tx_bit / 10 == pin->tx_msg.len - 1) && pin 606 drivers/media/cec/cec-pin.c !pin->tx_post_eom) { pin 619 drivers/media/cec/cec-pin.c pin->tx_nacked = true; pin 624 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 625 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_PULSE_HIGH_CUSTOM; pin 629 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 652 drivers/media/cec/cec-pin.c static void cec_pin_rx_states(struct cec_pin *pin, ktime_t ts) pin 661 drivers/media/cec/cec-pin.c switch (pin->state) { pin 664 drivers/media/cec/cec-pin.c v = cec_pin_read(pin); pin 667 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_START_BIT_HIGH; pin 668 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); pin 671 drivers/media/cec/cec-pin.c if (!pin->rx_start_bit_low_too_short_cnt++) { pin 672 drivers/media/cec/cec-pin.c pin->rx_start_bit_low_too_short_ts = ktime_to_ns(pin->ts); pin 673 drivers/media/cec/cec-pin.c pin->rx_start_bit_low_too_short_delta = delta; pin 675 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 678 drivers/media/cec/cec-pin.c if (rx_arb_lost(pin, &poll)) { pin 679 drivers/media/cec/cec-pin.c cec_msg_init(&pin->tx_msg, poll >> 4, poll & 0xf); pin 680 drivers/media/cec/cec-pin.c pin->tx_generated_poll = true; pin 681 drivers/media/cec/cec-pin.c pin->tx_extra_bytes = 0; pin 682 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_START_BIT_HIGH; pin 683 drivers/media/cec/cec-pin.c pin->ts = ts; pin 688 drivers/media/cec/cec-pin.c v = cec_pin_read(pin); pin 689 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); pin 695 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_long_cnt++; pin 696 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 703 drivers/media/cec/cec-pin.c if (!pin->rx_start_bit_too_short_cnt++) { pin 704 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_short_ts = ktime_to_ns(pin->ts); pin 705 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_short_delta = delta; pin 707 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 710 drivers/media/cec/cec-pin.c if (rx_low_drive(pin)) { pin 712 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 713 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_LOW_DRIVE; pin 714 drivers/media/cec/cec-pin.c pin->rx_low_drive_cnt++; pin 717 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_DATA_SAMPLE; pin 718 drivers/media/cec/cec-pin.c pin->ts = ts; pin 719 drivers/media/cec/cec-pin.c pin->rx_eom = false; pin 723 drivers/media/cec/cec-pin.c v = cec_pin_read(pin); pin 724 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_DATA_POST_SAMPLE; pin 725 drivers/media/cec/cec-pin.c switch (pin->rx_bit % 10) { pin 727 drivers/media/cec/cec-pin.c if (pin->rx_bit / 10 < CEC_MAX_MSG_SIZE) pin 728 drivers/media/cec/cec-pin.c pin->rx_msg.msg[pin->rx_bit / 10] |= pin 729 drivers/media/cec/cec-pin.c v << (7 - (pin->rx_bit % 10)); pin 732 drivers/media/cec/cec-pin.c pin->rx_eom = v; pin 733 drivers/media/cec/cec-pin.c pin->rx_msg.len = pin->rx_bit / 10 + 1; pin 738 drivers/media/cec/cec-pin.c pin->rx_bit++; pin 742 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_DATA_WAIT_FOR_LOW; pin 746 drivers/media/cec/cec-pin.c v = cec_pin_read(pin); pin 747 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); pin 753 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_long_cnt++; pin 754 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 760 drivers/media/cec/cec-pin.c if (rx_low_drive(pin)) { pin 762 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 763 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_LOW_DRIVE; pin 764 drivers/media/cec/cec-pin.c pin->rx_low_drive_cnt++; pin 773 drivers/media/cec/cec-pin.c if (!pin->rx_data_bit_too_short_cnt++) { pin 774 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_short_ts = ktime_to_ns(pin->ts); pin 775 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_short_delta = delta; pin 777 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 778 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_LOW_DRIVE; pin 779 drivers/media/cec/cec-pin.c pin->rx_low_drive_cnt++; pin 782 drivers/media/cec/cec-pin.c pin->ts = ts; pin 783 drivers/media/cec/cec-pin.c if (pin->rx_bit % 10 != 9) { pin 784 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_DATA_SAMPLE; pin 788 drivers/media/cec/cec-pin.c dest = cec_msg_destination(&pin->rx_msg); pin 791 drivers/media/cec/cec-pin.c for_us = bcast || (pin->la_mask & (1 << dest)); pin 795 drivers/media/cec/cec-pin.c if (for_us && rx_nack(pin)) { pin 802 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_ACK_HIGH_POST; pin 805 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 806 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_ACK_LOW; pin 810 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 811 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_ACK_LOW_POST; pin 816 drivers/media/cec/cec-pin.c v = cec_pin_read(pin); pin 817 drivers/media/cec/cec-pin.c if (v && pin->rx_eom) { pin 818 drivers/media/cec/cec-pin.c pin->work_rx_msg = pin->rx_msg; pin 819 drivers/media/cec/cec-pin.c pin->work_rx_msg.rx_ts = ktime_to_ns(ts); pin 820 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 821 drivers/media/cec/cec-pin.c pin->ts = ts; pin 822 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_ACK_FINISH; pin 825 drivers/media/cec/cec-pin.c pin->rx_bit++; pin 826 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_DATA_WAIT_FOR_LOW; pin 830 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 844 drivers/media/cec/cec-pin.c struct cec_pin *pin = container_of(timer, struct cec_pin, timer); pin 845 drivers/media/cec/cec-pin.c struct cec_adapter *adap = pin->adap; pin 851 drivers/media/cec/cec-pin.c if (ktime_to_ns(pin->timer_ts)) { pin 852 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->timer_ts); pin 853 drivers/media/cec/cec-pin.c pin->timer_cnt++; pin 854 drivers/media/cec/cec-pin.c if (delta > 100 && pin->state != CEC_ST_IDLE) { pin 856 drivers/media/cec/cec-pin.c pin->timer_sum_overrun += delta; pin 857 drivers/media/cec/cec-pin.c pin->timer_100ms_overruns++; pin 859 drivers/media/cec/cec-pin.c pin->timer_300ms_overruns++; pin 860 drivers/media/cec/cec-pin.c if (delta > pin->timer_max_overrun) pin 861 drivers/media/cec/cec-pin.c pin->timer_max_overrun = delta; pin 865 drivers/media/cec/cec-pin.c cec_pin_read(pin); pin 867 drivers/media/cec/cec-pin.c if (pin->wait_usecs) { pin 872 drivers/media/cec/cec-pin.c if (pin->wait_usecs > 150) { pin 873 drivers/media/cec/cec-pin.c pin->wait_usecs -= 100; pin 874 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, 100); pin 878 drivers/media/cec/cec-pin.c if (pin->wait_usecs > 100) { pin 879 drivers/media/cec/cec-pin.c pin->wait_usecs /= 2; pin 880 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, pin->wait_usecs); pin 882 drivers/media/cec/cec-pin.c ns_to_ktime(pin->wait_usecs * 1000)); pin 885 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, pin->wait_usecs); pin 887 drivers/media/cec/cec-pin.c ns_to_ktime(pin->wait_usecs * 1000)); pin 888 drivers/media/cec/cec-pin.c pin->wait_usecs = 0; pin 892 drivers/media/cec/cec-pin.c switch (pin->state) { pin 917 drivers/media/cec/cec-pin.c cec_pin_tx_states(pin, ts); pin 930 drivers/media/cec/cec-pin.c cec_pin_rx_states(pin, ts); pin 935 drivers/media/cec/cec-pin.c if (!cec_pin_high(pin)) { pin 937 drivers/media/cec/cec-pin.c pin->ts = ts; pin 938 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_START_BIT_LOW; pin 946 drivers/media/cec/cec-pin.c if (pin->tx_msg.len && pin->tx_signal_free_time > pin 948 drivers/media/cec/cec-pin.c pin->tx_signal_free_time = pin 952 drivers/media/cec/cec-pin.c if (ktime_to_ns(pin->ts) == 0) pin 953 drivers/media/cec/cec-pin.c pin->ts = ts; pin 954 drivers/media/cec/cec-pin.c if (pin->tx_msg.len) { pin 959 drivers/media/cec/cec-pin.c delta = ktime_us_delta(ts, pin->ts); pin 961 drivers/media/cec/cec-pin.c pin->tx_signal_free_time) { pin 962 drivers/media/cec/cec-pin.c pin->tx_nacked = false; pin 963 drivers/media/cec/cec-pin.c if (tx_custom_start(pin)) pin 964 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_START_BIT_LOW_CUSTOM; pin 966 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_START_BIT_LOW; pin 968 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 972 drivers/media/cec/cec-pin.c pin->tx_signal_free_time - 1) pin 973 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_WAIT; pin 976 drivers/media/cec/cec-pin.c if (pin->tx_custom_pulse && pin->state == CEC_ST_IDLE) { pin 977 drivers/media/cec/cec-pin.c pin->tx_custom_pulse = false; pin 979 drivers/media/cec/cec-pin.c cec_pin_low(pin); pin 980 drivers/media/cec/cec-pin.c pin->state = CEC_ST_TX_PULSE_LOW_CUSTOM; pin 983 drivers/media/cec/cec-pin.c if (pin->state != CEC_ST_IDLE || pin->ops->enable_irq == NULL || pin 984 drivers/media/cec/cec-pin.c pin->enable_irq_failed || adap->is_configuring || pin 988 drivers/media/cec/cec-pin.c atomic_set(&pin->work_irq_change, CEC_PIN_IRQ_ENABLE); pin 989 drivers/media/cec/cec-pin.c pin->state = CEC_ST_RX_IRQ; pin 990 drivers/media/cec/cec-pin.c wake_up_interruptible(&pin->kthread_waitq); pin 995 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 996 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 1003 drivers/media/cec/cec-pin.c switch (pin->state) { pin 1007 drivers/media/cec/cec-pin.c usecs = pin->tx_custom_low_usecs; pin 1012 drivers/media/cec/cec-pin.c usecs = pin->tx_custom_high_usecs; pin 1015 drivers/media/cec/cec-pin.c usecs = states[pin->state].usecs; pin 1020 drivers/media/cec/cec-pin.c pin->wait_usecs = 0; pin 1021 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, usecs); pin 1026 drivers/media/cec/cec-pin.c pin->wait_usecs = usecs - 100; pin 1027 drivers/media/cec/cec-pin.c pin->timer_ts = ktime_add_us(ts, 100); pin 1035 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1038 drivers/media/cec/cec-pin.c wait_event_interruptible(pin->kthread_waitq, pin 1040 drivers/media/cec/cec-pin.c pin->work_rx_msg.len || pin 1041 drivers/media/cec/cec-pin.c pin->work_tx_status || pin 1042 drivers/media/cec/cec-pin.c atomic_read(&pin->work_irq_change) || pin 1043 drivers/media/cec/cec-pin.c atomic_read(&pin->work_pin_num_events)); pin 1045 drivers/media/cec/cec-pin.c if (pin->work_rx_msg.len) { pin 1046 drivers/media/cec/cec-pin.c struct cec_msg *msg = &pin->work_rx_msg; pin 1049 drivers/media/cec/cec-pin.c rx_add_byte(pin)) { pin 1053 drivers/media/cec/cec-pin.c if (msg->len > 2 && rx_remove_byte(pin)) { pin 1060 drivers/media/cec/cec-pin.c ns_to_ktime(pin->work_rx_msg.rx_ts)); pin 1063 drivers/media/cec/cec-pin.c if (pin->work_tx_status) { pin 1064 drivers/media/cec/cec-pin.c unsigned int tx_status = pin->work_tx_status; pin 1066 drivers/media/cec/cec-pin.c pin->work_tx_status = 0; pin 1068 drivers/media/cec/cec-pin.c pin->work_tx_ts); pin 1071 drivers/media/cec/cec-pin.c while (atomic_read(&pin->work_pin_num_events)) { pin 1072 drivers/media/cec/cec-pin.c unsigned int idx = pin->work_pin_events_rd; pin 1073 drivers/media/cec/cec-pin.c u8 v = pin->work_pin_events[idx]; pin 1078 drivers/media/cec/cec-pin.c pin->work_pin_ts[idx]); pin 1079 drivers/media/cec/cec-pin.c pin->work_pin_events_rd = (idx + 1) % CEC_NUM_PIN_EVENTS; pin 1080 drivers/media/cec/cec-pin.c atomic_dec(&pin->work_pin_num_events); pin 1083 drivers/media/cec/cec-pin.c switch (atomic_xchg(&pin->work_irq_change, pin 1086 drivers/media/cec/cec-pin.c pin->ops->disable_irq(adap); pin 1087 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 1088 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 1089 drivers/media/cec/cec-pin.c hrtimer_start(&pin->timer, ns_to_ktime(0), pin 1093 drivers/media/cec/cec-pin.c pin->enable_irq_failed = !pin->ops->enable_irq(adap); pin 1094 drivers/media/cec/cec-pin.c if (pin->enable_irq_failed) { pin 1095 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 1096 drivers/media/cec/cec-pin.c hrtimer_start(&pin->timer, ns_to_ktime(0), pin 1112 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1114 drivers/media/cec/cec-pin.c pin->enabled = enable; pin 1116 drivers/media/cec/cec-pin.c atomic_set(&pin->work_pin_num_events, 0); pin 1117 drivers/media/cec/cec-pin.c pin->work_pin_events_rd = pin->work_pin_events_wr = 0; pin 1118 drivers/media/cec/cec-pin.c pin->work_pin_events_dropped = false; pin 1119 drivers/media/cec/cec-pin.c cec_pin_read(pin); pin 1120 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 1121 drivers/media/cec/cec-pin.c pin->tx_msg.len = 0; pin 1122 drivers/media/cec/cec-pin.c pin->timer_ts = ns_to_ktime(0); pin 1123 drivers/media/cec/cec-pin.c atomic_set(&pin->work_irq_change, CEC_PIN_IRQ_UNCHANGED); pin 1124 drivers/media/cec/cec-pin.c pin->kthread = kthread_run(cec_pin_thread_func, adap, pin 1126 drivers/media/cec/cec-pin.c if (IS_ERR(pin->kthread)) { pin 1128 drivers/media/cec/cec-pin.c return PTR_ERR(pin->kthread); pin 1130 drivers/media/cec/cec-pin.c hrtimer_start(&pin->timer, ns_to_ktime(0), pin 1133 drivers/media/cec/cec-pin.c if (pin->ops->disable_irq) pin 1134 drivers/media/cec/cec-pin.c pin->ops->disable_irq(adap); pin 1135 drivers/media/cec/cec-pin.c hrtimer_cancel(&pin->timer); pin 1136 drivers/media/cec/cec-pin.c kthread_stop(pin->kthread); pin 1137 drivers/media/cec/cec-pin.c cec_pin_read(pin); pin 1138 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 1139 drivers/media/cec/cec-pin.c pin->state = CEC_ST_OFF; pin 1146 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1149 drivers/media/cec/cec-pin.c pin->la_mask = 0; pin 1151 drivers/media/cec/cec-pin.c pin->la_mask |= (1 << log_addr); pin 1155 drivers/media/cec/cec-pin.c void cec_pin_start_timer(struct cec_pin *pin) pin 1157 drivers/media/cec/cec-pin.c if (pin->state != CEC_ST_RX_IRQ) pin 1160 drivers/media/cec/cec-pin.c atomic_set(&pin->work_irq_change, CEC_PIN_IRQ_UNCHANGED); pin 1161 drivers/media/cec/cec-pin.c pin->ops->disable_irq(pin->adap); pin 1162 drivers/media/cec/cec-pin.c cec_pin_high(pin); pin 1163 drivers/media/cec/cec-pin.c cec_pin_to_idle(pin); pin 1164 drivers/media/cec/cec-pin.c hrtimer_start(&pin->timer, ns_to_ktime(0), HRTIMER_MODE_REL); pin 1170 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1177 drivers/media/cec/cec-pin.c if (pin->state != CEC_ST_IDLE && pin 1181 drivers/media/cec/cec-pin.c pin->tx_signal_free_time = signal_free_time; pin 1182 drivers/media/cec/cec-pin.c pin->tx_extra_bytes = 0; pin 1183 drivers/media/cec/cec-pin.c pin->tx_msg = *msg; pin 1186 drivers/media/cec/cec-pin.c pin->tx_extra_bytes = tx_add_bytes(pin); pin 1188 drivers/media/cec/cec-pin.c if (msg->len > 2 && tx_remove_byte(pin)) { pin 1190 drivers/media/cec/cec-pin.c pin->tx_msg.len--; pin 1192 drivers/media/cec/cec-pin.c pin->work_tx_status = 0; pin 1193 drivers/media/cec/cec-pin.c pin->tx_bit = 0; pin 1194 drivers/media/cec/cec-pin.c cec_pin_start_timer(pin); pin 1201 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1203 drivers/media/cec/cec-pin.c seq_printf(file, "state: %s\n", states[pin->state].name); pin 1204 drivers/media/cec/cec-pin.c seq_printf(file, "tx_bit: %d\n", pin->tx_bit); pin 1205 drivers/media/cec/cec-pin.c seq_printf(file, "rx_bit: %d\n", pin->rx_bit); pin 1206 drivers/media/cec/cec-pin.c seq_printf(file, "cec pin: %d\n", pin->ops->read(adap)); pin 1208 drivers/media/cec/cec-pin.c pin->work_pin_events_dropped_cnt); pin 1209 drivers/media/cec/cec-pin.c seq_printf(file, "irq failed: %d\n", pin->enable_irq_failed); pin 1210 drivers/media/cec/cec-pin.c if (pin->timer_100ms_overruns) { pin 1212 drivers/media/cec/cec-pin.c pin->timer_100ms_overruns, pin->timer_cnt); pin 1214 drivers/media/cec/cec-pin.c pin->timer_300ms_overruns, pin->timer_cnt); pin 1216 drivers/media/cec/cec-pin.c pin->timer_max_overrun); pin 1218 drivers/media/cec/cec-pin.c pin->timer_sum_overrun / pin->timer_100ms_overruns); pin 1220 drivers/media/cec/cec-pin.c if (pin->rx_start_bit_low_too_short_cnt) pin 1223 drivers/media/cec/cec-pin.c pin->rx_start_bit_low_too_short_cnt, pin 1224 drivers/media/cec/cec-pin.c pin->rx_start_bit_low_too_short_delta, pin 1225 drivers/media/cec/cec-pin.c pin->rx_start_bit_low_too_short_ts); pin 1226 drivers/media/cec/cec-pin.c if (pin->rx_start_bit_too_short_cnt) pin 1229 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_short_cnt, pin 1230 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_short_delta, pin 1231 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_short_ts); pin 1232 drivers/media/cec/cec-pin.c if (pin->rx_start_bit_too_long_cnt) pin 1234 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_long_cnt); pin 1235 drivers/media/cec/cec-pin.c if (pin->rx_data_bit_too_short_cnt) pin 1238 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_short_cnt, pin 1239 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_short_delta, pin 1240 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_short_ts); pin 1241 drivers/media/cec/cec-pin.c if (pin->rx_data_bit_too_long_cnt) pin 1243 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_long_cnt); pin 1244 drivers/media/cec/cec-pin.c seq_printf(file, "rx initiated low drive: %u\n", pin->rx_low_drive_cnt); pin 1245 drivers/media/cec/cec-pin.c seq_printf(file, "tx detected low drive: %u\n", pin->tx_low_drive_cnt); pin 1246 drivers/media/cec/cec-pin.c pin->work_pin_events_dropped_cnt = 0; pin 1247 drivers/media/cec/cec-pin.c pin->timer_cnt = 0; pin 1248 drivers/media/cec/cec-pin.c pin->timer_100ms_overruns = 0; pin 1249 drivers/media/cec/cec-pin.c pin->timer_300ms_overruns = 0; pin 1250 drivers/media/cec/cec-pin.c pin->timer_max_overrun = 0; pin 1251 drivers/media/cec/cec-pin.c pin->timer_sum_overrun = 0; pin 1252 drivers/media/cec/cec-pin.c pin->rx_start_bit_low_too_short_cnt = 0; pin 1253 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_short_cnt = 0; pin 1254 drivers/media/cec/cec-pin.c pin->rx_start_bit_too_long_cnt = 0; pin 1255 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_short_cnt = 0; pin 1256 drivers/media/cec/cec-pin.c pin->rx_data_bit_too_long_cnt = 0; pin 1257 drivers/media/cec/cec-pin.c pin->rx_low_drive_cnt = 0; pin 1258 drivers/media/cec/cec-pin.c pin->tx_low_drive_cnt = 0; pin 1259 drivers/media/cec/cec-pin.c if (pin->ops->status) pin 1260 drivers/media/cec/cec-pin.c pin->ops->status(adap, file); pin 1266 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1268 drivers/media/cec/cec-pin.c pin->monitor_all = enable; pin 1274 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1276 drivers/media/cec/cec-pin.c if (pin->ops->free) pin 1277 drivers/media/cec/cec-pin.c pin->ops->free(adap); pin 1278 drivers/media/cec/cec-pin.c adap->pin = NULL; pin 1279 drivers/media/cec/cec-pin.c kfree(pin); pin 1284 drivers/media/cec/cec-pin.c struct cec_pin *pin = adap->pin; pin 1286 drivers/media/cec/cec-pin.c cec_pin_update(pin, value, false); pin 1289 drivers/media/cec/cec-pin.c atomic_set(&pin->work_irq_change, CEC_PIN_IRQ_DISABLE); pin 1310 drivers/media/cec/cec-pin.c struct cec_pin *pin = kzalloc(sizeof(*pin), GFP_KERNEL); pin 1312 drivers/media/cec/cec-pin.c if (pin == NULL) pin 1314 drivers/media/cec/cec-pin.c pin->ops = pin_ops; pin 1315 drivers/media/cec/cec-pin.c hrtimer_init(&pin->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); pin 1316 drivers/media/cec/cec-pin.c pin->timer.function = cec_pin_timer; pin 1317 drivers/media/cec/cec-pin.c init_waitqueue_head(&pin->kthread_waitq); pin 1318 drivers/media/cec/cec-pin.c pin->tx_custom_low_usecs = CEC_TIM_CUSTOM_DEFAULT; pin 1319 drivers/media/cec/cec-pin.c pin->tx_custom_high_usecs = CEC_TIM_CUSTOM_DEFAULT; pin 1326 drivers/media/cec/cec-pin.c kfree(pin); pin 1330 drivers/media/cec/cec-pin.c adap->pin = pin; pin 1331 drivers/media/cec/cec-pin.c pin->adap = adap; pin 1332 drivers/media/cec/cec-pin.c cec_pin_update(pin, cec_pin_high(pin), true); pin 226 drivers/media/common/siano/sms-cards.c static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable) pin 238 drivers/media/common/siano/sms-cards.c if (pin == 0) pin 241 drivers/media/common/siano/sms-cards.c if (pin < 0) { pin 243 drivers/media/common/siano/sms-cards.c gpio = pin * -1; pin 246 drivers/media/common/siano/sms-cards.c gpio = pin; pin 1821 drivers/media/common/siano/smscoreapi.c int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin, pin 1836 drivers/media/common/siano/smscoreapi.c msg.data[0] = pin; pin 1867 drivers/media/common/siano/smscoreapi.c int smscore_set_gpio(struct smscore_device_t *coredev, u32 pin, int level) pin 1874 drivers/media/common/siano/smscoreapi.c if (pin > MAX_GPIO_PIN_NUMBER) pin 1883 drivers/media/common/siano/smscoreapi.c msg.data[0] = pin; pin 1153 drivers/media/common/siano/smscoreapi.h int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin, pin 1155 drivers/media/common/siano/smscoreapi.h int smscore_set_gpio(struct smscore_device_t *coredev, u32 pin, int level); pin 191 drivers/media/i2c/cx25840/cx25840-core.c switch (p[i].pin) { pin 326 drivers/media/i2c/cx25840/cx25840-core.c u8 pin, bool invert) pin 368 drivers/media/i2c/cx25840/cx25840-core.c switch (pin) { pin 408 drivers/media/i2c/cx25840/cx25840-core.c (unsigned int)p[i].pin, pin 414 drivers/media/i2c/cx25840/cx25840-core.c switch (p[i].pin) { pin 508 drivers/media/i2c/cx25840/cx25840-core.c (unsigned int)p[i].pin); pin 36 drivers/media/pci/bt8xx/bttv-cards.c static void boot_msp34xx(struct bttv *btv, int pin); pin 4114 drivers/media/pci/bt8xx/bttv-cards.c static void boot_msp34xx(struct bttv *btv, int pin) pin 4116 drivers/media/pci/bt8xx/bttv-cards.c int mask = (1 << pin); pin 4128 drivers/media/pci/bt8xx/bttv-cards.c btv->c.nr, pin); pin 1898 drivers/media/pci/cx23885/cx23885-cards.c .pin = CX23885_PIN_IR_RX_GPIO19, pin 1904 drivers/media/pci/cx23885/cx23885-cards.c .pin = CX23885_PIN_IR_TX_GPIO20, pin 1915 drivers/media/pci/cx23885/cx23885-cards.c .pin = CX23885_PIN_IR_RX_GPIO19, pin 330 drivers/media/pci/ivtv/ivtv-gpio.c u16 pin = 0; pin 333 drivers/media/pci/ivtv/ivtv-gpio.c pin = 1 << itv->card->xceive_pin; pin 335 drivers/media/pci/ivtv/ivtv-gpio.c if ((itv->card->gpio_init.direction | pin) == 0) pin 342 drivers/media/pci/ivtv/ivtv-gpio.c write_reg(itv->card->gpio_init.initial_value | pin, IVTV_REG_GPIO_OUT); pin 343 drivers/media/pci/ivtv/ivtv-gpio.c write_reg(itv->card->gpio_init.direction | pin, IVTV_REG_GPIO_DIR); pin 1480 drivers/media/pci/saa7164/saa7164-api.c u8 pin, u8 state) pin 1486 drivers/media/pci/saa7164/saa7164-api.c __func__, unitid, pin, state); pin 1488 drivers/media/pci/saa7164/saa7164-api.c if ((pin > 7) || (state > 2)) pin 1491 drivers/media/pci/saa7164/saa7164-api.c t.pin = pin; pin 1504 drivers/media/pci/saa7164/saa7164-api.c u8 pin) pin 1506 drivers/media/pci/saa7164/saa7164-api.c return saa7164_api_modify_gpio(dev, unitid, pin, 1); pin 1510 drivers/media/pci/saa7164/saa7164-api.c u8 pin) pin 1512 drivers/media/pci/saa7164/saa7164-api.c return saa7164_api_modify_gpio(dev, unitid, pin, 0); pin 136 drivers/media/pci/saa7164/saa7164-types.h u32 pin; pin 527 drivers/media/pci/saa7164/saa7164.h int saa7164_api_set_gpiobit(struct saa7164_dev *dev, u8 unitid, u8 pin); pin 528 drivers/media/pci/saa7164/saa7164.h int saa7164_api_clear_gpiobit(struct saa7164_dev *dev, u8 unitid, u8 pin); pin 893 drivers/media/pci/sta2x11/sta2x11_vip.c static int vip_gpio_reserve(struct device *dev, int pin, int dir, pin 898 drivers/media/pci/sta2x11/sta2x11_vip.c if (!gpio_is_valid(pin)) pin 901 drivers/media/pci/sta2x11/sta2x11_vip.c ret = gpio_request(pin, name); pin 903 drivers/media/pci/sta2x11/sta2x11_vip.c dev_err(dev, "Failed to allocate pin %d (%s)\n", pin, name); pin 907 drivers/media/pci/sta2x11/sta2x11_vip.c ret = gpio_direction_output(pin, dir); pin 910 drivers/media/pci/sta2x11/sta2x11_vip.c pin, name); pin 911 drivers/media/pci/sta2x11/sta2x11_vip.c gpio_free(pin); pin 915 drivers/media/pci/sta2x11/sta2x11_vip.c ret = gpio_export(pin, false); pin 917 drivers/media/pci/sta2x11/sta2x11_vip.c dev_err(dev, "Failed to export pin %d (%s)\n", pin, name); pin 918 drivers/media/pci/sta2x11/sta2x11_vip.c gpio_free(pin); pin 932 drivers/media/pci/sta2x11/sta2x11_vip.c static void vip_gpio_release(struct device *dev, int pin, const char *name) pin 934 drivers/media/pci/sta2x11/sta2x11_vip.c if (gpio_is_valid(pin)) { pin 935 drivers/media/pci/sta2x11/sta2x11_vip.c dev_dbg(dev, "releasing pin %d (%s)\n", pin, name); pin 936 drivers/media/pci/sta2x11/sta2x11_vip.c gpio_unexport(pin); pin 937 drivers/media/pci/sta2x11/sta2x11_vip.c gpio_free(pin); pin 22 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c static int mxl111sf_set_gpo_state(struct mxl111sf_state *state, u8 pin, u8 val) pin 27 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c mxl_debug_adv("(%d, %d)", pin, val); pin 29 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c if ((pin > 0) && (pin < 8)) { pin 33 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp &= ~(1 << (pin - 1)); pin 34 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (val << (pin - 1)); pin 38 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c } else if (pin <= 10) { pin 39 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c if (pin == 0) pin 40 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c pin += 7; pin 44 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp &= ~(1 << (pin - 3)); pin 45 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (val << (pin - 3)); pin 55 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c static int mxl111sf_get_gpi_state(struct mxl111sf_state *state, u8 pin, u8 *val) pin 60 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c mxl_debug("(0x%02x)", pin); pin 64 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c switch (pin) { pin 72 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c *val = (tmp >> (pin + 4)) & 0x01; pin 81 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c *val = (tmp >> pin) & 0x01; pin 89 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c *val = (tmp >> (pin - 3)) & 0x01; pin 99 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c u8 pin; pin 110 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c mxl_debug_adv("(%d, %d)", gpio_cfg->pin, gpio_cfg->dir); pin 112 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c switch (gpio_cfg->pin) { pin 120 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp &= ~(1 << (gpio_cfg->pin + 4)); pin 121 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (gpio_cfg->dir << (gpio_cfg->pin + 4)); pin 133 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp &= ~(1 << gpio_cfg->pin); pin 134 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (gpio_cfg->dir << gpio_cfg->pin); pin 145 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp &= ~(1 << (gpio_cfg->pin - 3)); pin 146 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (gpio_cfg->dir << (gpio_cfg->pin - 3)); pin 157 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c gpio_cfg->pin, gpio_cfg->val) : pin 159 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c gpio_cfg->pin, &gpio_cfg->val); pin 169 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c .pin = gpio, pin 1452 drivers/media/usb/dvb-usb/cxusb-analog.c { .pin = CX25840_PIN_DVALID_PRGM0, .function = CX25840_PAD_DEFAULT, pin 1454 drivers/media/usb/dvb-usb/cxusb-analog.c { .pin = CX25840_PIN_PLL_CLK_PRGM7, .function = CX25840_PAD_AUX_PLL }, pin 1455 drivers/media/usb/dvb-usb/cxusb-analog.c { .pin = CX25840_PIN_HRESET_PRGM2, .function = CX25840_PAD_ACTIVE, pin 150 drivers/media/usb/dvb-usb/cxusb.c static void cxusb_bluebird_gpio_pulse(struct dvb_usb_device *d, u8 pin, int low) pin 152 drivers/media/usb/dvb-usb/cxusb.c cxusb_bluebird_gpio_rw(d, pin, low ? 0 : pin); pin 154 drivers/media/usb/dvb-usb/cxusb.c cxusb_bluebird_gpio_rw(d, pin, low ? pin : 0); pin 830 drivers/media/usb/uvc/uvc_v4l2.c int pin = 0; pin 840 drivers/media/usb/uvc/uvc_v4l2.c pin = iterm->id; pin 842 drivers/media/usb/uvc/uvc_v4l2.c pin = selector->baSourceID[index]; pin 846 drivers/media/usb/uvc/uvc_v4l2.c if (iterm->id == pin) pin 851 drivers/media/usb/uvc/uvc_v4l2.c if (iterm == NULL || iterm->id != pin) pin 566 drivers/mfd/asic3.c u8 alt, pin, dir, init, bank_num, bit_num; pin 569 drivers/mfd/asic3.c pin = ASIC3_CONFIG_GPIO_PIN(config); pin 574 drivers/mfd/asic3.c bank_num = ASIC3_GPIO_TO_BANK(pin); pin 575 drivers/mfd/asic3.c bit_num = ASIC3_GPIO_TO_BIT(pin); pin 293 drivers/mfd/stmpe.c int pin = __ffs(pins); pin 294 drivers/mfd/stmpe.c int regoffset = numregs - (pin / afperreg) - 1; pin 295 drivers/mfd/stmpe.c int pos = (pin % afperreg) * (8 / afperreg); pin 300 drivers/mfd/stmpe.c pins &= ~(1 << pin); pin 44 drivers/misc/mic/scif/scif_debugfs.c scif_pinned_pages_t pin = window->pinned_pages; pin 59 drivers/misc/mic/scif/scif_debugfs.c if (window->type == SCIF_WINDOW_SELF && pin) pin 62 drivers/misc/mic/scif/scif_debugfs.c j, pin->pages[j], pin 63 drivers/misc/mic/scif/scif_debugfs.c page_address(pin->pages[j])); pin 83 drivers/misc/mic/scif/scif_rma.c struct scif_pinned_pages *pin; pin 86 drivers/misc/mic/scif/scif_rma.c pin = scif_zalloc(sizeof(*pin)); pin 87 drivers/misc/mic/scif/scif_rma.c if (!pin) pin 90 drivers/misc/mic/scif/scif_rma.c pin->pages = scif_zalloc(nr_pages * sizeof(*pin->pages)); pin 91 drivers/misc/mic/scif/scif_rma.c if (!pin->pages) pin 94 drivers/misc/mic/scif/scif_rma.c pin->prot = prot; pin 95 drivers/misc/mic/scif/scif_rma.c pin->magic = SCIFEP_MAGIC; pin 96 drivers/misc/mic/scif/scif_rma.c return pin; pin 99 drivers/misc/mic/scif/scif_rma.c scif_free(pin, sizeof(*pin)); pin 110 drivers/misc/mic/scif/scif_rma.c static int scif_destroy_pinned_pages(struct scif_pinned_pages *pin) pin 113 drivers/misc/mic/scif/scif_rma.c int writeable = pin->prot & SCIF_PROT_WRITE; pin 114 drivers/misc/mic/scif/scif_rma.c int kernel = SCIF_MAP_KERNEL & pin->map_flags; pin 116 drivers/misc/mic/scif/scif_rma.c for (j = 0; j < pin->nr_pages; j++) { pin 117 drivers/misc/mic/scif/scif_rma.c if (pin->pages[j] && !kernel) { pin 119 drivers/misc/mic/scif/scif_rma.c SetPageDirty(pin->pages[j]); pin 120 drivers/misc/mic/scif/scif_rma.c put_page(pin->pages[j]); pin 124 drivers/misc/mic/scif/scif_rma.c scif_free(pin->pages, pin 125 drivers/misc/mic/scif/scif_rma.c pin->nr_pages * sizeof(*pin->pages)); pin 126 drivers/misc/mic/scif/scif_rma.c scif_free(pin, sizeof(*pin)); pin 529 drivers/misc/mic/scif/scif_rma.c scif_pinned_pages_t pin = window->pinned_pages; pin 540 drivers/misc/mic/scif/scif_rma.c sg_set_page(sg, pin->pages[i], PAGE_SIZE, 0x0); pin 577 drivers/misc/mic/scif/scif_rma.c scif_pinned_pages_t pin; pin 582 drivers/misc/mic/scif/scif_rma.c pin = window->pinned_pages; pin 588 drivers/misc/mic/scif/scif_rma.c phys_prev = page_to_phys(pin->pages[i]); pin 593 drivers/misc/mic/scif/scif_rma.c phys_curr = page_to_phys(pin->pages[k]); pin 608 drivers/misc/mic/scif/scif_rma.c pin->pages[i])), pin 614 drivers/misc/mic/scif/scif_rma.c window->dma_addr[j] = page_to_phys(pin->pages[i]); pin 2338 drivers/mmc/host/atmel-mci.c int pin = slot->detect_pin; pin 2340 drivers/mmc/host/atmel-mci.c free_irq(gpio_to_irq(pin), slot); pin 535 drivers/net/dsa/mv88e6xxx/chip.h int (*get_data)(struct mv88e6xxx_chip *chip, unsigned int pin); pin 536 drivers/net/dsa/mv88e6xxx/chip.h int (*set_data)(struct mv88e6xxx_chip *chip, unsigned int pin, pin 540 drivers/net/dsa/mv88e6xxx/chip.h int (*get_dir)(struct mv88e6xxx_chip *chip, unsigned int pin); pin 541 drivers/net/dsa/mv88e6xxx/chip.h int (*set_dir)(struct mv88e6xxx_chip *chip, unsigned int pin, pin 545 drivers/net/dsa/mv88e6xxx/chip.h int (*get_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin, pin 547 drivers/net/dsa/mv88e6xxx/chip.h int (*set_pctl)(struct mv88e6xxx_chip *chip, unsigned int pin, pin 573 drivers/net/dsa/mv88e6xxx/chip.h int (*ptp_verify)(struct ptp_clock_info *ptp, unsigned int pin, pin 105 drivers/net/dsa/mv88e6xxx/global2_scratch.c unsigned int pin) pin 112 drivers/net/dsa/mv88e6xxx/global2_scratch.c pin, &val); pin 126 drivers/net/dsa/mv88e6xxx/global2_scratch.c unsigned int pin, int value) pin 128 drivers/net/dsa/mv88e6xxx/global2_scratch.c u8 mask = (1 << (pin & 0x7)); pin 129 drivers/net/dsa/mv88e6xxx/global2_scratch.c int offset = (pin / 8); pin 150 drivers/net/dsa/mv88e6xxx/global2_scratch.c unsigned int pin) pin 157 drivers/net/dsa/mv88e6xxx/global2_scratch.c pin, &val); pin 170 drivers/net/dsa/mv88e6xxx/global2_scratch.c unsigned int pin, bool input) pin 177 drivers/net/dsa/mv88e6xxx/global2_scratch.c pin, value); pin 189 drivers/net/dsa/mv88e6xxx/global2_scratch.c unsigned int pin, int *func) pin 191 drivers/net/dsa/mv88e6xxx/global2_scratch.c int reg = MV88E6352_G2_SCRATCH_GPIO_PCTL0 + (pin / 2); pin 192 drivers/net/dsa/mv88e6xxx/global2_scratch.c int offset = (pin & 0x1) ? 4 : 0; pin 213 drivers/net/dsa/mv88e6xxx/global2_scratch.c unsigned int pin, int func) pin 215 drivers/net/dsa/mv88e6xxx/global2_scratch.c int reg = MV88E6352_G2_SCRATCH_GPIO_PCTL0 + (pin / 2); pin 216 drivers/net/dsa/mv88e6xxx/global2_scratch.c int offset = (pin & 0x1) ? 4 : 0; pin 70 drivers/net/dsa/mv88e6xxx/ptp.c static int mv88e6352_set_gpio_func(struct mv88e6xxx_chip *chip, int pin, pin 78 drivers/net/dsa/mv88e6xxx/ptp.c err = chip->info->ops->gpio_ops->set_dir(chip, pin, input); pin 82 drivers/net/dsa/mv88e6xxx/ptp.c return chip->info->ops->gpio_ops->set_pctl(chip, pin, func); pin 273 drivers/net/dsa/mv88e6xxx/ptp.c int pin; pin 289 drivers/net/dsa/mv88e6xxx/ptp.c pin = ptp_find_pin(chip->ptp_clock, PTP_PF_EXTTS, rq->extts.index); pin 291 drivers/net/dsa/mv88e6xxx/ptp.c if (pin < 0) pin 299 drivers/net/dsa/mv88e6xxx/ptp.c err = mv88e6352_set_gpio_func(chip, pin, func, true); pin 310 drivers/net/dsa/mv88e6xxx/ptp.c err = mv88e6352_set_gpio_func(chip, pin, func, true); pin 334 drivers/net/dsa/mv88e6xxx/ptp.c static int mv88e6352_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, pin 392 drivers/net/ethernet/intel/igb/igb_ptp.c static void igb_pin_direction(int pin, int input, u32 *ctrl, u32 *ctrl_ext) pin 394 drivers/net/ethernet/intel/igb/igb_ptp.c u32 *ptr = pin < 2 ? ctrl : ctrl_ext; pin 403 drivers/net/ethernet/intel/igb/igb_ptp.c *ptr &= ~mask[pin]; pin 405 drivers/net/ethernet/intel/igb/igb_ptp.c *ptr |= mask[pin]; pin 408 drivers/net/ethernet/intel/igb/igb_ptp.c static void igb_pin_extts(struct igb_adapter *igb, int chan, int pin) pin 426 drivers/net/ethernet/intel/igb/igb_ptp.c igb_pin_direction(pin, 1, &ctrl, &ctrl_ext); pin 429 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp &= ~ts_sdp_en[pin]; pin 433 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp |= aux1_sel_sdp[pin] | AUX1_TS_SDP_EN; pin 436 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp |= aux0_sel_sdp[pin] | AUX0_TS_SDP_EN; pin 444 drivers/net/ethernet/intel/igb/igb_ptp.c static void igb_pin_perout(struct igb_adapter *igb, int chan, int pin, int freq) pin 482 drivers/net/ethernet/intel/igb/igb_ptp.c igb_pin_direction(pin, 0, &ctrl, &ctrl_ext); pin 485 drivers/net/ethernet/intel/igb/igb_ptp.c if ((tssdp & AUX0_SEL_SDP3) == aux0_sel_sdp[pin]) pin 488 drivers/net/ethernet/intel/igb/igb_ptp.c if ((tssdp & AUX1_SEL_SDP3) == aux1_sel_sdp[pin]) pin 491 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp &= ~ts_sdp_sel_clr[pin]; pin 494 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp |= ts_sdp_sel_fc1[pin]; pin 496 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp |= ts_sdp_sel_fc0[pin]; pin 499 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp |= ts_sdp_sel_tt1[pin]; pin 501 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp |= ts_sdp_sel_tt0[pin]; pin 503 drivers/net/ethernet/intel/igb/igb_ptp.c tssdp |= ts_sdp_en[pin]; pin 519 drivers/net/ethernet/intel/igb/igb_ptp.c int use_freq = 0, pin = -1; pin 538 drivers/net/ethernet/intel/igb/igb_ptp.c pin = ptp_find_pin(igb->ptp_clock, PTP_PF_EXTTS, pin 540 drivers/net/ethernet/intel/igb/igb_ptp.c if (pin < 0) pin 554 drivers/net/ethernet/intel/igb/igb_ptp.c igb_pin_extts(igb, rq->extts.index, pin); pin 572 drivers/net/ethernet/intel/igb/igb_ptp.c pin = ptp_find_pin(igb->ptp_clock, PTP_PF_PEROUT, pin 574 drivers/net/ethernet/intel/igb/igb_ptp.c if (pin < 0) pin 623 drivers/net/ethernet/intel/igb/igb_ptp.c igb_pin_perout(igb, i, pin, use_freq); pin 662 drivers/net/ethernet/intel/igb/igb_ptp.c static int igb_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, pin 122 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c MLX5_SET(mtpps_reg, in, pin, i); pin 233 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c int pin = -1; pin 256 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c pin = ptp_find_pin(clock->ptp, PTP_PF_EXTTS, rq->extts.index); pin 257 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c if (pin < 0) pin 265 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c pin = rq->extts.index; pin 269 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c MLX5_SET(mtpps_reg, in, pin, pin); pin 279 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c return mlx5_set_mtppse(mdev, pin, 0, pin 299 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c int pin = -1; pin 314 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c pin = ptp_find_pin(clock->ptp, PTP_PF_PEROUT, pin 316 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c if (pin < 0) pin 344 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c pin = rq->perout.index; pin 348 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c MLX5_SET(mtpps_reg, in, pin, pin); pin 359 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c return mlx5_set_mtppse(mdev, pin, 0, pin 391 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c static int mlx5_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, pin 473 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c int pin = eqe->data.pps.pin; pin 477 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c switch (clock->ptp_info.pin_config[pin].func) { pin 479 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c ptp_event.index = pin; pin 503 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c clock->pps_info.start[pin] = cycles_now + cycles_delta; pin 509 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c clock->ptp_info.pin_config[pin].func); pin 198 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h int mlx5_query_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 *arm, u8 *mode); pin 199 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h int mlx5_set_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 arm, u8 mode); pin 855 drivers/net/ethernet/mellanox/mlx5/core/port.c int mlx5_query_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 *arm, u8 *mode) pin 861 drivers/net/ethernet/mellanox/mlx5/core/port.c MLX5_SET(mtppse_reg, in, pin, pin); pin 874 drivers/net/ethernet/mellanox/mlx5/core/port.c int mlx5_set_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 arm, u8 mode) pin 879 drivers/net/ethernet/mellanox/mlx5/core/port.c MLX5_SET(mtppse_reg, in, pin, pin); pin 8872 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, mtpps, pin, 0x20, 0, 8); pin 44 drivers/net/ethernet/sfc/falcon/phy.h void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir); pin 45 drivers/net/ethernet/sfc/falcon/phy.h void falcon_txc_set_gpio_val(struct ef4_nic *efx, int pin, int val); pin 171 drivers/net/ethernet/sfc/falcon/txc43128_phy.c void falcon_txc_set_gpio_val(struct ef4_nic *efx, int pin, int on) pin 173 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_set_flag(efx, MDIO_MMD_PHYXS, TXC_GPIO_OUTPUT, 1 << pin, on); pin 177 drivers/net/ethernet/sfc/falcon/txc43128_phy.c void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir) pin 179 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_set_flag(efx, MDIO_MMD_PHYXS, TXC_GPIO_DIR, 1 << pin, dir); pin 521 drivers/net/phy/dp83640.c static int ptp_dp83640_verify(struct ptp_clock_info *ptp, unsigned int pin, pin 527 drivers/net/phy/dp83640.c if (clock->caps.pin_config[pin].func == PTP_PF_PHYSYNC && pin 51 drivers/net/wireless/ath/ath5k/led.c #define ATH_LED(pin, polarity) .driver_data = (((pin) << 8) | (polarity)) pin 218 drivers/net/wireless/marvell/libertas/types.h u8 pin; pin 1665 drivers/net/wireless/st/cw1200/wsm.h u8 pin; pin 136 drivers/pci/controller/pci-rcar-gen2.c static int rcar_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 142 drivers/pci/controller/pci-rcar-gen2.c irq = of_irq_parse_and_map_pci(dev, slot, pin); pin 832 drivers/pci/controller/pci-tegra.c static int tegra_pcie_map_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pin 839 drivers/pci/controller/pci-tegra.c irq = of_irq_parse_and_map_pci(pdev, slot, pin); pin 26 drivers/pci/controller/pcie-iproc-bcma.c static int iproc_pcie_bcma_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 369 drivers/pci/of.c u8 pin; pin 388 drivers/pci/of.c rc = pci_read_config_byte(pdev, PCI_INTERRUPT_PIN, &pin); pin 392 drivers/pci/of.c if (pin == 0) pin 433 drivers/pci/of.c pin = pci_swizzle_interrupt_pin(pdev, pin); pin 439 drivers/pci/of.c out_irq->args[0] = pin; pin 469 drivers/pci/of.c int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) pin 1595 drivers/pci/pci.c u8 pin; pin 1613 drivers/pci/pci.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 1614 drivers/pci/pci.c if (pin) { pin 3607 drivers/pci/pci.c u8 pci_swizzle_interrupt_pin(const struct pci_dev *dev, u8 pin) pin 3616 drivers/pci/pci.c return (((pin - 1) + slot) % 4) + 1; pin 3621 drivers/pci/pci.c u8 pin; pin 3623 drivers/pci/pci.c pin = dev->pin; pin 3624 drivers/pci/pci.c if (!pin) pin 3628 drivers/pci/pci.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 3632 drivers/pci/pci.c return pin; pin 3645 drivers/pci/pci.c u8 pin = *pinp; pin 3648 drivers/pci/pci.c pin = pci_swizzle_interrupt_pin(dev, pin); pin 3651 drivers/pci/pci.c *pinp = pin; pin 1407 drivers/pci/probe.c dev->pin = 0; pin 1413 drivers/pci/probe.c dev->pin = irq; pin 21 drivers/pci/setup-irq.c u8 pin; pin 37 drivers/pci/setup-irq.c pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pin 39 drivers/pci/setup-irq.c if (pin > 4) pin 40 drivers/pci/setup-irq.c pin = 1; pin 42 drivers/pci/setup-irq.c if (pin) { pin 45 drivers/pci/setup-irq.c slot = (*(hbrg->swizzle_irq))(dev, &pin); pin 51 drivers/pci/setup-irq.c irq = (*(hbrg->map_irq))(dev, slot, pin); pin 250 drivers/pinctrl/actions/pinctrl-owl.c unsigned int pin, pin 259 drivers/pinctrl/actions/pinctrl-owl.c info = &pctrl->soc->padinfo[pin]; pin 280 drivers/pinctrl/actions/pinctrl-owl.c unsigned int pin, pin 291 drivers/pinctrl/actions/pinctrl-owl.c info = &pctrl->soc->padinfo[pin]; pin 499 drivers/pinctrl/actions/pinctrl-owl.c owl_gpio_get_port(struct owl_pinctrl *pctrl, unsigned int *pin) pin 506 drivers/pinctrl/actions/pinctrl-owl.c if (*pin >= start && *pin < start + port->pins) { pin 507 drivers/pinctrl/actions/pinctrl-owl.c *pin -= start; pin 517 drivers/pinctrl/actions/pinctrl-owl.c static void owl_gpio_update_reg(void __iomem *base, unsigned int pin, int flag) pin 524 drivers/pinctrl/actions/pinctrl-owl.c val |= BIT(pin); pin 526 drivers/pinctrl/actions/pinctrl-owl.c val &= ~BIT(pin); pin 833 drivers/pinctrl/actions/pinctrl-owl.c unsigned int pin, irq, offset = 0, i; pin 848 drivers/pinctrl/actions/pinctrl-owl.c for_each_set_bit(pin, &pending_irq, port->pins) { pin 849 drivers/pinctrl/actions/pinctrl-owl.c irq = irq_find_mapping(domain, offset + pin); pin 853 drivers/pinctrl/actions/pinctrl-owl.c owl_gpio_update_reg(base + port->intc_pd, pin, true); pin 226 drivers/pinctrl/aspeed/pinctrl-aspeed.c int pin = pgroup->pins[i]; pin 227 drivers/pinctrl/aspeed/pinctrl-aspeed.c const struct aspeed_pin_desc *pdesc = pdata->pins[pin].drv_data; pin 232 drivers/pinctrl/aspeed/pinctrl-aspeed.c pr_debug("Muxing pin %d for %s\n", pin, pfunc->name); pin 261 drivers/pinctrl/aspeed/pinctrl-aspeed.c pfunc->name, pdesc->name, pin, signals, pin 594 drivers/pinctrl/aspeed/pinmux-aspeed.h #define SIG_EXPR_LIST_ALIAS(pin, sig, group) \ pin 596 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_SYM(pin, sig)[ARRAY_SIZE(SIG_EXPR_LIST_SYM(sig, group))] \ pin 612 drivers/pinctrl/aspeed/pinmux-aspeed.h #define SIG_EXPR_LIST_DECL_SESG(pin, sig, func, ...) \ pin 616 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_ALIAS(pin, sig, func) pin 628 drivers/pinctrl/aspeed/pinmux-aspeed.h #define SIG_EXPR_LIST_DECL_SEMG(pin, sig, group, func, ...) \ pin 632 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_ALIAS(pin, sig, group) pin 644 drivers/pinctrl/aspeed/pinmux-aspeed.h #define SIG_EXPR_LIST_DECL_DESG(pin, sig, f0, f1) \ pin 648 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_ALIAS(pin, sig, f0) pin 652 drivers/pinctrl/aspeed/pinmux-aspeed.h #define PIN_EXPRS_SYM(pin) pin_exprs_ ## pin pin 653 drivers/pinctrl/aspeed/pinmux-aspeed.h #define PIN_EXPRS_PTR(pin) (&PIN_EXPRS_SYM(pin)[0]) pin 654 drivers/pinctrl/aspeed/pinmux-aspeed.h #define PIN_SYM(pin) pin_ ## pin pin 656 drivers/pinctrl/aspeed/pinmux-aspeed.h #define PIN_DECL_(pin, ...) \ pin 657 drivers/pinctrl/aspeed/pinmux-aspeed.h static const struct aspeed_sig_expr **PIN_EXPRS_SYM(pin)[] = \ pin 659 drivers/pinctrl/aspeed/pinmux-aspeed.h static const struct aspeed_pin_desc PIN_SYM(pin) = \ pin 660 drivers/pinctrl/aspeed/pinmux-aspeed.h { #pin, PIN_EXPRS_PTR(pin) } pin 675 drivers/pinctrl/aspeed/pinmux-aspeed.h #define PIN_DECL_1(pin, other, sig) \ pin 676 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_DECL_SESG(pin, other, other); \ pin 677 drivers/pinctrl/aspeed/pinmux-aspeed.h PIN_DECL_(pin, SIG_EXPR_LIST_PTR(pin, sig), \ pin 678 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, other)) pin 692 drivers/pinctrl/aspeed/pinmux-aspeed.h #define SSSF_PIN_DECL(pin, other, sig, ...) \ pin 693 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_DECL_SESG(pin, sig, sig, __VA_ARGS__); \ pin 694 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_DECL_SESG(pin, other, other); \ pin 695 drivers/pinctrl/aspeed/pinmux-aspeed.h PIN_DECL_(pin, SIG_EXPR_LIST_PTR(pin, sig), \ pin 696 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, other)); \ pin 697 drivers/pinctrl/aspeed/pinmux-aspeed.h FUNC_GROUP_DECL(sig, pin) pin 717 drivers/pinctrl/aspeed/pinmux-aspeed.h #define PIN_DECL_2(pin, other, high, low) \ pin 718 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_DECL_SESG(pin, other, other); \ pin 719 drivers/pinctrl/aspeed/pinmux-aspeed.h PIN_DECL_(pin, \ pin 720 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, high), \ pin 721 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, low), \ pin 722 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, other)) pin 724 drivers/pinctrl/aspeed/pinmux-aspeed.h #define PIN_DECL_3(pin, other, high, medium, low) \ pin 725 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_DECL_SESG(pin, other, other); \ pin 726 drivers/pinctrl/aspeed/pinmux-aspeed.h PIN_DECL_(pin, \ pin 727 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, high), \ pin 728 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, medium), \ pin 729 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, low), \ pin 730 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_PTR(pin, other)) pin 748 drivers/pinctrl/aspeed/pinmux-aspeed.h #define GPIO_PIN_DECL(pin, gpio) \ pin 749 drivers/pinctrl/aspeed/pinmux-aspeed.h SIG_EXPR_LIST_DECL_SESG(pin, gpio, gpio); \ pin 750 drivers/pinctrl/aspeed/pinmux-aspeed.h PIN_DECL_(pin, SIG_EXPR_LIST_PTR(pin, gpio)) pin 951 drivers/pinctrl/bcm/pinctrl-bcm281xx.c unsigned pin) pin 955 drivers/pinctrl/bcm/pinctrl-bcm281xx.c if (pin >= pdata->npins) pin 958 drivers/pinctrl/bcm/pinctrl-bcm281xx.c return *(enum bcm281xx_pin_type *)(pdata->pins[pin].drv_data); pin 1092 drivers/pinctrl/bcm/pinctrl-bcm281xx.c unsigned pin, pin 1101 drivers/pinctrl/bcm/pinctrl-bcm281xx.c unsigned pin, pin 1178 drivers/pinctrl/bcm/pinctrl-bcm281xx.c arg, pdata->pins[pin].name, pin); pin 1189 drivers/pinctrl/bcm/pinctrl-bcm281xx.c param, pdata->pins[pin].name, pin); pin 1217 drivers/pinctrl/bcm/pinctrl-bcm281xx.c unsigned pin, pin 1243 drivers/pinctrl/bcm/pinctrl-bcm281xx.c arg, pdata->pins[pin].name, pin); pin 1276 drivers/pinctrl/bcm/pinctrl-bcm281xx.c param, pdata->pins[pin].name, pin); pin 1287 drivers/pinctrl/bcm/pinctrl-bcm281xx.c unsigned pin, pin 1321 drivers/pinctrl/bcm/pinctrl-bcm281xx.c param, pdata->pins[pin].name, pin); pin 1331 drivers/pinctrl/bcm/pinctrl-bcm281xx.c unsigned pin, pin 1337 drivers/pinctrl/bcm/pinctrl-bcm281xx.c u32 offset = 4 * pin; pin 1343 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pin_type = pin_type_get(pctldev, pin); pin 1348 drivers/pinctrl/bcm/pinctrl-bcm281xx.c rc = bcm281xx_std_pin_update(pctldev, pin, configs, pin 1353 drivers/pinctrl/bcm/pinctrl-bcm281xx.c rc = bcm281xx_i2c_pin_update(pctldev, pin, configs, pin 1358 drivers/pinctrl/bcm/pinctrl-bcm281xx.c rc = bcm281xx_hdmi_pin_update(pctldev, pin, configs, pin 1364 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->pins[pin].name, pin); pin 1374 drivers/pinctrl/bcm/pinctrl-bcm281xx.c __func__, pdata->pins[pin].name, pin, cfg_val, cfg_mask); pin 1380 drivers/pinctrl/bcm/pinctrl-bcm281xx.c pdata->pins[pin].name, pin); pin 262 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc, unsigned pin) pin 264 drivers/pinctrl/bcm/pinctrl-bcm2835.c u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); pin 265 drivers/pinctrl/bcm/pinctrl-bcm2835.c enum bcm2835_fsel status = (val >> FSEL_SHIFT(pin)) & BCM2835_FSEL_MASK; pin 267 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "get %08x (%u => %s)\n", val, pin, pin 274 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct bcm2835_pinctrl *pc, unsigned pin, pin 277 drivers/pinctrl/bcm/pinctrl-bcm2835.c u32 val = bcm2835_gpio_rd(pc, FSEL_REG(pin)); pin 278 drivers/pinctrl/bcm/pinctrl-bcm2835.c enum bcm2835_fsel cur = (val >> FSEL_SHIFT(pin)) & BCM2835_FSEL_MASK; pin 280 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "read %08x (%u => %s)\n", val, pin, pin 288 drivers/pinctrl/bcm/pinctrl-bcm2835.c val &= ~(BCM2835_FSEL_MASK << FSEL_SHIFT(pin)); pin 289 drivers/pinctrl/bcm/pinctrl-bcm2835.c val |= BCM2835_FSEL_GPIO_IN << FSEL_SHIFT(pin); pin 291 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "trans %08x (%u <= %s)\n", val, pin, pin 293 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, FSEL_REG(pin), val); pin 296 drivers/pinctrl/bcm/pinctrl-bcm2835.c val &= ~(BCM2835_FSEL_MASK << FSEL_SHIFT(pin)); pin 297 drivers/pinctrl/bcm/pinctrl-bcm2835.c val |= fsel << FSEL_SHIFT(pin); pin 299 drivers/pinctrl/bcm/pinctrl-bcm2835.c dev_dbg(pc->dev, "write %08x (%u <= %s)\n", val, pin, pin 301 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, FSEL_REG(pin), val); pin 672 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct device_node *np, u32 pin, u32 fnum, pin 683 drivers/pinctrl/bcm/pinctrl-bcm2835.c map->data.mux.group = bcm2835_gpio_groups[pin]; pin 691 drivers/pinctrl/bcm/pinctrl-bcm2835.c struct device_node *np, u32 pin, u32 pull, pin 708 drivers/pinctrl/bcm/pinctrl-bcm2835.c map->data.configs.group_or_pin = bcm2835_gpio_pins[pin].name; pin 725 drivers/pinctrl/bcm/pinctrl-bcm2835.c u32 pin, func, pull; pin 778 drivers/pinctrl/bcm/pinctrl-bcm2835.c err = of_property_read_u32_index(np, "brcm,pins", i, &pin); pin 781 drivers/pinctrl/bcm/pinctrl-bcm2835.c if (pin >= ARRAY_SIZE(bcm2835_gpio_pins)) { pin 783 drivers/pinctrl/bcm/pinctrl-bcm2835.c np, pin); pin 793 drivers/pinctrl/bcm/pinctrl-bcm2835.c err = bcm2835_pctl_dt_node_to_map_func(pc, np, pin, pin 803 drivers/pinctrl/bcm/pinctrl-bcm2835.c err = bcm2835_pctl_dt_node_to_map_pull(pc, np, pin, pin 908 drivers/pinctrl/bcm/pinctrl-bcm2835.c unsigned pin, unsigned long *config) pin 915 drivers/pinctrl/bcm/pinctrl-bcm2835.c unsigned int pin, unsigned int arg) pin 919 drivers/pinctrl/bcm/pinctrl-bcm2835.c off = GPIO_REG_OFFSET(pin); pin 920 drivers/pinctrl/bcm/pinctrl-bcm2835.c bit = GPIO_REG_SHIFT(pin); pin 936 drivers/pinctrl/bcm/pinctrl-bcm2835.c unsigned int pin, unsigned long *configs, pin 950 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, arg); pin 955 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, BCM2835_PUD_OFF); pin 959 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, BCM2835_PUD_DOWN); pin 963 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_pull_config_set(pc, pin, BCM2835_PUD_UP); pin 968 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_set_bit(pc, arg ? GPSET0 : GPCLR0, pin); pin 987 drivers/pinctrl/bcm/pinctrl-bcm2835.c unsigned int pin, unsigned int arg) pin 993 drivers/pinctrl/bcm/pinctrl-bcm2835.c off = PUD_2711_REG_OFFSET(pin); pin 994 drivers/pinctrl/bcm/pinctrl-bcm2835.c shifter = PUD_2711_REG_SHIFT(pin); pin 1003 drivers/pinctrl/bcm/pinctrl-bcm2835.c unsigned int pin, unsigned long *configs, pin 1024 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, arg); pin 1029 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, BCM2711_PULL_NONE); pin 1032 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, BCM2711_PULL_DOWN); pin 1035 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2711_pull_config_set(pc, pin, BCM2711_PULL_UP); pin 1040 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_set_bit(pc, arg ? GPSET0 : GPCLR0, pin); pin 145 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c unsigned pin; pin 152 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c .pin = p, \ pin 849 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c unsigned pin) pin 852 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c const struct cygnus_gpio_mux *mux = pctrl_dev->desc->pins[pin].drv_data; pin 870 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c pin, mux->offset, mux->shift); pin 877 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c unsigned pin) pin 880 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c struct cygnus_gpio_mux *mux = pctrl_dev->desc->pins[pin].drv_data; pin 897 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c pin, mux->offset, mux->shift); pin 981 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c pins[i].number = cygnus_pins[i].pin; pin 58 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c #define GPIO_BANK(pin) ((pin) / NGPIOS_PER_BANK) pin 60 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c #define IPROC_GPIO_REG(pin, reg) (GPIO_BANK(pin) * GPIO_BANK_SIZE + (reg)) pin 61 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c #define IPROC_GPIO_SHIFT(pin) ((pin) % NGPIOS_PER_BANK) pin 125 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c static inline unsigned iproc_pin_to_gpio(unsigned pin) pin 127 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c return pin; pin 178 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c unsigned pin = NGPIOS_PER_BANK * i + bit; pin 179 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c int child_irq = irq_find_mapping(gc->irq.domain, pin); pin 613 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c static int iproc_pin_config_get(struct pinctrl_dev *pctldev, unsigned pin, pin 618 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c unsigned gpio = iproc_pin_to_gpio(pin); pin 663 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c static int iproc_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, pin 669 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c unsigned i, gpio = iproc_pin_to_gpio(pin); pin 273 drivers/pinctrl/bcm/pinctrl-ns.c struct pinctrl_pin_desc *pin; pin 316 drivers/pinctrl/bcm/pinctrl-ns.c for (i = 0, pin = (struct pinctrl_pin_desc *)&pctldesc->pins[0]; pin 322 drivers/pinctrl/bcm/pinctrl-ns.c memcpy(pin++, src, sizeof(*src)); pin 165 drivers/pinctrl/bcm/pinctrl-ns2-mux.c unsigned int pin; pin 172 drivers/pinctrl/bcm/pinctrl-ns2-mux.c .pin = p, \ pin 659 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_set_enable(struct pinctrl_dev *pctrldev, unsigned int pin, pin 663 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 679 drivers/pinctrl/bcm/pinctrl-ns2-mux.c dev_dbg(pctrldev->dev, "pin:%u set enable:%d\n", pin, enable); pin 683 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_get_enable(struct pinctrl_dev *pctrldev, unsigned int pin) pin 686 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 701 drivers/pinctrl/bcm/pinctrl-ns2-mux.c dev_dbg(pctrldev->dev, "pin:%u get disable:%d\n", pin, enable); pin 705 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_set_slew(struct pinctrl_dev *pctrldev, unsigned int pin, pin 709 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 725 drivers/pinctrl/bcm/pinctrl-ns2-mux.c dev_dbg(pctrldev->dev, "pin:%u set slew:%d\n", pin, slew); pin 729 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_get_slew(struct pinctrl_dev *pctrldev, unsigned int pin, pin 733 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 742 drivers/pinctrl/bcm/pinctrl-ns2-mux.c dev_dbg(pctrldev->dev, "pin:%u get slew:%d\n", pin, *slew); pin 746 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_set_pull(struct pinctrl_dev *pctrldev, unsigned int pin, pin 750 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 768 drivers/pinctrl/bcm/pinctrl-ns2-mux.c pin, pull_up, pull_down); pin 773 drivers/pinctrl/bcm/pinctrl-ns2-mux.c unsigned int pin, bool *pull_up, pin 777 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 795 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_set_strength(struct pinctrl_dev *pctrldev, unsigned int pin, pin 799 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 817 drivers/pinctrl/bcm/pinctrl-ns2-mux.c pin, strength); pin 821 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_get_strength(struct pinctrl_dev *pctrldev, unsigned int pin, pin 825 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 837 drivers/pinctrl/bcm/pinctrl-ns2-mux.c pin, *strength); pin 841 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_config_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 844 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctldev->desc->pins[pin].drv_data; pin 855 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ns2_pin_get_pull(pctldev, pin, &pull_up, &pull_down); pin 862 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ns2_pin_get_pull(pctldev, pin, &pull_up, &pull_down); pin 869 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ns2_pin_get_pull(pctldev, pin, &pull_up, &pull_down); pin 876 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_get_strength(pctldev, pin, &arg); pin 883 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_get_slew(pctldev, pin, &arg); pin 890 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_get_enable(pctldev, pin); pin 901 drivers/pinctrl/bcm/pinctrl-ns2-mux.c static int ns2_pin_config_set(struct pinctrl_dev *pctrldev, unsigned int pin, pin 904 drivers/pinctrl/bcm/pinctrl-ns2-mux.c struct ns2_pin *pin_data = pctrldev->desc->pins[pin].drv_data; pin 919 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_set_pull(pctrldev, pin, false, false); pin 925 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_set_pull(pctrldev, pin, true, false); pin 931 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_set_pull(pctrldev, pin, false, true); pin 937 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_set_strength(pctrldev, pin, arg); pin 943 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_set_slew(pctrldev, pin, arg); pin 949 drivers/pinctrl/bcm/pinctrl-ns2-mux.c ret = ns2_pin_set_enable(pctrldev, pin, arg); pin 1076 drivers/pinctrl/bcm/pinctrl-ns2-mux.c pins[i].number = ns2_pins[i].pin; pin 89 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c static inline unsigned nsp_pin_to_gpio(unsigned pin) pin 91 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c return pin; pin 460 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c static int nsp_pin_config_get(struct pinctrl_dev *pctldev, unsigned pin, pin 470 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c gpio = nsp_pin_to_gpio(pin); pin 505 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c static int nsp_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, pin 514 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c gpio = nsp_pin_to_gpio(pin); pin 136 drivers/pinctrl/bcm/pinctrl-nsp-mux.c unsigned int pin; pin 143 drivers/pinctrl/bcm/pinctrl-nsp-mux.c .pin = p, \ pin 482 drivers/pinctrl/bcm/pinctrl-nsp-mux.c unsigned int pin) pin 485 drivers/pinctrl/bcm/pinctrl-nsp-mux.c u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; pin 491 drivers/pinctrl/bcm/pinctrl-nsp-mux.c if ((val & BIT(pin)) != (*gpio_select << pin)) { pin 492 drivers/pinctrl/bcm/pinctrl-nsp-mux.c val &= ~BIT(pin); pin 493 drivers/pinctrl/bcm/pinctrl-nsp-mux.c val |= *gpio_select << pin; pin 503 drivers/pinctrl/bcm/pinctrl-nsp-mux.c unsigned int pin) pin 506 drivers/pinctrl/bcm/pinctrl-nsp-mux.c u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; pin 512 drivers/pinctrl/bcm/pinctrl-nsp-mux.c if ((val & (1 << pin)) == (*gpio_select << pin)) { pin 513 drivers/pinctrl/bcm/pinctrl-nsp-mux.c val &= ~(1 << pin); pin 515 drivers/pinctrl/bcm/pinctrl-nsp-mux.c val |= (1 << pin); pin 605 drivers/pinctrl/bcm/pinctrl-nsp-mux.c pins[i].number = nsp_pins[i].pin; pin 832 drivers/pinctrl/cirrus/pinctrl-lochnagar.c const struct lochnagar_pin *pin, pin 844 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin->name, ret); pin 852 drivers/pinctrl/cirrus/pinctrl-lochnagar.c dev_dbg(priv->dev, "Set pin %s to 0x%x\n", pin->name, op); pin 854 drivers/pinctrl/cirrus/pinctrl-lochnagar.c ret = regmap_write(priv->lochnagar->regmap, pin->reg, op); pin 857 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin->name, ret); pin 868 drivers/pinctrl/cirrus/pinctrl-lochnagar.c const struct lochnagar_pin *pin; pin 887 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin = priv->pins[group->pins[i]].drv_data; pin 889 drivers/pinctrl/cirrus/pinctrl-lochnagar.c if (pin->type != LN_PTYPE_MUX) pin 892 drivers/pinctrl/cirrus/pinctrl-lochnagar.c dev_dbg(priv->dev, "Set pin %s to AIF\n", pin->name); pin 894 drivers/pinctrl/cirrus/pinctrl-lochnagar.c ret = regmap_update_bits(regmap, pin->reg, pin 899 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin->name, ret); pin 913 drivers/pinctrl/cirrus/pinctrl-lochnagar.c const struct lochnagar_pin *pin; pin 922 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin = priv->pins[*group->pins].drv_data; pin 924 drivers/pinctrl/cirrus/pinctrl-lochnagar.c dev_dbg(priv->dev, "Set pin %s to %s\n", pin->name, func->name); pin 926 drivers/pinctrl/cirrus/pinctrl-lochnagar.c return lochnagar_pin_set_mux(priv, pin, func->op); pin 938 drivers/pinctrl/cirrus/pinctrl-lochnagar.c const struct lochnagar_pin *pin = priv->pins[offset].drv_data; pin 941 drivers/pinctrl/cirrus/pinctrl-lochnagar.c dev_dbg(priv->dev, "Requesting GPIO %s\n", pin->name); pin 943 drivers/pinctrl/cirrus/pinctrl-lochnagar.c if (lochnagar->type == LOCHNAGAR1 || pin->type != LN_PTYPE_MUX) pin 1063 drivers/pinctrl/cirrus/pinctrl-lochnagar.c const struct lochnagar_pin *pin = priv->pins[offset].drv_data; pin 1069 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin->name, value ? "high" : "low"); pin 1071 drivers/pinctrl/cirrus/pinctrl-lochnagar.c switch (pin->type) { pin 1075 drivers/pinctrl/cirrus/pinctrl-lochnagar.c ret = lochnagar_pin_set_mux(priv, pin, value); pin 1078 drivers/pinctrl/cirrus/pinctrl-lochnagar.c if (pin->invert) pin 1081 drivers/pinctrl/cirrus/pinctrl-lochnagar.c ret = regmap_update_bits(lochnagar->regmap, pin->reg, pin 1082 drivers/pinctrl/cirrus/pinctrl-lochnagar.c BIT(pin->shift), value << pin->shift); pin 1091 drivers/pinctrl/cirrus/pinctrl-lochnagar.c pin->name, ret); pin 484 drivers/pinctrl/cirrus/pinctrl-madera-core.c unsigned int pin, unsigned int fn) pin 503 drivers/pinctrl/cirrus/pinctrl-madera-core.c if (chip->pin_groups[i].pins[g_pin] == pin) { pin 514 drivers/pinctrl/cirrus/pinctrl-madera-core.c unsigned int pin) pin 518 drivers/pinctrl/cirrus/pinctrl-madera-core.c unsigned int reg = MADERA_GPIO1_CTRL_1 + (2 * pin); pin 533 drivers/pinctrl/cirrus/pinctrl-madera-core.c madera_pin_dbg_show_fn(priv, s, pin, fn); pin 740 drivers/pinctrl/cirrus/pinctrl-madera-core.c static int madera_pin_conf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 746 drivers/pinctrl/cirrus/pinctrl-madera-core.c unsigned int reg = MADERA_GPIO1_CTRL_1 + (2 * pin); pin 756 drivers/pinctrl/cirrus/pinctrl-madera-core.c pin + 1, ret); pin 819 drivers/pinctrl/cirrus/pinctrl-madera-core.c static int madera_pin_conf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 825 drivers/pinctrl/cirrus/pinctrl-madera-core.c unsigned int reg = MADERA_GPIO1_CTRL_1 + (2 * pin); pin 924 drivers/pinctrl/cirrus/pinctrl-madera-core.c __func__, pin + 1, reg, conf[0], reg + 1, conf[1]); pin 940 drivers/pinctrl/cirrus/pinctrl-madera-core.c pin + 1, ret, reg); pin 145 drivers/pinctrl/core.c unsigned i, pin; pin 151 drivers/pinctrl/core.c pin = pctldev->desc->pins[i].number; pin 152 drivers/pinctrl/core.c desc = pin_desc_get(pctldev, pin); pin 155 drivers/pinctrl/core.c return pin; pin 166 drivers/pinctrl/core.c const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin) pin 170 drivers/pinctrl/core.c desc = pin_desc_get(pctldev, pin); pin 173 drivers/pinctrl/core.c pin); pin 203 drivers/pinctrl/core.c const struct pinctrl_pin_desc *pin) pin 207 drivers/pinctrl/core.c pindesc = pin_desc_get(pctldev, pin->number); pin 210 drivers/pinctrl/core.c pin->number); pin 222 drivers/pinctrl/core.c if (pin->name) { pin 223 drivers/pinctrl/core.c pindesc->name = pin->name; pin 225 drivers/pinctrl/core.c pindesc->name = kasprintf(GFP_KERNEL, "PIN%u", pin->number); pin 233 drivers/pinctrl/core.c pindesc->drv_data = pin->drv_data; pin 235 drivers/pinctrl/core.c radix_tree_insert(&pctldev->pin_desc_tree, pin->number, pindesc); pin 237 drivers/pinctrl/core.c pin->number, pindesc->name, pctldev->desc->name); pin 461 drivers/pinctrl/core.c unsigned int pin) pin 471 drivers/pinctrl/core.c if (range->pins[a] == pin) pin 474 drivers/pinctrl/core.c } else if (pin >= range->pin_base && pin 475 drivers/pinctrl/core.c pin < range->pin_base + range->npins) pin 490 drivers/pinctrl/core.c unsigned int pin) pin 495 drivers/pinctrl/core.c range = pinctrl_find_gpio_range_from_pin_nolock(pctldev, pin); pin 744 drivers/pinctrl/core.c int pin; pin 757 drivers/pinctrl/core.c pin = gpio_to_pin(range, gpio); pin 759 drivers/pinctrl/core.c result = pinmux_can_be_used_for_gpio(pctldev, pin); pin 780 drivers/pinctrl/core.c int pin; pin 792 drivers/pinctrl/core.c pin = gpio_to_pin(range, gpio); pin 794 drivers/pinctrl/core.c ret = pinmux_request_gpio(pctldev, range, pin, gpio); pin 815 drivers/pinctrl/core.c int pin; pin 824 drivers/pinctrl/core.c pin = gpio_to_pin(range, gpio); pin 826 drivers/pinctrl/core.c pinmux_free_gpio(pctldev, pin, range); pin 837 drivers/pinctrl/core.c int pin; pin 847 drivers/pinctrl/core.c pin = gpio_to_pin(range, gpio); pin 848 drivers/pinctrl/core.c ret = pinmux_gpio_direction(pctldev, range, pin, input); pin 897 drivers/pinctrl/core.c int ret, pin; pin 904 drivers/pinctrl/core.c pin = gpio_to_pin(range, gpio); pin 905 drivers/pinctrl/core.c ret = pinconf_set_config(pctldev, pin, configs, ARRAY_SIZE(configs)); pin 1606 drivers/pinctrl/core.c unsigned i, pin; pin 1616 drivers/pinctrl/core.c pin = pctldev->desc->pins[i].number; pin 1617 drivers/pinctrl/core.c desc = pin_desc_get(pctldev, pin); pin 1622 drivers/pinctrl/core.c seq_printf(s, "pin %d (%s) ", pin, desc->name); pin 1626 drivers/pinctrl/core.c ops->pin_dbg_show(pctldev, s, pin); pin 225 drivers/pinctrl/core.h const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin); pin 230 drivers/pinctrl/core.h unsigned int pin) pin 232 drivers/pinctrl/core.h return radix_tree_lookup(&pctldev->pin_desc_tree, pin); pin 237 drivers/pinctrl/core.h unsigned int pin); pin 64 drivers/pinctrl/freescale/pinctrl-imx.c struct imx_pin *pin; pin 82 drivers/pinctrl/freescale/pinctrl-imx.c pin = &((struct imx_pin *)(grp->data))[i]; pin 83 drivers/pinctrl/freescale/pinctrl-imx.c if (!(pin->conf.mmio.config & IMX_NO_PAD_CTL)) pin 110 drivers/pinctrl/freescale/pinctrl-imx.c pin = &((struct imx_pin *)(grp->data))[i]; pin 117 drivers/pinctrl/freescale/pinctrl-imx.c (pin->conf.mmio.config & IMX_NO_PAD_CTL)) pin 122 drivers/pinctrl/freescale/pinctrl-imx.c pin_get_name(pctldev, pin->pin); pin 130 drivers/pinctrl/freescale/pinctrl-imx.c (unsigned long *)&pin->conf.scu; pin 134 drivers/pinctrl/freescale/pinctrl-imx.c &pin->conf.mmio.config; pin 163 drivers/pinctrl/freescale/pinctrl-imx.c struct imx_pin *pin) pin 166 drivers/pinctrl/freescale/pinctrl-imx.c struct imx_pin_mmio *pin_mmio = &pin->conf.mmio; pin 170 drivers/pinctrl/freescale/pinctrl-imx.c pin_id = pin->pin; pin 247 drivers/pinctrl/freescale/pinctrl-imx.c struct imx_pin *pin; pin 274 drivers/pinctrl/freescale/pinctrl-imx.c pin = &((struct imx_pin *)(grp->data))[i]; pin 276 drivers/pinctrl/freescale/pinctrl-imx.c err = imx_pmx_set_one_pin_mmio(ipctl, pin); pin 480 drivers/pinctrl/freescale/pinctrl-imx.c struct imx_pin *pin = &((struct imx_pin *)(grp->data))[i]; pin 482 drivers/pinctrl/freescale/pinctrl-imx.c name = pin_get_name(pctldev, pin->pin); pin 483 drivers/pinctrl/freescale/pinctrl-imx.c ret = imx_pinconf_get(pctldev, pin->pin, &config); pin 515 drivers/pinctrl/freescale/pinctrl-imx.c unsigned int *pin_id, struct imx_pin *pin, pin 520 drivers/pinctrl/freescale/pinctrl-imx.c struct imx_pin_mmio *pin_mmio = &pin->conf.mmio; pin 541 drivers/pinctrl/freescale/pinctrl-imx.c pin->pin = *pin_id; pin 573 drivers/pinctrl/freescale/pinctrl-imx.c struct imx_pin *pin; pin 630 drivers/pinctrl/freescale/pinctrl-imx.c pin = &((struct imx_pin *)(grp->data))[i]; pin 633 drivers/pinctrl/freescale/pinctrl-imx.c pin, &list); pin 636 drivers/pinctrl/freescale/pinctrl-imx.c pin, &list, np); pin 53 drivers/pinctrl/freescale/pinctrl-imx.h unsigned int pin; pin 131 drivers/pinctrl/freescale/pinctrl-imx.h #define IMX_PINCTRL_PIN(pin) PINCTRL_PIN(pin, #pin) pin 151 drivers/pinctrl/freescale/pinctrl-imx.h unsigned int *pin_id, struct imx_pin *pin, pin 167 drivers/pinctrl/freescale/pinctrl-imx.h struct imx_pin *pin, pin 14 drivers/pinctrl/freescale/pinctrl-imx1.c #define PAD_ID(port, pin) ((port) * 32 + (pin)) pin 64 drivers/pinctrl/freescale/pinctrl-imx1.h #define IMX_PINCTRL_PIN(pin) PINCTRL_PIN(pin, #pin) pin 14 drivers/pinctrl/freescale/pinctrl-imx21.c #define PAD_ID(port, pin) ((port) * 32 + (pin)) pin 18 drivers/pinctrl/freescale/pinctrl-imx27.c #define PAD_ID(port, pin) (port*32 + pin) pin 207 drivers/pinctrl/freescale/pinctrl-mxs.c u16 pin; pin 212 drivers/pinctrl/freescale/pinctrl-mxs.c pin = PINID_TO_PIN(g->pins[i]); pin 214 drivers/pinctrl/freescale/pinctrl-mxs.c reg += bank * 0x20 + pin / 16 * 0x10; pin 215 drivers/pinctrl/freescale/pinctrl-mxs.c shift = pin % 16 * 2; pin 231 drivers/pinctrl/freescale/pinctrl-mxs.c unsigned pin, unsigned long *config) pin 237 drivers/pinctrl/freescale/pinctrl-mxs.c unsigned pin, unsigned long *configs, pin 261 drivers/pinctrl/freescale/pinctrl-mxs.c u16 pin; pin 275 drivers/pinctrl/freescale/pinctrl-mxs.c pin = PINID_TO_PIN(g->pins[i]); pin 279 drivers/pinctrl/freescale/pinctrl-mxs.c reg += bank * 0x40 + pin / 8 * 0x10; pin 283 drivers/pinctrl/freescale/pinctrl-mxs.c shift = pin % 8 * 4; pin 289 drivers/pinctrl/freescale/pinctrl-mxs.c shift = pin % 8 * 4 + 2; pin 300 drivers/pinctrl/freescale/pinctrl-mxs.c shift = pin; pin 317 drivers/pinctrl/freescale/pinctrl-mxs.c struct seq_file *s, unsigned pin) pin 16 drivers/pinctrl/freescale/pinctrl-mxs.h #define MXS_PINCTRL_PIN(pin) PINCTRL_PIN(pin, #pin) pin 17 drivers/pinctrl/freescale/pinctrl-mxs.h #define PINID(bank, pin) ((bank) * 32 + (pin)) pin 106 drivers/pinctrl/freescale/pinctrl-scu.c unsigned int *pin_id, struct imx_pin *pin, pin 110 drivers/pinctrl/freescale/pinctrl-scu.c struct imx_pin_scu *pin_scu = &pin->conf.scu; pin 113 drivers/pinctrl/freescale/pinctrl-scu.c pin->pin = be32_to_cpu(*list++); pin 114 drivers/pinctrl/freescale/pinctrl-scu.c *pin_id = pin->pin; pin 119 drivers/pinctrl/freescale/pinctrl-scu.c dev_dbg(ipctl->dev, "%s: 0x%x 0x%08lx", info->pins[pin->pin].name, pin 554 drivers/pinctrl/intel/pinctrl-baytrail.c unsigned int pin) pin 561 drivers/pinctrl/intel/pinctrl-baytrail.c if (pin < comm->pin_base + comm->npins && pin >= comm->pin_base) pin 1208 drivers/pinctrl/intel/pinctrl-baytrail.c unsigned int pin; pin 1211 drivers/pinctrl/intel/pinctrl-baytrail.c pin = vg->soc_data->pins[i].number; pin 1212 drivers/pinctrl/intel/pinctrl-baytrail.c reg = byt_gpio_reg(vg, pin, BYT_CONF0_REG); pin 1216 drivers/pinctrl/intel/pinctrl-baytrail.c pin); pin 1222 drivers/pinctrl/intel/pinctrl-baytrail.c reg = byt_gpio_reg(vg, pin, BYT_VAL_REG); pin 1225 drivers/pinctrl/intel/pinctrl-baytrail.c "Could not retrieve pin %i val reg\n", pin); pin 1232 drivers/pinctrl/intel/pinctrl-baytrail.c comm = byt_get_community(vg, pin); pin 1235 drivers/pinctrl/intel/pinctrl-baytrail.c "Could not get community for pin %i\n", pin); pin 1268 drivers/pinctrl/intel/pinctrl-baytrail.c pin, pin 1420 drivers/pinctrl/intel/pinctrl-baytrail.c u32 base, pin; pin 1439 drivers/pinctrl/intel/pinctrl-baytrail.c for_each_set_bit(pin, &pending, 32) { pin 1440 drivers/pinctrl/intel/pinctrl-baytrail.c virq = irq_find_mapping(vg->chip.irq.domain, base + pin); pin 1475 drivers/pinctrl/intel/pinctrl-baytrail.c unsigned int pin = vg->soc_data->pins[i].number; pin 1477 drivers/pinctrl/intel/pinctrl-baytrail.c reg = byt_gpio_reg(vg, pin, BYT_CONF0_REG); pin 1671 drivers/pinctrl/intel/pinctrl-baytrail.c unsigned int pin = vg->soc_data->pins[i].number; pin 1673 drivers/pinctrl/intel/pinctrl-baytrail.c reg = byt_gpio_reg(vg, pin, BYT_CONF0_REG); pin 1683 drivers/pinctrl/intel/pinctrl-baytrail.c reg = byt_gpio_reg(vg, pin, BYT_VAL_REG); pin 1703 drivers/pinctrl/intel/pinctrl-baytrail.c unsigned int pin = vg->soc_data->pins[i].number; pin 1705 drivers/pinctrl/intel/pinctrl-baytrail.c reg = byt_gpio_reg(vg, pin, BYT_CONF0_REG); pin 1721 drivers/pinctrl/intel/pinctrl-baytrail.c reg = byt_gpio_reg(vg, pin, BYT_VAL_REG); pin 77 drivers/pinctrl/intel/pinctrl-cherryview.c unsigned int pin; pin 176 drivers/pinctrl/intel/pinctrl-cherryview.c .pin = (p), \ pin 810 drivers/pinctrl/intel/pinctrl-cherryview.c int pin = grp->pins[i]; pin 819 drivers/pinctrl/intel/pinctrl-cherryview.c if (grp->overrides[j].pin == pin) { pin 826 drivers/pinctrl/intel/pinctrl-cherryview.c reg = chv_padreg(pctrl, pin, CHV_PADCTRL0); pin 836 drivers/pinctrl/intel/pinctrl-cherryview.c reg = chv_padreg(pctrl, pin, CHV_PADCTRL1); pin 843 drivers/pinctrl/intel/pinctrl-cherryview.c pin, altfunc->mode, altfunc->invert_oe ? "" : "not "); pin 968 drivers/pinctrl/intel/pinctrl-cherryview.c static int chv_config_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 979 drivers/pinctrl/intel/pinctrl-cherryview.c ctrl0 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); pin 980 drivers/pinctrl/intel/pinctrl-cherryview.c ctrl1 = readl(chv_padreg(pctrl, pin, CHV_PADCTRL1)); pin 1048 drivers/pinctrl/intel/pinctrl-cherryview.c static int chv_config_set_pull(struct chv_pinctrl *pctrl, unsigned int pin, pin 1051 drivers/pinctrl/intel/pinctrl-cherryview.c void __iomem *reg = chv_padreg(pctrl, pin, CHV_PADCTRL0); pin 1114 drivers/pinctrl/intel/pinctrl-cherryview.c static int chv_config_set_oden(struct chv_pinctrl *pctrl, unsigned int pin, pin 1117 drivers/pinctrl/intel/pinctrl-cherryview.c void __iomem *reg = chv_padreg(pctrl, pin, CHV_PADCTRL1); pin 1135 drivers/pinctrl/intel/pinctrl-cherryview.c static int chv_config_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 1143 drivers/pinctrl/intel/pinctrl-cherryview.c if (chv_pad_locked(pctrl, pin)) pin 1154 drivers/pinctrl/intel/pinctrl-cherryview.c ret = chv_config_set_pull(pctrl, pin, param, arg); pin 1160 drivers/pinctrl/intel/pinctrl-cherryview.c ret = chv_config_set_oden(pctrl, pin, false); pin 1166 drivers/pinctrl/intel/pinctrl-cherryview.c ret = chv_config_set_oden(pctrl, pin, true); pin 1175 drivers/pinctrl/intel/pinctrl-cherryview.c dev_dbg(pctrl->dev, "pin %d set config %d arg %u\n", pin, pin 1320 drivers/pinctrl/intel/pinctrl-cherryview.c int pin = irqd_to_hwirq(d); pin 1325 drivers/pinctrl/intel/pinctrl-cherryview.c intr_line = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); pin 1337 drivers/pinctrl/intel/pinctrl-cherryview.c int pin = irqd_to_hwirq(d); pin 1343 drivers/pinctrl/intel/pinctrl-cherryview.c intr_line = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); pin 1382 drivers/pinctrl/intel/pinctrl-cherryview.c unsigned int pin = irqd_to_hwirq(d); pin 1388 drivers/pinctrl/intel/pinctrl-cherryview.c intsel = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); pin 1392 drivers/pinctrl/intel/pinctrl-cherryview.c value = readl(chv_padreg(pctrl, pin, CHV_PADCTRL1)); pin 1400 drivers/pinctrl/intel/pinctrl-cherryview.c pctrl->intr_lines[intsel] = pin; pin 1413 drivers/pinctrl/intel/pinctrl-cherryview.c unsigned int pin = irqd_to_hwirq(d); pin 1432 drivers/pinctrl/intel/pinctrl-cherryview.c if (!chv_pad_locked(pctrl, pin)) { pin 1433 drivers/pinctrl/intel/pinctrl-cherryview.c void __iomem *reg = chv_padreg(pctrl, pin, CHV_PADCTRL1); pin 1455 drivers/pinctrl/intel/pinctrl-cherryview.c value = readl(chv_padreg(pctrl, pin, CHV_PADCTRL0)); pin 1459 drivers/pinctrl/intel/pinctrl-cherryview.c pctrl->intr_lines[value] = pin; pin 125 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin) pin 132 drivers/pinctrl/intel/pinctrl-intel.c if (pin >= community->pin_base && pin 133 drivers/pinctrl/intel/pinctrl-intel.c pin < community->pin_base + community->npins) pin 137 drivers/pinctrl/intel/pinctrl-intel.c dev_warn(pctrl->dev, "failed to find community for pin %u\n", pin); pin 143 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin) pin 150 drivers/pinctrl/intel/pinctrl-intel.c if (pin >= padgrp->base && pin < padgrp->base + padgrp->size) pin 158 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin, unsigned int reg) pin 164 drivers/pinctrl/intel/pinctrl-intel.c community = intel_get_community(pctrl, pin); pin 168 drivers/pinctrl/intel/pinctrl-intel.c padno = pin_to_padno(community, pin); pin 177 drivers/pinctrl/intel/pinctrl-intel.c static bool intel_pad_owned_by_host(struct intel_pinctrl *pctrl, unsigned int pin) pin 184 drivers/pinctrl/intel/pinctrl-intel.c community = intel_get_community(pctrl, pin); pin 190 drivers/pinctrl/intel/pinctrl-intel.c padgrp = intel_community_get_padgroup(community, pin); pin 194 drivers/pinctrl/intel/pinctrl-intel.c gpp_offset = padgroup_offset(padgrp, pin); pin 202 drivers/pinctrl/intel/pinctrl-intel.c static bool intel_pad_acpi_mode(struct intel_pinctrl *pctrl, unsigned int pin) pin 209 drivers/pinctrl/intel/pinctrl-intel.c community = intel_get_community(pctrl, pin); pin 215 drivers/pinctrl/intel/pinctrl-intel.c padgrp = intel_community_get_padgroup(community, pin); pin 219 drivers/pinctrl/intel/pinctrl-intel.c gpp_offset = padgroup_offset(padgrp, pin); pin 245 drivers/pinctrl/intel/pinctrl-intel.c static int intel_pad_locked(struct intel_pinctrl *pctrl, unsigned int pin) pin 253 drivers/pinctrl/intel/pinctrl-intel.c community = intel_get_community(pctrl, pin); pin 259 drivers/pinctrl/intel/pinctrl-intel.c padgrp = intel_community_get_padgroup(community, pin); pin 263 drivers/pinctrl/intel/pinctrl-intel.c gpp_offset = padgroup_offset(padgrp, pin); pin 283 drivers/pinctrl/intel/pinctrl-intel.c static bool intel_pad_is_unlocked(struct intel_pinctrl *pctrl, unsigned int pin) pin 285 drivers/pinctrl/intel/pinctrl-intel.c return (intel_pad_locked(pctrl, pin) & PAD_LOCKED) == PAD_UNLOCKED; pin 288 drivers/pinctrl/intel/pinctrl-intel.c static bool intel_pad_usable(struct intel_pinctrl *pctrl, unsigned int pin) pin 290 drivers/pinctrl/intel/pinctrl-intel.c return intel_pad_owned_by_host(pctrl, pin) && intel_pad_is_unlocked(pctrl, pin); pin 319 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin) pin 327 drivers/pinctrl/intel/pinctrl-intel.c if (!intel_pad_owned_by_host(pctrl, pin)) { pin 332 drivers/pinctrl/intel/pinctrl-intel.c cfg0 = readl(intel_get_padcfg(pctrl, pin, PADCFG0)); pin 333 drivers/pinctrl/intel/pinctrl-intel.c cfg1 = readl(intel_get_padcfg(pctrl, pin, PADCFG1)); pin 344 drivers/pinctrl/intel/pinctrl-intel.c padcfg = intel_get_padcfg(pctrl, pin, PADCFG2); pin 348 drivers/pinctrl/intel/pinctrl-intel.c locked = intel_pad_locked(pctrl, pin); pin 349 drivers/pinctrl/intel/pinctrl-intel.c acpi = intel_pad_acpi_mode(pctrl, pin); pin 481 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin) pin 489 drivers/pinctrl/intel/pinctrl-intel.c if (!intel_pad_owned_by_host(pctrl, pin)) { pin 494 drivers/pinctrl/intel/pinctrl-intel.c if (!intel_pad_is_unlocked(pctrl, pin)) { pin 499 drivers/pinctrl/intel/pinctrl-intel.c padcfg0 = intel_get_padcfg(pctrl, pin, PADCFG0); pin 524 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin, bool input) pin 532 drivers/pinctrl/intel/pinctrl-intel.c padcfg0 = intel_get_padcfg(pctrl, pin, PADCFG0); pin 549 drivers/pinctrl/intel/pinctrl-intel.c static int intel_config_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 558 drivers/pinctrl/intel/pinctrl-intel.c if (!intel_pad_owned_by_host(pctrl, pin)) pin 561 drivers/pinctrl/intel/pinctrl-intel.c community = intel_get_community(pctrl, pin); pin 562 drivers/pinctrl/intel/pinctrl-intel.c value = readl(intel_get_padcfg(pctrl, pin, PADCFG1)); pin 616 drivers/pinctrl/intel/pinctrl-intel.c padcfg2 = intel_get_padcfg(pctrl, pin, PADCFG2); pin 638 drivers/pinctrl/intel/pinctrl-intel.c static int intel_config_set_pull(struct intel_pinctrl *pctrl, unsigned int pin, pin 651 drivers/pinctrl/intel/pinctrl-intel.c community = intel_get_community(pctrl, pin); pin 652 drivers/pinctrl/intel/pinctrl-intel.c padcfg1 = intel_get_padcfg(pctrl, pin, PADCFG1); pin 717 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin, unsigned int debounce) pin 724 drivers/pinctrl/intel/pinctrl-intel.c padcfg2 = intel_get_padcfg(pctrl, pin, PADCFG2); pin 728 drivers/pinctrl/intel/pinctrl-intel.c padcfg0 = intel_get_padcfg(pctrl, pin, PADCFG0); pin 763 drivers/pinctrl/intel/pinctrl-intel.c static int intel_config_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 769 drivers/pinctrl/intel/pinctrl-intel.c if (!intel_pad_usable(pctrl, pin)) pin 777 drivers/pinctrl/intel/pinctrl-intel.c ret = intel_config_set_pull(pctrl, pin, configs[i]); pin 783 drivers/pinctrl/intel/pinctrl-intel.c ret = intel_config_set_debounce(pctrl, pin, pin 839 drivers/pinctrl/intel/pinctrl-intel.c int pin; pin 841 drivers/pinctrl/intel/pinctrl-intel.c pin = pgrp->base + offset - pgrp->gpio_base; pin 847 drivers/pinctrl/intel/pinctrl-intel.c return pin; pin 862 drivers/pinctrl/intel/pinctrl-intel.c static __maybe_unused int intel_pin_to_gpio(struct intel_pinctrl *pctrl, int pin) pin 867 drivers/pinctrl/intel/pinctrl-intel.c community = intel_get_community(pctrl, pin); pin 871 drivers/pinctrl/intel/pinctrl-intel.c padgrp = intel_community_get_padgroup(community, pin); pin 875 drivers/pinctrl/intel/pinctrl-intel.c return pin - padgrp->base + padgrp->gpio_base; pin 883 drivers/pinctrl/intel/pinctrl-intel.c int pin; pin 885 drivers/pinctrl/intel/pinctrl-intel.c pin = intel_gpio_to_pin(pctrl, offset, NULL, NULL); pin 886 drivers/pinctrl/intel/pinctrl-intel.c if (pin < 0) pin 889 drivers/pinctrl/intel/pinctrl-intel.c reg = intel_get_padcfg(pctrl, pin, PADCFG0); pin 907 drivers/pinctrl/intel/pinctrl-intel.c int pin; pin 909 drivers/pinctrl/intel/pinctrl-intel.c pin = intel_gpio_to_pin(pctrl, offset, NULL, NULL); pin 910 drivers/pinctrl/intel/pinctrl-intel.c if (pin < 0) pin 913 drivers/pinctrl/intel/pinctrl-intel.c reg = intel_get_padcfg(pctrl, pin, PADCFG0); pin 932 drivers/pinctrl/intel/pinctrl-intel.c int pin; pin 934 drivers/pinctrl/intel/pinctrl-intel.c pin = intel_gpio_to_pin(pctrl, offset, NULL, NULL); pin 935 drivers/pinctrl/intel/pinctrl-intel.c if (pin < 0) pin 938 drivers/pinctrl/intel/pinctrl-intel.c reg = intel_get_padcfg(pctrl, pin, PADCFG0); pin 980 drivers/pinctrl/intel/pinctrl-intel.c int pin; pin 982 drivers/pinctrl/intel/pinctrl-intel.c pin = intel_gpio_to_pin(pctrl, irqd_to_hwirq(d), &community, &padgrp); pin 983 drivers/pinctrl/intel/pinctrl-intel.c if (pin >= 0) { pin 987 drivers/pinctrl/intel/pinctrl-intel.c gpp_offset = padgroup_offset(padgrp, pin); pin 1002 drivers/pinctrl/intel/pinctrl-intel.c int pin; pin 1004 drivers/pinctrl/intel/pinctrl-intel.c pin = intel_gpio_to_pin(pctrl, irqd_to_hwirq(d), &community, &padgrp); pin 1005 drivers/pinctrl/intel/pinctrl-intel.c if (pin >= 0) { pin 1012 drivers/pinctrl/intel/pinctrl-intel.c gpp_offset = padgroup_offset(padgrp, pin); pin 1046 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin = intel_gpio_to_pin(pctrl, irqd_to_hwirq(d), NULL, NULL); pin 1051 drivers/pinctrl/intel/pinctrl-intel.c reg = intel_get_padcfg(pctrl, pin, PADCFG0); pin 1060 drivers/pinctrl/intel/pinctrl-intel.c if (intel_pad_acpi_mode(pctrl, pin)) { pin 1061 drivers/pinctrl/intel/pinctrl-intel.c dev_warn(pctrl->dev, "pin %u cannot be used as IRQ\n", pin); pin 1103 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin = intel_gpio_to_pin(pctrl, irqd_to_hwirq(d), NULL, NULL); pin 1110 drivers/pinctrl/intel/pinctrl-intel.c dev_dbg(pctrl->dev, "%sable wake for pin %u\n", on ? "en" : "dis", pin); pin 1500 drivers/pinctrl/intel/pinctrl-intel.c static bool intel_pinctrl_should_save(struct intel_pinctrl *pctrl, unsigned int pin) pin 1502 drivers/pinctrl/intel/pinctrl-intel.c const struct pin_desc *pd = pin_desc_get(pctrl->pctldev, pin); pin 1504 drivers/pinctrl/intel/pinctrl-intel.c if (!pd || !intel_pad_usable(pctrl, pin)) pin 1514 drivers/pinctrl/intel/pinctrl-intel.c gpiochip_line_is_irq(&pctrl->chip, intel_pin_to_gpio(pctrl, pin))) pin 439 drivers/pinctrl/intel/pinctrl-merrifield.c unsigned int pin) pin 446 drivers/pinctrl/intel/pinctrl-merrifield.c if (pin >= family->pin_base && pin 447 drivers/pinctrl/intel/pinctrl-merrifield.c pin < family->pin_base + family->npins) pin 451 drivers/pinctrl/intel/pinctrl-merrifield.c dev_warn(mp->dev, "failed to find family for pin %u\n", pin); pin 455 drivers/pinctrl/intel/pinctrl-merrifield.c static bool mrfld_buf_available(struct mrfld_pinctrl *mp, unsigned int pin) pin 459 drivers/pinctrl/intel/pinctrl-merrifield.c family = mrfld_get_family(mp, pin); pin 466 drivers/pinctrl/intel/pinctrl-merrifield.c static void __iomem *mrfld_get_bufcfg(struct mrfld_pinctrl *mp, unsigned int pin) pin 471 drivers/pinctrl/intel/pinctrl-merrifield.c family = mrfld_get_family(mp, pin); pin 475 drivers/pinctrl/intel/pinctrl-merrifield.c bufno = pin_to_bufno(family, pin); pin 479 drivers/pinctrl/intel/pinctrl-merrifield.c static int mrfld_read_bufcfg(struct mrfld_pinctrl *mp, unsigned int pin, u32 *value) pin 483 drivers/pinctrl/intel/pinctrl-merrifield.c if (!mrfld_buf_available(mp, pin)) pin 486 drivers/pinctrl/intel/pinctrl-merrifield.c bufcfg = mrfld_get_bufcfg(mp, pin); pin 492 drivers/pinctrl/intel/pinctrl-merrifield.c static void mrfld_update_bufcfg(struct mrfld_pinctrl *mp, unsigned int pin, pin 498 drivers/pinctrl/intel/pinctrl-merrifield.c bufcfg = mrfld_get_bufcfg(mp, pin); pin 533 drivers/pinctrl/intel/pinctrl-merrifield.c unsigned int pin) pin 539 drivers/pinctrl/intel/pinctrl-merrifield.c ret = mrfld_read_bufcfg(mp, pin, &value); pin 619 drivers/pinctrl/intel/pinctrl-merrifield.c unsigned int pin) pin 626 drivers/pinctrl/intel/pinctrl-merrifield.c if (!mrfld_buf_available(mp, pin)) pin 630 drivers/pinctrl/intel/pinctrl-merrifield.c mrfld_update_bufcfg(mp, pin, bits, mask); pin 644 drivers/pinctrl/intel/pinctrl-merrifield.c static int mrfld_config_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 653 drivers/pinctrl/intel/pinctrl-merrifield.c ret = mrfld_read_bufcfg(mp, pin, &value); pin 727 drivers/pinctrl/intel/pinctrl-merrifield.c static int mrfld_config_set_pin(struct mrfld_pinctrl *mp, unsigned int pin, pin 794 drivers/pinctrl/intel/pinctrl-merrifield.c mrfld_update_bufcfg(mp, pin, bits, mask); pin 800 drivers/pinctrl/intel/pinctrl-merrifield.c static int mrfld_config_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 807 drivers/pinctrl/intel/pinctrl-merrifield.c if (!mrfld_buf_available(mp, pin)) pin 817 drivers/pinctrl/intel/pinctrl-merrifield.c ret = mrfld_config_set_pin(mp, pin, configs[i]); pin 60 drivers/pinctrl/mediatek/pinctrl-moore.c int pin = grp->pins[i]; pin 62 drivers/pinctrl/mediatek/pinctrl-moore.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 73 drivers/pinctrl/mediatek/pinctrl-moore.c unsigned int pin) pin 78 drivers/pinctrl/mediatek/pinctrl-moore.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 86 drivers/pinctrl/mediatek/pinctrl-moore.c unsigned int pin, bool input) pin 91 drivers/pinctrl/mediatek/pinctrl-moore.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 98 drivers/pinctrl/mediatek/pinctrl-moore.c unsigned int pin, unsigned long *config) pin 105 drivers/pinctrl/mediatek/pinctrl-moore.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 212 drivers/pinctrl/mediatek/pinctrl-moore.c static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 220 drivers/pinctrl/mediatek/pinctrl-moore.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 26 drivers/pinctrl/mediatek/pinctrl-mt2701.c unsigned short pin; pin 33 drivers/pinctrl/mediatek/pinctrl-mt2701.c .pin = _pin, \ pin 273 drivers/pinctrl/mediatek/pinctrl-mt2701.c static int mt2701_spec_pull_set(struct regmap *regmap, unsigned int pin, pin 277 drivers/pinctrl/mediatek/pinctrl-mt2701.c ARRAY_SIZE(mt2701_spec_pupd), pin, align, isup, r1r0); pin 439 drivers/pinctrl/mediatek/pinctrl-mt2701.c static int mt2701_ies_smt_set(struct regmap *regmap, unsigned int pin, pin 444 drivers/pinctrl/mediatek/pinctrl-mt2701.c ARRAY_SIZE(mt2701_ies_set), pin, align, value); pin 447 drivers/pinctrl/mediatek/pinctrl-mt2701.c ARRAY_SIZE(mt2701_smt_set), pin, align, value); pin 474 drivers/pinctrl/mediatek/pinctrl-mt2701.c static void mt2701_spec_pinmux_set(struct regmap *reg, unsigned int pin, pin 482 drivers/pinctrl/mediatek/pinctrl-mt2701.c if (pin == mt2701_spec_pinmux[i].pin) pin 498 drivers/pinctrl/mediatek/pinctrl-mt2701.c static void mt2701_spec_dir_set(unsigned int *reg_addr, unsigned int pin) pin 500 drivers/pinctrl/mediatek/pinctrl-mt2701.c if (pin > 175) pin 85 drivers/pinctrl/mediatek/pinctrl-mt2712.c unsigned int pin, pin 91 drivers/pinctrl/mediatek/pinctrl-mt2712.c ARRAY_SIZE(mt2712_spec_pupd), pin, align, isup, r1r0); pin 288 drivers/pinctrl/mediatek/pinctrl-mt2712.c static int mt2712_ies_smt_set(struct regmap *regmap, unsigned int pin, pin 294 drivers/pinctrl/mediatek/pinctrl-mt2712.c ARRAY_SIZE(mt2712_ies_set), pin, align, value); pin 297 drivers/pinctrl/mediatek/pinctrl-mt2712.c ARRAY_SIZE(mt2712_smt_set), pin, align, value); pin 175 drivers/pinctrl/mediatek/pinctrl-mt8127.c static int mt8127_spec_pull_set(struct regmap *regmap, unsigned int pin, pin 179 drivers/pinctrl/mediatek/pinctrl-mt8127.c ARRAY_SIZE(mt8127_spec_pupd), pin, align, isup, r1r0); pin 262 drivers/pinctrl/mediatek/pinctrl-mt8127.c static int mt8127_ies_smt_set(struct regmap *regmap, unsigned int pin, pin 267 drivers/pinctrl/mediatek/pinctrl-mt8127.c ARRAY_SIZE(mt8127_ies_set), pin, align, value); pin 270 drivers/pinctrl/mediatek/pinctrl-mt8127.c ARRAY_SIZE(mt8127_smt_set), pin, align, value); pin 27 drivers/pinctrl/mediatek/pinctrl-mt8135.c unsigned char pin; pin 39 drivers/pinctrl/mediatek/pinctrl-mt8135.c .pin = _pin, \ pin 233 drivers/pinctrl/mediatek/pinctrl-mt8135.c static int spec_pull_set(struct regmap *regmap, unsigned int pin, pin 242 drivers/pinctrl/mediatek/pinctrl-mt8135.c if (pin == spec_pupd[i].pin) { pin 64 drivers/pinctrl/mediatek/pinctrl-mt8173.c static int mt8173_spec_pull_set(struct regmap *regmap, unsigned int pin, pin 68 drivers/pinctrl/mediatek/pinctrl-mt8173.c ARRAY_SIZE(mt8173_spec_pupd), pin, align, isup, r1r0); pin 177 drivers/pinctrl/mediatek/pinctrl-mt8173.c static int mt8173_ies_smt_set(struct regmap *regmap, unsigned int pin, pin 182 drivers/pinctrl/mediatek/pinctrl-mt8173.c ARRAY_SIZE(mt8173_ies_set), pin, align, value); pin 185 drivers/pinctrl/mediatek/pinctrl-mt8173.c ARRAY_SIZE(mt8173_smt_set), pin, align, value); pin 189 drivers/pinctrl/mediatek/pinctrl-mt8516.c static int mt8516_spec_pull_set(struct regmap *regmap, unsigned int pin, pin 193 drivers/pinctrl/mediatek/pinctrl-mt8516.c ARRAY_SIZE(mt8516_spec_pupd), pin, align, isup, r1r0); pin 295 drivers/pinctrl/mediatek/pinctrl-mt8516.c static int mt8516_ies_smt_set(struct regmap *regmap, unsigned int pin, pin 300 drivers/pinctrl/mediatek/pinctrl-mt8516.c ARRAY_SIZE(mt8516_ies_set), pin, align, value); pin 303 drivers/pinctrl/mediatek/pinctrl-mt8516.c ARRAY_SIZE(mt8516_smt_set), pin, align, value); pin 186 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h unsigned pin; pin 54 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned long pin) pin 56 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) pin 61 drivers/pinctrl/mediatek/pinctrl-mtk-common.c static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) pin 64 drivers/pinctrl/mediatek/pinctrl-mtk-common.c return ((pin >> 4) & pctl->devdata->port_mask) pin 109 drivers/pinctrl/mediatek/pinctrl-mtk-common.c static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, pin 134 drivers/pinctrl/mediatek/pinctrl-mtk-common.c return pctl->devdata->spec_ies_smt_set(mtk_get_regmap(pctl, pin), pin 135 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin, pctl->devdata->port_align, value, arg); pin 138 drivers/pinctrl/mediatek/pinctrl-mtk-common.c bit = BIT(pin & 0xf); pin 146 drivers/pinctrl/mediatek/pinctrl-mtk-common.c reg_addr = SET_ADDR(mtk_get_port(pctl, pin) + offset, pctl); pin 148 drivers/pinctrl/mediatek/pinctrl-mtk-common.c reg_addr = CLR_ADDR(mtk_get_port(pctl, pin) + offset, pctl); pin 150 drivers/pinctrl/mediatek/pinctrl-mtk-common.c regmap_write(mtk_get_regmap(pctl, pin), reg_addr, bit); pin 156 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned int pin, unsigned char align, int value) pin 161 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin >= ies_smt_infos[i].start && pin 162 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin <= ies_smt_infos[i].end) { pin 181 drivers/pinctrl/mediatek/pinctrl-mtk-common.c struct mtk_pinctrl *pctl, unsigned long pin) { pin 187 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin == pin_drv->pin) pin 195 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned int pin, unsigned char driving) pin 202 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin >= pctl->devdata->npins) pin 205 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin_drv = mtk_find_pin_drv_grp_by_pin(pctl, pin); pin 218 drivers/pinctrl/mediatek/pinctrl-mtk-common.c return regmap_update_bits(mtk_get_regmap(pctl, pin), pin 227 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned int info_num, unsigned int pin, pin 237 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin == pupd_infos[i].pin) { pin 286 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned int pin, bool enable, bool isup, unsigned int arg) pin 301 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = pctl->devdata->spec_pull_set(mtk_get_regmap(pctl, pin), pin 302 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin, pctl->devdata->port_align, isup, r1r0); pin 310 drivers/pinctrl/mediatek/pinctrl-mtk-common.c arg, pin); pin 314 drivers/pinctrl/mediatek/pinctrl-mtk-common.c bit = BIT(pin & 0xf); pin 316 drivers/pinctrl/mediatek/pinctrl-mtk-common.c reg_pullen = SET_ADDR(mtk_get_port(pctl, pin) + pin 319 drivers/pinctrl/mediatek/pinctrl-mtk-common.c reg_pullen = CLR_ADDR(mtk_get_port(pctl, pin) + pin 323 drivers/pinctrl/mediatek/pinctrl-mtk-common.c reg_pullsel = SET_ADDR(mtk_get_port(pctl, pin) + pin 326 drivers/pinctrl/mediatek/pinctrl-mtk-common.c reg_pullsel = CLR_ADDR(mtk_get_port(pctl, pin) + pin 329 drivers/pinctrl/mediatek/pinctrl-mtk-common.c regmap_write(mtk_get_regmap(pctl, pin), reg_pullen, bit); pin 330 drivers/pinctrl/mediatek/pinctrl-mtk-common.c regmap_write(mtk_get_regmap(pctl, pin), reg_pullsel, bit); pin 335 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned int pin, enum pin_config_param param, pin 343 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pconf_set_pull_select(pctl, pin, false, false, arg); pin 346 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pconf_set_pull_select(pctl, pin, true, true, arg); pin 349 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pconf_set_pull_select(pctl, pin, true, false, arg); pin 352 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pmx_gpio_set_direction(pctldev, NULL, pin, true); pin 353 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pconf_set_ies_smt(pctl, pin, arg, param); pin 356 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_gpio_set(pctl->chip, pin, arg); pin 357 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pmx_gpio_set_direction(pctldev, NULL, pin, false); pin 360 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pmx_gpio_set_direction(pctldev, NULL, pin, true); pin 361 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pconf_set_ies_smt(pctl, pin, arg, param); pin 364 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pconf_set_driving(pctl, pin, arg); pin 392 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pconf_parse_conf(pctldev, g->pin, pin 410 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *pctl, u32 pin) pin 417 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (grp->pin == pin) pin 427 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin = pctl->devdata->pins + pin_num; pin 428 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_function *func = pin->functions; pin 445 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin = pctl->devdata->pins + i; pin 447 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin->pin.number == pin_num) { pin 449 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin->functions; pin 465 drivers/pinctrl/mediatek/pinctrl-mtk-common.c u32 pin, u32 fnum, struct mtk_pinctrl_group *grp, pin 477 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pctrl_is_function_valid(pctl, pin, fnum); pin 480 drivers/pinctrl/mediatek/pinctrl-mtk-common.c fnum, pin); pin 497 drivers/pinctrl/mediatek/pinctrl-mtk-common.c u32 pinfunc, pin, func; pin 548 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin = MTK_GET_PIN_NO(pinfunc); pin 551 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin >= pctl->devdata->npins || pin 558 drivers/pinctrl/mediatek/pinctrl-mtk-common.c grp = mtk_pctrl_find_group_by_pin(pctl, pin); pin 561 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin); pin 566 drivers/pinctrl/mediatek/pinctrl-mtk-common.c err = mtk_pctrl_dt_node_to_map_func(pctl, pin, func, grp, map, pin 635 drivers/pinctrl/mediatek/pinctrl-mtk-common.c *pins = (unsigned *)&pctl->groups[group].pin; pin 674 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned long pin, unsigned long mode) pin 683 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pctl->devdata->spec_pinmux_set(mtk_get_regmap(pctl, pin), pin 684 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin, mode); pin 686 drivers/pinctrl/mediatek/pinctrl-mtk-common.c reg_addr = ((pin / MAX_GPIO_MODE_PER_REG) << pctl->devdata->port_shf) pin 690 drivers/pinctrl/mediatek/pinctrl-mtk-common.c bit = pin % MAX_GPIO_MODE_PER_REG; pin 693 drivers/pinctrl/mediatek/pinctrl-mtk-common.c return regmap_update_bits(mtk_get_regmap(pctl, pin), pin 701 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin; pin 704 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin = pctl->devdata->pins + i; pin 705 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin->eint.eintnum == eint_num) pin 706 drivers/pinctrl/mediatek/pinctrl-mtk-common.c return pin; pin 721 drivers/pinctrl/mediatek/pinctrl-mtk-common.c ret = mtk_pctrl_is_function_valid(pctl, g->pin, function); pin 728 drivers/pinctrl/mediatek/pinctrl-mtk-common.c desc = mtk_pctrl_find_function_by_pin(pctl, g->pin, function); pin 731 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pmx_set_mode(pctldev, g->pin, desc->muxval); pin 738 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin = pctl->devdata->pins + offset; pin 739 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_function *func = pin->functions; pin 828 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin; pin 831 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin = pctl->devdata->pins + offset; pin 832 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin->eint.eintnum == NO_EINT_SUPPORT) pin 835 drivers/pinctrl/mediatek/pinctrl-mtk-common.c eint_n = pin->eint.eintnum; pin 844 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin; pin 851 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin = pctl->devdata->pins + offset; pin 852 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (pin->eint.eintnum == NO_EINT_SUPPORT) pin 856 drivers/pinctrl/mediatek/pinctrl-mtk-common.c eint_n = pin->eint.eintnum; pin 914 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin = pctl->devdata->pins + i; pin 917 drivers/pinctrl/mediatek/pinctrl-mtk-common.c group->name = pin->pin.name; pin 918 drivers/pinctrl/mediatek/pinctrl-mtk-common.c group->pin = pin->pin.number; pin 920 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pctl->grp_names[i] = pin->pin.name; pin 931 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin; pin 933 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin = mtk_find_pin_by_eint_num(pctl, eint_n); pin 934 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (!pin) pin 938 drivers/pinctrl/mediatek/pinctrl-mtk-common.c *gpio_n = pin->pin.number; pin 946 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin; pin 948 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin = mtk_find_pin_by_eint_num(pctl, eint_n); pin 949 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (!pin) pin 952 drivers/pinctrl/mediatek/pinctrl-mtk-common.c return mtk_gpio_get(pctl->chip, pin->pin.number); pin 958 drivers/pinctrl/mediatek/pinctrl-mtk-common.c const struct mtk_desc_pin *pin; pin 960 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin = mtk_find_pin_by_eint_num(pctl, eint_n); pin 961 drivers/pinctrl/mediatek/pinctrl-mtk-common.c if (!pin) pin 965 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pmx_set_mode(pctl->pctl_dev, pin->pin.number, pin->eint.eintmux); pin 967 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pmx_gpio_set_direction(pctl->pctl_dev, NULL, pin->pin.number, pin 970 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mtk_pconf_set_ies_smt(pctl, pin->pin.number, 1, pin 1071 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pins[i] = pctl->devdata->pins[i].pin; pin 36 drivers/pinctrl/mediatek/pinctrl-mtk-common.h struct pinctrl_pin_desc pin; pin 43 drivers/pinctrl/mediatek/pinctrl-mtk-common.h .pin = _pin, \ pin 67 drivers/pinctrl/mediatek/pinctrl-mtk-common.h unsigned pin; pin 103 drivers/pinctrl/mediatek/pinctrl-mtk-common.h unsigned short pin; pin 111 drivers/pinctrl/mediatek/pinctrl-mtk-common.h .pin = _pin, \ pin 127 drivers/pinctrl/mediatek/pinctrl-mtk-common.h unsigned short pin; pin 136 drivers/pinctrl/mediatek/pinctrl-mtk-common.h .pin = _pin, \ pin 234 drivers/pinctrl/mediatek/pinctrl-mtk-common.h int (*spec_pull_set)(struct regmap *reg, unsigned int pin, pin 236 drivers/pinctrl/mediatek/pinctrl-mtk-common.h int (*spec_ies_smt_set)(struct regmap *reg, unsigned int pin, pin 238 drivers/pinctrl/mediatek/pinctrl-mtk-common.h void (*spec_pinmux_set)(struct regmap *reg, unsigned int pin, pin 240 drivers/pinctrl/mediatek/pinctrl-mtk-common.h void (*spec_dir_set)(unsigned int *reg_addr, unsigned int pin); pin 279 drivers/pinctrl/mediatek/pinctrl-mtk-common.h unsigned int info_num, unsigned int pin, pin 284 drivers/pinctrl/mediatek/pinctrl-mtk-common.h unsigned int pin, unsigned char align, int value); pin 52 drivers/pinctrl/mediatek/pinctrl-paris.c unsigned int pin) pin 57 drivers/pinctrl/mediatek/pinctrl-paris.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 65 drivers/pinctrl/mediatek/pinctrl-paris.c unsigned int pin, bool input) pin 70 drivers/pinctrl/mediatek/pinctrl-paris.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 77 drivers/pinctrl/mediatek/pinctrl-paris.c unsigned int pin, unsigned long *config) pin 84 drivers/pinctrl/mediatek/pinctrl-paris.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 200 drivers/pinctrl/mediatek/pinctrl-paris.c static int mtk_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 209 drivers/pinctrl/mediatek/pinctrl-paris.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; pin 344 drivers/pinctrl/mediatek/pinctrl-paris.c mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *hw, u32 pin) pin 351 drivers/pinctrl/mediatek/pinctrl-paris.c if (grp->pin == pin) pin 361 drivers/pinctrl/mediatek/pinctrl-paris.c const struct mtk_pin_desc *pin = hw->soc->pins + pin_num; pin 362 drivers/pinctrl/mediatek/pinctrl-paris.c const struct mtk_func_desc *func = pin->funcs; pin 379 drivers/pinctrl/mediatek/pinctrl-paris.c const struct mtk_pin_desc *pin = hw->soc->pins + i; pin 381 drivers/pinctrl/mediatek/pinctrl-paris.c if (pin->number == pin_num) { pin 382 drivers/pinctrl/mediatek/pinctrl-paris.c const struct mtk_func_desc *func = pin->funcs; pin 398 drivers/pinctrl/mediatek/pinctrl-paris.c u32 pin, u32 fnum, pin 412 drivers/pinctrl/mediatek/pinctrl-paris.c ret = mtk_pctrl_is_function_valid(pctl, pin, fnum); pin 415 drivers/pinctrl/mediatek/pinctrl-paris.c fnum, pin); pin 437 drivers/pinctrl/mediatek/pinctrl-paris.c u32 pinfunc, pin, func; pin 481 drivers/pinctrl/mediatek/pinctrl-paris.c pin = MTK_GET_PIN_NO(pinfunc); pin 484 drivers/pinctrl/mediatek/pinctrl-paris.c if (pin >= hw->soc->npins || pin 491 drivers/pinctrl/mediatek/pinctrl-paris.c grp = mtk_pctrl_find_group_by_pin(hw, pin); pin 494 drivers/pinctrl/mediatek/pinctrl-paris.c pin); pin 499 drivers/pinctrl/mediatek/pinctrl-paris.c err = mtk_pctrl_dt_node_to_map_func(hw, pin, func, grp, map, pin 572 drivers/pinctrl/mediatek/pinctrl-paris.c *pins = (unsigned *)&hw->groups[group].pin; pin 620 drivers/pinctrl/mediatek/pinctrl-paris.c ret = mtk_pctrl_is_function_valid(hw, grp->pin, function); pin 627 drivers/pinctrl/mediatek/pinctrl-paris.c desc_func = mtk_pctrl_find_function_by_pin(hw, grp->pin, function); pin 631 drivers/pinctrl/mediatek/pinctrl-paris.c desc = (const struct mtk_pin_desc *)&hw->soc->pins[grp->pin]; pin 664 drivers/pinctrl/mediatek/pinctrl-paris.c ret = mtk_pinconf_set(pctldev, grp->pin, pin 824 drivers/pinctrl/mediatek/pinctrl-paris.c const struct mtk_pin_desc *pin = hw->soc->pins + i; pin 827 drivers/pinctrl/mediatek/pinctrl-paris.c group->name = pin->name; pin 828 drivers/pinctrl/mediatek/pinctrl-paris.c group->pin = pin->number; pin 830 drivers/pinctrl/mediatek/pinctrl-paris.c hw->grp_names[i] = pin->name; pin 30 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c unsigned int pin, pin 37 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c if (pin >= pmx->pmx_banks[i].first && pin 38 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c pin <= pmx->pmx_banks[i].last) { pin 47 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c unsigned int pin, unsigned int *reg, pin 52 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c shift = pin - bank->first; pin 61 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c unsigned int pin, unsigned int func) pin 68 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c ret = meson_axg_pmx_get_bank(pc, pin, &bank); pin 72 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c meson_pmx_calc_reg_and_offset(bank, pin, ®, &offset); pin 68 drivers/pinctrl/meson/pinctrl-meson.c static int meson_get_bank(struct meson_pinctrl *pc, unsigned int pin, pin 74 drivers/pinctrl/meson/pinctrl-meson.c if (pin >= pc->data->banks[i].first && pin 75 drivers/pinctrl/meson/pinctrl-meson.c pin <= pc->data->banks[i].last) { pin 93 drivers/pinctrl/meson/pinctrl-meson.c static void meson_calc_reg_and_bit(struct meson_bank *bank, unsigned int pin, pin 100 drivers/pinctrl/meson/pinctrl-meson.c *bit = desc->bit + pin - bank->first; pin 172 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin, pin 180 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pin 184 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, reg_type, ®, &bit); pin 190 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin, pin 197 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pin 201 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, reg_type, ®, &bit); pin 210 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin, pin 213 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_set_gpio_bit(pc, pin, REG_DIR, !out); pin 217 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin) pin 219 drivers/pinctrl/meson/pinctrl-meson.c int ret = meson_pinconf_get_gpio_bit(pc, pin, REG_DIR); pin 228 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin, pin 231 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_set_gpio_bit(pc, pin, REG_OUT, high); pin 235 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin) pin 237 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_get_gpio_bit(pc, pin, REG_OUT); pin 241 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin, pin 246 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_output(pc, pin, true); pin 250 drivers/pinctrl/meson/pinctrl-meson.c return meson_pinconf_set_drive(pc, pin, high); pin 254 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin) pin 260 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pin 264 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, REG_PULLEN, ®, &bit); pin 272 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_enable_bias(struct meson_pinctrl *pc, unsigned int pin, pin 279 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pin 283 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, REG_PULL, ®, &bit); pin 291 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, REG_PULLEN, ®, &bit); pin 300 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin, pin 312 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pin 316 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, REG_DS, ®, &bit); pin 330 drivers/pinctrl/meson/pinctrl-meson.c pin, drive_strength_ua); pin 341 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_set(struct pinctrl_dev *pcdev, unsigned int pin, pin 365 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_disable_bias(pc, pin); pin 368 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_enable_bias(pc, pin, true); pin 371 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_enable_bias(pc, pin, false); pin 374 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_drive_strength(pc, pin, arg); pin 377 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_output(pc, pin, arg); pin 380 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_set_output_drive(pc, pin, arg); pin 393 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_get_pull(struct meson_pinctrl *pc, unsigned int pin) pin 399 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pin 403 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, REG_PULLEN, ®, &bit); pin 412 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, REG_PULL, ®, &bit); pin 428 drivers/pinctrl/meson/pinctrl-meson.c unsigned int pin, pin 439 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_get_bank(pc, pin, &bank); pin 443 drivers/pinctrl/meson/pinctrl-meson.c meson_calc_reg_and_bit(bank, pin, REG_DS, ®, &bit); pin 470 drivers/pinctrl/meson/pinctrl-meson.c static int meson_pinconf_get(struct pinctrl_dev *pcdev, unsigned int pin, pin 482 drivers/pinctrl/meson/pinctrl-meson.c if (meson_pinconf_get_pull(pc, pin) == param) pin 488 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_drive_strength(pc, pin, &arg); pin 493 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_output(pc, pin); pin 499 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_output(pc, pin); pin 503 drivers/pinctrl/meson/pinctrl-meson.c ret = meson_pinconf_get_drive(pc, pin); pin 515 drivers/pinctrl/meson/pinctrl-meson.c dev_dbg(pc->dev, "pinconf for pin %u is %lu\n", pin, *config); pin 33 drivers/pinctrl/meson/pinctrl-meson8-pmx.c unsigned int pin, int sel_group) pin 46 drivers/pinctrl/meson/pinctrl-meson8-pmx.c if (group->pins[j] == pin) { pin 234 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c struct armada_37xx_pinctrl *info, int pin, int *grp) pin 242 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c if (group->pins[j] == pin) pin 958 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c int pin, ret; pin 979 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c for (pin = 0; pin < pin_data->nr_pins; pin++) { pin 980 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c pdesc->number = pin; pin 982 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c pin_data->name, pin); pin 775 drivers/pinctrl/nomadik/pinctrl-abx500.c const char *pin; pin 787 drivers/pinctrl/nomadik/pinctrl-abx500.c of_property_for_each_string(np, "pins", prop, pin) { pin 788 drivers/pinctrl/nomadik/pinctrl-abx500.c gpio_name = abx500_find_pin_name(pctldev, pin); pin 836 drivers/pinctrl/nomadik/pinctrl-abx500.c unsigned pin, pin 843 drivers/pinctrl/nomadik/pinctrl-abx500.c unsigned pin, pin 860 drivers/pinctrl/nomadik/pinctrl-abx500.c pin, configs[i], pin 867 drivers/pinctrl/nomadik/pinctrl-abx500.c offset = pin - 1; pin 58 drivers/pinctrl/nomadik/pinctrl-abx500.h #define ALTERNATE_FUNCTIONS(pin, sel_bit, alt1, alt2, alta, altb, altc) \ pin 60 drivers/pinctrl/nomadik/pinctrl-abx500.h .pin_number = pin, \ pin 466 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (npct->soc->altcx_pins[i].pin == offset) pin 591 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (npct->soc->altcx_pins[i].pin == gpio) pin 1234 drivers/pinctrl/nomadik/pinctrl-nomadik.c static struct nmk_gpio_chip *find_nmk_gpio_from_pin(unsigned pin) pin 1243 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (pin >= nmk_gpio->chip.base && pin 1244 drivers/pinctrl/nomadik/pinctrl-nomadik.c pin < nmk_gpio->chip.base + nmk_gpio->chip.ngpio) pin 1250 drivers/pinctrl/nomadik/pinctrl-nomadik.c static struct gpio_chip *find_gc_from_pin(unsigned pin) pin 1252 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_gpio = find_nmk_gpio_from_pin(pin); pin 1468 drivers/pinctrl/nomadik/pinctrl-nomadik.c const char *pin; pin 1479 drivers/pinctrl/nomadik/pinctrl-nomadik.c of_property_for_each_string(np, "pins", prop, pin) { pin 1480 drivers/pinctrl/nomadik/pinctrl-nomadik.c gpio_name = nmk_find_pin_name(pctldev, pin); pin 1716 drivers/pinctrl/nomadik/pinctrl-nomadik.c static int nmk_pin_config_get(struct pinctrl_dev *pctldev, unsigned pin, pin 1723 drivers/pinctrl/nomadik/pinctrl-nomadik.c static int nmk_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, pin 1743 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = find_nmk_gpio_from_pin(pin); pin 1746 drivers/pinctrl/nomadik/pinctrl-nomadik.c "invalid pin offset %d\n", pin); pin 1786 drivers/pinctrl/nomadik/pinctrl-nomadik.c pin, pin 1795 drivers/pinctrl/nomadik/pinctrl-nomadik.c pin, cfg, pullnames[pull], slpmnames[slpm], pin 1801 drivers/pinctrl/nomadik/pinctrl-nomadik.c bit = pin % NMK_GPIO_PER_CHIP; pin 28 drivers/pinctrl/nomadik/pinctrl-nomadik.h .pin = pin_num,\ pin 90 drivers/pinctrl/nomadik/pinctrl-nomadik.h unsigned short pin; pin 1412 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c static void npcm7xx_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, pin 1419 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c cfg = &pincfg[pin[i]]; pin 1442 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c struct regmap *gcr_regmap, unsigned int pin) pin 1445 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c int gpio = (pin % bank->gc.ngpio); pin 1448 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c if (pincfg[pin].flag & SLEW) pin 1452 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c if (pincfg[pin].flag & SLEWLPC) { pin 1462 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c struct regmap *gcr_regmap, unsigned int pin, pin 1465 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c int gpio = BIT(pin % bank->gc.ngpio); pin 1467 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c if (pincfg[pin].flag & SLEW) { pin 1482 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c if (pincfg[pin].flag & SLEWLPC) { pin 1502 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c unsigned int pin) pin 1506 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; pin 1507 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c int gpio = (pin % bank->gc.ngpio); pin 1512 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c flg = pincfg[pin].flag; pin 1519 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c "pin %d strength %d = %d\n", pin, val, ds); pin 1528 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c unsigned int pin, int nval) pin 1532 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; pin 1533 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c int gpio = BIT(pin % bank->gc.ngpio); pin 1535 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c v = (pincfg[pin].flag & DRIVE_STRENGTH_MASK); pin 1540 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c "setting pin %d to low strength [%d]\n", pin, nval); pin 1545 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c "setting pin %d to high strength [%d]\n", pin, nval); pin 1715 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c static int npcm7xx_config_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 1721 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; pin 1722 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c int gpio = (pin % bank->gc.ngpio); pin 1759 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c rc = npcm7xx_get_drive_strength(pctldev, pin); pin 1764 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c rc = npcm7xx_get_slew_rate(bank, npcm->gcr_regmap, pin); pin 1779 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c unsigned int pin, unsigned long config) pin 1784 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; pin 1785 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c int gpio = BIT(pin % bank->gc.ngpio); pin 1787 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c dev_dbg(bank->gc.parent, "param=%d %d[GPIO]\n", param, pin); pin 1803 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c bank->direction_input(&bank->gc, pin % bank->gc.ngpio); pin 1807 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c bank->direction_output(&bank->gc, pin % bank->gc.ngpio, arg); pin 1819 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c return npcm7xx_set_slew_rate(bank, npcm->gcr_regmap, pin, arg); pin 1821 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c return npcm7xx_set_drive_strength(npcm, pin, arg); pin 1830 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c static int npcm7xx_config_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 1837 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c rc = npcm7xx_config_set_one(npcm, pin, *configs++); pin 57 drivers/pinctrl/pinconf-generic.c unsigned pin, pin 73 drivers/pinctrl/pinconf-generic.c ret = pin_config_get_for_pin(pctldev, pin, &config); pin 110 drivers/pinctrl/pinconf-generic.c const char *gname, unsigned pin) pin 119 drivers/pinctrl/pinconf-generic.c pinconf_generic_dump_one(pctldev, s, gname, pin, conf_items, pin 124 drivers/pinctrl/pinconf-generic.c pinconf_generic_dump_one(pctldev, s, gname, pin, pin 56 drivers/pinctrl/pinconf.c int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, pin 67 drivers/pinctrl/pinconf.c return ops->pin_config_get(pctldev, pin, config); pin 111 drivers/pinctrl/pinconf.c int pin; pin 115 drivers/pinctrl/pinconf.c pin = pin_get_from_name(pctldev, pin 117 drivers/pinctrl/pinconf.c if (pin < 0) { pin 120 drivers/pinctrl/pinconf.c return pin; pin 122 drivers/pinctrl/pinconf.c setting->data.configs.group_or_pin = pin; pin 125 drivers/pinctrl/pinconf.c pin = pinctrl_get_group_selector(pctldev, pin 127 drivers/pinctrl/pinconf.c if (pin < 0) { pin 130 drivers/pinctrl/pinconf.c return pin; pin 132 drivers/pinctrl/pinconf.c setting->data.configs.group_or_pin = pin; pin 200 drivers/pinctrl/pinconf.c int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, pin 209 drivers/pinctrl/pinconf.c return ops->pin_config_set(pctldev, pin, configs, nconfigs); pin 292 drivers/pinctrl/pinconf.c struct seq_file *s, int pin) pin 297 drivers/pinctrl/pinconf.c pinconf_generic_dump_pins(pctldev, s, NULL, pin); pin 299 drivers/pinctrl/pinconf.c ops->pin_config_dbg_show(pctldev, s, pin); pin 305 drivers/pinctrl/pinconf.c unsigned i, pin; pin 316 drivers/pinctrl/pinconf.c pin = pctldev->desc->pins[i].number; pin 317 drivers/pinctrl/pinconf.c desc = pin_desc_get(pctldev, pin); pin 322 drivers/pinctrl/pinconf.c seq_printf(s, "pin %d (%s): ", pin, desc->name); pin 324 drivers/pinctrl/pinconf.c pinconf_dump_pin(pctldev, s, pin); pin 22 drivers/pinctrl/pinconf.h int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, pin 29 drivers/pinctrl/pinconf.h int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, pin 61 drivers/pinctrl/pinconf.h static inline int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, pin 105 drivers/pinctrl/pinconf.h unsigned pin); pin 113 drivers/pinctrl/pinconf.h const char *gname, unsigned pin) pin 642 drivers/pinctrl/pinctrl-amd.c unsigned int pin, pin 652 drivers/pinctrl/pinctrl-amd.c pin_reg = readl(gpio_dev->base + pin*4); pin 682 drivers/pinctrl/pinctrl-amd.c static int amd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 697 drivers/pinctrl/pinctrl-amd.c pin_reg = readl(gpio_dev->base + pin*4); pin 730 drivers/pinctrl/pinctrl-amd.c writel(pin_reg, gpio_dev->base + pin*4); pin 781 drivers/pinctrl/pinctrl-amd.c static bool amd_gpio_should_save(struct amd_gpio *gpio_dev, unsigned int pin) pin 783 drivers/pinctrl/pinctrl-amd.c const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); pin 793 drivers/pinctrl/pinctrl-amd.c gpiochip_line_is_irq(&gpio_dev->gc, pin)) pin 806 drivers/pinctrl/pinctrl-amd.c int pin = desc->pins[i].number; pin 808 drivers/pinctrl/pinctrl-amd.c if (!amd_gpio_should_save(gpio_dev, pin)) pin 811 drivers/pinctrl/pinctrl-amd.c gpio_dev->saved_regs[i] = readl(gpio_dev->base + pin*4); pin 824 drivers/pinctrl/pinctrl-amd.c int pin = desc->pins[i].number; pin 826 drivers/pinctrl/pinctrl-amd.c if (!amd_gpio_should_save(gpio_dev, pin)) pin 829 drivers/pinctrl/pinctrl-amd.c writel(gpio_dev->saved_regs[i], gpio_dev->base + pin*4); pin 406 drivers/pinctrl/pinctrl-artpec6.c static unsigned int artpec6_pmx_reg_offset(unsigned int pin) pin 411 drivers/pinctrl/pinctrl-artpec6.c if (pin <= pin_register[i].end) { pin 412 drivers/pinctrl/pinctrl-artpec6.c return (pin - pin_register[i].start) * 4 + pin 420 drivers/pinctrl/pinctrl-artpec6.c pr_err("%s: Impossible pin %d\n", __func__, pin); pin 708 drivers/pinctrl/pinctrl-artpec6.c unsigned int pin) pin 711 drivers/pinctrl/pinctrl-artpec6.c unsigned int reg = artpec6_pmx_reg_offset(pin); pin 714 drivers/pinctrl/pinctrl-artpec6.c if (pin >= 32) pin 733 drivers/pinctrl/pinctrl-artpec6.c static int artpec6_pconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 741 drivers/pinctrl/pinctrl-artpec6.c if (pin >= pmx->num_pins) { pin 743 drivers/pinctrl/pinctrl-artpec6.c pmx->pins[pin].name); pin 748 drivers/pinctrl/pinctrl-artpec6.c pmx->pins[pin].name); pin 751 drivers/pinctrl/pinctrl-artpec6.c regval = readl(pmx->base + artpec6_pmx_reg_offset(pin)); pin 794 drivers/pinctrl/pinctrl-artpec6.c static int artpec6_pconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 805 drivers/pinctrl/pinctrl-artpec6.c if (pin >= pmx->num_pins) { pin 807 drivers/pinctrl/pinctrl-artpec6.c pmx->pins[pin].name); pin 812 drivers/pinctrl/pinctrl-artpec6.c pmx->pins[pin].name); pin 814 drivers/pinctrl/pinctrl-artpec6.c reg = pmx->base + artpec6_pmx_reg_offset(pin); pin 336 drivers/pinctrl/pinctrl-as3722.c unsigned pin, unsigned long *config) pin 347 drivers/pinctrl/pinctrl-as3722.c if (!(as_pci->gpio_control[pin].mode_prop & prop)) pin 373 drivers/pinctrl/pinctrl-as3722.c if (as_pci->gpio_control[pin].mode_prop & prop) pin 381 drivers/pinctrl/pinctrl-as3722.c unsigned pin, unsigned long *configs, pin 391 drivers/pinctrl/pinctrl-as3722.c mode_prop = as_pci->gpio_control[pin].mode_prop; pin 422 drivers/pinctrl/pinctrl-as3722.c as_pci->gpio_control[pin].mode_prop = mode_prop; pin 80 drivers/pinctrl/pinctrl-at91-pio4.c u32 pin; pin 169 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[d->hwirq]; pin 172 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_MSKR, pin 173 drivers/pinctrl/pinctrl-at91-pio4.c BIT(pin->line)); pin 174 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR); pin 203 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR, reg); pin 211 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[d->hwirq]; pin 213 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_IDR, pin 214 drivers/pinctrl/pinctrl-at91-pio4.c BIT(pin->line)); pin 220 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[d->hwirq]; pin 222 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_IER, pin 223 drivers/pinctrl/pinctrl-at91-pio4.c BIT(pin->line)); pin 308 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; pin 311 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_MSKR, pin 312 drivers/pinctrl/pinctrl-at91-pio4.c BIT(pin->line)); pin 313 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR); pin 315 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR, reg); pin 323 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; pin 326 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_PDSR); pin 328 drivers/pinctrl/pinctrl-at91-pio4.c return !!(reg & BIT(pin->line)); pin 335 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; pin 338 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, pin 340 drivers/pinctrl/pinctrl-at91-pio4.c BIT(pin->line)); pin 342 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_MSKR, pin 343 drivers/pinctrl/pinctrl-at91-pio4.c BIT(pin->line)); pin 344 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR); pin 346 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR, reg); pin 354 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; pin 356 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, pin 358 drivers/pinctrl/pinctrl-at91-pio4.c BIT(pin->line)); pin 423 drivers/pinctrl/pinctrl-at91-pio4.c *pins = (unsigned *)&atmel_pioctrl->groups[selector].pin; pin 430 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pctl_find_group_by_pin(struct pinctrl_dev *pctldev, unsigned pin) pin 438 drivers/pinctrl/pinctrl-at91-pio4.c if (grp->pin == pin) pin 629 drivers/pinctrl/pinctrl-at91-pio4.c unsigned pin; pin 635 drivers/pinctrl/pinctrl-at91-pio4.c pin = atmel_pioctrl->groups[group].pin; pin 636 drivers/pinctrl/pinctrl-at91-pio4.c conf = atmel_pin_config_read(pctldev, pin); pin 639 drivers/pinctrl/pinctrl-at91-pio4.c dev_dbg(pctldev->dev, "pin: %u, conf: 0x%08x\n", pin, conf); pin 640 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pin_config_write(pctldev, pin, conf); pin 659 drivers/pinctrl/pinctrl-at91-pio4.c unsigned pin_id = grp->pin; pin 712 drivers/pinctrl/pinctrl-at91-pio4.c unsigned bank, pin, pin_id = grp->pin; pin 769 drivers/pinctrl/pinctrl-at91-pio4.c pin = ATMEL_PIO_LINE(pin_id); pin 770 drivers/pinctrl/pinctrl-at91-pio4.c mask = 1 << pin; pin 1018 drivers/pinctrl/pinctrl-at91-pio4.c group->pin = pin_desc[i].number; pin 123 drivers/pinctrl/pinctrl-at91.c uint32_t pin; pin 172 drivers/pinctrl/pinctrl-at91.c bool (*get_deglitch)(void __iomem *pio, unsigned pin); pin 174 drivers/pinctrl/pinctrl-at91.c bool (*get_debounce)(void __iomem *pio, unsigned pin, u32 *div); pin 176 drivers/pinctrl/pinctrl-at91.c bool (*get_pulldown)(void __iomem *pio, unsigned pin); pin 178 drivers/pinctrl/pinctrl-at91.c bool (*get_schmitt_trig)(void __iomem *pio, unsigned pin); pin 180 drivers/pinctrl/pinctrl-at91.c unsigned (*get_drivestrength)(void __iomem *pio, unsigned pin); pin 181 drivers/pinctrl/pinctrl-at91.c void (*set_drivestrength)(void __iomem *pio, unsigned pin, pin 183 drivers/pinctrl/pinctrl-at91.c unsigned (*get_slewrate)(void __iomem *pio, unsigned pin); pin 184 drivers/pinctrl/pinctrl-at91.c void (*set_slewrate)(void __iomem *pio, unsigned pin, u32 slewrate); pin 346 drivers/pinctrl/pinctrl-at91.c static inline int pin_to_bank(unsigned pin) pin 348 drivers/pinctrl/pinctrl-at91.c return pin /= MAX_NB_GPIO_PER_BANK; pin 351 drivers/pinctrl/pinctrl-at91.c static unsigned pin_to_mask(unsigned int pin) pin 353 drivers/pinctrl/pinctrl-at91.c return 1 << pin; pin 356 drivers/pinctrl/pinctrl-at91.c static unsigned two_bit_pin_value_shift_amount(unsigned int pin) pin 360 drivers/pinctrl/pinctrl-at91.c return 2*((pin >= MAX_NB_GPIO_PER_BANK/2) pin 361 drivers/pinctrl/pinctrl-at91.c ? pin - MAX_NB_GPIO_PER_BANK/2 : pin); pin 364 drivers/pinctrl/pinctrl-at91.c static unsigned sama5d3_get_drive_register(unsigned int pin) pin 368 drivers/pinctrl/pinctrl-at91.c return (pin >= MAX_NB_GPIO_PER_BANK/2) pin 372 drivers/pinctrl/pinctrl-at91.c static unsigned at91sam9x5_get_drive_register(unsigned int pin) pin 376 drivers/pinctrl/pinctrl-at91.c return (pin >= MAX_NB_GPIO_PER_BANK/2) pin 385 drivers/pinctrl/pinctrl-at91.c static unsigned at91_mux_get_pullup(void __iomem *pio, unsigned pin) pin 387 drivers/pinctrl/pinctrl-at91.c return !((readl_relaxed(pio + PIO_PUSR) >> pin) & 0x1); pin 398 drivers/pinctrl/pinctrl-at91.c static bool at91_mux_get_output(void __iomem *pio, unsigned int pin, bool *val) pin 400 drivers/pinctrl/pinctrl-at91.c *val = (readl_relaxed(pio + PIO_ODSR) >> pin) & 0x1; pin 401 drivers/pinctrl/pinctrl-at91.c return (readl_relaxed(pio + PIO_OSR) >> pin) & 0x1; pin 411 drivers/pinctrl/pinctrl-at91.c static unsigned at91_mux_get_multidrive(void __iomem *pio, unsigned pin) pin 413 drivers/pinctrl/pinctrl-at91.c return (readl_relaxed(pio + PIO_MDSR) >> pin) & 0x1; pin 485 drivers/pinctrl/pinctrl-at91.c static bool at91_mux_get_deglitch(void __iomem *pio, unsigned pin) pin 487 drivers/pinctrl/pinctrl-at91.c return (readl_relaxed(pio + PIO_IFSR) >> pin) & 0x1; pin 495 drivers/pinctrl/pinctrl-at91.c static bool at91_mux_pio3_get_deglitch(void __iomem *pio, unsigned pin) pin 497 drivers/pinctrl/pinctrl-at91.c if ((readl_relaxed(pio + PIO_IFSR) >> pin) & 0x1) pin 498 drivers/pinctrl/pinctrl-at91.c return !((readl_relaxed(pio + PIO_IFSCSR) >> pin) & 0x1); pin 510 drivers/pinctrl/pinctrl-at91.c static bool at91_mux_pio3_get_debounce(void __iomem *pio, unsigned pin, u32 *div) pin 514 drivers/pinctrl/pinctrl-at91.c return ((readl_relaxed(pio + PIO_IFSR) >> pin) & 0x1) && pin 515 drivers/pinctrl/pinctrl-at91.c ((readl_relaxed(pio + PIO_IFSCSR) >> pin) & 0x1); pin 529 drivers/pinctrl/pinctrl-at91.c static bool at91_mux_pio3_get_pulldown(void __iomem *pio, unsigned pin) pin 531 drivers/pinctrl/pinctrl-at91.c return !((readl_relaxed(pio + PIO_PPDSR) >> pin) & 0x1); pin 547 drivers/pinctrl/pinctrl-at91.c static bool at91_mux_pio3_get_schmitt_trig(void __iomem *pio, unsigned pin) pin 549 drivers/pinctrl/pinctrl-at91.c return (readl_relaxed(pio + PIO_SCHMITT) >> pin) & 0x1; pin 552 drivers/pinctrl/pinctrl-at91.c static inline u32 read_drive_strength(void __iomem *reg, unsigned pin) pin 556 drivers/pinctrl/pinctrl-at91.c tmp = tmp >> two_bit_pin_value_shift_amount(pin); pin 562 drivers/pinctrl/pinctrl-at91.c unsigned pin) pin 565 drivers/pinctrl/pinctrl-at91.c sama5d3_get_drive_register(pin), pin); pin 576 drivers/pinctrl/pinctrl-at91.c unsigned pin) pin 579 drivers/pinctrl/pinctrl-at91.c at91sam9x5_get_drive_register(pin), pin); pin 589 drivers/pinctrl/pinctrl-at91.c unsigned pin) pin 593 drivers/pinctrl/pinctrl-at91.c if (tmp & BIT(pin)) pin 599 drivers/pinctrl/pinctrl-at91.c static unsigned at91_mux_sam9x60_get_slewrate(void __iomem *pio, unsigned pin) pin 603 drivers/pinctrl/pinctrl-at91.c if ((tmp & BIT(pin))) pin 609 drivers/pinctrl/pinctrl-at91.c static void set_drive_strength(void __iomem *reg, unsigned pin, u32 strength) pin 612 drivers/pinctrl/pinctrl-at91.c unsigned shift = two_bit_pin_value_shift_amount(pin); pin 620 drivers/pinctrl/pinctrl-at91.c static void at91_mux_sama5d3_set_drivestrength(void __iomem *pio, unsigned pin, pin 628 drivers/pinctrl/pinctrl-at91.c set_drive_strength(pio + sama5d3_get_drive_register(pin), pin, setting); pin 631 drivers/pinctrl/pinctrl-at91.c static void at91_mux_sam9x5_set_drivestrength(void __iomem *pio, unsigned pin, pin 642 drivers/pinctrl/pinctrl-at91.c set_drive_strength(pio + at91sam9x5_get_drive_register(pin), pin, pin 646 drivers/pinctrl/pinctrl-at91.c static void at91_mux_sam9x60_set_drivestrength(void __iomem *pio, unsigned pin, pin 660 drivers/pinctrl/pinctrl-at91.c tmp &= ~BIT(pin); pin 662 drivers/pinctrl/pinctrl-at91.c tmp |= BIT(pin); pin 667 drivers/pinctrl/pinctrl-at91.c static void at91_mux_sam9x60_set_slewrate(void __iomem *pio, unsigned pin, pin 678 drivers/pinctrl/pinctrl-at91.c tmp &= ~BIT(pin); pin 680 drivers/pinctrl/pinctrl-at91.c tmp |= BIT(pin); pin 754 drivers/pinctrl/pinctrl-at91.c static void at91_pin_dbg(const struct device *dev, const struct at91_pmx_pin *pin) pin 756 drivers/pinctrl/pinctrl-at91.c if (pin->mux) { pin 758 drivers/pinctrl/pinctrl-at91.c pin->bank + 'A', pin->pin, pin->mux - 1 + 'A', pin->conf); pin 761 drivers/pinctrl/pinctrl-at91.c pin->bank + 'A', pin->pin, pin->conf); pin 766 drivers/pinctrl/pinctrl-at91.c int index, const struct at91_pmx_pin *pin) pin 771 drivers/pinctrl/pinctrl-at91.c if (pin->bank >= gpio_banks) { pin 773 drivers/pinctrl/pinctrl-at91.c name, index, pin->bank, gpio_banks); pin 777 drivers/pinctrl/pinctrl-at91.c if (!gpio_chips[pin->bank]) { pin 779 drivers/pinctrl/pinctrl-at91.c name, index, pin->bank); pin 783 drivers/pinctrl/pinctrl-at91.c if (pin->pin >= MAX_NB_GPIO_PER_BANK) { pin 785 drivers/pinctrl/pinctrl-at91.c name, index, pin->pin, MAX_NB_GPIO_PER_BANK); pin 789 drivers/pinctrl/pinctrl-at91.c if (!pin->mux) pin 792 drivers/pinctrl/pinctrl-at91.c mux = pin->mux - 1; pin 800 drivers/pinctrl/pinctrl-at91.c if (!(info->mux_mask[pin->bank * info->nmux + mux] & 1 << pin->pin)) { pin 802 drivers/pinctrl/pinctrl-at91.c name, index, mux, pin->bank + 'A', pin->pin); pin 825 drivers/pinctrl/pinctrl-at91.c const struct at91_pmx_pin *pin; pin 837 drivers/pinctrl/pinctrl-at91.c pin = &pins_conf[i]; pin 838 drivers/pinctrl/pinctrl-at91.c ret = pin_check_config(info, info->groups[group].name, i, pin); pin 844 drivers/pinctrl/pinctrl-at91.c pin = &pins_conf[i]; pin 845 drivers/pinctrl/pinctrl-at91.c at91_pin_dbg(info->dev, pin); pin 846 drivers/pinctrl/pinctrl-at91.c pio = pin_to_controller(info, pin->bank); pin 851 drivers/pinctrl/pinctrl-at91.c mask = pin_to_mask(pin->pin); pin 853 drivers/pinctrl/pinctrl-at91.c switch (pin->mux) { pin 874 drivers/pinctrl/pinctrl-at91.c if (pin->mux) pin 964 drivers/pinctrl/pinctrl-at91.c unsigned pin; pin 975 drivers/pinctrl/pinctrl-at91.c pin = pin_id % MAX_NB_GPIO_PER_BANK; pin 977 drivers/pinctrl/pinctrl-at91.c if (at91_mux_get_multidrive(pio, pin)) pin 980 drivers/pinctrl/pinctrl-at91.c if (at91_mux_get_pullup(pio, pin)) pin 983 drivers/pinctrl/pinctrl-at91.c if (info->ops->get_deglitch && info->ops->get_deglitch(pio, pin)) pin 985 drivers/pinctrl/pinctrl-at91.c if (info->ops->get_debounce && info->ops->get_debounce(pio, pin, &div)) pin 987 drivers/pinctrl/pinctrl-at91.c if (info->ops->get_pulldown && info->ops->get_pulldown(pio, pin)) pin 989 drivers/pinctrl/pinctrl-at91.c if (info->ops->get_schmitt_trig && info->ops->get_schmitt_trig(pio, pin)) pin 992 drivers/pinctrl/pinctrl-at91.c *config |= (info->ops->get_drivestrength(pio, pin) pin 995 drivers/pinctrl/pinctrl-at91.c *config |= (info->ops->get_slewrate(pio, pin) << SLEWRATE_SHIFT); pin 996 drivers/pinctrl/pinctrl-at91.c if (at91_mux_get_output(pio, pin, &out)) pin 1011 drivers/pinctrl/pinctrl-at91.c unsigned pin; pin 1024 drivers/pinctrl/pinctrl-at91.c pin = pin_id % MAX_NB_GPIO_PER_BANK; pin 1025 drivers/pinctrl/pinctrl-at91.c mask = pin_to_mask(pin); pin 1044 drivers/pinctrl/pinctrl-at91.c info->ops->set_drivestrength(pio, pin, pin 1048 drivers/pinctrl/pinctrl-at91.c info->ops->set_slewrate(pio, pin, pin 1176 drivers/pinctrl/pinctrl-at91.c struct at91_pmx_pin *pin; pin 1199 drivers/pinctrl/pinctrl-at91.c pin = grp->pins_conf = devm_kcalloc(info->dev, pin 1209 drivers/pinctrl/pinctrl-at91.c pin->bank = be32_to_cpu(*list++); pin 1210 drivers/pinctrl/pinctrl-at91.c pin->pin = be32_to_cpu(*list++); pin 1211 drivers/pinctrl/pinctrl-at91.c grp->pins[j] = pin->bank * MAX_NB_GPIO_PER_BANK + pin->pin; pin 1212 drivers/pinctrl/pinctrl-at91.c pin->mux = be32_to_cpu(*list++); pin 1213 drivers/pinctrl/pinctrl-at91.c pin->conf = be32_to_cpu(*list++); pin 1215 drivers/pinctrl/pinctrl-at91.c at91_pin_dbg(info->dev, pin); pin 1216 drivers/pinctrl/pinctrl-at91.c pin++; pin 345 drivers/pinctrl/pinctrl-axp209.c int i, ret, pin, npins = pctl->desc->npins; pin 367 drivers/pinctrl/pinctrl-axp209.c for (pin = 0; pin < npins; pin++) pin 368 drivers/pinctrl/pinctrl-axp209.c pctl->funcs[i].groups[pin] = pctl->desc->pins[pin].name; pin 990 drivers/pinctrl/pinctrl-bm1880.c unsigned int pin = pgrp->pins[i]; pin 991 drivers/pinctrl/pinctrl-bm1880.c u32 offset = (pin >> 1) << 2; pin 992 drivers/pinctrl/pinctrl-bm1880.c u32 mux_offset = ((!((pin + 1) & 1) << 4) + 4); pin 1005 drivers/pinctrl/pinctrl-bm1880.c #define BM1880_PINCONF(pin, idx) ((!((pin + 1) & 1) << 4) + idx) pin 1006 drivers/pinctrl/pinctrl-bm1880.c #define BM1880_PINCONF_PULLCTRL(pin) BM1880_PINCONF(pin, 0) pin 1007 drivers/pinctrl/pinctrl-bm1880.c #define BM1880_PINCONF_PULLUP(pin) BM1880_PINCONF(pin, 1) pin 1008 drivers/pinctrl/pinctrl-bm1880.c #define BM1880_PINCONF_PULLDOWN(pin) BM1880_PINCONF(pin, 2) pin 1009 drivers/pinctrl/pinctrl-bm1880.c #define BM1880_PINCONF_DRV(pin) BM1880_PINCONF(pin, 6) pin 1010 drivers/pinctrl/pinctrl-bm1880.c #define BM1880_PINCONF_SCHMITT(pin) BM1880_PINCONF(pin, 9) pin 1011 drivers/pinctrl/pinctrl-bm1880.c #define BM1880_PINCONF_SLEW(pin) BM1880_PINCONF(pin, 10) pin 1149 drivers/pinctrl/pinctrl-bm1880.c unsigned int pin, pin 1158 drivers/pinctrl/pinctrl-bm1880.c offset = (pin >> 1) << 2; pin 1163 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_PULLUP(pin); pin 1167 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_PULLDOWN(pin); pin 1171 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_PULLCTRL(pin); pin 1175 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_SCHMITT(pin); pin 1179 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_SLEW(pin); pin 1183 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_DRV(pin); pin 1184 drivers/pinctrl/pinctrl-bm1880.c ret = bm1880_pinconf_drv_get(pctrl->pinconf[pin].drv_bits, pin 1201 drivers/pinctrl/pinctrl-bm1880.c unsigned int pin, pin 1209 drivers/pinctrl/pinctrl-bm1880.c offset = (pin >> 1) << 2; pin 1218 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_PULLUP(pin); pin 1222 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_PULLDOWN(pin); pin 1226 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_PULLCTRL(pin); pin 1230 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_SCHMITT(pin); pin 1237 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_SLEW(pin); pin 1244 drivers/pinctrl/pinctrl-bm1880.c bit_offset = BM1880_PINCONF_DRV(pin); pin 1246 drivers/pinctrl/pinctrl-bm1880.c pctrl->pinconf[pin].drv_bits, pin 93 drivers/pinctrl/pinctrl-coh901.c #define U300_PIN_REG(pin, reg) \ pin 94 drivers/pinctrl/pinctrl-coh901.c (gpio->base + (pin >> 3) * gpio->stride + gpio->reg) pin 100 drivers/pinctrl/pinctrl-coh901.c #define U300_PIN_BIT(pin) \ pin 101 drivers/pinctrl/pinctrl-coh901.c (1 << (pin & 0x07)) pin 54 drivers/pinctrl/pinctrl-falcon.c .pin = a, \ pin 242 drivers/pinctrl/pinctrl-falcon.c unsigned pin, unsigned long *config) pin 246 drivers/pinctrl/pinctrl-falcon.c void __iomem *mem = info->membase[PORT(pin)]; pin 251 drivers/pinctrl/pinctrl-falcon.c !!pad_getbit(mem, LTQ_PADC_DCC, PORT_PIN(pin))); pin 256 drivers/pinctrl/pinctrl-falcon.c !!pad_getbit(mem, LTQ_PADC_SRC, PORT_PIN(pin))); pin 260 drivers/pinctrl/pinctrl-falcon.c if (pad_getbit(mem, LTQ_PADC_PDEN, PORT_PIN(pin))) pin 262 drivers/pinctrl/pinctrl-falcon.c else if (pad_getbit(mem, LTQ_PADC_PUEN, PORT_PIN(pin))) pin 277 drivers/pinctrl/pinctrl-falcon.c unsigned pin, unsigned long *configs, pin 283 drivers/pinctrl/pinctrl-falcon.c void __iomem *mem = info->membase[PORT(pin)]; pin 313 drivers/pinctrl/pinctrl-falcon.c pad_w32(mem, BIT(PORT_PIN(pin)), reg); pin 314 drivers/pinctrl/pinctrl-falcon.c if (!(pad_r32(mem, reg) & BIT(PORT_PIN(pin)))) pin 381 drivers/pinctrl/pinctrl-falcon.c int port = PORT(info->mfp[mfp].pin); pin 387 drivers/pinctrl/pinctrl-falcon.c LTQ_PADC_MUX(PORT_PIN(info->mfp[mfp].pin))); pin 33 drivers/pinctrl/pinctrl-gemini.c unsigned int pin; pin 2304 drivers/pinctrl/pinctrl-gemini.c .pin = _n, \ pin 2364 drivers/pinctrl/pinctrl-gemini.c unsigned int pin) pin 2371 drivers/pinctrl/pinctrl-gemini.c if (retconf->pin == pin) pin 2377 drivers/pinctrl/pinctrl-gemini.c static int gemini_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 2387 drivers/pinctrl/pinctrl-gemini.c conf = gemini_get_pin_conf(pmx, pin); pin 2402 drivers/pinctrl/pinctrl-gemini.c static int gemini_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 2420 drivers/pinctrl/pinctrl-gemini.c conf = gemini_get_pin_conf(pmx, pin); pin 2423 drivers/pinctrl/pinctrl-gemini.c "invalid pin for skew delay %d\n", pin); pin 2429 drivers/pinctrl/pinctrl-gemini.c pin, conf->mask, arg); pin 1604 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin, u8 reg, bool set) pin 1606 drivers/pinctrl/pinctrl-ingenic.c unsigned int idx = pin % PINS_PER_GPIO_CHIP; pin 1607 drivers/pinctrl/pinctrl-ingenic.c unsigned int offt = pin / PINS_PER_GPIO_CHIP; pin 1614 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin, u8 reg, bool set) pin 1616 drivers/pinctrl/pinctrl-ingenic.c unsigned int idx = pin % PINS_PER_GPIO_CHIP; pin 1623 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin) pin 1625 drivers/pinctrl/pinctrl-ingenic.c regmap_write(jzpc->map, X1000_GPIO_PZ_GID2LD, pin / PINS_PER_GPIO_CHIP); pin 1629 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin, u8 reg) pin 1631 drivers/pinctrl/pinctrl-ingenic.c unsigned int idx = pin % PINS_PER_GPIO_CHIP; pin 1632 drivers/pinctrl/pinctrl-ingenic.c unsigned int offt = pin / PINS_PER_GPIO_CHIP; pin 1644 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin = gc->base + offset; pin 1647 drivers/pinctrl/pinctrl-ingenic.c return ingenic_get_pin_config(jzpc, pin, JZ4760_GPIO_PAT1); pin 1649 drivers/pinctrl/pinctrl-ingenic.c if (ingenic_get_pin_config(jzpc, pin, JZ4740_GPIO_SELECT)) pin 1652 drivers/pinctrl/pinctrl-ingenic.c return !ingenic_get_pin_config(jzpc, pin, JZ4740_GPIO_DIR); pin 1664 drivers/pinctrl/pinctrl-ingenic.c int pin, int func) pin 1666 drivers/pinctrl/pinctrl-ingenic.c unsigned int idx = pin % PINS_PER_GPIO_CHIP; pin 1667 drivers/pinctrl/pinctrl-ingenic.c unsigned int offt = pin / PINS_PER_GPIO_CHIP; pin 1673 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin(jzpc, pin, JZ4760_GPIO_INT, false); pin 1674 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin(jzpc, pin, GPIO_MSK, false); pin 1675 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin(jzpc, pin, JZ4760_GPIO_PAT1, func & 0x2); pin 1676 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin(jzpc, pin, JZ4760_GPIO_PAT0, func & 0x1); pin 1677 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin_load(jzpc, pin); pin 1679 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4760_GPIO_INT, false); pin 1680 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, GPIO_MSK, false); pin 1681 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4760_GPIO_PAT1, func & 0x2); pin 1682 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4760_GPIO_PAT0, func & 0x1); pin 1684 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4740_GPIO_FUNC, true); pin 1685 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4740_GPIO_TRIG, func & 0x2); pin 1686 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4740_GPIO_SELECT, func > 0); pin 1722 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin, bool input) pin 1725 drivers/pinctrl/pinctrl-ingenic.c unsigned int idx = pin % PINS_PER_GPIO_CHIP; pin 1726 drivers/pinctrl/pinctrl-ingenic.c unsigned int offt = pin / PINS_PER_GPIO_CHIP; pin 1732 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin(jzpc, pin, JZ4760_GPIO_INT, false); pin 1733 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin(jzpc, pin, GPIO_MSK, true); pin 1734 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin(jzpc, pin, JZ4760_GPIO_PAT1, input); pin 1735 drivers/pinctrl/pinctrl-ingenic.c ingenic_shadow_config_pin_load(jzpc, pin); pin 1737 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4760_GPIO_INT, false); pin 1738 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, GPIO_MSK, true); pin 1739 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4760_GPIO_PAT1, input); pin 1741 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4740_GPIO_SELECT, false); pin 1742 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4740_GPIO_DIR, !input); pin 1743 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4740_GPIO_FUNC, false); pin 1758 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin, unsigned long *config) pin 1762 drivers/pinctrl/pinctrl-ingenic.c unsigned int idx = pin % PINS_PER_GPIO_CHIP; pin 1763 drivers/pinctrl/pinctrl-ingenic.c unsigned int offt = pin / PINS_PER_GPIO_CHIP; pin 1767 drivers/pinctrl/pinctrl-ingenic.c pull = !ingenic_get_pin_config(jzpc, pin, JZ4760_GPIO_PEN); pin 1769 drivers/pinctrl/pinctrl-ingenic.c pull = !ingenic_get_pin_config(jzpc, pin, JZ4740_GPIO_PULL_DIS); pin 1796 drivers/pinctrl/pinctrl-ingenic.c unsigned int pin, bool enabled) pin 1799 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4760_GPIO_PEN, !enabled); pin 1801 drivers/pinctrl/pinctrl-ingenic.c ingenic_config_pin(jzpc, pin, JZ4740_GPIO_PULL_DIS, !enabled); pin 1804 drivers/pinctrl/pinctrl-ingenic.c static int ingenic_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 1808 drivers/pinctrl/pinctrl-ingenic.c unsigned int idx = pin % PINS_PER_GPIO_CHIP; pin 1809 drivers/pinctrl/pinctrl-ingenic.c unsigned int offt = pin / PINS_PER_GPIO_CHIP; pin 1828 drivers/pinctrl/pinctrl-ingenic.c ingenic_set_bias(jzpc, pin, false); pin 1836 drivers/pinctrl/pinctrl-ingenic.c ingenic_set_bias(jzpc, pin, true); pin 1844 drivers/pinctrl/pinctrl-ingenic.c ingenic_set_bias(jzpc, pin, true); pin 75 drivers/pinctrl/pinctrl-lantiq.c const char *group, *pin; pin 115 drivers/pinctrl/pinctrl-lantiq.c of_property_for_each_string(np, "lantiq,pins", prop, pin) { pin 120 drivers/pinctrl/pinctrl-lantiq.c (*map)->name = pin; pin 121 drivers/pinctrl/pinctrl-lantiq.c (*map)->data.configs.group_or_pin = pin; pin 225 drivers/pinctrl/pinctrl-lantiq.c static int match_mfp(const struct ltq_pinmux_info *info, int pin) pin 229 drivers/pinctrl/pinctrl-lantiq.c if (info->mfp[i].pin == pin) pin 240 drivers/pinctrl/pinctrl-lantiq.c int i, pin, ret = 0; pin 242 drivers/pinctrl/pinctrl-lantiq.c pin = match_mfp(info, grp->pins[i]); pin 243 drivers/pinctrl/pinctrl-lantiq.c if (pin < 0) { pin 248 drivers/pinctrl/pinctrl-lantiq.c ret = match_mux(&info->mfp[pin], mux); pin 251 drivers/pinctrl/pinctrl-lantiq.c mux, pin); pin 264 drivers/pinctrl/pinctrl-lantiq.c int i, pin, pin_func, ret; pin 273 drivers/pinctrl/pinctrl-lantiq.c pin = match_mfp(info, pin_grp->pins[i]); pin 274 drivers/pinctrl/pinctrl-lantiq.c if (pin < 0) { pin 279 drivers/pinctrl/pinctrl-lantiq.c pin_func = match_mux(&info->mfp[pin], pin_grp->mux); pin 280 drivers/pinctrl/pinctrl-lantiq.c ret = info->apply_mux(pctrldev, pin, pin_func); pin 284 drivers/pinctrl/pinctrl-lantiq.c pin_func, pin); pin 293 drivers/pinctrl/pinctrl-lantiq.c unsigned pin) pin 296 drivers/pinctrl/pinctrl-lantiq.c int mfp = match_mfp(info, pin); pin 300 drivers/pinctrl/pinctrl-lantiq.c dev_err(info->dev, "could not find mfp for pin %d\n", pin); pin 45 drivers/pinctrl/pinctrl-lantiq.h const unsigned int pin; pin 102 drivers/pinctrl/pinctrl-lantiq.h int (*apply_mux)(struct pinctrl_dev *pctrldev, int pin, int mux); pin 211 drivers/pinctrl/pinctrl-lpc18xx.c #define LPC_P(port, pin, f0, f1, f2, f3, f4, f5, f6, f7, a, t) \ pin 212 drivers/pinctrl/pinctrl-lpc18xx.c static struct lpc18xx_pin_caps lpc18xx_pin_p##port##_##pin = { \ pin 213 drivers/pinctrl/pinctrl-lpc18xx.c .offset = 0x##port * 32 * 4 + pin * 4, \ pin 423 drivers/pinctrl/pinctrl-lpc18xx.c #define LPC18XX_PIN_P(port, pin) { \ pin 424 drivers/pinctrl/pinctrl-lpc18xx.c .number = 0x##port * 32 + pin, \ pin 425 drivers/pinctrl/pinctrl-lpc18xx.c .name = "p"#port"_"#pin, \ pin 426 drivers/pinctrl/pinctrl-lpc18xx.c .drv_data = &lpc18xx_pin_p##port##_##pin \ pin 676 drivers/pinctrl/pinctrl-lpc18xx.c unsigned pin) pin 680 drivers/pinctrl/pinctrl-lpc18xx.c if (pin == PIN_I2C0_SCL) pin 721 drivers/pinctrl/pinctrl-lpc18xx.c static int lpc18xx_pin_to_gpio(struct pinctrl_dev *pctldev, unsigned pin) pin 725 drivers/pinctrl/pinctrl-lpc18xx.c range = pinctrl_find_gpio_range_from_pin_nolock(pctldev, pin); pin 729 drivers/pinctrl/pinctrl-lpc18xx.c return pin - range->pin_base + range->base; pin 760 drivers/pinctrl/pinctrl-lpc18xx.c int *arg, unsigned pin) pin 766 drivers/pinctrl/pinctrl-lpc18xx.c gpio = lpc18xx_pin_to_gpio(pctldev, pin); pin 785 drivers/pinctrl/pinctrl-lpc18xx.c int *arg, u32 reg, unsigned pin, pin 851 drivers/pinctrl/pinctrl-lpc18xx.c return lpc18xx_pconf_get_gpio_pin_int(pctldev, arg, pin); pin 860 drivers/pinctrl/pinctrl-lpc18xx.c static struct lpc18xx_pin_caps *lpc18xx_get_pin_caps(unsigned pin) pin 865 drivers/pinctrl/pinctrl-lpc18xx.c if (lpc18xx_pins[i].number == pin) pin 872 drivers/pinctrl/pinctrl-lpc18xx.c static int lpc18xx_pconf_get(struct pinctrl_dev *pctldev, unsigned pin, pin 881 drivers/pinctrl/pinctrl-lpc18xx.c pin_cap = lpc18xx_get_pin_caps(pin); pin 888 drivers/pinctrl/pinctrl-lpc18xx.c ret = lpc18xx_pconf_get_i2c0(param, &arg, reg, pin); pin 892 drivers/pinctrl/pinctrl-lpc18xx.c ret = lpc18xx_pconf_get_pin(pctldev, param, &arg, reg, pin, pin_cap); pin 933 drivers/pinctrl/pinctrl-lpc18xx.c unsigned pin) pin 937 drivers/pinctrl/pinctrl-lpc18xx.c if (pin == PIN_I2C0_SCL) pin 982 drivers/pinctrl/pinctrl-lpc18xx.c u32 param_val, unsigned pin) pin 991 drivers/pinctrl/pinctrl-lpc18xx.c gpio = lpc18xx_pin_to_gpio(pctldev, pin); pin 1008 drivers/pinctrl/pinctrl-lpc18xx.c u32 param_val, u32 *reg, unsigned pin, pin 1075 drivers/pinctrl/pinctrl-lpc18xx.c return lpc18xx_pconf_set_gpio_pin_int(pctldev, param_val, pin); pin 1085 drivers/pinctrl/pinctrl-lpc18xx.c static int lpc18xx_pconf_set(struct pinctrl_dev *pctldev, unsigned pin, pin 1096 drivers/pinctrl/pinctrl-lpc18xx.c pin_cap = lpc18xx_get_pin_caps(pin); pin 1107 drivers/pinctrl/pinctrl-lpc18xx.c ret = lpc18xx_pconf_set_i2c0(pctldev, param, param_val, ®, pin); pin 1111 drivers/pinctrl/pinctrl-lpc18xx.c ret = lpc18xx_pconf_set_pin(pctldev, param, param_val, ®, pin, pin_cap); pin 1156 drivers/pinctrl/pinctrl-lpc18xx.c struct lpc18xx_pin_caps *pin = lpc18xx_pins[group].drv_data; pin 1161 drivers/pinctrl/pinctrl-lpc18xx.c if (pin->type == TYPE_USB1) { pin 1168 drivers/pinctrl/pinctrl-lpc18xx.c if (pin->type == TYPE_I2C0) { pin 1175 drivers/pinctrl/pinctrl-lpc18xx.c if (function == FUNC_ADC && (pin->analog & LPC18XX_ANALOG_PIN)) { pin 1178 drivers/pinctrl/pinctrl-lpc18xx.c writel(LPC18XX_SCU_ANALOG_PIN_CFG, scu->base + pin->offset); pin 1180 drivers/pinctrl/pinctrl-lpc18xx.c if (LPC18XX_ANALOG_ADC(pin->analog) == 0) pin 1186 drivers/pinctrl/pinctrl-lpc18xx.c reg |= pin->analog & LPC18XX_ANALOG_BIT_MASK; pin 1192 drivers/pinctrl/pinctrl-lpc18xx.c if (function == FUNC_DAC && (pin->analog & LPC18XX_ANALOG_PIN)) { pin 1193 drivers/pinctrl/pinctrl-lpc18xx.c writel(LPC18XX_SCU_ANALOG_PIN_CFG, scu->base + pin->offset); pin 1203 drivers/pinctrl/pinctrl-lpc18xx.c if (function == pin->functions[func]) pin 1210 drivers/pinctrl/pinctrl-lpc18xx.c reg = readl(scu->base + pin->offset); pin 1212 drivers/pinctrl/pinctrl-lpc18xx.c writel(reg | func, scu->base + pin->offset); pin 1273 drivers/pinctrl/pinctrl-lpc18xx.c static bool lpc18xx_valid_pin_function(unsigned pin, unsigned function) pin 1275 drivers/pinctrl/pinctrl-lpc18xx.c struct lpc18xx_pin_caps *p = lpc18xx_pins[pin].drv_data; pin 270 drivers/pinctrl/pinctrl-max77620.c unsigned int pin, unsigned long *config) pin 281 drivers/pinctrl/pinctrl-max77620.c if (mpci->pin_info[pin].drv_type == MAX77620_PIN_OD_DRV) pin 286 drivers/pinctrl/pinctrl-max77620.c if (mpci->pin_info[pin].drv_type == MAX77620_PIN_PP_DRV) pin 296 drivers/pinctrl/pinctrl-max77620.c if (val & BIT(pin)) pin 306 drivers/pinctrl/pinctrl-max77620.c if (val & BIT(pin)) pin 337 drivers/pinctrl/pinctrl-max77620.c int pin, int param) pin 339 drivers/pinctrl/pinctrl-max77620.c struct max77620_fps_config *fps_config = &mpci->fps_config[pin]; pin 344 drivers/pinctrl/pinctrl-max77620.c if ((pin < MAX77620_GPIO1) || (pin > MAX77620_GPIO3)) pin 347 drivers/pinctrl/pinctrl-max77620.c addr = MAX77620_REG_FPS_GPIO1 + pin - 1; pin 378 drivers/pinctrl/pinctrl-max77620.c param, pin); pin 393 drivers/pinctrl/pinctrl-max77620.c unsigned int pin, unsigned long *configs, pin 415 drivers/pinctrl/pinctrl-max77620.c MAX77620_REG_GPIO0 + pin, pin 421 drivers/pinctrl/pinctrl-max77620.c mpci->pin_info[pin].drv_type = val ? pin 428 drivers/pinctrl/pinctrl-max77620.c MAX77620_REG_GPIO0 + pin, pin 434 drivers/pinctrl/pinctrl-max77620.c mpci->pin_info[pin].drv_type = val ? pin 441 drivers/pinctrl/pinctrl-max77620.c if ((pin < MAX77620_GPIO1) || (pin > MAX77620_GPIO3)) pin 444 drivers/pinctrl/pinctrl-max77620.c fps_config = &mpci->fps_config[pin]; pin 448 drivers/pinctrl/pinctrl-max77620.c addr = MAX77620_REG_FPS_GPIO1 + pin - 1; pin 464 drivers/pinctrl/pinctrl-max77620.c ret = max77620_set_fps_param(mpci, pin, param); pin 472 drivers/pinctrl/pinctrl-max77620.c if ((pin < MAX77620_GPIO1) || (pin > MAX77620_GPIO3)) pin 475 drivers/pinctrl/pinctrl-max77620.c fps_config = &mpci->fps_config[pin]; pin 479 drivers/pinctrl/pinctrl-max77620.c addr = MAX77620_REG_FPS_GPIO1 + pin - 1; pin 500 drivers/pinctrl/pinctrl-max77620.c BIT(pin) : 0; pin 502 drivers/pinctrl/pinctrl-max77620.c BIT(pin) : 0; pin 506 drivers/pinctrl/pinctrl-max77620.c BIT(pin), pu_val); pin 515 drivers/pinctrl/pinctrl-max77620.c BIT(pin), pd_val); pin 533 drivers/pinctrl/pinctrl-max77620.c MAX77620_REG_GPIO0 + pin, ret); pin 612 drivers/pinctrl/pinctrl-max77620.c int pin, p; pin 614 drivers/pinctrl/pinctrl-max77620.c for (pin = 0; pin < MAX77620_PIN_NUM; ++pin) { pin 615 drivers/pinctrl/pinctrl-max77620.c if ((pin < MAX77620_GPIO1) || (pin > MAX77620_GPIO3)) pin 619 drivers/pinctrl/pinctrl-max77620.c mpci, pin, max77620_suspend_fps_param[p]); pin 628 drivers/pinctrl/pinctrl-max77620.c int pin, p; pin 630 drivers/pinctrl/pinctrl-max77620.c for (pin = 0; pin < MAX77620_PIN_NUM; ++pin) { pin 631 drivers/pinctrl/pinctrl-max77620.c if ((pin < MAX77620_GPIO1) || (pin > MAX77620_GPIO3)) pin 635 drivers/pinctrl/pinctrl-max77620.c mpci, pin, max77620_active_fps_param[p]); pin 189 drivers/pinctrl/pinctrl-mcp23s08.c unsigned int pin, bool enabled) pin 191 drivers/pinctrl/pinctrl-mcp23s08.c u16 mask = BIT(pin); pin 254 drivers/pinctrl/pinctrl-mcp23s08.c static int mcp_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 267 drivers/pinctrl/pinctrl-mcp23s08.c status = (data & BIT(pin)) ? 1 : 0; pin 278 drivers/pinctrl/pinctrl-mcp23s08.c static int mcp_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 293 drivers/pinctrl/pinctrl-mcp23s08.c ret = mcp_set_bit(mcp, MCP_GPPU, pin, arg); pin 139 drivers/pinctrl/pinctrl-ocelot.c unsigned int pin; pin 155 drivers/pinctrl/pinctrl-ocelot.c .pin = p, \ pin 217 drivers/pinctrl/pinctrl-ocelot.c .pin = p, \ pin 386 drivers/pinctrl/pinctrl-ocelot.c unsigned int pin, unsigned int function) pin 388 drivers/pinctrl/pinctrl-ocelot.c struct ocelot_pin_caps *p = info->desc->pins[pin].drv_data; pin 405 drivers/pinctrl/pinctrl-ocelot.c struct ocelot_pin_caps *pin = info->desc->pins[group].drv_data; pin 406 drivers/pinctrl/pinctrl-ocelot.c unsigned int p = pin->pin % 32; pin 420 drivers/pinctrl/pinctrl-ocelot.c regmap_update_bits(info->map, REG_ALT(0, info, pin->pin), pin 422 drivers/pinctrl/pinctrl-ocelot.c regmap_update_bits(info->map, REG_ALT(1, info, pin->pin), pin 432 drivers/pinctrl/pinctrl-ocelot.c unsigned int pin, bool input) pin 435 drivers/pinctrl/pinctrl-ocelot.c unsigned int p = pin % 32; pin 437 drivers/pinctrl/pinctrl-ocelot.c regmap_update_bits(info->map, REG(OCELOT_GPIO_OE, info, pin), BIT(p), pin 620 drivers/pinctrl/pinctrl-ocelot.c unsigned int pin = BIT(offset % 32); pin 624 drivers/pinctrl/pinctrl-ocelot.c pin); pin 627 drivers/pinctrl/pinctrl-ocelot.c pin); pin 70 drivers/pinctrl/pinctrl-oxnas.c unsigned int pin; pin 274 drivers/pinctrl/pinctrl-oxnas.c .pin = _pin, \ pin 518 drivers/pinctrl/pinctrl-oxnas.c unsigned int pin) pin 520 drivers/pinctrl/pinctrl-oxnas.c return &pctl->gpio_banks[pin / PINS_PER_BANK]; pin 545 drivers/pinctrl/pinctrl-oxnas.c *pins = &pctl->groups[group].pin; pin 595 drivers/pinctrl/pinctrl-oxnas.c u32 mask = BIT(pg->pin); pin 601 drivers/pinctrl/pinctrl-oxnas.c fname, pg->bank, pg->pin, pin 646 drivers/pinctrl/pinctrl-oxnas.c u32 mask = BIT(pg->pin); pin 652 drivers/pinctrl/pinctrl-oxnas.c fname, pg->bank, pg->pin, pin 838 drivers/pinctrl/pinctrl-oxnas.c unsigned int pin, unsigned long *config) pin 841 drivers/pinctrl/pinctrl-oxnas.c struct oxnas_gpio_bank *bank = pctl_to_bank(pctl, pin); pin 843 drivers/pinctrl/pinctrl-oxnas.c u32 mask = BIT(pin - bank->gpio_chip.base); pin 869 drivers/pinctrl/pinctrl-oxnas.c unsigned int pin, unsigned long *config) pin 872 drivers/pinctrl/pinctrl-oxnas.c struct oxnas_gpio_bank *bank = pctl_to_bank(pctl, pin); pin 875 drivers/pinctrl/pinctrl-oxnas.c u32 mask = BIT(pin - bank->gpio_chip.base); pin 899 drivers/pinctrl/pinctrl-oxnas.c unsigned int pin, unsigned long *configs, pin 903 drivers/pinctrl/pinctrl-oxnas.c struct oxnas_gpio_bank *bank = pctl_to_bank(pctl, pin); pin 906 drivers/pinctrl/pinctrl-oxnas.c u32 offset = pin - bank->gpio_chip.base; pin 910 drivers/pinctrl/pinctrl-oxnas.c pin, bank->gpio_chip.base, mask); pin 935 drivers/pinctrl/pinctrl-oxnas.c unsigned int pin, unsigned long *configs, pin 939 drivers/pinctrl/pinctrl-oxnas.c struct oxnas_gpio_bank *bank = pctl_to_bank(pctl, pin); pin 943 drivers/pinctrl/pinctrl-oxnas.c u32 offset = pin - bank->gpio_chip.base; pin 947 drivers/pinctrl/pinctrl-oxnas.c pin, bank->gpio_chip.base, mask); pin 1048 drivers/pinctrl/pinctrl-oxnas.c unsigned int pin; pin 1054 drivers/pinctrl/pinctrl-oxnas.c for_each_set_bit(pin, &stat, BITS_PER_LONG) pin 1055 drivers/pinctrl/pinctrl-oxnas.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, pin)); pin 750 drivers/pinctrl/pinctrl-palmas.c unsigned pin, unsigned long *config) pin 764 drivers/pinctrl/pinctrl-palmas.c if (pci->pin_groups[group_nr].pins[0] == pin) pin 770 drivers/pinctrl/pinctrl-palmas.c "Pinconf is not supported for pin-id %d\n", pin); pin 858 drivers/pinctrl/pinctrl-palmas.c unsigned pin, unsigned long *configs, pin 873 drivers/pinctrl/pinctrl-palmas.c if (pci->pin_groups[group_nr].pins[0] == pin) pin 879 drivers/pinctrl/pinctrl-palmas.c "Pinconf is not supported for pin-id %d\n", pin); pin 51 drivers/pinctrl/pinctrl-pic32.c unsigned int pin; pin 375 drivers/pinctrl/pinctrl-pic32.c .pin = _pin, \ pin 1700 drivers/pinctrl/pinctrl-pic32.c unsigned pin) pin 1702 drivers/pinctrl/pinctrl-pic32.c return &pctl->gpio_banks[pin / PINS_PER_BANK]; pin 1727 drivers/pinctrl/pinctrl-pic32.c *pins = &pctl->groups[group].pin; pin 1878 drivers/pinctrl/pinctrl-pic32.c static int pic32_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, pin 1882 drivers/pinctrl/pinctrl-pic32.c struct pic32_gpio_bank *bank = pctl_to_bank(pctl, pin); pin 1884 drivers/pinctrl/pinctrl-pic32.c u32 mask = BIT(pin - bank->gpio_chip.base); pin 1919 drivers/pinctrl/pinctrl-pic32.c static int pic32_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin, pin 1923 drivers/pinctrl/pinctrl-pic32.c struct pic32_gpio_bank *bank = pctl_to_bank(pctl, pin); pin 1927 drivers/pinctrl/pinctrl-pic32.c u32 offset = pin - bank->gpio_chip.base; pin 1931 drivers/pinctrl/pinctrl-pic32.c pin, bank->gpio_chip.base, mask); pin 2071 drivers/pinctrl/pinctrl-pic32.c u32 pin; pin 2076 drivers/pinctrl/pinctrl-pic32.c for_each_set_bit(pin, &status, BITS_PER_LONG) { pin 2077 drivers/pinctrl/pinctrl-pic32.c u32 mask = BIT(pin); pin 2092 drivers/pinctrl/pinctrl-pic32.c unsigned int pin; pin 2100 drivers/pinctrl/pinctrl-pic32.c for_each_set_bit(pin, &pending, BITS_PER_LONG) pin 2101 drivers/pinctrl/pinctrl-pic32.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, pin)); pin 26 drivers/pinctrl/pinctrl-pistachio.c #define PADS_SCHMITT_EN_REG(pin) (PADS_SCHMITT_EN0 + 0x4 * ((pin) / 32)) pin 27 drivers/pinctrl/pinctrl-pistachio.c #define PADS_SCHMITT_EN_BIT(pin) BIT((pin) % 32) pin 30 drivers/pinctrl/pinctrl-pistachio.c #define PADS_PU_PD_REG(pin) (PADS_PU_PD0 + 0x4 * ((pin) / 16)) pin 31 drivers/pinctrl/pinctrl-pistachio.c #define PADS_PU_PD_SHIFT(pin) (2 * ((pin) % 16)) pin 44 drivers/pinctrl/pinctrl-pistachio.c #define PADS_SLEW_RATE_REG(pin) (PADS_SLEW_RATE0 + 0x4 * ((pin) / 32)) pin 45 drivers/pinctrl/pinctrl-pistachio.c #define PADS_SLEW_RATE_BIT(pin) BIT((pin) % 32) pin 48 drivers/pinctrl/pinctrl-pistachio.c #define PADS_DRIVE_STRENGTH_REG(pin) \ pin 49 drivers/pinctrl/pinctrl-pistachio.c (PADS_DRIVE_STRENGTH0 + 0x4 * ((pin) / 16)) pin 50 drivers/pinctrl/pinctrl-pistachio.c #define PADS_DRIVE_STRENGTH_SHIFT(pin) (2 * ((pin) % 16)) pin 86 drivers/pinctrl/pinctrl-pistachio.c unsigned int pin; pin 637 drivers/pinctrl/pinctrl-pistachio.c .pin = PISTACHIO_PIN_##_pin, \ pin 651 drivers/pinctrl/pinctrl-pistachio.c .pin = PISTACHIO_PIN_MFIO(_pin), \ pin 665 drivers/pinctrl/pinctrl-pistachio.c .pin = PISTACHIO_PIN_MFIO(_pin), \ pin 901 drivers/pinctrl/pinctrl-pistachio.c *pins = &pctl->groups[group].pin; pin 984 drivers/pinctrl/pinctrl-pistachio.c range = pinctrl_find_gpio_range_from_pin(pctl->pctldev, pg->pin); pin 986 drivers/pinctrl/pinctrl-pistachio.c gpio_disable(gpiochip_get_data(range->gc), pg->pin - range->pin_base); pin 998 drivers/pinctrl/pinctrl-pistachio.c static int pistachio_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, pin 1007 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_SCHMITT_EN_REG(pin)); pin 1008 drivers/pinctrl/pinctrl-pistachio.c arg = !!(val & PADS_SCHMITT_EN_BIT(pin)); pin 1011 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)) >> pin 1012 drivers/pinctrl/pinctrl-pistachio.c PADS_PU_PD_SHIFT(pin); pin 1016 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)) >> pin 1017 drivers/pinctrl/pinctrl-pistachio.c PADS_PU_PD_SHIFT(pin); pin 1021 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)) >> pin 1022 drivers/pinctrl/pinctrl-pistachio.c PADS_PU_PD_SHIFT(pin); pin 1026 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)) >> pin 1027 drivers/pinctrl/pinctrl-pistachio.c PADS_PU_PD_SHIFT(pin); pin 1031 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_SLEW_RATE_REG(pin)); pin 1032 drivers/pinctrl/pinctrl-pistachio.c arg = !!(val & PADS_SLEW_RATE_BIT(pin)); pin 1035 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_DRIVE_STRENGTH_REG(pin)) >> pin 1036 drivers/pinctrl/pinctrl-pistachio.c PADS_DRIVE_STRENGTH_SHIFT(pin); pin 1063 drivers/pinctrl/pinctrl-pistachio.c static int pistachio_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin, pin 1077 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_SCHMITT_EN_REG(pin)); pin 1079 drivers/pinctrl/pinctrl-pistachio.c val |= PADS_SCHMITT_EN_BIT(pin); pin 1081 drivers/pinctrl/pinctrl-pistachio.c val &= ~PADS_SCHMITT_EN_BIT(pin); pin 1082 drivers/pinctrl/pinctrl-pistachio.c pctl_writel(pctl, val, PADS_SCHMITT_EN_REG(pin)); pin 1085 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)); pin 1086 drivers/pinctrl/pinctrl-pistachio.c val &= ~(PADS_PU_PD_MASK << PADS_PU_PD_SHIFT(pin)); pin 1087 drivers/pinctrl/pinctrl-pistachio.c val |= PADS_PU_PD_HIGHZ << PADS_PU_PD_SHIFT(pin); pin 1088 drivers/pinctrl/pinctrl-pistachio.c pctl_writel(pctl, val, PADS_PU_PD_REG(pin)); pin 1091 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)); pin 1092 drivers/pinctrl/pinctrl-pistachio.c val &= ~(PADS_PU_PD_MASK << PADS_PU_PD_SHIFT(pin)); pin 1093 drivers/pinctrl/pinctrl-pistachio.c val |= PADS_PU_PD_UP << PADS_PU_PD_SHIFT(pin); pin 1094 drivers/pinctrl/pinctrl-pistachio.c pctl_writel(pctl, val, PADS_PU_PD_REG(pin)); pin 1097 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)); pin 1098 drivers/pinctrl/pinctrl-pistachio.c val &= ~(PADS_PU_PD_MASK << PADS_PU_PD_SHIFT(pin)); pin 1099 drivers/pinctrl/pinctrl-pistachio.c val |= PADS_PU_PD_DOWN << PADS_PU_PD_SHIFT(pin); pin 1100 drivers/pinctrl/pinctrl-pistachio.c pctl_writel(pctl, val, PADS_PU_PD_REG(pin)); pin 1103 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_PU_PD_REG(pin)); pin 1104 drivers/pinctrl/pinctrl-pistachio.c val &= ~(PADS_PU_PD_MASK << PADS_PU_PD_SHIFT(pin)); pin 1105 drivers/pinctrl/pinctrl-pistachio.c val |= PADS_PU_PD_BUS << PADS_PU_PD_SHIFT(pin); pin 1106 drivers/pinctrl/pinctrl-pistachio.c pctl_writel(pctl, val, PADS_PU_PD_REG(pin)); pin 1109 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_SLEW_RATE_REG(pin)); pin 1111 drivers/pinctrl/pinctrl-pistachio.c val |= PADS_SLEW_RATE_BIT(pin); pin 1113 drivers/pinctrl/pinctrl-pistachio.c val &= ~PADS_SLEW_RATE_BIT(pin); pin 1114 drivers/pinctrl/pinctrl-pistachio.c pctl_writel(pctl, val, PADS_SLEW_RATE_REG(pin)); pin 1117 drivers/pinctrl/pinctrl-pistachio.c val = pctl_readl(pctl, PADS_DRIVE_STRENGTH_REG(pin)); pin 1119 drivers/pinctrl/pinctrl-pistachio.c PADS_DRIVE_STRENGTH_SHIFT(pin)); pin 1139 drivers/pinctrl/pinctrl-pistachio.c val |= drv << PADS_DRIVE_STRENGTH_SHIFT(pin); pin 1140 drivers/pinctrl/pinctrl-pistachio.c pctl_writel(pctl, val, PADS_DRIVE_STRENGTH_REG(pin)); pin 1300 drivers/pinctrl/pinctrl-pistachio.c unsigned int pin; pin 1305 drivers/pinctrl/pinctrl-pistachio.c for_each_set_bit(pin, &pending, 16) pin 1306 drivers/pinctrl/pinctrl-pistachio.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, pin)); pin 356 drivers/pinctrl/pinctrl-rk805.c unsigned int pin, unsigned long *config) pin 364 drivers/pinctrl/pinctrl-rk805.c arg = rk805_gpio_get(&pci->gpio_chip, pin); pin 377 drivers/pinctrl/pinctrl-rk805.c unsigned int pin, unsigned long *configs, pin 390 drivers/pinctrl/pinctrl-rk805.c rk805_gpio_set(&pci->gpio_chip, pin, arg); pin 391 drivers/pinctrl/pinctrl-rk805.c rk805_pmx_gpio_set_direction(pctldev, NULL, pin, false); pin 296 drivers/pinctrl/pinctrl-rockchip.c u8 pin; pin 318 drivers/pinctrl/pinctrl-rockchip.c u8 pin; pin 427 drivers/pinctrl/pinctrl-rockchip.c unsigned pin) pin 431 drivers/pinctrl/pinctrl-rockchip.c while (pin >= (b->pin_base + b->nr_pins)) pin 564 drivers/pinctrl/pinctrl-rockchip.c .pin = 0, pin 570 drivers/pinctrl/pinctrl-rockchip.c .pin = 1, pin 576 drivers/pinctrl/pinctrl-rockchip.c .pin = 2, pin 582 drivers/pinctrl/pinctrl-rockchip.c .pin = 3, pin 588 drivers/pinctrl/pinctrl-rockchip.c .pin = 4, pin 594 drivers/pinctrl/pinctrl-rockchip.c .pin = 5, pin 600 drivers/pinctrl/pinctrl-rockchip.c .pin = 6, pin 606 drivers/pinctrl/pinctrl-rockchip.c .pin = 7, pin 612 drivers/pinctrl/pinctrl-rockchip.c .pin = 8, pin 618 drivers/pinctrl/pinctrl-rockchip.c .pin = 9, pin 628 drivers/pinctrl/pinctrl-rockchip.c .pin = 20, pin 634 drivers/pinctrl/pinctrl-rockchip.c .pin = 21, pin 640 drivers/pinctrl/pinctrl-rockchip.c .pin = 22, pin 646 drivers/pinctrl/pinctrl-rockchip.c .pin = 23, pin 652 drivers/pinctrl/pinctrl-rockchip.c .pin = 24, pin 662 drivers/pinctrl/pinctrl-rockchip.c .pin = 12, pin 668 drivers/pinctrl/pinctrl-rockchip.c .pin = 15, pin 674 drivers/pinctrl/pinctrl-rockchip.c .pin = 23, pin 681 drivers/pinctrl/pinctrl-rockchip.c static void rockchip_get_recalced_mux(struct rockchip_pin_bank *bank, int pin, pin 692 drivers/pinctrl/pinctrl-rockchip.c data->pin == pin) pin 708 drivers/pinctrl/pinctrl-rockchip.c .pin = 0, pin 715 drivers/pinctrl/pinctrl-rockchip.c .pin = 3, pin 722 drivers/pinctrl/pinctrl-rockchip.c .pin = 22, pin 729 drivers/pinctrl/pinctrl-rockchip.c .pin = 22, pin 736 drivers/pinctrl/pinctrl-rockchip.c .pin = 27, pin 743 drivers/pinctrl/pinctrl-rockchip.c .pin = 14, pin 750 drivers/pinctrl/pinctrl-rockchip.c .pin = 17, pin 757 drivers/pinctrl/pinctrl-rockchip.c .pin = 15, pin 768 drivers/pinctrl/pinctrl-rockchip.c .pin = 10, pin 775 drivers/pinctrl/pinctrl-rockchip.c .pin = 27, pin 782 drivers/pinctrl/pinctrl-rockchip.c .pin = 13, pin 789 drivers/pinctrl/pinctrl-rockchip.c .pin = 5, pin 796 drivers/pinctrl/pinctrl-rockchip.c .pin = 14, pin 803 drivers/pinctrl/pinctrl-rockchip.c .pin = 22, pin 810 drivers/pinctrl/pinctrl-rockchip.c .pin = 4, pin 821 drivers/pinctrl/pinctrl-rockchip.c .pin = 24, pin 829 drivers/pinctrl/pinctrl-rockchip.c .pin = 24, pin 841 drivers/pinctrl/pinctrl-rockchip.c .pin = 26, pin 848 drivers/pinctrl/pinctrl-rockchip.c .pin = 21, pin 855 drivers/pinctrl/pinctrl-rockchip.c .pin = 27, pin 862 drivers/pinctrl/pinctrl-rockchip.c .pin = 30, pin 869 drivers/pinctrl/pinctrl-rockchip.c .pin = 28, pin 876 drivers/pinctrl/pinctrl-rockchip.c .pin = 12, pin 883 drivers/pinctrl/pinctrl-rockchip.c .pin = 26, pin 890 drivers/pinctrl/pinctrl-rockchip.c .pin = 11, pin 897 drivers/pinctrl/pinctrl-rockchip.c .pin = 1, pin 904 drivers/pinctrl/pinctrl-rockchip.c .pin = 2, pin 911 drivers/pinctrl/pinctrl-rockchip.c .pin = 13, pin 918 drivers/pinctrl/pinctrl-rockchip.c .pin = 0, pin 925 drivers/pinctrl/pinctrl-rockchip.c .pin = 22, pin 932 drivers/pinctrl/pinctrl-rockchip.c .pin = 4, pin 939 drivers/pinctrl/pinctrl-rockchip.c .pin = 19, pin 946 drivers/pinctrl/pinctrl-rockchip.c .pin = 10, pin 953 drivers/pinctrl/pinctrl-rockchip.c .pin = 10, pin 960 drivers/pinctrl/pinctrl-rockchip.c .pin = 13, pin 971 drivers/pinctrl/pinctrl-rockchip.c .pin = 16, pin 978 drivers/pinctrl/pinctrl-rockchip.c .pin = 23, pin 989 drivers/pinctrl/pinctrl-rockchip.c .pin = 1, pin 996 drivers/pinctrl/pinctrl-rockchip.c .pin = 1, pin 1003 drivers/pinctrl/pinctrl-rockchip.c .pin = 11, pin 1010 drivers/pinctrl/pinctrl-rockchip.c .pin = 14, pin 1017 drivers/pinctrl/pinctrl-rockchip.c .pin = 19, pin 1024 drivers/pinctrl/pinctrl-rockchip.c .pin = 23, pin 1031 drivers/pinctrl/pinctrl-rockchip.c .pin = 2, pin 1038 drivers/pinctrl/pinctrl-rockchip.c .pin = 24, pin 1045 drivers/pinctrl/pinctrl-rockchip.c .pin = 2, pin 1052 drivers/pinctrl/pinctrl-rockchip.c .pin = 22, pin 1059 drivers/pinctrl/pinctrl-rockchip.c .pin = 16, pin 1066 drivers/pinctrl/pinctrl-rockchip.c .pin = 16, pin 1077 drivers/pinctrl/pinctrl-rockchip.c .pin = 8, pin 1084 drivers/pinctrl/pinctrl-rockchip.c .pin = 16, pin 1091 drivers/pinctrl/pinctrl-rockchip.c .pin = 19, pin 1098 drivers/pinctrl/pinctrl-rockchip.c .pin = 26, pin 1105 drivers/pinctrl/pinctrl-rockchip.c .pin = 24, pin 1112 drivers/pinctrl/pinctrl-rockchip.c static bool rockchip_get_mux_route(struct rockchip_pin_bank *bank, int pin, pin 1123 drivers/pinctrl/pinctrl-rockchip.c (data->pin == pin) && (data->func == mux)) pin 1137 drivers/pinctrl/pinctrl-rockchip.c static int rockchip_get_mux(struct rockchip_pin_bank *bank, int pin) pin 1140 drivers/pinctrl/pinctrl-rockchip.c int iomux_num = (pin / 8); pin 1150 drivers/pinctrl/pinctrl-rockchip.c dev_err(info->dev, "pin %d is unrouted\n", pin); pin 1164 drivers/pinctrl/pinctrl-rockchip.c if ((pin % 8) >= 4) pin 1166 drivers/pinctrl/pinctrl-rockchip.c bit = (pin % 4) * 4; pin 1169 drivers/pinctrl/pinctrl-rockchip.c if ((pin % 8) >= 5) pin 1171 drivers/pinctrl/pinctrl-rockchip.c bit = (pin % 8 % 5) * 3; pin 1174 drivers/pinctrl/pinctrl-rockchip.c bit = (pin % 8) * 2; pin 1178 drivers/pinctrl/pinctrl-rockchip.c if (bank->recalced_mask & BIT(pin)) pin 1179 drivers/pinctrl/pinctrl-rockchip.c rockchip_get_recalced_mux(bank, pin, ®, &bit, &mask); pin 1189 drivers/pinctrl/pinctrl-rockchip.c int pin, int mux) pin 1192 drivers/pinctrl/pinctrl-rockchip.c int iomux_num = (pin / 8); pin 1198 drivers/pinctrl/pinctrl-rockchip.c dev_err(info->dev, "pin %d is unrouted\n", pin); pin 1205 drivers/pinctrl/pinctrl-rockchip.c "pin %d only supports a gpio mux\n", pin); pin 1226 drivers/pinctrl/pinctrl-rockchip.c static int rockchip_set_mux(struct rockchip_pin_bank *bank, int pin, int mux) pin 1229 drivers/pinctrl/pinctrl-rockchip.c int iomux_num = (pin / 8); pin 1235 drivers/pinctrl/pinctrl-rockchip.c ret = rockchip_verify_mux(bank, pin, mux); pin 1243 drivers/pinctrl/pinctrl-rockchip.c bank->bank_num, pin, mux); pin 1252 drivers/pinctrl/pinctrl-rockchip.c if ((pin % 8) >= 4) pin 1254 drivers/pinctrl/pinctrl-rockchip.c bit = (pin % 4) * 4; pin 1257 drivers/pinctrl/pinctrl-rockchip.c if ((pin % 8) >= 5) pin 1259 drivers/pinctrl/pinctrl-rockchip.c bit = (pin % 8 % 5) * 3; pin 1262 drivers/pinctrl/pinctrl-rockchip.c bit = (pin % 8) * 2; pin 1266 drivers/pinctrl/pinctrl-rockchip.c if (bank->recalced_mask & BIT(pin)) pin 1267 drivers/pinctrl/pinctrl-rockchip.c rockchip_get_recalced_mux(bank, pin, ®, &bit, &mask); pin 1269 drivers/pinctrl/pinctrl-rockchip.c if (bank->route_mask & BIT(pin)) { pin 1270 drivers/pinctrl/pinctrl-rockchip.c if (rockchip_get_mux_route(bank, pin, mux, &route_location, pin 2223 drivers/pinctrl/pinctrl-rockchip.c int pin, bool input) pin 2232 drivers/pinctrl/pinctrl-rockchip.c ret = rockchip_set_mux(bank, pin, RK_FUNC_GPIO); pin 2242 drivers/pinctrl/pinctrl-rockchip.c data |= BIT(pin); pin 2244 drivers/pinctrl/pinctrl-rockchip.c data &= ~BIT(pin); pin 2259 drivers/pinctrl/pinctrl-rockchip.c int pin; pin 2262 drivers/pinctrl/pinctrl-rockchip.c pin = offset - chip->base; pin 2264 drivers/pinctrl/pinctrl-rockchip.c offset, range->name, pin, input ? "input" : "output"); pin 2308 drivers/pinctrl/pinctrl-rockchip.c static int rockchip_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 2312 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pin_bank *bank = pin_to_bank(info, pin); pin 2324 drivers/pinctrl/pinctrl-rockchip.c rc = rockchip_set_pull(bank, pin - bank->pin_base, pin 2339 drivers/pinctrl/pinctrl-rockchip.c rc = rockchip_set_pull(bank, pin - bank->pin_base, pin 2346 drivers/pinctrl/pinctrl-rockchip.c pin - bank->pin_base, arg); pin 2348 drivers/pinctrl/pinctrl-rockchip.c pin - bank->pin_base, false); pin 2358 drivers/pinctrl/pinctrl-rockchip.c pin - bank->pin_base, arg); pin 2367 drivers/pinctrl/pinctrl-rockchip.c pin - bank->pin_base, arg); pin 2381 drivers/pinctrl/pinctrl-rockchip.c static int rockchip_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 2385 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pin_bank *bank = pin_to_bank(info, pin); pin 2392 drivers/pinctrl/pinctrl-rockchip.c if (rockchip_get_pull(bank, pin - bank->pin_base) != param) pin 2404 drivers/pinctrl/pinctrl-rockchip.c if (rockchip_get_pull(bank, pin - bank->pin_base) != param) pin 2410 drivers/pinctrl/pinctrl-rockchip.c rc = rockchip_get_mux(bank, pin - bank->pin_base); pin 2414 drivers/pinctrl/pinctrl-rockchip.c rc = rockchip_gpio_get(&bank->gpio_chip, pin - bank->pin_base); pin 2425 drivers/pinctrl/pinctrl-rockchip.c rc = rockchip_get_drive_perpin(bank, pin - bank->pin_base); pin 2435 drivers/pinctrl/pinctrl-rockchip.c rc = rockchip_get_schmitt(bank, pin - bank->pin_base); pin 2633 drivers/pinctrl/pinctrl-rockchip.c int pin, bank, ret; pin 2654 drivers/pinctrl/pinctrl-rockchip.c for (pin = 0; pin < pin_bank->nr_pins; pin++, k++) { pin 2657 drivers/pinctrl/pinctrl-rockchip.c pin_bank->name, pin); pin 3332 drivers/pinctrl/pinctrl-rockchip.c int pin = 0; pin 3335 drivers/pinctrl/pinctrl-rockchip.c pin = ctrl->iomux_recalced[j].pin; pin 3336 drivers/pinctrl/pinctrl-rockchip.c bank->recalced_mask |= BIT(pin); pin 3342 drivers/pinctrl/pinctrl-rockchip.c int pin = 0; pin 3345 drivers/pinctrl/pinctrl-rockchip.c pin = ctrl->iomux_routes[j].pin; pin 3346 drivers/pinctrl/pinctrl-rockchip.c bank->route_mask |= BIT(pin); pin 82 drivers/pinctrl/pinctrl-rza1.c u8 pin: 4; pin 99 drivers/pinctrl/pinctrl-rza1.c u16 pin: 4; pin 126 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 1 }, pin 127 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 1 }, pin 128 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 1 }, pin 129 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 1 }, pin 130 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 1 }, pin 131 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 1 }, pin 132 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 1 }, pin 133 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 1 }, pin 137 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 1 }, pin 138 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 1 }, pin 139 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 1 }, pin 140 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 1 }, pin 141 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 1 }, pin 142 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 4 }, pin 143 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 4 }, pin 144 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 4 }, pin 145 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 4 }, pin 146 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 1 }, pin 147 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 1 }, pin 148 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 1 }, pin 149 drivers/pinctrl/pinctrl-rza1.c { .pin = 8, .func = 1 }, pin 150 drivers/pinctrl/pinctrl-rza1.c { .pin = 9, .func = 1 }, pin 151 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 1 }, pin 152 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 1 }, pin 153 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 1 }, pin 154 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 1 }, pin 155 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 1 }, pin 156 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 1 }, pin 157 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 4 }, pin 158 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 4 }, pin 159 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 4 }, pin 160 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 4 }, pin 164 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 2 }, pin 165 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 7 }, pin 166 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 7 }, pin 167 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 7 }, pin 168 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 7 }, pin 169 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 7 }, pin 170 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 8 }, pin 171 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 8 }, pin 172 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 8 }, pin 173 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 8 }, pin 174 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 8 }, pin 178 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 8 }, pin 179 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 8 }, pin 180 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 8 }, pin 181 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 8 }, pin 182 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 3 }, pin 183 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 3 }, pin 184 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 3 }, pin 185 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 3 }, pin 186 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 3 }, pin 187 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 4 }, pin 188 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 4 }, pin 189 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 4 }, pin 190 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 4 }, pin 191 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 4 }, pin 192 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 5 }, pin 193 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 5 }, pin 194 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 5 }, pin 195 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 5 }, pin 199 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 1 }, pin 200 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 1 }, pin 201 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 1 }, pin 202 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 1 }, pin 203 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 1 }, pin 204 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 1 }, pin 205 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 1 }, pin 206 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 1 }, pin 207 drivers/pinctrl/pinctrl-rza1.c { .pin = 8, .func = 1 }, pin 208 drivers/pinctrl/pinctrl-rza1.c { .pin = 9, .func = 1 }, pin 209 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 1 }, pin 210 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 1 }, pin 211 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 1 }, pin 212 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 1 }, pin 213 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 1 }, pin 214 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 1 }, pin 218 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 3 }, pin 222 drivers/pinctrl/pinctrl-rza1.c { .pin = 8, .func = 3 }, pin 223 drivers/pinctrl/pinctrl-rza1.c { .pin = 9, .func = 3 }, pin 224 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 3 }, pin 225 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 3 }, pin 226 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 2 }, pin 227 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 2 }, pin 228 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 3 }, pin 229 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 3 }, pin 233 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 2 }, pin 234 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 2 }, pin 235 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 2 }, pin 236 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 2 }, pin 237 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 2 }, pin 238 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 2 }, pin 242 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 2 }, pin 243 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 2 }, pin 244 drivers/pinctrl/pinctrl-rza1.c { .pin = 9, .func = 2 }, pin 245 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 4 }, pin 246 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 4 }, pin 247 drivers/pinctrl/pinctrl-rza1.c { .pin = 9, .func = 4 }, pin 248 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 2 }, pin 249 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 2 }, pin 250 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 4 }, pin 251 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 4 }, pin 252 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 4 }, pin 253 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 4 }, pin 254 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 4 }, pin 255 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 4 }, pin 259 drivers/pinctrl/pinctrl-rza1.c { .port = 2, .pin = 7, .func = 4, .input = 0 }, pin 260 drivers/pinctrl/pinctrl-rza1.c { .port = 2, .pin = 11, .func = 4, .input = 0 }, pin 261 drivers/pinctrl/pinctrl-rza1.c { .port = 3, .pin = 7, .func = 3, .input = 0 }, pin 262 drivers/pinctrl/pinctrl-rza1.c { .port = 3, .pin = 7, .func = 8, .input = 0 }, pin 263 drivers/pinctrl/pinctrl-rza1.c { .port = 4, .pin = 7, .func = 5, .input = 0 }, pin 264 drivers/pinctrl/pinctrl-rza1.c { .port = 4, .pin = 7, .func = 11, .input = 0 }, pin 265 drivers/pinctrl/pinctrl-rza1.c { .port = 4, .pin = 15, .func = 6, .input = 0 }, pin 266 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 0, .func = 1, .input = 1 }, pin 267 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 1, .func = 1, .input = 1 }, pin 268 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 2, .func = 1, .input = 1 }, pin 269 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 3, .func = 1, .input = 1 }, pin 270 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 4, .func = 1, .input = 1 }, pin 271 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 5, .func = 1, .input = 1 }, pin 272 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 6, .func = 1, .input = 1 }, pin 273 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 7, .func = 1, .input = 1 }, pin 274 drivers/pinctrl/pinctrl-rza1.c { .port = 7, .pin = 4, .func = 6, .input = 0 }, pin 275 drivers/pinctrl/pinctrl-rza1.c { .port = 7, .pin = 11, .func = 2, .input = 0 }, pin 276 drivers/pinctrl/pinctrl-rza1.c { .port = 8, .pin = 10, .func = 8, .input = 0 }, pin 277 drivers/pinctrl/pinctrl-rza1.c { .port = 10, .pin = 15, .func = 2, .input = 0 }, pin 307 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 1 }, pin 308 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 1 }, pin 309 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 1 }, pin 310 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 1 }, pin 311 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 1 }, pin 312 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 1 }, pin 313 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 1 }, pin 314 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 1 }, pin 318 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 2 }, pin 319 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 2 }, pin 320 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 2 }, pin 321 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 2 }, pin 322 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 2 }, pin 323 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 2 }, pin 324 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 2 }, pin 325 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 2 }, pin 326 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 2 }, pin 330 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 4 }, pin 331 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 2 }, pin 332 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 2 }, pin 333 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 2 }, pin 334 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 2 }, pin 338 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 1 }, pin 339 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 1 }, pin 340 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 1 }, pin 341 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 1 }, pin 342 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 1 }, pin 343 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 1 }, pin 344 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 1 }, pin 345 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 1 }, pin 346 drivers/pinctrl/pinctrl-rza1.c { .pin = 8, .func = 1 }, pin 347 drivers/pinctrl/pinctrl-rza1.c { .pin = 9, .func = 1 }, pin 348 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 1 }, pin 349 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 1 }, pin 350 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 1 }, pin 351 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 1 }, pin 352 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 1 }, pin 353 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 1 }, pin 354 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 2 }, pin 355 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 2 }, pin 356 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 2 }, pin 357 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 2 }, pin 361 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 1 }, pin 362 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 1 }, pin 363 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 1 }, pin 364 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 1 }, pin 365 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 1 }, pin 366 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 1 }, pin 367 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 1 }, pin 368 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 1 }, pin 369 drivers/pinctrl/pinctrl-rza1.c { .pin = 8, .func = 1 }, pin 370 drivers/pinctrl/pinctrl-rza1.c { .pin = 9, .func = 1 }, pin 371 drivers/pinctrl/pinctrl-rza1.c { .pin = 10, .func = 1 }, pin 372 drivers/pinctrl/pinctrl-rza1.c { .pin = 11, .func = 1 }, pin 373 drivers/pinctrl/pinctrl-rza1.c { .pin = 12, .func = 1 }, pin 374 drivers/pinctrl/pinctrl-rza1.c { .pin = 13, .func = 1 }, pin 375 drivers/pinctrl/pinctrl-rza1.c { .pin = 14, .func = 1 }, pin 376 drivers/pinctrl/pinctrl-rza1.c { .pin = 15, .func = 1 }, pin 380 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 2 }, pin 381 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 2 }, pin 382 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 2 }, pin 383 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 2 }, pin 384 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 2 }, pin 385 drivers/pinctrl/pinctrl-rza1.c { .pin = 2, .func = 3 }, pin 386 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 3 }, pin 387 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 3 }, pin 388 drivers/pinctrl/pinctrl-rza1.c { .pin = 6, .func = 3 }, pin 389 drivers/pinctrl/pinctrl-rza1.c { .pin = 7, .func = 3 }, pin 393 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 2 }, pin 394 drivers/pinctrl/pinctrl-rza1.c { .pin = 0, .func = 3 }, pin 395 drivers/pinctrl/pinctrl-rza1.c { .pin = 1, .func = 3 }, pin 396 drivers/pinctrl/pinctrl-rza1.c { .pin = 3, .func = 3 }, pin 397 drivers/pinctrl/pinctrl-rza1.c { .pin = 4, .func = 3 }, pin 398 drivers/pinctrl/pinctrl-rza1.c { .pin = 5, .func = 3 }, pin 402 drivers/pinctrl/pinctrl-rza1.c { .port = 2, .pin = 8, .func = 2, .input = 0 }, pin 403 drivers/pinctrl/pinctrl-rza1.c { .port = 5, .pin = 6, .func = 3, .input = 0 }, pin 404 drivers/pinctrl/pinctrl-rza1.c { .port = 6, .pin = 6, .func = 3, .input = 0 }, pin 405 drivers/pinctrl/pinctrl-rza1.c { .port = 6, .pin = 10, .func = 3, .input = 0 }, pin 406 drivers/pinctrl/pinctrl-rza1.c { .port = 7, .pin = 10, .func = 2, .input = 0 }, pin 407 drivers/pinctrl/pinctrl-rza1.c { .port = 8, .pin = 2, .func = 3, .input = 0 }, pin 446 drivers/pinctrl/pinctrl-rza1.c u8 pin; pin 503 drivers/pinctrl/pinctrl-rza1.c unsigned int pin, pin 513 drivers/pinctrl/pinctrl-rza1.c if (bidir_pin->pin == pin && bidir_pin->func == func) pin 521 drivers/pinctrl/pinctrl-rza1.c unsigned int pin, pin 531 drivers/pinctrl/pinctrl-rza1.c if (swio_pin->port == port && swio_pin->pin == pin && pin 542 drivers/pinctrl/pinctrl-rza1.c static unsigned int rza1_pinmux_get_flags(unsigned int port, unsigned int pin, pin 553 drivers/pinctrl/pinctrl-rza1.c if (rza1_pinmux_get_bidir(port, pin, func, bidir_entries)) pin 556 drivers/pinctrl/pinctrl-rza1.c ret = rza1_pinmux_get_swio(port, pin, func, swio_entries); pin 606 drivers/pinctrl/pinctrl-rza1.c static void rza1_pin_reset(struct rza1_port *port, unsigned int pin) pin 611 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PIBC_REG, pin, 0); pin 612 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PBDC_REG, pin, 0); pin 614 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PM_REG, pin, 1); pin 615 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PMC_REG, pin, 0); pin 616 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PIPC_REG, pin, 0); pin 621 drivers/pinctrl/pinctrl-rza1.c unsigned int pin) pin 623 drivers/pinctrl/pinctrl-rza1.c return !!rza1_get_bit(port, RZA1_PM_REG, pin); pin 637 drivers/pinctrl/pinctrl-rza1.c unsigned int pin, bool input) pin 643 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PIBC_REG, pin, 1); pin 645 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PM_REG, pin, 1); pin 646 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PBDC_REG, pin, 0); pin 648 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PM_REG, pin, 0); pin 649 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PBDC_REG, pin, 1); pin 655 drivers/pinctrl/pinctrl-rza1.c static inline void rza1_pin_set(struct rza1_port *port, unsigned int pin, pin 661 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_P_REG, pin, !!value); pin 665 drivers/pinctrl/pinctrl-rza1.c static inline int rza1_pin_get(struct rza1_port *port, unsigned int pin) pin 667 drivers/pinctrl/pinctrl-rza1.c return rza1_get_bit(port, RZA1_PPR_REG, pin); pin 680 drivers/pinctrl/pinctrl-rza1.c unsigned int pin = mux_conf->pin; pin 685 drivers/pinctrl/pinctrl-rza1.c rza1_pin_reset(port, pin); pin 688 drivers/pinctrl/pinctrl-rza1.c mux_flags_from_table = rza1_pinmux_get_flags(port->id, pin, mux_func, pin 696 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PBDC_REG, pin, 1); pin 721 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PFC_REG, pin, mux_func & MUX_FUNC_PFC_MASK); pin 722 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PFCE_REG, pin, mux_func & MUX_FUNC_PFCE_MASK); pin 723 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PFCEA_REG, pin, mux_func & MUX_FUNC_PFCEA_MASK); pin 732 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PM_REG, pin, pin 735 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PIPC_REG, pin, 1); pin 737 drivers/pinctrl/pinctrl-rza1.c rza1_set_bit(port, RZA1_PMC_REG, pin, 1); pin 954 drivers/pinctrl/pinctrl-rza1.c mux_conf->pin = RZA1_PIN_ID_TO_PIN(mux_conf->id); pin 959 drivers/pinctrl/pinctrl-rza1.c mux_conf->pin >= RZA1_PINS_PER_PORT) { pin 962 drivers/pinctrl/pinctrl-rza1.c mux_conf->port, mux_conf->pin, prop_name); pin 1318 drivers/pinctrl/pinctrl-rza1.c unsigned int pin = RZA1_PIN_ID_TO_PIN(i); pin 1323 drivers/pinctrl/pinctrl-rza1.c "P%u-%u", port, pin); pin 56 drivers/pinctrl/pinctrl-rza2.c #define RZA2_PFS(port, pin) (0x0200 + ((port) * 8) + (pin)) /* Fnct 8-bit */ pin 72 drivers/pinctrl/pinctrl-rza2.c static void rza2_set_pin_function(void __iomem *pfc_base, u8 port, u8 pin, pin 81 drivers/pinctrl/pinctrl-rza2.c mask16 = RZA2_PDR_MASK << (pin * 2); pin 87 drivers/pinctrl/pinctrl-rza2.c reg8 &= ~BIT(pin); pin 95 drivers/pinctrl/pinctrl-rza2.c writeb(func, pfc_base + RZA2_PFS(port, pin)); pin 103 drivers/pinctrl/pinctrl-rza2.c reg8 |= BIT(pin); pin 111 drivers/pinctrl/pinctrl-rza2.c u8 pin = RZA2_PIN_ID_TO_PIN(offset); pin 116 drivers/pinctrl/pinctrl-rza2.c mask16 = RZA2_PDR_MASK << (pin * 2); pin 120 drivers/pinctrl/pinctrl-rza2.c reg16 |= RZA2_PDR_INPUT << (pin * 2); /* pin as input */ pin 122 drivers/pinctrl/pinctrl-rza2.c reg16 |= RZA2_PDR_OUTPUT << (pin * 2); /* pin as output */ pin 131 drivers/pinctrl/pinctrl-rza2.c u8 pin = RZA2_PIN_ID_TO_PIN(offset); pin 135 drivers/pinctrl/pinctrl-rza2.c reg16 = (reg16 >> (pin * 2)) & RZA2_PDR_MASK; pin 166 drivers/pinctrl/pinctrl-rza2.c u8 pin = RZA2_PIN_ID_TO_PIN(offset); pin 168 drivers/pinctrl/pinctrl-rza2.c return !!(readb(priv->base + RZA2_PIDR(port)) & BIT(pin)); pin 176 drivers/pinctrl/pinctrl-rza2.c u8 pin = RZA2_PIN_ID_TO_PIN(offset); pin 182 drivers/pinctrl/pinctrl-rza2.c new_value |= BIT(pin); pin 184 drivers/pinctrl/pinctrl-rza2.c new_value &= ~BIT(pin); pin 126 drivers/pinctrl/pinctrl-rzn1.c #define RZN1_PIN(pin) PINCTRL_PIN(pin, "pl_gpio"#pin) pin 215 drivers/pinctrl/pinctrl-rzn1.c static int rzn1_set_hw_pin_func(struct rzn1_pinctrl *ipctl, unsigned int pin, pin 252 drivers/pinctrl/pinctrl-rzn1.c if (pin >= ARRAY_SIZE(ipctl->lev1->conf) || pin 256 drivers/pinctrl/pinctrl-rzn1.c l1 = readl(&ipctl->lev1->conf[pin]); pin 258 drivers/pinctrl/pinctrl-rzn1.c l2 = readl(&ipctl->lev2->conf[pin]); pin 261 drivers/pinctrl/pinctrl-rzn1.c dev_dbg(ipctl->dev, "setting func for pin %u to %u\n", pin, pin_config); pin 275 drivers/pinctrl/pinctrl-rzn1.c writel(l1, &ipctl->lev1->conf[pin]); pin 276 drivers/pinctrl/pinctrl-rzn1.c writel(l2, &ipctl->lev2->conf[pin]); pin 485 drivers/pinctrl/pinctrl-rzn1.c static int rzn1_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 494 drivers/pinctrl/pinctrl-rzn1.c if (pin >= ARRAY_SIZE(ipctl->lev1->conf)) pin 497 drivers/pinctrl/pinctrl-rzn1.c l1 = readl(&ipctl->lev1->conf[pin]); pin 520 drivers/pinctrl/pinctrl-rzn1.c l2 = readl(&ipctl->lev2->conf[pin]); pin 537 drivers/pinctrl/pinctrl-rzn1.c static int rzn1_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 547 drivers/pinctrl/pinctrl-rzn1.c if (pin >= ARRAY_SIZE(ipctl->lev1->conf)) pin 550 drivers/pinctrl/pinctrl-rzn1.c l1 = readl(&ipctl->lev1->conf[pin]); pin 559 drivers/pinctrl/pinctrl-rzn1.c dev_dbg(ipctl->dev, "set pin %d pull up\n", pin); pin 564 drivers/pinctrl/pinctrl-rzn1.c dev_dbg(ipctl->dev, "set pin %d pull down\n", pin); pin 569 drivers/pinctrl/pinctrl-rzn1.c dev_dbg(ipctl->dev, "set pin %d bias off\n", pin); pin 574 drivers/pinctrl/pinctrl-rzn1.c dev_dbg(ipctl->dev, "set pin %d drv %umA\n", pin, arg); pin 601 drivers/pinctrl/pinctrl-rzn1.c dev_dbg(ipctl->dev, "set pin %d High-Z\n", pin); pin 612 drivers/pinctrl/pinctrl-rzn1.c writel(l1, &ipctl->lev1->conf[pin]); pin 658 drivers/pinctrl/pinctrl-rzn1.c unsigned int pin = grp->pins[i]; pin 660 drivers/pinctrl/pinctrl-rzn1.c ret = rzn1_pinconf_set(pctldev, pin, configs, num_configs); pin 211 drivers/pinctrl/pinctrl-single.c static int pcs_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, pin 213 drivers/pinctrl/pinctrl-single.c static int pcs_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin, pin 272 drivers/pinctrl/pinctrl-single.c unsigned pin) pin 282 drivers/pinctrl/pinctrl-single.c offset = pin * mux_bytes; pin 311 drivers/pinctrl/pinctrl-single.c static int pcs_get_function(struct pinctrl_dev *pctldev, unsigned pin, pin 315 drivers/pinctrl/pinctrl-single.c struct pin_desc *pdesc = pin_desc_get(pctldev, pin); pin 379 drivers/pinctrl/pinctrl-single.c struct pinctrl_gpio_range *range, unsigned pin) pin 393 drivers/pinctrl/pinctrl-single.c if (pin >= frange->offset + frange->npins pin 394 drivers/pinctrl/pinctrl-single.c || pin < frange->offset) pin 401 drivers/pinctrl/pinctrl-single.c byte_num = (pcs->bits_per_pin * pin) / BITS_PER_BYTE; pin 403 drivers/pinctrl/pinctrl-single.c pin_shift = pin % (pcs->width / pcs->bits_per_pin) * pin 411 drivers/pinctrl/pinctrl-single.c data = pcs->read(pcs->base + pin * mux_bytes); pin 414 drivers/pinctrl/pinctrl-single.c pcs->write(data, pcs->base + pin * mux_bytes); pin 430 drivers/pinctrl/pinctrl-single.c static void pcs_pinconf_clear_bias(struct pinctrl_dev *pctldev, unsigned pin) pin 436 drivers/pinctrl/pinctrl-single.c pcs_pinconf_set(pctldev, pin, &config, 1); pin 444 drivers/pinctrl/pinctrl-single.c static bool pcs_pinconf_bias_disable(struct pinctrl_dev *pctldev, unsigned pin) pin 451 drivers/pinctrl/pinctrl-single.c if (!pcs_pinconf_get(pctldev, pin, &config)) pin 460 drivers/pinctrl/pinctrl-single.c unsigned pin, unsigned long *config) pin 467 drivers/pinctrl/pinctrl-single.c ret = pcs_get_function(pctldev, pin, &func); pin 474 drivers/pinctrl/pinctrl-single.c if (pcs_pinconf_bias_disable(pctldev, pin)) { pin 484 drivers/pinctrl/pinctrl-single.c offset = pin * (pcs->width / BITS_PER_BYTE); pin 523 drivers/pinctrl/pinctrl-single.c unsigned pin, unsigned long *configs, pin 532 drivers/pinctrl/pinctrl-single.c ret = pcs_get_function(pctldev, pin, &func); pin 542 drivers/pinctrl/pinctrl-single.c offset = pin * (pcs->width / BITS_PER_BYTE); pin 557 drivers/pinctrl/pinctrl-single.c pcs_pinconf_clear_bias(pctldev, pin); pin 562 drivers/pinctrl/pinctrl-single.c pcs_pinconf_clear_bias(pctldev, pin); pin 625 drivers/pinctrl/pinctrl-single.c struct seq_file *s, unsigned pin) pin 661 drivers/pinctrl/pinctrl-single.c struct pinctrl_pin_desc *pin; pin 683 drivers/pinctrl/pinctrl-single.c pin = &pcs->pins.pa[i]; pin 684 drivers/pinctrl/pinctrl-single.c pin->number = i; pin 1008 drivers/pinctrl/pinctrl-single.c int pin; pin 1028 drivers/pinctrl/pinctrl-single.c pin = pcs_get_pin_by_offset(pcs, offset); pin 1029 drivers/pinctrl/pinctrl-single.c if (pin < 0) { pin 1035 drivers/pinctrl/pinctrl-single.c pins[found++] = pin; pin 1121 drivers/pinctrl/pinctrl-single.c int pin; pin 1169 drivers/pinctrl/pinctrl-single.c pin = pcs_get_pin_by_offset(pcs, offset); pin 1170 drivers/pinctrl/pinctrl-single.c if (pin < 0) { pin 1176 drivers/pinctrl/pinctrl-single.c pins[found++] = pin + pin_num_from_lsb; pin 248 drivers/pinctrl/pinctrl-st.c int pin; pin 300 drivers/pinctrl/pinctrl-st.c #define ST_IRQ_RISING_EDGE_CONF(pin) \ pin 301 drivers/pinctrl/pinctrl-st.c (ST_IRQ_EDGE_RISING << (pin * ST_IRQ_EDGE_CONF_BITS_PER_PIN)) pin 303 drivers/pinctrl/pinctrl-st.c #define ST_IRQ_FALLING_EDGE_CONF(pin) \ pin 304 drivers/pinctrl/pinctrl-st.c (ST_IRQ_EDGE_FALLING << (pin * ST_IRQ_EDGE_CONF_BITS_PER_PIN)) pin 306 drivers/pinctrl/pinctrl-st.c #define ST_IRQ_BOTH_EDGE_CONF(pin) \ pin 307 drivers/pinctrl/pinctrl-st.c (ST_IRQ_EDGE_BOTH << (pin * ST_IRQ_EDGE_CONF_BITS_PER_PIN)) pin 309 drivers/pinctrl/pinctrl-st.c #define ST_IRQ_EDGE_CONF(conf, pin) \ pin 310 drivers/pinctrl/pinctrl-st.c (conf >> (pin * ST_IRQ_EDGE_CONF_BITS_PER_PIN) & ST_IRQ_EDGE_MASK) pin 363 drivers/pinctrl/pinctrl-st.c struct pinctrl_dev *pctldev, int pin) pin 366 drivers/pinctrl/pinctrl-st.c pinctrl_find_gpio_range_from_pin(pctldev, pin); pin 384 drivers/pinctrl/pinctrl-st.c int pin, unsigned long config) pin 390 drivers/pinctrl/pinctrl-st.c unsigned long mask = BIT(pin); pin 422 drivers/pinctrl/pinctrl-st.c int pin = st_gpio_pin(pin_id); pin 423 drivers/pinctrl/pinctrl-st.c int offset = pin * 4; pin 434 drivers/pinctrl/pinctrl-st.c static unsigned int st_pctl_get_pin_function(struct st_pio_control *pc, int pin) pin 438 drivers/pinctrl/pinctrl-st.c int offset = pin * 4; pin 504 drivers/pinctrl/pinctrl-st.c int enable, int pin) pin 510 drivers/pinctrl/pinctrl-st.c val |= BIT(pin); pin 512 drivers/pinctrl/pinctrl-st.c val &= ~BIT(pin); pin 517 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, unsigned long config, int pin) pin 524 drivers/pinctrl/pinctrl-st.c ST_PINCONF_UNPACK_RT_CLK(config), pin); pin 527 drivers/pinctrl/pinctrl-st.c ST_PINCONF_UNPACK_RT_CLKNOTDATA(config), pin); pin 530 drivers/pinctrl/pinctrl-st.c ST_PINCONF_UNPACK_RT_DOUBLE_EDGE(config), pin); pin 533 drivers/pinctrl/pinctrl-st.c ST_PINCONF_UNPACK_RT_INVERTCLK(config), pin); pin 536 drivers/pinctrl/pinctrl-st.c ST_PINCONF_UNPACK_RT(config), pin); pin 541 drivers/pinctrl/pinctrl-st.c st_regmap_field_bit_set_clear_pin(rt_p->delay_0, delay & 0x1, pin); pin 543 drivers/pinctrl/pinctrl-st.c st_regmap_field_bit_set_clear_pin(rt_p->delay_1, delay & 0x2, pin); pin 548 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, unsigned long config, int pin) pin 571 drivers/pinctrl/pinctrl-st.c regmap_field_write(rt_d->rt[pin], retime_config); pin 575 drivers/pinctrl/pinctrl-st.c int pin, unsigned long *config) pin 581 drivers/pinctrl/pinctrl-st.c if (oe_value & BIT(pin)) pin 587 drivers/pinctrl/pinctrl-st.c if (pu_value & BIT(pin)) pin 593 drivers/pinctrl/pinctrl-st.c if (od_value & BIT(pin)) pin 599 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long *config) pin 606 drivers/pinctrl/pinctrl-st.c if (!regmap_field_read(rt_p->retime, &val) && (val & BIT(pin))) pin 609 drivers/pinctrl/pinctrl-st.c if (!regmap_field_read(rt_p->clk1notclk0, &val) && (val & BIT(pin))) pin 612 drivers/pinctrl/pinctrl-st.c if (!regmap_field_read(rt_p->clknotdata, &val) && (val & BIT(pin))) pin 615 drivers/pinctrl/pinctrl-st.c if (!regmap_field_read(rt_p->double_edge, &val) && (val & BIT(pin))) pin 618 drivers/pinctrl/pinctrl-st.c if (!regmap_field_read(rt_p->invertclk, &val) && (val & BIT(pin))) pin 623 drivers/pinctrl/pinctrl-st.c delay_bits = (((delay1 & BIT(pin)) ? 1 : 0) << 1) | pin 624 drivers/pinctrl/pinctrl-st.c (((delay0 & BIT(pin)) ? 1 : 0)); pin 632 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long *config) pin 639 drivers/pinctrl/pinctrl-st.c regmap_field_read(rt_d->rt[pin], &value); pin 905 drivers/pinctrl/pinctrl-st.c pc = st_get_pio_control(pctldev, conf[i].pin); pin 906 drivers/pinctrl/pinctrl-st.c st_pctl_set_function(pc, conf[i].pin, conf[i].altfunc); pin 940 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long *config) pin 943 drivers/pinctrl/pinctrl-st.c st_pinconf_get_retime_packed(info, pc, pin, config); pin 945 drivers/pinctrl/pinctrl-st.c if ((BIT(pin) & pc->rt_pin_mask)) pin 947 drivers/pinctrl/pinctrl-st.c pin, config); pin 951 drivers/pinctrl/pinctrl-st.c struct st_pio_control *pc, int pin, unsigned long config) pin 954 drivers/pinctrl/pinctrl-st.c st_pinconf_set_retime_packed(info, pc, config, pin); pin 956 drivers/pinctrl/pinctrl-st.c if ((BIT(pin) & pc->rt_pin_mask)) pin 958 drivers/pinctrl/pinctrl-st.c config, pin); pin 964 drivers/pinctrl/pinctrl-st.c int pin = st_gpio_pin(pin_id); pin 970 drivers/pinctrl/pinctrl-st.c st_pinconf_set_config(pc, pin, configs[i]); pin 971 drivers/pinctrl/pinctrl-st.c st_pinconf_set_retime(info, pc, pin, configs[i]); pin 980 drivers/pinctrl/pinctrl-st.c int pin = st_gpio_pin(pin_id); pin 985 drivers/pinctrl/pinctrl-st.c st_pinconf_get_direction(pc, pin, config); pin 986 drivers/pinctrl/pinctrl-st.c st_pinconf_get_retime(info, pc, pin, config); pin 1213 drivers/pinctrl/pinctrl-st.c conf->pin = of_get_named_gpio(pins, pp->name, 0); pin 1215 drivers/pinctrl/pinctrl-st.c grp->pins[i] = conf->pin; pin 1314 drivers/pinctrl/pinctrl-st.c int comp, pin = d->hwirq; pin 1324 drivers/pinctrl/pinctrl-st.c pin_edge_conf = ST_IRQ_FALLING_EDGE_CONF(pin); pin 1331 drivers/pinctrl/pinctrl-st.c pin_edge_conf = ST_IRQ_RISING_EDGE_CONF(pin); pin 1334 drivers/pinctrl/pinctrl-st.c comp = st_gpio_get(&bank->gpio_chip, pin); pin 1335 drivers/pinctrl/pinctrl-st.c pin_edge_conf = ST_IRQ_BOTH_EDGE_CONF(pin); pin 1343 drivers/pinctrl/pinctrl-st.c pin * ST_IRQ_EDGE_CONF_BITS_PER_PIN)); pin 1348 drivers/pinctrl/pinctrl-st.c val &= ~BIT(pin); pin 1349 drivers/pinctrl/pinctrl-st.c val |= (comp << pin); pin 211 drivers/pinctrl/pinctrl-stmfx.c unsigned int pin, unsigned long *config) pin 219 drivers/pinctrl/pinctrl-stmfx.c range = pinctrl_find_gpio_range_from_pin_nolock(pctldev, pin); pin 223 drivers/pinctrl/pinctrl-stmfx.c dir = stmfx_gpio_get_direction(&pctl->gpio_chip, pin); pin 226 drivers/pinctrl/pinctrl-stmfx.c type = stmfx_pinconf_get_type(pctl, pin); pin 229 drivers/pinctrl/pinctrl-stmfx.c pupd = stmfx_pinconf_get_pupd(pctl, pin); pin 258 drivers/pinctrl/pinctrl-stmfx.c ret = stmfx_gpio_get(&pctl->gpio_chip, pin); pin 273 drivers/pinctrl/pinctrl-stmfx.c static int stmfx_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 282 drivers/pinctrl/pinctrl-stmfx.c range = pinctrl_find_gpio_range_from_pin_nolock(pctldev, pin); pin 284 drivers/pinctrl/pinctrl-stmfx.c dev_err(pctldev->dev, "pin %d is not available\n", pin); pin 288 drivers/pinctrl/pinctrl-stmfx.c dir = stmfx_gpio_get_direction(&pctl->gpio_chip, pin); pin 300 drivers/pinctrl/pinctrl-stmfx.c ret = stmfx_pinconf_set_type(pctl, pin, 0); pin 305 drivers/pinctrl/pinctrl-stmfx.c ret = stmfx_pinconf_set_type(pctl, pin, 1); pin 308 drivers/pinctrl/pinctrl-stmfx.c ret = stmfx_pinconf_set_pupd(pctl, pin, 0); pin 313 drivers/pinctrl/pinctrl-stmfx.c ret = stmfx_pinconf_set_type(pctl, pin, 1); pin 316 drivers/pinctrl/pinctrl-stmfx.c ret = stmfx_pinconf_set_pupd(pctl, pin, 1); pin 321 drivers/pinctrl/pinctrl-stmfx.c ret = stmfx_pinconf_set_type(pctl, pin, 1); pin 327 drivers/pinctrl/pinctrl-stmfx.c pin, arg); pin 374 drivers/pinctrl/pinctrl-sx150x.c static bool sx150x_pin_is_oscio(struct sx150x_pinctrl *pctl, unsigned int pin) pin 376 drivers/pinctrl/pinctrl-sx150x.c if (pin >= pctl->data->npins) pin 383 drivers/pinctrl/pinctrl-sx150x.c return !strcmp(pctl->data->pins[pin].name, "oscio"); pin 579 drivers/pinctrl/pinctrl-sx150x.c static int sx150x_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 588 drivers/pinctrl/pinctrl-sx150x.c if (sx150x_pin_is_oscio(pctl, pin)) { pin 622 drivers/pinctrl/pinctrl-sx150x.c data &= BIT(pin); pin 637 drivers/pinctrl/pinctrl-sx150x.c data &= BIT(pin); pin 655 drivers/pinctrl/pinctrl-sx150x.c data &= BIT(pin); pin 673 drivers/pinctrl/pinctrl-sx150x.c data &= BIT(pin); pin 686 drivers/pinctrl/pinctrl-sx150x.c ret = sx150x_gpio_get_direction(&pctl->gpio, pin); pin 693 drivers/pinctrl/pinctrl-sx150x.c ret = sx150x_gpio_get(&pctl->gpio, pin); pin 710 drivers/pinctrl/pinctrl-sx150x.c static int sx150x_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 723 drivers/pinctrl/pinctrl-sx150x.c if (sx150x_pin_is_oscio(pctl, pin)) { pin 726 drivers/pinctrl/pinctrl-sx150x.c pin, arg); pin 740 drivers/pinctrl/pinctrl-sx150x.c BIT(pin), 0); pin 746 drivers/pinctrl/pinctrl-sx150x.c BIT(pin), 0); pin 755 drivers/pinctrl/pinctrl-sx150x.c BIT(pin), BIT(pin)); pin 764 drivers/pinctrl/pinctrl-sx150x.c BIT(pin), BIT(pin)); pin 772 drivers/pinctrl/pinctrl-sx150x.c sx150x_pin_is_oscio(pctl, pin)) pin 777 drivers/pinctrl/pinctrl-sx150x.c BIT(pin), BIT(pin)); pin 785 drivers/pinctrl/pinctrl-sx150x.c sx150x_pin_is_oscio(pctl, pin)) pin 790 drivers/pinctrl/pinctrl-sx150x.c BIT(pin), 0); pin 798 drivers/pinctrl/pinctrl-sx150x.c pin, arg); pin 603 drivers/pinctrl/pinctrl-tb10x.c unsigned pin) pin 631 drivers/pinctrl/pinctrl-tb10x.c if (pin == pfg->pins[j]) { pin 659 drivers/pinctrl/pinctrl-tb10x.c set_bit(pin, state->gpios); pin 677 drivers/pinctrl/pinctrl-tb10x.c unsigned pin) pin 683 drivers/pinctrl/pinctrl-tb10x.c clear_bit(pin, state->gpios); pin 1002 drivers/pinctrl/pinctrl-u300.c static int u300_pin_config_get(struct pinctrl_dev *pctldev, unsigned pin, pin 1006 drivers/pinctrl/pinctrl-u300.c pinctrl_find_gpio_range_from_pin(pctldev, pin); pin 1013 drivers/pinctrl/pinctrl-u300.c (pin - range->pin_base + range->base), pin 1017 drivers/pinctrl/pinctrl-u300.c static int u300_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, pin 1021 drivers/pinctrl/pinctrl-u300.c pinctrl_find_gpio_range_from_pin(pctldev, pin); pin 1030 drivers/pinctrl/pinctrl-u300.c (pin - range->pin_base + range->base), pin 66 drivers/pinctrl/pinctrl-xway.c .pin = a, \ pin 1334 drivers/pinctrl/pinctrl-xway.c unsigned pin, pin 1339 drivers/pinctrl/pinctrl-xway.c int port = PORT(pin); pin 1347 drivers/pinctrl/pinctrl-xway.c reg = GPIO_OD(pin); pin 1349 drivers/pinctrl/pinctrl-xway.c !gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); pin 1356 drivers/pinctrl/pinctrl-xway.c reg = GPIO_PUDEN(pin); pin 1357 drivers/pinctrl/pinctrl-xway.c if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) { pin 1365 drivers/pinctrl/pinctrl-xway.c reg = GPIO_PUDSEL(pin); pin 1366 drivers/pinctrl/pinctrl-xway.c if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) pin 1373 drivers/pinctrl/pinctrl-xway.c reg = GPIO_DIR(pin); pin 1375 drivers/pinctrl/pinctrl-xway.c gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); pin 1385 drivers/pinctrl/pinctrl-xway.c unsigned pin, pin 1392 drivers/pinctrl/pinctrl-xway.c int port = PORT(pin); pin 1405 drivers/pinctrl/pinctrl-xway.c reg = GPIO_OD(pin); pin 1409 drivers/pinctrl/pinctrl-xway.c PORT_PIN(pin)); pin 1413 drivers/pinctrl/pinctrl-xway.c PORT_PIN(pin)); pin 1420 drivers/pinctrl/pinctrl-xway.c reg = GPIO_PUDEN(pin); pin 1424 drivers/pinctrl/pinctrl-xway.c PORT_PIN(pin)); pin 1427 drivers/pinctrl/pinctrl-xway.c gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); pin 1432 drivers/pinctrl/pinctrl-xway.c reg = GPIO_PUDSEL(pin); pin 1436 drivers/pinctrl/pinctrl-xway.c PORT_PIN(pin)); pin 1440 drivers/pinctrl/pinctrl-xway.c PORT_PIN(pin)); pin 1447 drivers/pinctrl/pinctrl-xway.c reg = GPIO_DIR(pin); pin 1451 drivers/pinctrl/pinctrl-xway.c PORT_PIN(pin)); pin 1455 drivers/pinctrl/pinctrl-xway.c PORT_PIN(pin)); pin 1497 drivers/pinctrl/pinctrl-xway.c int pin, int mux) pin 1500 drivers/pinctrl/pinctrl-xway.c int port = PORT(pin); pin 1501 drivers/pinctrl/pinctrl-xway.c u32 alt1_reg = GPIO_ALT1(pin); pin 1507 drivers/pinctrl/pinctrl-xway.c gpio_setbit(info->membase[0], GPIO_ALT0(pin), PORT_PIN(pin)); pin 1509 drivers/pinctrl/pinctrl-xway.c gpio_clearbit(info->membase[0], GPIO_ALT0(pin), PORT_PIN(pin)); pin 1512 drivers/pinctrl/pinctrl-xway.c gpio_setbit(info->membase[0], alt1_reg, PORT_PIN(pin)); pin 1514 drivers/pinctrl/pinctrl-xway.c gpio_clearbit(info->membase[0], alt1_reg, PORT_PIN(pin)); pin 1533 drivers/pinctrl/pinctrl-xway.c static void xway_gpio_set(struct gpio_chip *chip, unsigned int pin, int val) pin 1538 drivers/pinctrl/pinctrl-xway.c gpio_setbit(info->membase[0], GPIO_OUT(pin), PORT_PIN(pin)); pin 1540 drivers/pinctrl/pinctrl-xway.c gpio_clearbit(info->membase[0], GPIO_OUT(pin), PORT_PIN(pin)); pin 1543 drivers/pinctrl/pinctrl-xway.c static int xway_gpio_get(struct gpio_chip *chip, unsigned int pin) pin 1547 drivers/pinctrl/pinctrl-xway.c return !!gpio_getbit(info->membase[0], GPIO_IN(pin), PORT_PIN(pin)); pin 1550 drivers/pinctrl/pinctrl-xway.c static int xway_gpio_dir_in(struct gpio_chip *chip, unsigned int pin) pin 1554 drivers/pinctrl/pinctrl-xway.c gpio_clearbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin)); pin 1559 drivers/pinctrl/pinctrl-xway.c static int xway_gpio_dir_out(struct gpio_chip *chip, unsigned int pin, int val) pin 1563 drivers/pinctrl/pinctrl-xway.c if (PORT(pin) == PORT3) pin 1564 drivers/pinctrl/pinctrl-xway.c gpio_setbit(info->membase[0], GPIO3_OD, PORT_PIN(pin)); pin 1566 drivers/pinctrl/pinctrl-xway.c gpio_setbit(info->membase[0], GPIO_OD(pin), PORT_PIN(pin)); pin 1567 drivers/pinctrl/pinctrl-xway.c gpio_setbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin)); pin 1568 drivers/pinctrl/pinctrl-xway.c xway_gpio_set(chip, pin, val); pin 919 drivers/pinctrl/pinctrl-zynq.c unsigned int pin = pgrp->pins[i]; pin 920 drivers/pinctrl/pinctrl-zynq.c u32 reg, addr = pctrl->pctrl_offset + (4 * pin); pin 985 drivers/pinctrl/pinctrl-zynq.c unsigned int pin, pin 994 drivers/pinctrl/pinctrl-zynq.c if (pin >= ZYNQ_NUM_MIOS) pin 997 drivers/pinctrl/pinctrl-zynq.c ret = regmap_read(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), ®); pin 1042 drivers/pinctrl/pinctrl-zynq.c unsigned int pin, pin 1052 drivers/pinctrl/pinctrl-zynq.c if (pin >= ZYNQ_NUM_MIOS) pin 1055 drivers/pinctrl/pinctrl-zynq.c ret = regmap_read(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), ®); pin 1110 drivers/pinctrl/pinctrl-zynq.c ret = regmap_write(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), reg); pin 82 drivers/pinctrl/pinmux.c bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin) pin 84 drivers/pinctrl/pinmux.c struct pin_desc *desc = pin_desc_get(pctldev, pin); pin 106 drivers/pinctrl/pinmux.c int pin, const char *owner, pin 113 drivers/pinctrl/pinmux.c desc = pin_desc_get(pctldev, pin); pin 117 drivers/pinctrl/pinmux.c pin); pin 122 drivers/pinctrl/pinmux.c pin, desc->name, owner); pin 153 drivers/pinctrl/pinmux.c pin); pin 164 drivers/pinctrl/pinmux.c status = ops->gpio_request_enable(pctldev, gpio_range, pin); pin 166 drivers/pinctrl/pinmux.c status = ops->request(pctldev, pin); pin 171 drivers/pinctrl/pinmux.c dev_err(pctldev->dev, "request() failed for pin %d\n", pin); pin 188 drivers/pinctrl/pinmux.c pin, owner, status); pin 204 drivers/pinctrl/pinmux.c static const char *pin_free(struct pinctrl_dev *pctldev, int pin, pin 211 drivers/pinctrl/pinmux.c desc = pin_desc_get(pctldev, pin); pin 234 drivers/pinctrl/pinmux.c ops->gpio_disable_free(pctldev, gpio_range, pin); pin 236 drivers/pinctrl/pinmux.c ops->free(pctldev, pin); pin 260 drivers/pinctrl/pinmux.c unsigned pin, unsigned gpio) pin 270 drivers/pinctrl/pinmux.c ret = pin_request(pctldev, pin, owner, range); pin 283 drivers/pinctrl/pinmux.c void pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin, pin 288 drivers/pinctrl/pinmux.c owner = pin_free(pctldev, pin, range); pin 301 drivers/pinctrl/pinmux.c unsigned pin, bool input) pin 309 drivers/pinctrl/pinmux.c ret = ops->gpio_set_direction(pctldev, range, pin, input); pin 582 drivers/pinctrl/pinmux.c unsigned i, pin; pin 602 drivers/pinctrl/pinmux.c pin = pctldev->desc->pins[i].number; pin 603 drivers/pinctrl/pinmux.c desc = pin_desc_get(pctldev, pin); pin 615 drivers/pinctrl/pinmux.c pin, desc->name, desc->mux_owner, pin 619 drivers/pinctrl/pinmux.c pin, desc->name, desc->gpio_owner); pin 622 drivers/pinctrl/pinmux.c pin, desc->name); pin 625 drivers/pinctrl/pinmux.c seq_printf(s, "pin %d (%s): %s %s%s", pin, desc->name, pin 18 drivers/pinctrl/pinmux.h bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin); pin 22 drivers/pinctrl/pinmux.h unsigned pin, unsigned gpio); pin 23 drivers/pinctrl/pinmux.h void pinmux_free_gpio(struct pinctrl_dev *pctldev, unsigned pin, pin 27 drivers/pinctrl/pinmux.h unsigned pin, bool input); pin 48 drivers/pinctrl/pinmux.h unsigned pin) pin 55 drivers/pinctrl/pinmux.h unsigned pin, unsigned gpio) pin 61 drivers/pinctrl/pinmux.h unsigned pin, pin 68 drivers/pinctrl/pinmux.h unsigned pin, bool input) pin 47 drivers/pinctrl/pxa/pinctrl-pxa2xx.c *pins = (unsigned *)&group->pin; pin 71 drivers/pinctrl/pxa/pinctrl-pxa2xx.c const struct pxa_desc_pin *pin = pctl->ppins + i; pin 73 drivers/pinctrl/pxa/pinctrl-pxa2xx.c if (!strcmp(pin->pin.name, pin_name)) pin 74 drivers/pinctrl/pxa/pinctrl-pxa2xx.c for (df = pin->functions; df->name; df++) pin 84 drivers/pinctrl/pxa/pinctrl-pxa2xx.c unsigned pin, pin 92 drivers/pinctrl/pxa/pinctrl-pxa2xx.c gpdr = pctl->base_gpdr[pin / 32]; pin 94 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pin, !input); pin 99 drivers/pinctrl/pxa/pinctrl-pxa2xx.c val = (val & ~BIT(pin % 32)) | (input ? 0 : BIT(pin % 32)); pin 143 drivers/pinctrl/pxa/pinctrl-pxa2xx.c int pin, shift; pin 154 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pin = group->pin; pin 155 drivers/pinctrl/pxa/pinctrl-pxa2xx.c gafr = pctl->base_gafr[pin / 16]; pin 156 drivers/pinctrl/pxa/pinctrl-pxa2xx.c gpdr = pctl->base_gpdr[pin / 32]; pin 157 drivers/pinctrl/pxa/pinctrl-pxa2xx.c shift = (pin % 16) << 1; pin 159 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pin, df->muxval >> 1, df->muxval & 0x1); pin 168 drivers/pinctrl/pxa/pinctrl-pxa2xx.c val = (val & ~BIT(pin % 32)) | ((df->muxval & 1) ? BIT(pin % 32) : 0); pin 190 drivers/pinctrl/pxa/pinctrl-pxa2xx.c unsigned pin = g->pin; pin 191 drivers/pinctrl/pxa/pinctrl-pxa2xx.c void __iomem *pgsr = pctl->base_pgsr[pin / 32]; pin 195 drivers/pinctrl/pxa/pinctrl-pxa2xx.c val = readl_relaxed(pgsr) & BIT(pin % 32); pin 200 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pin, !!val); pin 212 drivers/pinctrl/pxa/pinctrl-pxa2xx.c unsigned pin = g->pin; pin 213 drivers/pinctrl/pxa/pinctrl-pxa2xx.c void __iomem *pgsr = pctl->base_pgsr[pin / 32]; pin 228 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pin, is_set); pin 232 drivers/pinctrl/pxa/pinctrl-pxa2xx.c val = (val & ~BIT(pin % 32)) | (is_set ? BIT(pin % 32) : 0); pin 315 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pctl->ppins[j].pin.name; pin 349 drivers/pinctrl/pxa/pinctrl-pxa2xx.c pins[i] = ppins[i].pin; pin 358 drivers/pinctrl/pxa/pinctrl-pxa2xx.c group->name = ppins[i].pin.name; pin 359 drivers/pinctrl/pxa/pinctrl-pxa2xx.c group->pin = ppins[i].pin.number; pin 382 drivers/pinctrl/pxa/pinctrl-pxa2xx.c maxpin = max_t(int, ppins[i].pin.number, maxpin); pin 19 drivers/pinctrl/pxa/pinctrl-pxa2xx.h .pin = _pin, \ pin 26 drivers/pinctrl/pxa/pinctrl-pxa2xx.h .pin = _pin, \ pin 35 drivers/pinctrl/pxa/pinctrl-pxa2xx.h .pin = _pin, \ pin 42 drivers/pinctrl/pxa/pinctrl-pxa2xx.h #define PXA_PINCTRL_PIN(pin) \ pin 43 drivers/pinctrl/pxa/pinctrl-pxa2xx.h PINCTRL_PIN(pin, "P" #pin) pin 51 drivers/pinctrl/pxa/pinctrl-pxa2xx.h struct pinctrl_pin_desc pin; pin 57 drivers/pinctrl/pxa/pinctrl-pxa2xx.h unsigned pin; pin 113 drivers/pinctrl/qcom/pinctrl-apq8064.c #define DECLARE_APQ_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin } pin 170 drivers/pinctrl/qcom/pinctrl-apq8084.c #define DECLARE_APQ_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin } pin 116 drivers/pinctrl/qcom/pinctrl-ipq4019.c #define DECLARE_QCA_GPIO_PINS(pin) \ pin 117 drivers/pinctrl/qcom/pinctrl-ipq4019.c static const unsigned int gpio##pin##_pins[] = { pin } pin 89 drivers/pinctrl/qcom/pinctrl-ipq8064.c #define DECLARE_IPQ_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin } pin 132 drivers/pinctrl/qcom/pinctrl-ipq8074.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 133 drivers/pinctrl/qcom/pinctrl-ipq8074.c static const unsigned int gpio##pin##_pins[] = { pin } pin 107 drivers/pinctrl/qcom/pinctrl-mdm9615.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 108 drivers/pinctrl/qcom/pinctrl-mdm9615.c static const unsigned int gpio##pin##_pins[] = { pin } pin 196 drivers/pinctrl/qcom/pinctrl-msm8660.c #define DECLARE_MSM_GPIO_PIN(pin) static const unsigned int gpio##pin##_pins[] = { pin } pin 150 drivers/pinctrl/qcom/pinctrl-msm8916.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 151 drivers/pinctrl/qcom/pinctrl-msm8916.c static const unsigned int gpio##pin##_pins[] = { pin } pin 176 drivers/pinctrl/qcom/pinctrl-msm8960.c #define DECLARE_MSM_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin } pin 245 drivers/pinctrl/qcom/pinctrl-msm8994.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 246 drivers/pinctrl/qcom/pinctrl-msm8994.c static const unsigned int gpio##pin##_pins[] = { pin } pin 245 drivers/pinctrl/qcom/pinctrl-msm8996.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 246 drivers/pinctrl/qcom/pinctrl-msm8996.c static const unsigned int gpio##pin##_pins[] = { pin } pin 270 drivers/pinctrl/qcom/pinctrl-msm8998.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 271 drivers/pinctrl/qcom/pinctrl-msm8998.c static const unsigned int gpio##pin##_pins[] = { pin } pin 171 drivers/pinctrl/qcom/pinctrl-msm8x74.c #define DECLARE_MSM_GPIO_PINS(pin) static const unsigned int gpio##pin##_pins[] = { pin } pin 228 drivers/pinctrl/qcom/pinctrl-qcs404.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 229 drivers/pinctrl/qcom/pinctrl-qcs404.c static const unsigned int gpio##pin##_pins[] = { pin } pin 251 drivers/pinctrl/qcom/pinctrl-sc7180.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 252 drivers/pinctrl/qcom/pinctrl-sc7180.c static const unsigned int gpio##pin##_pins[] = { pin } pin 226 drivers/pinctrl/qcom/pinctrl-sdm660.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 227 drivers/pinctrl/qcom/pinctrl-sdm660.c static const unsigned int gpio##pin##_pins[] = { pin } pin 271 drivers/pinctrl/qcom/pinctrl-sdm845.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 272 drivers/pinctrl/qcom/pinctrl-sdm845.c static const unsigned int gpio##pin##_pins[] = { pin } pin 306 drivers/pinctrl/qcom/pinctrl-sm8150.c #define DECLARE_MSM_GPIO_PINS(pin) \ pin 307 drivers/pinctrl/qcom/pinctrl-sm8150.c static const unsigned int gpio##pin##_pins[] = { pin } pin 249 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c unsigned pin) pin 251 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c return pctldev->desc->pins[pin].name; pin 254 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c static int pmic_gpio_get_group_pins(struct pinctrl_dev *pctldev, unsigned pin, pin 257 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c *pins = &pctldev->desc->pins[pin].number; pin 292 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c unsigned pin) pin 304 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; pin 374 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c unsigned int pin, unsigned long *config) pin 380 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; pin 452 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c static int pmic_gpio_config_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 461 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; pin 619 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c struct seq_file *s, unsigned pin) pin 636 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = pctldev->desc->pins[pin].drv_data; pin 638 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c seq_printf(s, " gpio%-2d:", pin + PMIC_GPIO_PHYSICAL_OFFSET); pin 686 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c static int pmic_gpio_direction_input(struct gpio_chip *chip, unsigned pin) pin 693 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c return pmic_gpio_config_set(state->ctrl, pin, &config, 1); pin 697 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c unsigned pin, int val) pin 704 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c return pmic_gpio_config_set(state->ctrl, pin, &config, 1); pin 707 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c static int pmic_gpio_get(struct gpio_chip *chip, unsigned pin) pin 713 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pad = state->ctrl->desc->pins[pin].drv_data; pin 729 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c static void pmic_gpio_set(struct gpio_chip *chip, unsigned pin, int value) pin 736 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c pmic_gpio_config_set(state->ctrl, pin, &config, 1); pin 211 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c unsigned pin) pin 213 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c return pctldev->desc->pins[pin].name; pin 217 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c unsigned pin, pin 220 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c *pins = &pctldev->desc->pins[pin].number; pin 302 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c unsigned pin) pin 309 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; pin 330 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c unsigned int pin, unsigned long *config) pin 336 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; pin 401 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c static int pmic_mpp_config_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 410 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; pin 514 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c struct seq_file *s, unsigned pin) pin 524 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = pctldev->desc->pins[pin].drv_data; pin 526 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c seq_printf(s, " mpp%-2d:", pin + PMIC_MPP_PHYSICAL_OFFSET); pin 562 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c static int pmic_mpp_direction_input(struct gpio_chip *chip, unsigned pin) pin 569 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c return pmic_mpp_config_set(state->ctrl, pin, &config, 1); pin 573 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c unsigned pin, int val) pin 580 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c return pmic_mpp_config_set(state->ctrl, pin, &config, 1); pin 583 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c static int pmic_mpp_get(struct gpio_chip *chip, unsigned pin) pin 589 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = state->ctrl->desc->pins[pin].drv_data; pin 602 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c static void pmic_mpp_set(struct gpio_chip *chip, unsigned pin, int value) pin 609 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pmic_mpp_config_set(state->ctrl, pin, &config, 1); pin 625 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c static int pmic_mpp_to_irq(struct gpio_chip *chip, unsigned pin) pin 630 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c pad = state->ctrl->desc->pins[pin].drv_data; pin 131 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin, int bank) pin 136 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c ret = regmap_write(pctrl->regmap, pin->reg, val); pin 142 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c ret = regmap_read(pctrl->regmap, pin->reg, &val); pin 152 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin, pin 161 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c ret = regmap_write(pctrl->regmap, pin->reg, val); pin 231 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[group].drv_data; pin 234 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->function = function; pin 235 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->function << 1; pin 237 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 4, val); pin 254 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 260 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->bias != PM8XXX_GPIO_BIAS_NP) pin 265 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->bias != PM8XXX_GPIO_BIAS_PD) pin 270 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->bias > PM8XXX_GPIO_BIAS_PU_1P5_30) pin 275 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c arg = pin->pull_up_strength; pin 278 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (!pin->disable) pin 283 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->mode != PM8XXX_GPIO_MODE_INPUT) pin 288 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->mode & PM8XXX_GPIO_MODE_OUTPUT) pin 289 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c arg = pin->output_value; pin 294 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c arg = pin->power_source; pin 297 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c arg = pin->output_strength; pin 300 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->open_drain) pin 305 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (!pin->open_drain) pin 324 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 337 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->bias = PM8XXX_GPIO_BIAS_NP; pin 339 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->disable = 0; pin 343 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->bias = PM8XXX_GPIO_BIAS_PD; pin 345 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->disable = 0; pin 353 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->pull_up_strength = arg; pin 356 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->bias = pin->pull_up_strength; pin 358 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->disable = 0; pin 362 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->disable = 1; pin 366 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_INPUT; pin 370 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_OUTPUT; pin 371 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->output_value = !!arg; pin 375 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->power_source = arg; pin 383 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->output_strength = arg; pin 387 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->open_drain = 0; pin 391 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->open_drain = 1; pin 403 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->power_source << 1; pin 405 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 0, val); pin 409 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; pin 410 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val |= pin->open_drain << 1; pin 411 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val |= pin->output_value; pin 412 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 1, val); pin 416 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->bias << 1; pin 417 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 2, val); pin 421 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->output_strength << 2; pin 422 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val |= pin->disable; pin 423 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 3, val); pin 427 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->function << 1; pin 428 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 4, val); pin 433 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (!pin->inverted) pin 435 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 5, val); pin 459 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 462 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_INPUT; pin 463 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; pin 465 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 1, val); pin 475 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 478 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_OUTPUT; pin 479 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->output_value = !!value; pin 481 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; pin 482 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val |= pin->open_drain << 1; pin 483 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val |= pin->output_value; pin 485 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 1, val); pin 493 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 497 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->mode == PM8XXX_GPIO_MODE_OUTPUT) { pin 498 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c ret = pin->output_value; pin 499 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c } else if (pin->irq >= 0) { pin 500 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c ret = irq_get_irqchip_state(pin->irq, IRQCHIP_STATE_LINE_LEVEL, &state); pin 512 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 515 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->output_value = !!value; pin 517 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; pin 518 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val |= pin->open_drain << 1; pin 519 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val |= pin->output_value; pin 521 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pm8xxx_write_bank(pctrl, pin, 1, val); pin 541 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 556 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->irq = ret; pin 564 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 566 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->irq = -1; pin 579 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 596 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->disable) { pin 599 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " %-4s", modes[pin->mode]); pin 600 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " %-7s", pm8xxx_gpio_functions[pin->function]); pin 601 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " VIN%d", pin->power_source); pin 602 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " %-27s", biases[pin->bias]); pin 603 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " %-10s", buffer_types[pin->open_drain]); pin 604 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " %-4s", pin->output_value ? "high" : "low"); pin 605 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " %-7s", strengths[pin->output_strength]); pin 606 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->inverted) pin 639 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_pin_data *pin) pin 643 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pm8xxx_read_bank(pctrl, pin, 0); pin 647 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->power_source = (val >> 1) & 0x7; pin 649 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pm8xxx_read_bank(pctrl, pin, 1); pin 653 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = (val >> 2) & 0x3; pin 654 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->open_drain = !!(val & BIT(1)); pin 655 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->output_value = val & BIT(0); pin 657 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pm8xxx_read_bank(pctrl, pin, 2); pin 661 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->bias = (val >> 1) & 0x7; pin 662 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->bias <= PM8XXX_GPIO_BIAS_PU_1P5_30) pin 663 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->pull_up_strength = pin->bias; pin 665 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->pull_up_strength = PM8XXX_GPIO_BIAS_PU_30; pin 667 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pm8xxx_read_bank(pctrl, pin, 3); pin 671 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->output_strength = (val >> 2) & 0x3; pin 672 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->disable = val & BIT(0); pin 674 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pm8xxx_read_bank(pctrl, pin, 4); pin 678 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->function = (val >> 1) & 0x7; pin 680 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pm8xxx_read_bank(pctrl, pin, 5); pin 684 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->inverted = !(val & BIT(3)); pin 165 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin) pin 173 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { pin 175 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->dtest) { pin 177 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ctrl = pin->dtest - 1; pin 178 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c } else if (pin->input && pin->output) { pin 180 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->high_z) pin 182 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c else if (pin->pullup == 600) pin 184 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c else if (pin->pullup == 10000) pin 188 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c } else if (pin->input) { pin 190 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->dtest) pin 191 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ctrl = pin->dtest; pin 196 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ctrl = !!pin->output_value; pin 197 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->paired) pin 201 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c level = pin->power_source; pin 204 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->output) { pin 206 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c level = pin->aout_level; pin 207 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ctrl = pin->output_value; pin 208 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->paired) pin 212 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c level = pin->amux; pin 217 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c level = (pin->drive_strength / 5) - 1; pin 218 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->dtest) { pin 220 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ctrl = pin->dtest - 1; pin 223 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ctrl = pin->output_value; pin 224 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->paired) pin 233 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ret = regmap_write(pctrl->regmap, pin->reg, val); pin 303 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[group].drv_data; pin 305 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = function; pin 306 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pm8xxx_mpp_update(pctrl, pin); pin 323 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 329 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->pullup; pin 332 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->high_z; pin 335 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->input; pin 338 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->output_value; pin 341 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->power_source; pin 344 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->drive_strength; pin 347 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->dtest; pin 350 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->amux; pin 353 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->aout_level; pin 356 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c arg = pin->paired; pin 373 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 384 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->pullup = arg; pin 387 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->high_z = true; pin 390 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = true; pin 393 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 394 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output_value = !!arg; pin 397 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->power_source = arg; pin 400 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->drive_strength = arg; pin 403 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->dtest = arg; pin 406 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->amux = arg; pin 409 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->aout_level = arg; pin 412 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->paired = !!arg; pin 422 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pm8xxx_mpp_update(pctrl, pin); pin 445 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 447 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { pin 449 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = true; pin 452 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = true; pin 453 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 459 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pm8xxx_mpp_update(pctrl, pin); pin 469 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 471 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { pin 473 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 476 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = false; pin 477 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 480 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = false; pin 481 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 485 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pm8xxx_mpp_update(pctrl, pin); pin 493 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 497 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (!pin->input) pin 498 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c return !!pin->output_value; pin 500 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ret = irq_get_irqchip_state(pin->irq, IRQCHIP_STATE_LINE_LEVEL, &state); pin 510 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 512 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output_value = !!value; pin 514 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pm8xxx_mpp_update(pctrl, pin); pin 534 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 536 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c return pin->irq; pin 549 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin = pctrl->desc.pins[offset].drv_data; pin 563 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { pin 566 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->dtest) { pin 567 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_printf(s, "dtest%d\n", pin->dtest); pin 568 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c } else if (pin->input && pin->output) { pin 569 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->high_z) pin 572 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_printf(s, "bi-dir %dOhm", pin->pullup); pin 573 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c } else if (pin->input) { pin 574 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->dtest) pin 575 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_printf(s, "in dtest%d", pin->dtest); pin 578 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c } else if (pin->output) { pin 581 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (!pin->paired) { pin 582 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_puts(s, pin->output_value ? pin 585 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_puts(s, pin->output_value ? pin 592 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->output) { pin 593 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_printf(s, "out %s ", aout_lvls[pin->aout_level]); pin 594 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (!pin->paired) { pin 595 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_puts(s, pin->output_value ? pin 598 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_puts(s, pin->output_value ? pin 602 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_printf(s, "input mux %s", amuxs[pin->amux]); pin 606 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_printf(s, " sink %dmA ", pin->drive_strength); pin 607 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (pin->dtest) { pin 608 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_printf(s, "dtest%d", pin->dtest); pin 610 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c if (!pin->paired) { pin 611 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_puts(s, pin->output_value ? pin 614 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c seq_puts(s, pin->output_value ? pin 650 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c struct pm8xxx_pin_data *pin) pin 658 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c ret = regmap_read(pctrl->regmap, pin->reg, &val); pin 670 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; pin 671 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = true; pin 672 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->power_source = level; pin 673 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->dtest = ctrl; pin 676 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; pin 677 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 678 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->power_source = level; pin 679 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output_value = !!(ctrl & BIT(0)); pin 680 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->paired = !!(ctrl & BIT(1)); pin 683 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; pin 684 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = true; pin 685 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 686 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->power_source = level; pin 689 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->pullup = 600; pin 692 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->high_z = true; pin 695 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->pullup = 10000; pin 698 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->pullup = 30000; pin 703 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_ANALOG; pin 704 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->input = true; pin 705 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->amux = level; pin 708 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_ANALOG; pin 709 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output = true; pin 710 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->aout_level = level; pin 711 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output_value = !!(ctrl & BIT(0)); pin 712 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->paired = !!(ctrl & BIT(1)); pin 715 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_SINK; pin 716 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->drive_strength = 5 * (level + 1); pin 717 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->output_value = !!(ctrl & BIT(0)); pin 718 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->paired = !!(ctrl & BIT(1)); pin 721 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_SINK; pin 722 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->dtest = ctrl + 1; pin 723 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->drive_strength = 5 * (level + 1); pin 726 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; pin 727 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->power_source = level; pin 729 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->dtest = ctrl; pin 247 drivers/pinctrl/samsung/pinctrl-exynos.c unsigned int svc, group, pin, virq; pin 251 drivers/pinctrl/samsung/pinctrl-exynos.c pin = svc & EXYNOS_SVC_NUM_MASK; pin 257 drivers/pinctrl/samsung/pinctrl-exynos.c virq = irq_linear_revmap(bank->irq_domain, pin); pin 139 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pin_bank *bank, int pin) pin 150 drivers/pinctrl/samsung/pinctrl-s3c24xx.c shift = pin * bank_type->fld_width[PINCFG_TYPE_FUNC]; pin 522 drivers/pinctrl/samsung/pinctrl-s3c24xx.c unsigned int pin; pin 547 drivers/pinctrl/samsung/pinctrl-s3c24xx.c for (pin = 0; mask; ++pin, mask >>= 1) { pin 268 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pin_bank *bank, int pin) pin 279 drivers/pinctrl/samsung/pinctrl-s3c64xx.c shift = pin; pin 416 drivers/pinctrl/samsung/pinctrl-s3c64xx.c unsigned int pin; pin 421 drivers/pinctrl/samsung/pinctrl-s3c64xx.c pin = svc & SVC_NUM_MASK; pin 428 drivers/pinctrl/samsung/pinctrl-s3c64xx.c if (pin < 8) pin 431 drivers/pinctrl/samsung/pinctrl-s3c64xx.c pin -= 8; pin 434 drivers/pinctrl/samsung/pinctrl-s3c64xx.c virq = irq_linear_revmap(data->domains[group], pin); pin 735 drivers/pinctrl/samsung/pinctrl-s3c64xx.c unsigned int pin; pin 758 drivers/pinctrl/samsung/pinctrl-s3c64xx.c for (pin = 0; mask; ++pin, mask >>= 1) { pin 762 drivers/pinctrl/samsung/pinctrl-s3c64xx.c data->pins[irq] = pin; pin 763 drivers/pinctrl/samsung/pinctrl-s3c64xx.c ddata->eints[pin] = irq; pin 285 drivers/pinctrl/samsung/pinctrl-samsung.c static int samsung_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 291 drivers/pinctrl/samsung/pinctrl-samsung.c struct seq_file *s, unsigned int pin) pin 299 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_pinconf_get(pctldev, pin, &config); pin 358 drivers/pinctrl/samsung/pinctrl-samsung.c unsigned pin, void __iomem **reg, u32 *offset, pin 365 drivers/pinctrl/samsung/pinctrl-samsung.c while ((pin >= b->pin_base) && pin 366 drivers/pinctrl/samsung/pinctrl-samsung.c ((b->pin_base + b->nr_pins - 1) < pin)) pin 370 drivers/pinctrl/samsung/pinctrl-samsung.c *offset = pin - b->pin_base; pin 431 drivers/pinctrl/samsung/pinctrl-samsung.c static int samsung_pinconf_rw(struct pinctrl_dev *pctldev, unsigned int pin, pin 444 drivers/pinctrl/samsung/pinctrl-samsung.c pin_to_reg_bank(drvdata, pin - drvdata->pin_base, ®_base, pin 477 drivers/pinctrl/samsung/pinctrl-samsung.c static int samsung_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 483 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_pinconf_rw(pctldev, pin, &configs[i], true); pin 492 drivers/pinctrl/samsung/pinctrl-samsung.c static int samsung_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 495 drivers/pinctrl/samsung/pinctrl-samsung.c return samsung_pinconf_rw(pctldev, pin, config, false); pin 861 drivers/pinctrl/samsung/pinctrl-samsung.c int pin, bank, ret; pin 878 drivers/pinctrl/samsung/pinctrl-samsung.c for (pin = 0, pdesc = pindesc; pin < ctrldesc->npins; pin++, pdesc++) pin 879 drivers/pinctrl/samsung/pinctrl-samsung.c pdesc->number = pin + drvdata->pin_base; pin 895 drivers/pinctrl/samsung/pinctrl-samsung.c for (pin = 0; pin < pin_bank->nr_pins; pin++) { pin 896 drivers/pinctrl/samsung/pinctrl-samsung.c sprintf(pin_names, "%s-%d", pin_bank->name, pin); pin 897 drivers/pinctrl/samsung/pinctrl-samsung.c pdesc = pindesc + pin_bank->pin_base + pin; pin 110 drivers/pinctrl/sh-pfc/core.c int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin) pin 118 drivers/pinctrl/sh-pfc/core.c if (pin <= range->end) pin 119 drivers/pinctrl/sh-pfc/core.c return pin >= range->start pin 120 drivers/pinctrl/sh-pfc/core.c ? offset + pin - range->start : -1; pin 387 drivers/pinctrl/sh-pfc/core.c sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin, pin 394 drivers/pinctrl/sh-pfc/core.c if (pfc->info->bias_regs[i].pins[j] == pin) { pin 401 drivers/pinctrl/sh-pfc/core.c WARN_ONCE(1, "Pin %u is not in bias info list\n", pin); pin 412 drivers/pinctrl/sh-pfc/core.c if (pfc->info->pins[0].pin == (u16)-1) { pin 435 drivers/pinctrl/sh-pfc/core.c if (pfc->info->pins[i-1].pin != pfc->info->pins[i].pin - 1) pin 446 drivers/pinctrl/sh-pfc/core.c range->start = pfc->info->pins[0].pin; pin 449 drivers/pinctrl/sh-pfc/core.c if (pfc->info->pins[i-1].pin == pfc->info->pins[i].pin - 1) pin 452 drivers/pinctrl/sh-pfc/core.c range->end = pfc->info->pins[i-1].pin; pin 457 drivers/pinctrl/sh-pfc/core.c range->start = pfc->info->pins[i].pin; pin 460 drivers/pinctrl/sh-pfc/core.c range->end = pfc->info->pins[i-1].pin; pin 782 drivers/pinctrl/sh-pfc/core.c if (info->pins[i].pin != (u16)-1 && pin 783 drivers/pinctrl/sh-pfc/core.c info->pins[i].pin == info->pins[j].pin) { pin 786 drivers/pinctrl/sh-pfc/core.c info->pins[j].name, info->pins[i].pin); pin 29 drivers/pinctrl/sh-pfc/core.h int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin); pin 33 drivers/pinctrl/sh-pfc/core.h sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin, pin 77 drivers/pinctrl/sh-pfc/gpio.c const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; pin 84 drivers/pinctrl/sh-pfc/gpio.c if (dreg->enum_ids[bit] == pin->enum_id) { pin 671 drivers/pinctrl/sh-pfc/pfc-emev2.c #define EMEV_MUX_PIN(name, pin, mark) \ pin 672 drivers/pinctrl/sh-pfc/pfc-emev2.c static const unsigned int name##_pins[] = { pin }; \ pin 1257 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c #define R8A73A4_PIN_IO_PU_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PUD) pin 1258 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c #define R8A73A4_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) pin 1386 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c #define IRQC_PINS_MUX(pin, irq_mark) \ pin 1388 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c pin, \ pin 2664 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c unsigned int pin) pin 2668 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c addr = pfc->windows->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; pin 2681 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c static void r8a73a4_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 2687 drivers/pinctrl/sh-pfc/pfc-r8a73a4.c addr = pfc->windows->virt + r8a73a4_portcr_offsets[pin >> 5] + pin; pin 20 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define IRQC_PIN_MUX(irq, pin) \ pin 22 drivers/pinctrl/sh-pfc/pfc-r8a7740.c pin, \ pin 28 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define IRQC_PINS_MUX(irq, idx, pin) \ pin 30 drivers/pinctrl/sh-pfc/pfc-r8a7740.c pin, \ pin 33 drivers/pinctrl/sh-pfc/pfc-r8a7740.c IRQ##irq##_PORT##pin##_MARK, \ pin 1520 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_I_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PD) pin 1521 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_I_PU(pin) SH_PFC_PIN_CFG(pin, __I | __PU) pin 1522 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_I_PU_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PUD) pin 1523 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_IO(pin) SH_PFC_PIN_CFG(pin, __IO) pin 1524 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_IO_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PD) pin 1525 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_IO_PU(pin) SH_PFC_PIN_CFG(pin, __IO | __PU) pin 1526 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_IO_PU_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PUD) pin 1527 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) pin 1528 drivers/pinctrl/sh-pfc/pfc-r8a7740.c #define R8A7740_PIN_O_PU_PD(pin) SH_PFC_PIN_CFG(pin, __O | __PUD) pin 3689 drivers/pinctrl/sh-pfc/pfc-r8a7740.c static void __iomem *r8a7740_pinmux_portcr(struct sh_pfc *pfc, unsigned int pin) pin 3697 drivers/pinctrl/sh-pfc/pfc-r8a7740.c if (pin <= group->end_pin) pin 3698 drivers/pinctrl/sh-pfc/pfc-r8a7740.c return pfc->windows->virt + group->offset + pin; pin 3704 drivers/pinctrl/sh-pfc/pfc-r8a7740.c static unsigned int r8a7740_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) pin 3706 drivers/pinctrl/sh-pfc/pfc-r8a7740.c void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin); pin 3720 drivers/pinctrl/sh-pfc/pfc-r8a7740.c static void r8a7740_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 3723 drivers/pinctrl/sh-pfc/pfc-r8a7740.c void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin); pin 3404 drivers/pinctrl/sh-pfc/pfc-r8a77470.c static int r8a77470_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, pin 3411 drivers/pinctrl/sh-pfc/pfc-r8a77470.c if (pin >= RCAR_GP_PIN(0, 5) && pin <= RCAR_GP_PIN(0, 10)) pin 3414 drivers/pinctrl/sh-pfc/pfc-r8a77470.c if (pin >= RCAR_GP_PIN(0, 13) && pin <= RCAR_GP_PIN(0, 22)) pin 3417 drivers/pinctrl/sh-pfc/pfc-r8a77470.c if (pin >= RCAR_GP_PIN(4, 14) && pin <= RCAR_GP_PIN(4, 19)) pin 22 drivers/pinctrl/sh-pfc/pfc-r8a7778.c #define PORT_GP_PUP_1(bank, pin, fn, sfx) \ pin 23 drivers/pinctrl/sh-pfc/pfc-r8a7778.c PORT_GP_CFG_1(bank, pin, fn, sfx, SH_PFC_PIN_CFG_PULL_UP) pin 1278 drivers/pinctrl/sh-pfc/pfc-r8a7778.c #define AUDIO_PFC_PIN(name, pin) SH_PFC_PINS(name, pin) pin 1279 drivers/pinctrl/sh-pfc/pfc-r8a7778.c #define AUDIO_PFC_DAT(name, pin) SH_PFC_MUX1(name, pin) pin 3120 drivers/pinctrl/sh-pfc/pfc-r8a7778.c unsigned int pin) pin 3126 drivers/pinctrl/sh-pfc/pfc-r8a7778.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 3138 drivers/pinctrl/sh-pfc/pfc-r8a7778.c static void r8a7778_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 3146 drivers/pinctrl/sh-pfc/pfc-r8a7778.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 5710 drivers/pinctrl/sh-pfc/pfc-r8a7790.c static int r8a7790_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) pin 5712 drivers/pinctrl/sh-pfc/pfc-r8a7790.c if (pin < RCAR_GP_PIN(3, 0) || pin > RCAR_GP_PIN(3, 31)) pin 5717 drivers/pinctrl/sh-pfc/pfc-r8a7790.c return 31 - (pin & 0x1f); pin 6620 drivers/pinctrl/sh-pfc/pfc-r8a7791.c static int r8a7791_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) pin 6622 drivers/pinctrl/sh-pfc/pfc-r8a7791.c if (pin < RCAR_GP_PIN(6, 0) || pin > RCAR_GP_PIN(6, 23)) pin 6627 drivers/pinctrl/sh-pfc/pfc-r8a7791.c return 31 - (pin & 0x1f); pin 5564 drivers/pinctrl/sh-pfc/pfc-r8a7794.c static int r8a7794_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) pin 5568 drivers/pinctrl/sh-pfc/pfc-r8a7794.c switch (pin & 0x1f) { pin 5575 drivers/pinctrl/sh-pfc/pfc-r8a7794.c return 22 - (pin & 0x1f); pin 5577 drivers/pinctrl/sh-pfc/pfc-r8a7794.c return 47 - (pin & 0x1f); pin 5565 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c static int r8a7795es1_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, pin 5572 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 11)) pin 5573 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c bit = pin & 0x1f; pin 5575 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17)) pin 5576 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c bit = (pin & 0x1f) + 12; pin 5824 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c unsigned int pin) pin 5829 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 5841 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c static void r8a7795es1_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 5848 drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 5918 drivers/pinctrl/sh-pfc/pfc-r8a7795.c static int r8a7795_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) pin 5924 drivers/pinctrl/sh-pfc/pfc-r8a7795.c if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 11)) pin 5925 drivers/pinctrl/sh-pfc/pfc-r8a7795.c bit = pin & 0x1f; pin 5927 drivers/pinctrl/sh-pfc/pfc-r8a7795.c if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17)) pin 5928 drivers/pinctrl/sh-pfc/pfc-r8a7795.c bit = (pin & 0x1f) + 12; pin 6176 drivers/pinctrl/sh-pfc/pfc-r8a7795.c unsigned int pin) pin 6181 drivers/pinctrl/sh-pfc/pfc-r8a7795.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 6193 drivers/pinctrl/sh-pfc/pfc-r8a7795.c static void r8a7795_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 6200 drivers/pinctrl/sh-pfc/pfc-r8a7795.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 5884 drivers/pinctrl/sh-pfc/pfc-r8a7796.c static int r8a7796_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) pin 5890 drivers/pinctrl/sh-pfc/pfc-r8a7796.c if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 11)) pin 5891 drivers/pinctrl/sh-pfc/pfc-r8a7796.c bit = pin & 0x1f; pin 5893 drivers/pinctrl/sh-pfc/pfc-r8a7796.c if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17)) pin 5894 drivers/pinctrl/sh-pfc/pfc-r8a7796.c bit = (pin & 0x1f) + 12; pin 6142 drivers/pinctrl/sh-pfc/pfc-r8a7796.c unsigned int pin) pin 6147 drivers/pinctrl/sh-pfc/pfc-r8a7796.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 6159 drivers/pinctrl/sh-pfc/pfc-r8a7796.c static void r8a7796_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 6166 drivers/pinctrl/sh-pfc/pfc-r8a7796.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 6124 drivers/pinctrl/sh-pfc/pfc-r8a77965.c static int r8a77965_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) pin 6130 drivers/pinctrl/sh-pfc/pfc-r8a77965.c if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 11)) pin 6131 drivers/pinctrl/sh-pfc/pfc-r8a77965.c bit = pin & 0x1f; pin 6133 drivers/pinctrl/sh-pfc/pfc-r8a77965.c if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17)) pin 6134 drivers/pinctrl/sh-pfc/pfc-r8a77965.c bit = (pin & 0x1f) + 12; pin 6382 drivers/pinctrl/sh-pfc/pfc-r8a77965.c unsigned int pin) pin 6387 drivers/pinctrl/sh-pfc/pfc-r8a77965.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 6399 drivers/pinctrl/sh-pfc/pfc-r8a77965.c static void r8a77965_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 6406 drivers/pinctrl/sh-pfc/pfc-r8a77965.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 2404 drivers/pinctrl/sh-pfc/pfc-r8a77970.c static int r8a77970_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, pin 2407 drivers/pinctrl/sh-pfc/pfc-r8a77970.c int bit = pin & 0x1f; pin 2410 drivers/pinctrl/sh-pfc/pfc-r8a77970.c if (pin >= RCAR_GP_PIN(0, 0) && pin <= RCAR_GP_PIN(0, 21)) pin 2412 drivers/pinctrl/sh-pfc/pfc-r8a77970.c if (pin >= RCAR_GP_PIN(2, 0) && pin <= RCAR_GP_PIN(2, 9)) pin 2416 drivers/pinctrl/sh-pfc/pfc-r8a77970.c if (pin >= RCAR_GP_PIN(2, 10) && pin <= RCAR_GP_PIN(2, 16)) pin 2418 drivers/pinctrl/sh-pfc/pfc-r8a77970.c if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 16)) pin 2848 drivers/pinctrl/sh-pfc/pfc-r8a77980.c static int r8a77980_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, pin 2851 drivers/pinctrl/sh-pfc/pfc-r8a77980.c int bit = pin & 0x1f; pin 2854 drivers/pinctrl/sh-pfc/pfc-r8a77980.c if (pin >= RCAR_GP_PIN(0, 0) && pin <= RCAR_GP_PIN(0, 21)) pin 2856 drivers/pinctrl/sh-pfc/pfc-r8a77980.c else if (pin >= RCAR_GP_PIN(2, 0) && pin <= RCAR_GP_PIN(2, 9)) pin 2860 drivers/pinctrl/sh-pfc/pfc-r8a77980.c if (pin >= RCAR_GP_PIN(2, 10) && pin <= RCAR_GP_PIN(2, 16)) pin 2862 drivers/pinctrl/sh-pfc/pfc-r8a77980.c if ((pin >= RCAR_GP_PIN(2, 17) && pin <= RCAR_GP_PIN(2, 24)) || pin 2863 drivers/pinctrl/sh-pfc/pfc-r8a77980.c (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 16))) pin 2867 drivers/pinctrl/sh-pfc/pfc-r8a77980.c if (pin >= RCAR_GP_PIN(2, 25) && pin <= RCAR_GP_PIN(2, 29)) pin 2868 drivers/pinctrl/sh-pfc/pfc-r8a77980.c return pin - 25; pin 5004 drivers/pinctrl/sh-pfc/pfc-r8a77990.c static int r8a77990_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, pin 5011 drivers/pinctrl/sh-pfc/pfc-r8a77990.c if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 11)) pin 5012 drivers/pinctrl/sh-pfc/pfc-r8a77990.c bit = pin & 0x1f; pin 5014 drivers/pinctrl/sh-pfc/pfc-r8a77990.c if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 10)) pin 5015 drivers/pinctrl/sh-pfc/pfc-r8a77990.c bit = (pin & 0x1f) + 19; pin 5229 drivers/pinctrl/sh-pfc/pfc-r8a77990.c unsigned int pin) pin 5234 drivers/pinctrl/sh-pfc/pfc-r8a77990.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 5246 drivers/pinctrl/sh-pfc/pfc-r8a77990.c static void r8a77990_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 5253 drivers/pinctrl/sh-pfc/pfc-r8a77990.c reg = sh_pfc_pin_to_bias_reg(pfc, pin, &bit); pin 2826 drivers/pinctrl/sh-pfc/pfc-r8a77995.c static int r8a77995_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl) pin 2832 drivers/pinctrl/sh-pfc/pfc-r8a77995.c if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 9)) pin 2833 drivers/pinctrl/sh-pfc/pfc-r8a77995.c bit = 29 - (pin - RCAR_GP_PIN(3, 0)); pin 1155 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_I_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PD) pin 1156 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_I_PU(pin) SH_PFC_PIN_CFG(pin, __I | __PU) pin 1157 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_I_PU_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PUD) pin 1158 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_IO(pin) SH_PFC_PIN_CFG(pin, __IO) pin 1159 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_IO_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PD) pin 1160 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_IO_PU(pin) SH_PFC_PIN_CFG(pin, __IO | __PU) pin 1161 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_IO_PU_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PUD) pin 1162 drivers/pinctrl/sh-pfc/pfc-sh73a0.c #define SH73A0_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O) pin 4323 drivers/pinctrl/sh-pfc/pfc-sh73a0.c static unsigned int sh73a0_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin) pin 4326 drivers/pinctrl/sh-pfc/pfc-sh73a0.c + sh73a0_portcr_offsets[pin >> 5] + pin; pin 4340 drivers/pinctrl/sh-pfc/pfc-sh73a0.c static void sh73a0_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, pin 4344 drivers/pinctrl/sh-pfc/pfc-sh73a0.c + sh73a0_portcr_offsets[pin >> 5] + pin; pin 23 drivers/pinctrl/sh-pfc/pfc-sh7734.c #define _GP_DATA(bank, pin, name, sfx, cfg) \ pin 26 drivers/pinctrl/sh-pfc/pfc-sh7734.c #define _GP_INOUTSEL(bank, pin, name, sfx, cfg) name##_IN, name##_OUT pin 27 drivers/pinctrl/sh-pfc/pfc-sh7734.c #define _GP_INDT(bank, pin, name, sfx, cfg) name##_DATA pin 119 drivers/pinctrl/sh-pfc/pinctrl.c const char *pin; pin 225 drivers/pinctrl/sh-pfc/pinctrl.c of_property_for_each_string(np, pmx->pins_prop_name, prop, pin) { pin 226 drivers/pinctrl/sh-pfc/pinctrl.c ret = sh_pfc_map_add_config(&maps[idx], pin, pin 405 drivers/pinctrl/sh-pfc/pinctrl.c const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; pin 407 drivers/pinctrl/sh-pfc/pinctrl.c ret = sh_pfc_config_mux(pfc, pin->enum_id, PINMUX_TYPE_GPIO); pin 448 drivers/pinctrl/sh-pfc/pinctrl.c const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; pin 456 drivers/pinctrl/sh-pfc/pinctrl.c if (pin->configs) { pin 458 drivers/pinctrl/sh-pfc/pinctrl.c if (!(pin->configs & dir)) pin 464 drivers/pinctrl/sh-pfc/pinctrl.c ret = sh_pfc_config_mux(pfc, pin->enum_id, new_type); pin 484 drivers/pinctrl/sh-pfc/pinctrl.c unsigned int pin, unsigned int *offset, unsigned int *size) pin 494 drivers/pinctrl/sh-pfc/pinctrl.c if (field->size && field->pin == pin) { pin 507 drivers/pinctrl/sh-pfc/pinctrl.c unsigned int pin) pin 515 drivers/pinctrl/sh-pfc/pinctrl.c reg = sh_pfc_pinconf_find_drive_strength_reg(pfc, pin, &offset, &size); pin 532 drivers/pinctrl/sh-pfc/pinctrl.c unsigned int pin, u16 strength) pin 541 drivers/pinctrl/sh-pfc/pinctrl.c reg = sh_pfc_pinconf_find_drive_strength_reg(pfc, pin, &offset, &size); pin 573 drivers/pinctrl/sh-pfc/pinctrl.c const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; pin 577 drivers/pinctrl/sh-pfc/pinctrl.c return pin->configs & SH_PFC_PIN_CFG_PULL_UP_DOWN; pin 580 drivers/pinctrl/sh-pfc/pinctrl.c return pin->configs & SH_PFC_PIN_CFG_PULL_UP; pin 583 drivers/pinctrl/sh-pfc/pinctrl.c return pin->configs & SH_PFC_PIN_CFG_PULL_DOWN; pin 586 drivers/pinctrl/sh-pfc/pinctrl.c return pin->configs & SH_PFC_PIN_CFG_DRIVE_STRENGTH; pin 589 drivers/pinctrl/sh-pfc/pinctrl.c return pin->configs & SH_PFC_PIN_CFG_IO_VOLTAGE; pin 790 drivers/pinctrl/sh-pfc/pinctrl.c struct pinctrl_pin_desc *pin = &pmx->pins[i]; pin 793 drivers/pinctrl/sh-pfc/pinctrl.c pin->number = info->pin != (u16)-1 ? info->pin : i; pin 794 drivers/pinctrl/sh-pfc/pinctrl.c pin->name = info->name; pin 37 drivers/pinctrl/sh-pfc/sh_pfc.h u16 pin; pin 168 drivers/pinctrl/sh-pfc/sh_pfc.h u16 pin; pin 263 drivers/pinctrl/sh-pfc/sh_pfc.h unsigned int (*get_bias)(struct sh_pfc *pfc, unsigned int pin); pin 264 drivers/pinctrl/sh-pfc/sh_pfc.h void (*set_bias)(struct sh_pfc *pfc, unsigned int pin, pin 266 drivers/pinctrl/sh-pfc/sh_pfc.h int (*pin_to_pocctrl)(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl); pin 444 drivers/pinctrl/sh-pfc/sh_pfc.h #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ pin 445 drivers/pinctrl/sh-pfc/sh_pfc.h fn(bank, pin, GP_##bank##_##pin, sfx, cfg) pin 446 drivers/pinctrl/sh-pfc/sh_pfc.h #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) pin 594 drivers/pinctrl/sh-pfc/sh_pfc.h #define _GP_ALL(bank, pin, name, sfx, cfg) name##_##sfx pin 600 drivers/pinctrl/sh-pfc/sh_pfc.h .pin = (bank * 32) + _pin, \ pin 608 drivers/pinctrl/sh-pfc/sh_pfc.h #define _GP_DATA(bank, pin, name, sfx, cfg) PINMUX_DATA(name##_DATA, name##_FN) pin 620 drivers/pinctrl/sh-pfc/sh_pfc.h #define _GP_ENTRY(bank, pin, name, sfx, cfg) \ pin 621 drivers/pinctrl/sh-pfc/sh_pfc.h deprecated)); char name[(bank * 32) + pin] __attribute__((deprecated pin 656 drivers/pinctrl/sh-pfc/sh_pfc.h .pin = (u16)-1, \ pin 664 drivers/pinctrl/sh-pfc/sh_pfc.h .pin = _pin, \ pin 709 drivers/pinctrl/sh-pfc/sh_pfc.h #define PIN_NOGP_CFG(pin, name, fn, cfg) fn(pin, name, cfg) pin 710 drivers/pinctrl/sh-pfc/sh_pfc.h #define PIN_NOGP(pin, name, fn) fn(pin, name, 0) pin 713 drivers/pinctrl/sh-pfc/sh_pfc.h #define _NOGP_ALL(pin, name, cfg) PIN_##pin pin 719 drivers/pinctrl/sh-pfc/sh_pfc.h .pin = PIN_##_pin, \ pin 750 drivers/pinctrl/sh-pfc/sh_pfc.h #define RCAR_GP_PIN(bank, pin) (((bank) * 32) + (pin)) pin 237 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 pin; pin 248 drivers/pinctrl/sirf/pinctrl-atlas7.c .pin = pad, \ pin 4930 drivers/pinctrl/sirf/pinctrl-atlas7.c static inline u32 atlas7_pin_to_bank(u32 pin) pin 4932 drivers/pinctrl/sirf/pinctrl-atlas7.c return (pin >= ATLAS7_PINCTRL_BANK_0_PINS) ? 1 : 0; pin 5045 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 pin, u32 func) pin 5053 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, func); pin 5056 drivers/pinctrl/sirf/pinctrl-atlas7.c conf = &pmx->pctl_data->confs[pin]; pin 5057 drivers/pinctrl/sirf/pinctrl-atlas7.c bank = atlas7_pin_to_bank(pin); pin 5065 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, ret); pin 5074 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, ret); pin 5124 drivers/pinctrl/sirf/pinctrl-atlas7.c ret = __atlas7_pmx_pin_enable(pmx, mux->pin, mux->func); pin 5129 drivers/pinctrl/sirf/pinctrl-atlas7.c mux->pin, mux->func, ret); pin 5162 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 pin, u32 sel) pin 5165 drivers/pinctrl/sirf/pinctrl-atlas7.c struct atlas7_pad_config *conf = &pmx->pctl_data->confs[pin]; pin 5171 drivers/pinctrl/sirf/pinctrl-atlas7.c bank = atlas7_pin_to_bank(pin); pin 5183 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, sel); pin 5188 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 pin, u32 sel) pin 5191 drivers/pinctrl/sirf/pinctrl-atlas7.c struct atlas7_pad_config *conf = &pmx->pctl_data->confs[pin]; pin 5200 drivers/pinctrl/sirf/pinctrl-atlas7.c bank = atlas7_pin_to_bank(pin); pin 5210 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, conf->type, sel); pin 5215 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 pin, u32 ma) pin 5218 drivers/pinctrl/sirf/pinctrl-atlas7.c struct atlas7_pad_config *conf = &pmx->pctl_data->confs[pin]; pin 5226 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, type, ma); pin 5231 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, sel); pin 5233 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, sel, ma, ret?"FAILED":"OK"); pin 5238 drivers/pinctrl/sirf/pinctrl-atlas7.c struct pinctrl_gpio_range *range, u32 pin) pin 5244 drivers/pinctrl/sirf/pinctrl-atlas7.c "atlas7_pmx_gpio_request_enable: pin=%d\n", pin); pin 5246 drivers/pinctrl/sirf/pinctrl-atlas7.c if (pin == range->pins[idx]) pin 5253 drivers/pinctrl/sirf/pinctrl-atlas7.c pin); pin 5257 drivers/pinctrl/sirf/pinctrl-atlas7.c __atlas7_pmx_pin_enable(pmx, pin, FUNC_GPIO); pin 5320 drivers/pinctrl/sirf/pinctrl-atlas7.c unsigned pin, unsigned long *configs, pin 5332 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, atlas7_ioc_pads[pin].name, param, arg); pin 5336 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, PULL_UP); pin 5343 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, PULL_DOWN); pin 5350 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, HIGH_HYSTERESIS); pin 5356 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, HIGH_Z); pin 5363 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, arg); pin 5371 drivers/pinctrl/sirf/pinctrl-atlas7.c pin, atlas7_ioc_pads[pin].name, param, arg); pin 6105 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 idx, pin; pin 6109 drivers/pinctrl/sirf/pinctrl-atlas7.c for (pin = 0; pin < bank->ngpio; pin++) { pin 6110 drivers/pinctrl/sirf/pinctrl-atlas7.c ctrl_reg = ATLAS7_GPIO_CTRL(bank, pin); pin 6111 drivers/pinctrl/sirf/pinctrl-atlas7.c bank->sleep_data[pin] = readl(ctrl_reg); pin 6123 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 idx, pin; pin 6127 drivers/pinctrl/sirf/pinctrl-atlas7.c for (pin = 0; pin < bank->ngpio; pin++) { pin 6128 drivers/pinctrl/sirf/pinctrl-atlas7.c ctrl_reg = ATLAS7_GPIO_CTRL(bank, pin); pin 6129 drivers/pinctrl/sirf/pinctrl-atlas7.c writel(bank->sleep_data[pin], ctrl_reg); pin 25 drivers/pinctrl/spear/pinctrl-plgpio.c #define PIN_OFFSET(pin) (pin % MAX_GPIO_PER_REG) pin 26 drivers/pinctrl/spear/pinctrl-plgpio.c #define REG_OFFSET(base, reg, pin) (base + reg + (pin / MAX_GPIO_PER_REG) \ pin 70 drivers/pinctrl/spear/pinctrl-plgpio.c int (*p2o)(int pin); /* pin_to_offset */ pin 80 drivers/pinctrl/spear/pinctrl-plgpio.c static inline u32 is_plgpio_set(void __iomem *base, u32 pin, u32 reg) pin 82 drivers/pinctrl/spear/pinctrl-plgpio.c u32 offset = PIN_OFFSET(pin); pin 83 drivers/pinctrl/spear/pinctrl-plgpio.c void __iomem *reg_off = REG_OFFSET(base, reg, pin); pin 89 drivers/pinctrl/spear/pinctrl-plgpio.c static inline void plgpio_reg_set(void __iomem *base, u32 pin, u32 reg) pin 91 drivers/pinctrl/spear/pinctrl-plgpio.c u32 offset = PIN_OFFSET(pin); pin 92 drivers/pinctrl/spear/pinctrl-plgpio.c void __iomem *reg_off = REG_OFFSET(base, reg, pin); pin 98 drivers/pinctrl/spear/pinctrl-plgpio.c static inline void plgpio_reg_reset(void __iomem *base, u32 pin, u32 reg) pin 100 drivers/pinctrl/spear/pinctrl-plgpio.c u32 offset = PIN_OFFSET(pin); pin 101 drivers/pinctrl/spear/pinctrl-plgpio.c void __iomem *reg_off = REG_OFFSET(base, reg, pin); pin 364 drivers/pinctrl/spear/pinctrl-plgpio.c int regs_count, count, pin, offset, i = 0; pin 395 drivers/pinctrl/spear/pinctrl-plgpio.c pin = plgpio->o2p(offset); pin 396 drivers/pinctrl/spear/pinctrl-plgpio.c if (pin == -1) pin 399 drivers/pinctrl/spear/pinctrl-plgpio.c pin = offset; pin 402 drivers/pinctrl/spear/pinctrl-plgpio.c pin = i * MAX_GPIO_PER_REG + pin; pin 404 drivers/pinctrl/spear/pinctrl-plgpio.c irq_find_mapping(gc->irq.domain, pin)); pin 417 drivers/pinctrl/spear/pinctrl-plgpio.c static int spear310_p2o(int pin) pin 419 drivers/pinctrl/spear/pinctrl-plgpio.c int offset = pin; pin 421 drivers/pinctrl/spear/pinctrl-plgpio.c if (pin <= 27) pin 423 drivers/pinctrl/spear/pinctrl-plgpio.c else if (pin <= 33) pin 425 drivers/pinctrl/spear/pinctrl-plgpio.c else if (pin <= 97) pin 427 drivers/pinctrl/spear/pinctrl-plgpio.c else if (pin <= 101) pin 428 drivers/pinctrl/spear/pinctrl-plgpio.c offset = 101 - pin; pin 283 drivers/pinctrl/spear/pinctrl-spear.c unsigned pin) pin 295 drivers/pinctrl/spear/pinctrl-spear.c if (gpio_pingroup->pins[j] == pin) pin 1973 drivers/pinctrl/spear/pinctrl-spear1340.c static void gpio_request_endisable(struct spear_pmx *pmx, int pin, pin 1980 drivers/pinctrl/spear/pinctrl-spear1340.c pin++; pin 1982 drivers/pinctrl/spear/pinctrl-spear1340.c regindex = pin / 32; pin 1983 drivers/pinctrl/spear/pinctrl-spear1340.c bitoffset = pin % 32; pin 175 drivers/pinctrl/sprd/pinctrl-sprd.c struct sprd_pin *pin = NULL; pin 180 drivers/pinctrl/sprd/pinctrl-sprd.c pin = &info->pins[i]; pin 185 drivers/pinctrl/sprd/pinctrl-sprd.c return pin; pin 415 drivers/pinctrl/sprd/pinctrl-sprd.c struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); pin 417 drivers/pinctrl/sprd/pinctrl-sprd.c if (!pin || pin->type != COMMON_PIN) pin 420 drivers/pinctrl/sprd/pinctrl-sprd.c reg = readl((void __iomem *)pin->reg); pin 423 drivers/pinctrl/sprd/pinctrl-sprd.c writel(reg, (void __iomem *)pin->reg); pin 440 drivers/pinctrl/sprd/pinctrl-sprd.c struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); pin 444 drivers/pinctrl/sprd/pinctrl-sprd.c if (!pin) pin 447 drivers/pinctrl/sprd/pinctrl-sprd.c if (pin->type == GLOBAL_CTRL_PIN) { pin 448 drivers/pinctrl/sprd/pinctrl-sprd.c reg = (readl((void __iomem *)pin->reg) >> pin 449 drivers/pinctrl/sprd/pinctrl-sprd.c pin->bit_offset) & PINCTRL_BIT_MASK(pin->bit_width); pin 451 drivers/pinctrl/sprd/pinctrl-sprd.c reg = readl((void __iomem *)pin->reg); pin 454 drivers/pinctrl/sprd/pinctrl-sprd.c if (pin->type == GLOBAL_CTRL_PIN && pin 457 drivers/pinctrl/sprd/pinctrl-sprd.c } else if (pin->type == COMMON_PIN || pin->type == MISC_PIN) { pin 579 drivers/pinctrl/sprd/pinctrl-sprd.c struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); pin 584 drivers/pinctrl/sprd/pinctrl-sprd.c if (!pin) pin 598 drivers/pinctrl/sprd/pinctrl-sprd.c if (pin->type == GLOBAL_CTRL_PIN && pin 601 drivers/pinctrl/sprd/pinctrl-sprd.c } else if (pin->type == COMMON_PIN || pin->type == MISC_PIN) { pin 686 drivers/pinctrl/sprd/pinctrl-sprd.c if (pin->type == GLOBAL_CTRL_PIN) { pin 687 drivers/pinctrl/sprd/pinctrl-sprd.c reg = readl((void __iomem *)pin->reg); pin 688 drivers/pinctrl/sprd/pinctrl-sprd.c reg &= ~(PINCTRL_BIT_MASK(pin->bit_width) pin 689 drivers/pinctrl/sprd/pinctrl-sprd.c << pin->bit_offset); pin 690 drivers/pinctrl/sprd/pinctrl-sprd.c reg |= (val & PINCTRL_BIT_MASK(pin->bit_width)) pin 691 drivers/pinctrl/sprd/pinctrl-sprd.c << pin->bit_offset; pin 692 drivers/pinctrl/sprd/pinctrl-sprd.c writel(reg, (void __iomem *)pin->reg); pin 694 drivers/pinctrl/sprd/pinctrl-sprd.c reg = readl((void __iomem *)pin->reg); pin 697 drivers/pinctrl/sprd/pinctrl-sprd.c writel(reg, (void __iomem *)pin->reg); pin 752 drivers/pinctrl/sprd/pinctrl-sprd.c struct sprd_pin *pin = sprd_pinctrl_get_pin_by_id(pctl, pin_id); pin 754 drivers/pinctrl/sprd/pinctrl-sprd.c if (!pin) pin 757 drivers/pinctrl/sprd/pinctrl-sprd.c if (pin->type == GLOBAL_CTRL_PIN) { pin 758 drivers/pinctrl/sprd/pinctrl-sprd.c *config = (readl((void __iomem *)pin->reg) >> pin 759 drivers/pinctrl/sprd/pinctrl-sprd.c pin->bit_offset) & PINCTRL_BIT_MASK(pin->bit_width); pin 761 drivers/pinctrl/sprd/pinctrl-sprd.c *config = readl((void __iomem *)pin->reg); pin 961 drivers/pinctrl/sprd/pinctrl-sprd.c struct sprd_pin *pin; pin 971 drivers/pinctrl/sprd/pinctrl-sprd.c for (i = 0, pin = info->pins; i < info->npins; i++, pin++) { pin 974 drivers/pinctrl/sprd/pinctrl-sprd.c pin->name = sprd_soc_pin_info[i].name; pin 975 drivers/pinctrl/sprd/pinctrl-sprd.c pin->type = sprd_soc_pin_info[i].type; pin 976 drivers/pinctrl/sprd/pinctrl-sprd.c pin->number = sprd_soc_pin_info[i].num; pin 978 drivers/pinctrl/sprd/pinctrl-sprd.c if (pin->type == GLOBAL_CTRL_PIN) { pin 979 drivers/pinctrl/sprd/pinctrl-sprd.c pin->reg = (unsigned long)sprd_pctl->base + pin 981 drivers/pinctrl/sprd/pinctrl-sprd.c pin->bit_offset = sprd_soc_pin_info[i].bit_offset; pin 982 drivers/pinctrl/sprd/pinctrl-sprd.c pin->bit_width = sprd_soc_pin_info[i].bit_width; pin 984 drivers/pinctrl/sprd/pinctrl-sprd.c } else if (pin->type == COMMON_PIN) { pin 985 drivers/pinctrl/sprd/pinctrl-sprd.c pin->reg = (unsigned long)sprd_pctl->base + pin 989 drivers/pinctrl/sprd/pinctrl-sprd.c } else if (pin->type == MISC_PIN) { pin 990 drivers/pinctrl/sprd/pinctrl-sprd.c pin->reg = (unsigned long)sprd_pctl->base + pin 996 drivers/pinctrl/sprd/pinctrl-sprd.c for (i = 0, pin = info->pins; i < info->npins; pin++, i++) { pin 999 drivers/pinctrl/sprd/pinctrl-sprd.c pin->name, pin->number, pin->type, pin 1000 drivers/pinctrl/sprd/pinctrl-sprd.c pin->bit_offset, pin->bit_width, pin->reg); pin 24 drivers/pinctrl/sprd/pinctrl-sprd.h #define SPRD_PINCTRL_PIN(pin) SPRD_PINCTRL_PIN_DATA(pin, #pin) pin 81 drivers/pinctrl/stm32/pinctrl-stm32.c unsigned pin; pin 210 drivers/pinctrl/stm32/pinctrl-stm32.c int pin = offset + (bank->bank_nr * STM32_GPIO_PINS_PER_BANK); pin 212 drivers/pinctrl/stm32/pinctrl-stm32.c range = pinctrl_find_gpio_range_from_pin_nolock(pctl->pctl_dev, pin); pin 214 drivers/pinctrl/stm32/pinctrl-stm32.c dev_err(pctl->dev, "pin %d not in range.\n", pin); pin 280 drivers/pinctrl/stm32/pinctrl-stm32.c int pin = stm32_gpio_pin(offset); pin 284 drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pmx_get_mode(bank, pin, &mode, &alt); pin 444 drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pctrl_find_group_by_pin(struct stm32_pinctrl *pctl, u32 pin) pin 451 drivers/pinctrl/stm32/pinctrl-stm32.c if (grp->pin == pin) pin 464 drivers/pinctrl/stm32/pinctrl-stm32.c const struct stm32_desc_pin *pin = pctl->pins + i; pin 465 drivers/pinctrl/stm32/pinctrl-stm32.c const struct stm32_desc_function *func = pin->functions; pin 467 drivers/pinctrl/stm32/pinctrl-stm32.c if (pin->pin.number != pin_num) pin 483 drivers/pinctrl/stm32/pinctrl-stm32.c u32 pin, u32 fnum, struct stm32_pinctrl_group *grp, pin 493 drivers/pinctrl/stm32/pinctrl-stm32.c if (!stm32_pctrl_is_function_valid(pctl, pin, fnum)) { pin 495 drivers/pinctrl/stm32/pinctrl-stm32.c fnum, pin); pin 514 drivers/pinctrl/stm32/pinctrl-stm32.c u32 pinfunc, pin, func; pin 564 drivers/pinctrl/stm32/pinctrl-stm32.c pin = STM32_GET_PIN_NO(pinfunc); pin 567 drivers/pinctrl/stm32/pinctrl-stm32.c if (!stm32_pctrl_is_function_valid(pctl, pin, func)) { pin 573 drivers/pinctrl/stm32/pinctrl-stm32.c grp = stm32_pctrl_find_group_by_pin(pctl, pin); pin 576 drivers/pinctrl/stm32/pinctrl-stm32.c pin); pin 581 drivers/pinctrl/stm32/pinctrl-stm32.c err = stm32_pctrl_dt_node_to_map_func(pctl, pin, func, grp, map, pin 648 drivers/pinctrl/stm32/pinctrl-stm32.c *pins = (unsigned *)&pctl->groups[group].pin; pin 690 drivers/pinctrl/stm32/pinctrl-stm32.c int pin, u32 mode, u32 alt) pin 694 drivers/pinctrl/stm32/pinctrl-stm32.c int alt_shift = (pin % 8) * 4; pin 695 drivers/pinctrl/stm32/pinctrl-stm32.c int alt_offset = STM32_GPIO_AFRL + (pin / 8) * 4; pin 716 drivers/pinctrl/stm32/pinctrl-stm32.c val &= ~GENMASK(pin * 2 + 1, pin * 2); pin 717 drivers/pinctrl/stm32/pinctrl-stm32.c val |= mode << (pin * 2); pin 723 drivers/pinctrl/stm32/pinctrl-stm32.c stm32_gpio_backup_mode(bank, pin, mode, alt); pin 732 drivers/pinctrl/stm32/pinctrl-stm32.c void stm32_pmx_get_mode(struct stm32_gpio_bank *bank, int pin, u32 *mode, pin 736 drivers/pinctrl/stm32/pinctrl-stm32.c int alt_shift = (pin % 8) * 4; pin 737 drivers/pinctrl/stm32/pinctrl-stm32.c int alt_offset = STM32_GPIO_AFRL + (pin / 8) * 4; pin 748 drivers/pinctrl/stm32/pinctrl-stm32.c val &= GENMASK(pin * 2 + 1, pin * 2); pin 749 drivers/pinctrl/stm32/pinctrl-stm32.c *mode = val >> (pin * 2); pin 765 drivers/pinctrl/stm32/pinctrl-stm32.c int pin; pin 767 drivers/pinctrl/stm32/pinctrl-stm32.c ret = stm32_pctrl_is_function_valid(pctl, g->pin, function); pin 774 drivers/pinctrl/stm32/pinctrl-stm32.c range = pinctrl_find_gpio_range_from_pin(pctldev, g->pin); pin 781 drivers/pinctrl/stm32/pinctrl-stm32.c pin = stm32_gpio_pin(g->pin); pin 786 drivers/pinctrl/stm32/pinctrl-stm32.c return stm32_pmx_set_mode(bank, pin, mode, alt); pin 794 drivers/pinctrl/stm32/pinctrl-stm32.c int pin = stm32_gpio_pin(gpio); pin 796 drivers/pinctrl/stm32/pinctrl-stm32.c return stm32_pmx_set_mode(bank, pin, !input, 0); pin 995 drivers/pinctrl/stm32/pinctrl-stm32.c unsigned int pin, enum pin_config_param param, pin 1003 drivers/pinctrl/stm32/pinctrl-stm32.c range = pinctrl_find_gpio_range_from_pin(pctldev, pin); pin 1010 drivers/pinctrl/stm32/pinctrl-stm32.c offset = stm32_gpio_pin(pin); pin 1033 drivers/pinctrl/stm32/pinctrl-stm32.c ret = stm32_pmx_gpio_set_direction(pctldev, range, pin, false); pin 1061 drivers/pinctrl/stm32/pinctrl-stm32.c ret = stm32_pconf_parse_conf(pctldev, g->pin, pin 1075 drivers/pinctrl/stm32/pinctrl-stm32.c unsigned int pin) pin 1089 drivers/pinctrl/stm32/pinctrl-stm32.c range = pinctrl_find_gpio_range_from_pin_nolock(pctldev, pin); pin 1094 drivers/pinctrl/stm32/pinctrl-stm32.c offset = stm32_gpio_pin(pin); pin 1316 drivers/pinctrl/stm32/pinctrl-stm32.c const struct stm32_desc_pin *pin = pctl->pins + i; pin 1319 drivers/pinctrl/stm32/pinctrl-stm32.c group->name = pin->pin.name; pin 1320 drivers/pinctrl/stm32/pinctrl-stm32.c group->pin = pin->pin.number; pin 1321 drivers/pinctrl/stm32/pinctrl-stm32.c pctl->grp_names[i] = pin->pin.name; pin 1337 drivers/pinctrl/stm32/pinctrl-stm32.c pins->pin = p->pin; pin 1436 drivers/pinctrl/stm32/pinctrl-stm32.c pins[i] = pctl->pins[i].pin; pin 1487 drivers/pinctrl/stm32/pinctrl-stm32.c struct stm32_pinctrl *pctl, u32 pin) pin 1489 drivers/pinctrl/stm32/pinctrl-stm32.c const struct pin_desc *desc = pin_desc_get(pctl->pctl_dev, pin); pin 1490 drivers/pinctrl/stm32/pinctrl-stm32.c u32 val, alt, mode, offset = stm32_gpio_pin(pin); pin 1496 drivers/pinctrl/stm32/pinctrl-stm32.c range = pinctrl_find_gpio_range_from_pin(pctl->pctl_dev, pin); pin 1552 drivers/pinctrl/stm32/pinctrl-stm32.c for (i = g->pin; i < g->pin + pctl->ngroups; i++) pin 33 drivers/pinctrl/stm32/pinctrl-stm32.h struct pinctrl_pin_desc pin; pin 40 drivers/pinctrl/stm32/pinctrl-stm32.h .pin = _pin, \ pin 47 drivers/pinctrl/stm32/pinctrl-stm32.h .pin = _pin, \ pin 67 drivers/pinctrl/stm32/pinctrl-stm32.h int pin, u32 *mode, u32 *alt); pin 82 drivers/pinctrl/sunxi/pinctrl-sunxi.c const struct sunxi_desc_pin *pin = pctl->desc->pins + i; pin 84 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (!strcmp(pin->pin.name, pin_name)) { pin 85 drivers/pinctrl/sunxi/pinctrl-sunxi.c struct sunxi_desc_function *func = pin->functions; pin 109 drivers/pinctrl/sunxi/pinctrl-sunxi.c const struct sunxi_desc_pin *pin = pctl->desc->pins + i; pin 111 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (pin->pin.number == pin_num) { pin 112 drivers/pinctrl/sunxi/pinctrl-sunxi.c struct sunxi_desc_function *func = pin->functions; pin 148 drivers/pinctrl/sunxi/pinctrl-sunxi.c *pins = (unsigned *)&pctl->groups[group].pin; pin 446 drivers/pinctrl/sunxi/pinctrl-sunxi.c static int sunxi_pconf_reg(unsigned pin, enum pin_config_param param, pin 451 drivers/pinctrl/sunxi/pinctrl-sunxi.c *offset = sunxi_dlevel_reg(pin); pin 452 drivers/pinctrl/sunxi/pinctrl-sunxi.c *shift = sunxi_dlevel_offset(pin); pin 459 drivers/pinctrl/sunxi/pinctrl-sunxi.c *offset = sunxi_pull_reg(pin); pin 460 drivers/pinctrl/sunxi/pinctrl-sunxi.c *shift = sunxi_pull_offset(pin); pin 471 drivers/pinctrl/sunxi/pinctrl-sunxi.c static int sunxi_pconf_get(struct pinctrl_dev *pctldev, unsigned pin, pin 480 drivers/pinctrl/sunxi/pinctrl-sunxi.c pin -= pctl->desc->pin_base; pin 482 drivers/pinctrl/sunxi/pinctrl-sunxi.c ret = sunxi_pconf_reg(pin, param, &offset, &shift, &mask); pin 530 drivers/pinctrl/sunxi/pinctrl-sunxi.c return sunxi_pconf_get(pctldev, g->pin, config); pin 533 drivers/pinctrl/sunxi/pinctrl-sunxi.c static int sunxi_pconf_set(struct pinctrl_dev *pctldev, unsigned pin, pin 549 drivers/pinctrl/sunxi/pinctrl-sunxi.c ret = sunxi_pconf_reg(pin, param, &offset, &shift, &mask); pin 602 drivers/pinctrl/sunxi/pinctrl-sunxi.c return sunxi_pconf_set(pctldev, g->pin, configs, num_configs); pin 614 drivers/pinctrl/sunxi/pinctrl-sunxi.c unsigned pin, pin 617 drivers/pinctrl/sunxi/pinctrl-sunxi.c unsigned short bank = pin / PINS_PER_BANK; pin 650 drivers/pinctrl/sunxi/pinctrl-sunxi.c pin -= pctl->desc->pin_base; pin 652 drivers/pinctrl/sunxi/pinctrl-sunxi.c reg = readl(pctl->membase + sunxi_grp_config_reg(pin)); pin 654 drivers/pinctrl/sunxi/pinctrl-sunxi.c writel(reg | val, pctl->membase + sunxi_grp_config_reg(pin)); pin 699 drivers/pinctrl/sunxi/pinctrl-sunxi.c unsigned pin, pin 708 drivers/pinctrl/sunxi/pinctrl-sunxi.c pin -= pctl->desc->pin_base; pin 709 drivers/pinctrl/sunxi/pinctrl-sunxi.c val = readl(pctl->membase + sunxi_mux_reg(pin)); pin 710 drivers/pinctrl/sunxi/pinctrl-sunxi.c mask = MUX_PINS_MASK << sunxi_mux_offset(pin); pin 711 drivers/pinctrl/sunxi/pinctrl-sunxi.c writel((val & ~mask) | config << sunxi_mux_offset(pin), pin 712 drivers/pinctrl/sunxi/pinctrl-sunxi.c pctl->membase + sunxi_mux_reg(pin)); pin 732 drivers/pinctrl/sunxi/pinctrl-sunxi.c sunxi_pmx_set(pctldev, g->pin, desc->muxval); pin 847 drivers/pinctrl/sunxi/pinctrl-sunxi.c u32 pin = offset + chip->base; pin 851 drivers/pinctrl/sunxi/pinctrl-sunxi.c sunxi_pmx_set(pctl->pctl_dev, pin, SUN4I_FUNC_INPUT); pin 856 drivers/pinctrl/sunxi/pinctrl-sunxi.c sunxi_pmx_set(pctl->pctl_dev, pin, SUN4I_FUNC_IRQ); pin 895 drivers/pinctrl/sunxi/pinctrl-sunxi.c int pin, base; pin 898 drivers/pinctrl/sunxi/pinctrl-sunxi.c pin = base + gpiospec->args[1]; pin 900 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (pin > gc->ngpio) pin 906 drivers/pinctrl/sunxi/pinctrl-sunxi.c return pin; pin 1097 drivers/pinctrl/sunxi/pinctrl-sunxi.c int pin, base; pin 1103 drivers/pinctrl/sunxi/pinctrl-sunxi.c pin = pctl->desc->pin_base + base + intspec[1]; pin 1105 drivers/pinctrl/sunxi/pinctrl-sunxi.c desc = sunxi_pinctrl_desc_find_function_by_pin(pctl, pin, "irq"); pin 1195 drivers/pinctrl/sunxi/pinctrl-sunxi.c const struct sunxi_desc_pin *pin = pctl->desc->pins + i; pin 1198 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (pin->variant && !(pctl->variant & pin->variant)) pin 1201 drivers/pinctrl/sunxi/pinctrl-sunxi.c group->name = pin->pin.name; pin 1202 drivers/pinctrl/sunxi/pinctrl-sunxi.c group->pin = pin->pin.number; pin 1220 drivers/pinctrl/sunxi/pinctrl-sunxi.c const struct sunxi_desc_pin *pin = pctl->desc->pins + i; pin 1223 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (pin->variant && !(pctl->variant & pin->variant)) pin 1226 drivers/pinctrl/sunxi/pinctrl-sunxi.c for (func = pin->functions; func->name; func++) { pin 1233 drivers/pinctrl/sunxi/pinctrl-sunxi.c pctl->irq_array[irqnum] = pin->pin.number; pin 1252 drivers/pinctrl/sunxi/pinctrl-sunxi.c const struct sunxi_desc_pin *pin = pctl->desc->pins + i; pin 1255 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (pin->variant && !(pctl->variant & pin->variant)) pin 1258 drivers/pinctrl/sunxi/pinctrl-sunxi.c for (func = pin->functions; func->name; func++) { pin 1288 drivers/pinctrl/sunxi/pinctrl-sunxi.c *func_grp = pin->pin.name; pin 1428 drivers/pinctrl/sunxi/pinctrl-sunxi.c const struct sunxi_desc_pin *pin = pctl->desc->pins + i; pin 1430 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (pin->variant && !(pctl->variant & pin->variant)) pin 1433 drivers/pinctrl/sunxi/pinctrl-sunxi.c pins[pin_idx++] = pin->pin; pin 1469 drivers/pinctrl/sunxi/pinctrl-sunxi.c last_pin = pctl->desc->pins[pctl->desc->npins - 1].pin.number; pin 1493 drivers/pinctrl/sunxi/pinctrl-sunxi.c const struct sunxi_desc_pin *pin = pctl->desc->pins + i; pin 1496 drivers/pinctrl/sunxi/pinctrl-sunxi.c pin->pin.number - pctl->desc->pin_base, pin 1497 drivers/pinctrl/sunxi/pinctrl-sunxi.c pin->pin.number, 1); pin 32 drivers/pinctrl/sunxi/pinctrl-sunxi.h #define SUNXI_PINCTRL_PIN(bank, pin) \ pin 33 drivers/pinctrl/sunxi/pinctrl-sunxi.h PINCTRL_PIN(P ## bank ## _BASE + (pin), "P" #bank #pin) pin 125 drivers/pinctrl/sunxi/pinctrl-sunxi.h struct pinctrl_pin_desc pin; pin 149 drivers/pinctrl/sunxi/pinctrl-sunxi.h unsigned pin; pin 177 drivers/pinctrl/sunxi/pinctrl-sunxi.h .pin = _pin, \ pin 184 drivers/pinctrl/sunxi/pinctrl-sunxi.h .pin = _pin, \ pin 235 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_mux_reg(u16 pin) pin 237 drivers/pinctrl/sunxi/pinctrl-sunxi.h u8 bank = pin / PINS_PER_BANK; pin 240 drivers/pinctrl/sunxi/pinctrl-sunxi.h offset += pin % PINS_PER_BANK / MUX_PINS_PER_REG * 0x04; pin 244 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_mux_offset(u16 pin) pin 246 drivers/pinctrl/sunxi/pinctrl-sunxi.h u32 pin_num = pin % MUX_PINS_PER_REG; pin 250 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_data_reg(u16 pin) pin 252 drivers/pinctrl/sunxi/pinctrl-sunxi.h u8 bank = pin / PINS_PER_BANK; pin 255 drivers/pinctrl/sunxi/pinctrl-sunxi.h offset += pin % PINS_PER_BANK / DATA_PINS_PER_REG * 0x04; pin 259 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_data_offset(u16 pin) pin 261 drivers/pinctrl/sunxi/pinctrl-sunxi.h u32 pin_num = pin % DATA_PINS_PER_REG; pin 265 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_dlevel_reg(u16 pin) pin 267 drivers/pinctrl/sunxi/pinctrl-sunxi.h u8 bank = pin / PINS_PER_BANK; pin 270 drivers/pinctrl/sunxi/pinctrl-sunxi.h offset += pin % PINS_PER_BANK / DLEVEL_PINS_PER_REG * 0x04; pin 274 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_dlevel_offset(u16 pin) pin 276 drivers/pinctrl/sunxi/pinctrl-sunxi.h u32 pin_num = pin % DLEVEL_PINS_PER_REG; pin 280 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_pull_reg(u16 pin) pin 282 drivers/pinctrl/sunxi/pinctrl-sunxi.h u8 bank = pin / PINS_PER_BANK; pin 285 drivers/pinctrl/sunxi/pinctrl-sunxi.h offset += pin % PINS_PER_BANK / PULL_PINS_PER_REG * 0x04; pin 289 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_pull_offset(u16 pin) pin 291 drivers/pinctrl/sunxi/pinctrl-sunxi.h u32 pin_num = pin % PULL_PINS_PER_REG; pin 364 drivers/pinctrl/sunxi/pinctrl-sunxi.h static inline u32 sunxi_grp_config_reg(u16 pin) pin 366 drivers/pinctrl/sunxi/pinctrl-sunxi.h u8 bank = pin / PINS_PER_BANK; pin 425 drivers/pinctrl/tegra/pinctrl-tegra.c unsigned pin, unsigned long *config) pin 432 drivers/pinctrl/tegra/pinctrl-tegra.c unsigned pin, unsigned long *configs, pin 433 drivers/pinctrl/ti/pinctrl-ti-iodelay.c int pin; pin 453 drivers/pinctrl/ti/pinctrl-ti-iodelay.c pin = ti_iodelay_offset_to_pin(iod, cfg[pin_index].offset); pin 454 drivers/pinctrl/ti/pinctrl-ti-iodelay.c if (pin < 0) { pin 459 drivers/pinctrl/ti/pinctrl-ti-iodelay.c pins[pin_index] = pin; pin 461 drivers/pinctrl/ti/pinctrl-ti-iodelay.c pd = &iod->pa[pin]; pin 653 drivers/pinctrl/ti/pinctrl-ti-iodelay.c unsigned int pin) pin 665 drivers/pinctrl/ti/pinctrl-ti-iodelay.c offset = ti_iodelay_pin_to_offset(iod, pin); pin 666 drivers/pinctrl/ti/pinctrl-ti-iodelay.c pd = &iod->pa[pin]; pin 745 drivers/pinctrl/ti/pinctrl-ti-iodelay.c struct pinctrl_pin_desc *pin; pin 762 drivers/pinctrl/ti/pinctrl-ti-iodelay.c pin = &iod->pa[i]; pin 763 drivers/pinctrl/ti/pinctrl-ti-iodelay.c pin->number = i; pin 148 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int pin, unsigned int *reg, pin 153 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c const struct pin_desc *desc = pin_desc_get(pctldev, pin); pin 205 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int pin, pin 209 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c const struct pin_desc *desc = pin_desc_get(pctldev, pin); pin 256 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int pin, u32 *strength) pin 263 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_get_drvctrl_data(pctldev, pin, ®, &shift, pin 282 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int pin) pin 285 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c const struct pin_desc *desc = pin_desc_get(pctldev, pin); pin 295 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c iectrl = pin; pin 308 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned pin, pin 320 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_pin_bias_get(pctldev, pin, param); pin 323 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_pin_drive_get(pctldev, pin, &arg); pin 327 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_pin_input_enable_get(pctldev, pin); pin 342 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int pin, pin 346 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c const struct pin_desc *desc = pin_desc_get(pctldev, pin); pin 417 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int pin, u32 strength) pin 420 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c const struct pin_desc *desc = pin_desc_get(pctldev, pin); pin 425 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_get_drvctrl_data(pctldev, pin, ®, &shift, pin 455 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned int pin, u32 enable) pin 458 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c const struct pin_desc *desc = pin_desc_get(pctldev, pin); pin 475 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c iectrl = pin; pin 484 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c unsigned pin, pin 500 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_pin_bias_set(pctldev, pin, pin 504 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_pin_drive_set(pctldev, pin, arg); pin 507 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_pin_input_enable(pctldev, pin, arg); pin 578 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c static int uniphier_pmx_set_one_mux(struct pinctrl_dev *pctldev, unsigned pin, pin 587 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c ret = uniphier_conf_pin_input_enable(pctldev, pin, 1); pin 614 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c reg = UNIPHIER_PINCTRL_PINMUX_BASE + pin * mux_bits / 32 * reg_stride; pin 616 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c shift = pin * mux_bits % 32; pin 675 drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c static int uniphier_ld11_get_gpio_muxval(unsigned int pin, pin 788 drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c static int uniphier_ld20_get_gpio_muxval(unsigned int pin, pin 703 drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c static int uniphier_ld4_get_gpio_muxval(unsigned int pin, pin 925 drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c static int uniphier_ld6b_get_gpio_muxval(unsigned int pin, pin 1220 drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c static int uniphier_pro4_get_gpio_muxval(unsigned int pin, pin 989 drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c static int uniphier_pro5_get_gpio_muxval(unsigned int pin, pin 947 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c static int uniphier_pxs2_get_gpio_muxval(unsigned int pin, pin 955 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c static int uniphier_pxs3_get_gpio_muxval(unsigned int pin, pin 959 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c if (pin >= 219 && pin <= 234) pin 635 drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c static int uniphier_sld8_get_gpio_muxval(unsigned int pin, pin 146 drivers/pinctrl/uniphier/pinctrl-uniphier.h int (*get_gpio_muxval)(unsigned int pin, unsigned int gpio_offset); pin 85 drivers/pinctrl/vt8500/pinctrl-wmt.c unsigned pin) pin 87 drivers/pinctrl/vt8500/pinctrl-wmt.c u32 bank = WMT_BANK_FROM_PIN(pin); pin 88 drivers/pinctrl/vt8500/pinctrl-wmt.c u32 bit = WMT_BIT_FROM_PIN(pin); pin 94 drivers/pinctrl/vt8500/pinctrl-wmt.c pin); pin 116 drivers/pinctrl/vt8500/pinctrl-wmt.c pin); pin 195 drivers/pinctrl/vt8500/pinctrl-wmt.c static int wmt_pctl_find_group_by_pin(struct wmt_pinctrl_data *data, u32 pin) pin 200 drivers/pinctrl/vt8500/pinctrl-wmt.c if (data->pins[i].number == pin) pin 209 drivers/pinctrl/vt8500/pinctrl-wmt.c u32 pin, u32 fnum, pin 220 drivers/pinctrl/vt8500/pinctrl-wmt.c group = wmt_pctl_find_group_by_pin(data, pin); pin 222 drivers/pinctrl/vt8500/pinctrl-wmt.c dev_err(data->dev, "unable to match pin %d to group\n", pin); pin 236 drivers/pinctrl/vt8500/pinctrl-wmt.c u32 pin, u32 pull, pin 248 drivers/pinctrl/vt8500/pinctrl-wmt.c group = wmt_pctl_find_group_by_pin(data, pin); pin 250 drivers/pinctrl/vt8500/pinctrl-wmt.c dev_err(data->dev, "unable to match pin %d to group\n", pin); pin 302 drivers/pinctrl/vt8500/pinctrl-wmt.c u32 pin, func, pull; pin 353 drivers/pinctrl/vt8500/pinctrl-wmt.c err = of_property_read_u32_index(np, "wm,pins", i, &pin); pin 357 drivers/pinctrl/vt8500/pinctrl-wmt.c if (pin >= (data->nbanks * 32)) { pin 369 drivers/pinctrl/vt8500/pinctrl-wmt.c err = wmt_pctl_dt_node_to_map_func(data, np, pin, func, pin 381 drivers/pinctrl/vt8500/pinctrl-wmt.c err = wmt_pctl_dt_node_to_map_pull(data, np, pin, pull, pin 412 drivers/pinctrl/vt8500/pinctrl-wmt.c static int wmt_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, pin 418 drivers/pinctrl/vt8500/pinctrl-wmt.c static int wmt_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin, pin 424 drivers/pinctrl/vt8500/pinctrl-wmt.c u32 bank = WMT_BANK_FROM_PIN(pin); pin 425 drivers/pinctrl/vt8500/pinctrl-wmt.c u32 bit = WMT_BIT_FROM_PIN(pin); pin 432 drivers/pinctrl/vt8500/pinctrl-wmt.c pin); pin 155 drivers/pinctrl/zte/pinctrl-zx.c static int zx_pin_config_get(struct pinctrl_dev *pctldev, unsigned int pin, pin 160 drivers/pinctrl/zte/pinctrl-zx.c const struct pinctrl_pin_desc *pindesc = info->pins + pin; pin 208 drivers/pinctrl/zte/pinctrl-zx.c static int zx_pin_config_set(struct pinctrl_dev *pctldev, unsigned int pin, pin 213 drivers/pinctrl/zte/pinctrl-zx.c const struct pinctrl_pin_desc *pindesc = info->pins + pin; pin 51 drivers/pinctrl/zte/pinctrl-zx.h #define TOP_PIN(pin, off, bp, wd, coff, cbp, ...) { \ pin 52 drivers/pinctrl/zte/pinctrl-zx.h .number = pin, \ pin 53 drivers/pinctrl/zte/pinctrl-zx.h .name = #pin, \ pin 66 drivers/pinctrl/zte/pinctrl-zx.h #define AON_PIN(pin, off, bp, wd, coff, cbp, ...) { \ pin 67 drivers/pinctrl/zte/pinctrl-zx.h .number = pin, \ pin 68 drivers/pinctrl/zte/pinctrl-zx.h .name = #pin, \ pin 81 drivers/pinctrl/zte/pinctrl-zx.h #define ZX_RESERVED(pin) PINCTRL_PIN(pin, #pin) pin 48 drivers/ptp/ptp_chardev.c int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, pin 52 drivers/ptp/ptp_chardev.c struct ptp_pin_desc *pin1 = NULL, *pin2 = &info->pin_config[pin]; pin 63 drivers/ptp/ptp_chardev.c if (pin1 && i == pin) pin 86 drivers/ptp/ptp_chardev.c if (info->verify(info, pin, func, chan)) { pin 348 drivers/ptp/ptp_clock.c struct ptp_pin_desc *pin = NULL; pin 355 drivers/ptp/ptp_clock.c pin = &ptp->info->pin_config[i]; pin 361 drivers/ptp/ptp_clock.c return pin ? i : -1; pin 69 drivers/ptp/ptp_private.h int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, pin 103 drivers/pwm/pwm-stmpe.c unsigned int i, pin; pin 117 drivers/pwm/pwm-stmpe.c pin = pwm->hwpwm; pin 122 drivers/pwm/pwm-stmpe.c pin += STMPE_PWM_24XX_PINBASE; pin 124 drivers/pwm/pwm-stmpe.c ret = stmpe_set_altfunc(stmpe_pwm->stmpe, BIT(pin), pin 2220 drivers/regulator/core.c struct regulator_enable_gpio *pin; pin 2225 drivers/regulator/core.c list_for_each_entry(pin, ®ulator_ena_gpio_list, list) { pin 2226 drivers/regulator/core.c if (pin->gpiod == gpiod) { pin 2232 drivers/regulator/core.c pin = kzalloc(sizeof(struct regulator_enable_gpio), GFP_KERNEL); pin 2233 drivers/regulator/core.c if (pin == NULL) pin 2236 drivers/regulator/core.c pin->gpiod = gpiod; pin 2237 drivers/regulator/core.c list_add(&pin->list, ®ulator_ena_gpio_list); pin 2240 drivers/regulator/core.c pin->request_count++; pin 2241 drivers/regulator/core.c rdev->ena_pin = pin; pin 2247 drivers/regulator/core.c struct regulator_enable_gpio *pin, *n; pin 2253 drivers/regulator/core.c list_for_each_entry_safe(pin, n, ®ulator_ena_gpio_list, list) { pin 2254 drivers/regulator/core.c if (pin->gpiod == rdev->ena_pin->gpiod) { pin 2255 drivers/regulator/core.c if (pin->request_count <= 1) { pin 2256 drivers/regulator/core.c pin->request_count = 0; pin 2257 drivers/regulator/core.c gpiod_put(pin->gpiod); pin 2258 drivers/regulator/core.c list_del(&pin->list); pin 2259 drivers/regulator/core.c kfree(pin); pin 2263 drivers/regulator/core.c pin->request_count--; pin 2279 drivers/regulator/core.c struct regulator_enable_gpio *pin = rdev->ena_pin; pin 2281 drivers/regulator/core.c if (!pin) pin 2286 drivers/regulator/core.c if (pin->enable_count == 0) pin 2287 drivers/regulator/core.c gpiod_set_value_cansleep(pin->gpiod, 1); pin 2289 drivers/regulator/core.c pin->enable_count++; pin 2291 drivers/regulator/core.c if (pin->enable_count > 1) { pin 2292 drivers/regulator/core.c pin->enable_count--; pin 2297 drivers/regulator/core.c if (pin->enable_count <= 1) { pin 2298 drivers/regulator/core.c gpiod_set_value_cansleep(pin->gpiod, 0); pin 2299 drivers/regulator/core.c pin->enable_count = 0; pin 599 drivers/rtc/rtc-omap.c unsigned int pin, unsigned long *config) pin 610 drivers/rtc/rtc-omap.c if (!(val & OMAP_RTC_PMIC_EXT_WKUP_EN(pin))) pin 614 drivers/rtc/rtc-omap.c if (val & OMAP_RTC_PMIC_EXT_WKUP_POL(pin)) pin 627 drivers/rtc/rtc-omap.c unsigned int pin, unsigned long *configs, pin 639 drivers/rtc/rtc-omap.c val |= OMAP_RTC_PMIC_EXT_WKUP_POL(pin); pin 648 drivers/rtc/rtc-omap.c val |= OMAP_RTC_PMIC_EXT_WKUP_EN(pin); pin 650 drivers/rtc/rtc-omap.c val &= ~OMAP_RTC_PMIC_EXT_WKUP_EN(pin); pin 653 drivers/rtc/rtc-omap.c val &= ~OMAP_RTC_PMIC_EXT_WKUP_POL(pin); pin 602 drivers/scsi/esas2r/esas2r_init.c a->pcid->pin); pin 226 drivers/soc/fsl/qe/gpio.c const int pin = qe_pin->num; pin 229 drivers/soc/fsl/qe/gpio.c test_and_clear_bit(QE_PIN_REQUESTED, &qe_gc->pin_flags[pin]); pin 249 drivers/soc/fsl/qe/gpio.c int pin = qe_pin->num; pin 250 drivers/soc/fsl/qe/gpio.c u32 mask1 = 1 << (QE_PIO_PINS - (pin + 1)); pin 251 drivers/soc/fsl/qe/gpio.c u32 mask2 = 0x3 << (QE_PIO_PINS - (pin % (QE_PIO_PINS / 2) + 1) * 2); pin 252 drivers/soc/fsl/qe/gpio.c bool second_reg = pin > (QE_PIO_PINS / 2) - 1; pin 48 drivers/soc/fsl/qe/qe_io.c void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin, int dir, pin 57 drivers/soc/fsl/qe/qe_io.c pin_mask1bit = (u32) (1 << (QE_PIO_PINS - (pin + 1))); pin 67 drivers/soc/fsl/qe/qe_io.c tmp_val = (pin > (QE_PIO_PINS / 2) - 1) ? pin 73 drivers/soc/fsl/qe/qe_io.c (pin % (QE_PIO_PINS / 2) + 1) * 2)); pin 77 drivers/soc/fsl/qe/qe_io.c (pin % (QE_PIO_PINS / 2) + 1) * 2)); pin 80 drivers/soc/fsl/qe/qe_io.c if (pin > (QE_PIO_PINS / 2) - 1) { pin 92 drivers/soc/fsl/qe/qe_io.c tmp_val = (pin > (QE_PIO_PINS / 2) - 1) ? pin 97 drivers/soc/fsl/qe/qe_io.c (pin % (QE_PIO_PINS / 2) + 1) * 2)); pin 99 drivers/soc/fsl/qe/qe_io.c if (pin > (QE_PIO_PINS / 2) - 1) { pin 113 drivers/soc/fsl/qe/qe_io.c int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain, pin 119 drivers/soc/fsl/qe/qe_io.c __par_io_config_pin(&par_io[port], pin, dir, open_drain, assignment, pin 125 drivers/soc/fsl/qe/qe_io.c int par_io_data_set(u8 port, u8 pin, u8 val) pin 131 drivers/soc/fsl/qe/qe_io.c if (pin >= QE_PIO_PINS) pin 134 drivers/soc/fsl/qe/qe_io.c pin_mask = (u32) (1 << (QE_PIO_PINS - 1 - pin)); pin 180 drivers/soc/tegra/pmc.c unsigned int pin; pin 191 drivers/soc/tegra/pmc.c .pin = UINT_MAX, \ pin 202 drivers/soc/tegra/pmc.c .pin = _pin, \ pin 1668 drivers/soc/tegra/pmc.c unsigned int pin, unsigned long *config) pin 1676 drivers/soc/tegra/pmc.c pad = tegra_io_pad_find(pmc, pin); pin 1707 drivers/soc/tegra/pmc.c unsigned int pin, unsigned long *configs, pin 1717 drivers/soc/tegra/pmc.c pad = tegra_io_pad_find(pmc, pin); pin 1895 drivers/soc/tegra/pmc.c event->gpio.pin != fwspec->param[1]) pin 309 drivers/ssb/driver_pcicore.c int ssb_pcicore_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 240 drivers/ssb/embedded.c int ssb_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 247 drivers/ssb/embedded.c res = ssb_pcicore_pcibios_map_irq(dev, slot, pin); pin 748 drivers/staging/android/ashmem.c struct ashmem_pin pin; pin 753 drivers/staging/android/ashmem.c if (copy_from_user(&pin, p, sizeof(pin))) pin 769 drivers/staging/android/ashmem.c if (!pin.len) pin 770 drivers/staging/android/ashmem.c pin.len = PAGE_ALIGN(asma->size) - pin.offset; pin 772 drivers/staging/android/ashmem.c if ((pin.offset | pin.len) & ~PAGE_MASK) pin 775 drivers/staging/android/ashmem.c if (((__u32)-1) - pin.offset < pin.len) pin 778 drivers/staging/android/ashmem.c if (PAGE_ALIGN(asma->size) < pin.offset + pin.len) pin 781 drivers/staging/android/ashmem.c pgstart = pin.offset / PAGE_SIZE; pin 782 drivers/staging/android/ashmem.c pgend = pgstart + (pin.len / PAGE_SIZE) - 1; pin 372 drivers/staging/media/ipu3/ipu3-css-params.c unsigned int output_width, pin, s; pin 424 drivers/staging/media/ipu3/ipu3-css-params.c for (pin = 0; pin < IMGU_ABI_OSYS_PINS; pin++) { pin 430 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].flip = 0; pin 431 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].mirror = 0; pin 432 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].reduce_range = 0; pin 433 drivers/staging/media/ipu3/ipu3-css-params.c if (reso.pin_width[pin] != 0 && reso.pin_height[pin] != 0) { pin 435 drivers/staging/media/ipu3/ipu3-css-params.c if (pin == IMGU_ABI_OSYS_PIN_OUT) { pin 436 drivers/staging/media/ipu3/ipu3-css-params.c if (reso.input_width < reso.pin_width[pin] || pin 437 drivers/staging/media/ipu3/ipu3-css-params.c reso.input_height < reso.pin_height[pin]) pin 445 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].crop_left = roundclosest_down( pin 447 drivers/staging/media/ipu3/ipu3-css-params.c reso.pin_width[pin]) / 2, pin 449 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].crop_top = roundclosest_down( pin 451 drivers/staging/media/ipu3/ipu3-css-params.c reso.pin_height[pin]) / 2, pin 454 drivers/staging/media/ipu3/ipu3-css-params.c if (reso.pin_width[pin] != reso.input_width || pin 455 drivers/staging/media/ipu3/ipu3-css-params.c reso.pin_height[pin] != reso.input_height) { pin 467 drivers/staging/media/ipu3/ipu3-css-params.c imgu_css_osys_set_format(reso.pin_format[pin], &format, pin 472 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].enable = enable; pin 473 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].format = format; pin 474 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].tiling = tiling; pin 475 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].stride = reso.pin_stride[pin]; pin 476 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].scaled = scaled; pin 860 drivers/staging/media/ipu3/ipu3-css-params.c unsigned int pin, s; pin 978 drivers/staging/media/ipu3/ipu3-css-params.c for (pin = 0; pin < IMGU_ABI_OSYS_PINS; pin++) { pin 996 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr = &osys->frame[pin].param; pin 999 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->enable = frame_params[pin].enable; pin 1000 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->format = frame_params[pin].format; pin 1001 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->mirror = frame_params[pin].mirror; pin 1002 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->flip = frame_params[pin].flip; pin 1003 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->tiling = frame_params[pin].tiling; pin 1004 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->width = frame_params[pin].width; pin 1005 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->height = frame_params[pin].height; pin 1006 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->stride = frame_params[pin].stride; pin 1007 drivers/staging/media/ipu3/ipu3-css-params.c fr_pr->scaled = frame_params[pin].scaled; pin 1010 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].crop_top[pin] = pin 1011 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].crop_top; pin 1020 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].output_width[pin] = pin 1021 drivers/staging/media/ipu3/ipu3-css-params.c stripe_params[s].output_width[pin]; pin 1022 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].output_height[pin] = pin 1023 drivers/staging/media/ipu3/ipu3-css-params.c stripe_params[s].output_height[pin]; pin 1027 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].crop_left[pin] = pin 1028 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].crop_left; pin 1029 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].output_offset[pin] = pin 1030 drivers/staging/media/ipu3/ipu3-css-params.c stripe_params[s].output_offset[pin]; pin 1037 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].crop_left[pin] = 0; pin 1038 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].output_offset[pin] = pin 1039 drivers/staging/media/ipu3/ipu3-css-params.c (stripe_params[s].output_offset[pin] - pin 1040 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[0].crop_left[pin]); pin 1043 drivers/staging/media/ipu3/ipu3-css-params.c if (!frame_params[pin].enable) pin 1053 drivers/staging/media/ipu3/ipu3-css-params.c if (frame_params[pin].scaled) { pin 1071 drivers/staging/media/ipu3/ipu3-css-params.c if (frame_params[pin].format == pin 1073 drivers/staging/media/ipu3/ipu3-css-params.c frame_params[pin].format == pin 1086 drivers/staging/media/ipu3/ipu3-css-params.c if (frame_params[pin].tiling) { pin 1100 drivers/staging/media/ipu3/ipu3-css-params.c osys->stripe[s].buf_stride[pin] = pin 1103 drivers/staging/media/ipu3/ipu3-css-params.c if (frame_params[pin].scaled) { pin 1133 drivers/staging/media/ipu3/ipu3-css-params.c roundup(stripe_params[s].output_width[pin], pin 1144 drivers/staging/media/ipu3/ipu3-css-params.c if (frame_params[pin].scaled) pin 1150 drivers/staging/media/ipu3/ipu3-css-params.c param = &osys->formatter[s][pin].param; pin 1152 drivers/staging/media/ipu3/ipu3-css-params.c param->format = frame_params[pin].format; pin 1153 drivers/staging/media/ipu3/ipu3-css-params.c param->flip = frame_params[pin].flip; pin 1154 drivers/staging/media/ipu3/ipu3-css-params.c param->mirror = frame_params[pin].mirror; pin 1155 drivers/staging/media/ipu3/ipu3-css-params.c param->tiling = frame_params[pin].tiling; pin 1156 drivers/staging/media/ipu3/ipu3-css-params.c param->reduce_range = frame_params[pin].reduce_range; pin 1163 drivers/staging/media/ipu3/ipu3-css-params.c stripe_params[s].output_height[pin]; pin 163 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c unsigned int pin) pin 167 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c if (!p->gpio[pin]) { pin 168 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c dev_err(p->dev, "pin %d is not set to gpio mux\n", pin); pin 261 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c int pin; pin 273 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c pin = p->func[i]->pin_first + p->func[i]->pin_count; pin 274 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c if (pin > p->max_pins) pin 275 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c p->max_pins = pin; pin 43 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c const struct dcon_gpio *pin = &gpios_asis[0]; pin 46 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpios[i] = devm_gpiod_get(&dcon->client->dev, pin[i].name, pin 47 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c pin[i].flags); pin 50 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c pr_err("failed to request %s GPIO: %d\n", pin[i].name, pin 89 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c const struct dcon_gpio *pin = &gpios_asis[0]; pin 99 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c gpios[i] = devm_gpiod_get(&dcon->client->dev, pin[i].name, pin 100 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c pin[i].flags); pin 103 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c pr_err("failed to request %s GPIO: %d\n", pin[i].name, pin 178 drivers/usb/serial/f81534.c struct f81534_pin_data pin[3]; pin 1358 drivers/usb/serial/f81534.c for (i = 0; i < ARRAY_SIZE(pins->pin); ++i) { pin 1360 drivers/usb/serial/f81534.c pins->pin[i].reg_addr, pins->pin[i].reg_mask, pin 1361 drivers/usb/serial/f81534.c value & BIT(i) ? pins->pin[i].reg_mask : 0); pin 510 drivers/vfio/pci/vfio_pci.c u8 pin; pin 516 drivers/vfio/pci/vfio_pci.c pci_read_config_byte(vdev->pdev, PCI_INTERRUPT_PIN, &pin); pin 518 drivers/vfio/pci/vfio_pci.c return pin ? 1 : 0; pin 47 drivers/xen/platform-pci.c u8 pin; pin 54 drivers/xen/platform-pci.c pin = pdev->pin; pin 61 drivers/xen/platform-pci.c ((uint64_t)(pin - 1) & 3); pin 3247 fs/btrfs/extent-tree.c int pin = 1; pin 3262 fs/btrfs/extent-tree.c pin = old_ref_mod >= 0 && new_ref_mod < 0; pin 3274 fs/btrfs/extent-tree.c pin = 0; pin 3291 fs/btrfs/extent-tree.c if (pin) pin 4151 fs/btrfs/extent-tree.c int pin, int delalloc) pin 4163 fs/btrfs/extent-tree.c if (pin) pin 266 fs/btrfs/tree-log.c int pin; pin 313 fs/btrfs/tree-log.c if (wc->pin) pin 318 fs/btrfs/tree-log.c if (wc->pin && btrfs_header_level(eb) == 0) pin 6185 fs/btrfs/tree-log.c wc.pin = 1; pin 6301 fs/btrfs/tree-log.c if (wc.pin) { pin 6302 fs/btrfs/tree-log.c wc.pin = 0; pin 3028 fs/f2fs/file.c __u32 pin; pin 3031 fs/f2fs/file.c if (get_user(pin, (__u32 __user *)arg)) pin 3051 fs/f2fs/file.c if (!pin) { pin 3078 fs/f2fs/file.c __u32 pin = 0; pin 3081 fs/f2fs/file.c pin = F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN]; pin 3082 fs/f2fs/file.c return put_user(pin, (u32 __user *)arg); pin 10 fs/fs_pin.c void pin_remove(struct fs_pin *pin) pin 13 fs/fs_pin.c hlist_del_init(&pin->m_list); pin 14 fs/fs_pin.c hlist_del_init(&pin->s_list); pin 16 fs/fs_pin.c spin_lock_irq(&pin->wait.lock); pin 17 fs/fs_pin.c pin->done = 1; pin 18 fs/fs_pin.c wake_up_locked(&pin->wait); pin 19 fs/fs_pin.c spin_unlock_irq(&pin->wait.lock); pin 22 fs/fs_pin.c void pin_insert(struct fs_pin *pin, struct vfsmount *m) pin 25 fs/fs_pin.c hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); pin 26 fs/fs_pin.c hlist_add_head(&pin->m_list, &real_mount(m)->mnt_pins); pin 325 fs/gfs2/trace_gfs2.h TP_PROTO(const struct gfs2_bufdata *bd, int pin), pin 327 fs/gfs2/trace_gfs2.h TP_ARGS(bd, pin), pin 331 fs/gfs2/trace_gfs2.h __field( int, pin ) pin 339 fs/gfs2/trace_gfs2.h __entry->pin = pin; pin 347 fs/gfs2/trace_gfs2.h __entry->pin ? "pin" : "unpin", pin 672 include/acpi/acrestyp.h u32 pin; pin 87 include/drm/drm_audio_component.h int (*pin2port)(void *audio_ptr, int pin); pin 108 include/drm/drm_gem.h int (*pin)(struct drm_gem_object *obj); pin 45 include/dt-bindings/pinctrl/r7s9210-pinctrl.h #define RZA2_PIN(port, pin) ((port) * RZA2_PINS_PER_PORT + (pin)) pin 116 include/linux/gpio/driver.h unsigned int pin); pin 67 include/linux/host1x.h dma_addr_t (*pin)(struct host1x_bo *bo, struct sg_table **sgt); pin 98 include/linux/host1x.h return bo->ops->pin(bo, sgt); pin 79 include/linux/input/adp5589.h unsigned short pin; pin 387 include/linux/kvm_host.h unsigned pin; pin 984 include/linux/kvm_host.h int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin); pin 993 include/linux/kvm_host.h bool kvm_irq_has_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin); pin 995 include/linux/kvm_host.h void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin); pin 668 include/linux/mlx5/device.h u8 pin; pin 9283 include/linux/mlx5/mlx5_ifc.h u8 pin[0x8]; pin 9298 include/linux/mlx5/mlx5_ifc.h u8 pin[0x8]; pin 33 include/linux/of_pci.h int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); pin 36 include/linux/of_pci.h of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) pin 317 include/linux/pci.h u8 pin; /* Interrupt pin this device uses */ pin 1018 include/linux/pci.h u8 pci_swizzle_interrupt_pin(const struct pci_dev *dev, u8 pin); pin 108 include/linux/pinctrl/machine.h #define PIN_MAP_CONFIGS_PIN(dev, state, pinctrl, pin, cfgs) \ pin 115 include/linux/pinctrl/machine.h .group_or_pin = pin, \ pin 121 include/linux/pinctrl/machine.h #define PIN_MAP_CONFIGS_PIN_DEFAULT(dev, pinctrl, pin, cfgs) \ pin 122 include/linux/pinctrl/machine.h PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_DEFAULT, pinctrl, pin, cfgs) pin 124 include/linux/pinctrl/machine.h #define PIN_MAP_CONFIGS_PIN_HOG(dev, state, pin, cfgs) \ pin 125 include/linux/pinctrl/machine.h PIN_MAP_CONFIGS_PIN(dev, state, dev, pin, cfgs) pin 127 include/linux/pinctrl/machine.h #define PIN_MAP_CONFIGS_PIN_HOG_DEFAULT(dev, pin, cfgs) \ pin 128 include/linux/pinctrl/machine.h PIN_MAP_CONFIGS_PIN(dev, PINCTRL_STATE_DEFAULT, dev, pin, cfgs) pin 43 include/linux/pinctrl/pinconf.h unsigned pin, pin 46 include/linux/pinctrl/pinconf.h unsigned pin, pin 184 include/linux/pinctrl/pinctrl.h unsigned int pin); pin 137 include/linux/platform_data/adp5588.h unsigned short pin; pin 140 include/linux/ptp_clock_kernel.h int (*verify)(struct ptp_clock_info *ptp, unsigned int pin, pin 679 include/linux/ssb/ssb.h int ssb_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 98 include/linux/ssb/ssb_driver_pci.h int ssb_pcicore_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); pin 125 include/linux/ssb/ssb_driver_pci.h int ssb_pcicore_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pin 224 include/media/cec.h struct cec_pin *pin; pin 201 include/media/drv-intf/saa7146_vv.h void saa7146_set_gpio(struct saa7146_dev *saa, u8 pin, u8 data); pin 134 include/media/v4l2-subdev.h u8 pin; pin 158 include/soc/fsl/qe/qe.h extern void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin, pin 164 include/soc/fsl/qe/qe.h extern int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain, pin 166 include/soc/fsl/qe/qe.h extern int par_io_data_set(u8 port, u8 pin, u8 val); pin 170 include/soc/fsl/qe/qe.h static inline int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain, pin 172 include/soc/fsl/qe/qe.h static inline int par_io_data_set(u8 port, u8 pin, u8 val) { return -ENOSYS; } pin 183 include/soc/fsl/qe/qe.h extern void qe_pin_set_dedicated(struct qe_pin *pin); pin 191 include/soc/fsl/qe/qe.h static inline void qe_pin_set_dedicated(struct qe_pin *pin) {} pin 37 include/sound/simple_card_utils.h struct snd_soc_jack_pin pin; pin 329 include/sound/soc-component.h const char *pin); pin 331 include/sound/soc-component.h const char *pin); pin 333 include/sound/soc-component.h const char *pin); pin 335 include/sound/soc-component.h const char *pin); pin 337 include/sound/soc-component.h const char *pin); pin 339 include/sound/soc-component.h const char *pin); pin 341 include/sound/soc-component.h const char *pin); pin 343 include/sound/soc-component.h const char *pin); pin 346 include/sound/soc-component.h const char *pin); pin 454 include/sound/soc-dapm.h const char *pin); pin 456 include/sound/soc-dapm.h const char *pin); pin 458 include/sound/soc-dapm.h const char *pin); pin 460 include/sound/soc-dapm.h const char *pin); pin 461 include/sound/soc-dapm.h int snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin); pin 463 include/sound/soc-dapm.h const char *pin); pin 465 include/sound/soc-dapm.h const char *pin); pin 469 include/sound/soc-dapm.h const char *pin); pin 471 include/sound/soc-dapm.h const char *pin); pin 473 include/sound/soc-dapm.h const char *pin); pin 635 include/sound/soc.h const char *pin; pin 99 include/trace/events/kvm.h TP_PROTO(__u64 e, int pin, bool coalesced), pin 100 include/trace/events/kvm.h TP_ARGS(e, pin, coalesced), pin 104 include/trace/events/kvm.h __field( int, pin ) pin 110 include/trace/events/kvm.h __entry->pin = pin; pin 115 include/trace/events/kvm.h __entry->pin, (u8)(__entry->e >> 56), (u8)__entry->e, pin 177 include/trace/events/kvm.h #define kvm_ack_irq_parm __print_symbolic(__entry->irqchip, kvm_irqchips), __entry->pin pin 180 include/trace/events/kvm.h #define kvm_ack_irq_parm __entry->irqchip, __entry->pin pin 184 include/trace/events/kvm.h TP_PROTO(unsigned int irqchip, unsigned int pin), pin 185 include/trace/events/kvm.h TP_ARGS(irqchip, pin), pin 189 include/trace/events/kvm.h __field( unsigned int, pin ) pin 194 include/trace/events/kvm.h __entry->pin = pin; pin 1008 include/uapi/linux/kvm.h __u32 pin; pin 84 kernel/acct.c struct fs_pin pin; pin 141 kernel/acct.c return p ? container_of(p, struct bsd_acct_struct, pin) : NULL; pin 170 kernel/acct.c static void acct_pin_kill(struct fs_pin *pin) pin 172 kernel/acct.c struct bsd_acct_struct *acct = to_acct(pin); pin 177 kernel/acct.c cmpxchg(&acct->ns->bacct, pin, NULL); pin 179 kernel/acct.c pin_remove(pin); pin 241 kernel/acct.c init_fs_pin(&acct->pin, acct_pin_kill); pin 249 kernel/acct.c pin_insert(&acct->pin, mnt); pin 252 kernel/acct.c old = xchg(&ns->bacct, &acct->pin); pin 45 scripts/dtc/include-prefixes/dt-bindings/pinctrl/r7s9210-pinctrl.h #define RZA2_PIN(port, pin) ((port) * RZA2_PINS_PER_PORT + (pin)) pin 211 sound/isa/msnd/msnd_pinnacle.c char *pin = "TB Pinnacle", *fiji = "TB Fiji"; pin 256 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); pin 260 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); pin 264 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); pin 268 sound/isa/msnd/msnd_pinnacle.c strcpy(card->shortname, pin); pin 30 sound/pci/hda/hda_auto_parser.c hda_nid_t pin; pin 51 sound/pci/hda/hda_auto_parser.c pins[i] = list[i].pin; pin 60 sound/pci/hda/hda_auto_parser.c cfg->inputs[cfg->num_inputs].pin = nid; pin 102 sound/pci/hda/hda_auto_parser.c static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, pin 105 sound/pci/hda/hda_auto_parser.c unsigned int pincap = snd_hda_query_pin_caps(codec, pin); pin 135 sound/pci/hda/hda_auto_parser.c def_conf = snd_hda_codec_get_pincfg(codec, item->pin); pin 242 sound/pci/hda/hda_auto_parser.c line_out[cfg->line_outs].pin = nid; pin 255 sound/pci/hda/hda_auto_parser.c speaker_out[cfg->speaker_outs].pin = nid; pin 268 sound/pci/hda/hda_auto_parser.c hp_out[cfg->hp_outs].pin = nid; pin 430 sound/pci/hda/hda_auto_parser.c cfg->inputs[i].pin); pin 480 sound/pci/hda/hda_auto_parser.c hda_nid_t pin, bool check_location) pin 488 sound/pci/hda/hda_auto_parser.c def_conf = snd_hda_codec_get_pincfg(codec, pin); pin 537 sound/pci/hda/hda_auto_parser.c defc = snd_hda_codec_get_pincfg(codec, cfg->inputs[input].pin); pin 545 sound/pci/hda/hda_auto_parser.c defc = snd_hda_codec_get_pincfg(codec, cfg->inputs[i].pin); pin 581 sound/pci/hda/hda_auto_parser.c cfg->inputs[input].pin, pin 736 sound/pci/hda/hda_auto_parser.c hda_nid_t pin = cfg->dig_out_pins[i]; pin 738 sound/pci/hda/hda_auto_parser.c if (pin == nid) pin 740 sound/pci/hda/hda_auto_parser.c c = snd_hda_codec_get_pincfg(codec, pin); pin 748 sound/pci/hda/hda_auto_parser.c if (cfg->inputs[i].pin != nid) pin 890 sound/pci/hda/hda_auto_parser.c const struct hda_pincfg *pin; pin 893 sound/pci/hda/hda_auto_parser.c snd_array_for_each(&codec->init_pins, i, pin) { pin 894 sound/pci/hda/hda_auto_parser.c hda_nid_t nid = pin->nid; pin 895 sound/pci/hda/hda_auto_parser.c u32 cfg = pin->cfg; pin 33 sound/pci/hda/hda_auto_parser.h hda_nid_t pin; pin 437 sound/pci/hda/hda_codec.c struct hda_pincfg *pin; pin 442 sound/pci/hda/hda_codec.c pin = snd_array_new(&codec->init_pins); pin 443 sound/pci/hda/hda_codec.c if (!pin) pin 445 sound/pci/hda/hda_codec.c pin->nid = nid; pin 446 sound/pci/hda/hda_codec.c pin->cfg = snd_hda_codec_read(codec, nid, 0, pin 452 sound/pci/hda/hda_codec.c pin->ctrl = snd_hda_codec_read(codec, nid, 0, pin 464 sound/pci/hda/hda_codec.c struct hda_pincfg *pin; pin 467 sound/pci/hda/hda_codec.c snd_array_for_each(array, i, pin) { pin 468 sound/pci/hda/hda_codec.c if (pin->nid == nid) pin 469 sound/pci/hda/hda_codec.c return pin; pin 480 sound/pci/hda/hda_codec.c struct hda_pincfg *pin; pin 491 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, list, nid); pin 492 sound/pci/hda/hda_codec.c if (!pin) { pin 493 sound/pci/hda/hda_codec.c pin = snd_array_new(list); pin 494 sound/pci/hda/hda_codec.c if (!pin) pin 496 sound/pci/hda/hda_codec.c pin->nid = nid; pin 498 sound/pci/hda/hda_codec.c pin->cfg = cfg; pin 530 sound/pci/hda/hda_codec.c struct hda_pincfg *pin; pin 536 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->user_pins, nid); pin 537 sound/pci/hda/hda_codec.c if (pin) pin 538 sound/pci/hda/hda_codec.c cfg = pin->cfg; pin 544 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->driver_pins, nid); pin 545 sound/pci/hda/hda_codec.c if (pin) pin 546 sound/pci/hda/hda_codec.c return pin->cfg; pin 547 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); pin 548 sound/pci/hda/hda_codec.c if (pin) pin 549 sound/pci/hda/hda_codec.c return pin->cfg; pin 567 sound/pci/hda/hda_codec.c struct hda_pincfg *pin; pin 569 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); pin 570 sound/pci/hda/hda_codec.c if (!pin) pin 572 sound/pci/hda/hda_codec.c pin->target = val; pin 584 sound/pci/hda/hda_codec.c struct hda_pincfg *pin; pin 586 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); pin 587 sound/pci/hda/hda_codec.c if (!pin) pin 589 sound/pci/hda/hda_codec.c return pin->target; pin 602 sound/pci/hda/hda_codec.c const struct hda_pincfg *pin; pin 610 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->init_pins, i, pin) { pin 612 sound/pci/hda/hda_codec.c snd_hda_codec_read(codec, pin->nid, 0, pin 623 sound/pci/hda/hda_codec.c const struct hda_pincfg *pin; pin 630 sound/pci/hda/hda_codec.c snd_array_for_each(&codec->init_pins, i, pin) { pin 631 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, pin->nid, 0, pin 633 sound/pci/hda/hda_codec.c pin->ctrl); pin 3844 sound/pci/hda/hda_codec.c unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin) pin 3848 sound/pci/hda/hda_codec.c oldval = snd_hda_codec_read(codec, pin, 0, pin 3850 sound/pci/hda/hda_codec.c pincap = snd_hda_query_pin_caps(codec, pin); pin 3872 sound/pci/hda/hda_codec.c hda_nid_t pin, unsigned int val) pin 3884 sound/pci/hda/hda_codec.c cap = snd_hda_query_pin_caps(codec, pin); pin 3934 sound/pci/hda/hda_codec.c int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, pin 3937 sound/pci/hda/hda_codec.c val = snd_hda_correct_pin_ctl(codec, pin, val); pin 3938 sound/pci/hda/hda_codec.c snd_hda_codec_set_pin_target(codec, pin, val); pin 3940 sound/pci/hda/hda_codec.c return snd_hda_codec_write_cache(codec, pin, 0, pin 3943 sound/pci/hda/hda_codec.c return snd_hda_codec_write(codec, pin, 0, pin 199 sound/pci/hda/hda_generic.c #define update_pin_ctl(codec, pin, val) \ pin 200 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, pin, 0, \ pin 204 sound/pci/hda/hda_generic.c static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) pin 206 sound/pci/hda/hda_generic.c update_pin_ctl(codec, pin, snd_hda_codec_get_pin_target(codec, pin)); pin 210 sound/pci/hda/hda_generic.c static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, pin 213 sound/pci/hda/hda_generic.c if (!pin) pin 215 sound/pci/hda/hda_generic.c val = snd_hda_correct_pin_ctl(codec, pin, val); pin 216 sound/pci/hda/hda_generic.c snd_hda_codec_set_pin_target(codec, pin, val); pin 218 sound/pci/hda/hda_generic.c update_pin_ctl(codec, pin, val); pin 507 sound/pci/hda/hda_generic.c static hda_nid_t get_preferred_dac(struct hda_codec *codec, hda_nid_t pin) pin 515 sound/pci/hda/hda_generic.c if (*list == pin) pin 521 sound/pci/hda/hda_generic.c static hda_nid_t look_for_dac(struct hda_codec *codec, hda_nid_t pin, pin 535 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, nid, pin)) pin 911 sound/pci/hda/hda_generic.c static void set_pin_eapd(struct hda_codec *codec, hda_nid_t pin, bool enable) pin 915 sound/pci/hda/hda_generic.c !(snd_hda_query_pin_caps(codec, pin) & AC_PINCAP_EAPD)) pin 921 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, pin, 0, pin 1344 sound/pci/hda/hda_generic.c hda_nid_t dac, hda_nid_t pin) pin 1346 sound/pci/hda/hda_generic.c return is_reachable_path(codec, dac, pin) ? dac : 0; pin 1365 sound/pci/hda/hda_generic.c hda_nid_t pin = pins[i]; pin 1373 sound/pci/hda/hda_generic.c dacs[i] = get_preferred_dac(codec, pin); pin 1380 sound/pci/hda/hda_generic.c dacs[i] = look_for_dac(codec, pin, false); pin 1384 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, dacs[j], pin)) { pin 1396 sound/pci/hda/hda_generic.c dac = try_dac(codec, get_primary_out(codec, i), pin); pin 1398 sound/pci/hda/hda_generic.c dac = try_dac(codec, dacs[0], pin); pin 1400 sound/pci/hda/hda_generic.c dac = try_dac(codec, get_primary_out(codec, i), pin); pin 1408 sound/pci/hda/hda_generic.c } else if (is_reachable_path(codec, spec->private_dac_nids[0], pin)) { pin 1418 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, -spec->mixer_nid); pin 1421 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, 0); pin 1438 sound/pci/hda/hda_generic.c static hda_nid_t get_dac_if_single(struct hda_codec *codec, hda_nid_t pin) pin 1448 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, nid, pin)) { pin 1489 sound/pci/hda/hda_generic.c cfg->inputs[i].pin)) pin 1526 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->inputs[i].pin; pin 1534 sound/pci/hda/hda_generic.c if (nid == spec->multi_io[j].pin) pin 1555 sound/pci/hda/hda_generic.c spec->multi_io[spec->multi_ios].pin = nid; pin 1630 sound/pci/hda/hda_generic.c hda_nid_t path_dac, dac, pin; pin 1638 sound/pci/hda/hda_generic.c pin = path->path[path->depth - 1]; pin 1639 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, spec->mixer_nid); pin 1650 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, pin 1911 sound/pci/hda/hda_generic.c spec->multi_io[0].pin, spec->multi_io[1].pin, pin 2354 sound/pci/hda/hda_generic.c hda_nid_t nid = spec->multi_io[idx].pin; pin 2547 sound/pci/hda/hda_generic.c hda_nid_t pin; pin 2549 sound/pci/hda/hda_generic.c pin = spec->hp_mic_pin; pin 2553 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pin_target(codec, pin); pin 2563 sound/pci/hda/hda_generic.c val = snd_hda_get_default_vref(codec, pin); pin 2580 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, val, true); pin 2602 sound/pci/hda/hda_generic.c defcfg = snd_hda_codec_get_pincfg(codec, cfg->inputs[0].pin); pin 2623 sound/pci/hda/hda_generic.c cfg->inputs[cfg->num_inputs].pin = nid; pin 2639 sound/pci/hda/hda_generic.c static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin); pin 2697 sound/pci/hda/hda_generic.c static void get_jack_mode_name(struct hda_codec *codec, hda_nid_t pin, pin 2703 sound/pci/hda/hda_generic.c snd_hda_get_pin_label(codec, pin, &spec->autocfg, name, name_len, &idx); pin 2710 sound/pci/hda/hda_generic.c static int get_out_jack_num_items(struct hda_codec *codec, hda_nid_t pin) pin 2714 sound/pci/hda/hda_generic.c unsigned int pincap = snd_hda_query_pin_caps(codec, pin); pin 2728 sound/pci/hda/hda_generic.c hda_nid_t pin = pins[i]; pin 2729 sound/pci/hda/hda_generic.c if (pin == spec->hp_mic_pin) pin 2731 sound/pci/hda/hda_generic.c if (get_out_jack_num_items(codec, pin) > 1) { pin 2734 sound/pci/hda/hda_generic.c get_jack_mode_name(codec, pin, name, sizeof(name)); pin 2739 sound/pci/hda/hda_generic.c knew->private_value = pin; pin 2758 sound/pci/hda/hda_generic.c static unsigned int get_vref_caps(struct hda_codec *codec, hda_nid_t pin) pin 2762 sound/pci/hda/hda_generic.c pincap = snd_hda_query_pin_caps(codec, pin); pin 2852 sound/pci/hda/hda_generic.c static int get_in_jack_num_items(struct hda_codec *codec, hda_nid_t pin) pin 2857 sound/pci/hda/hda_generic.c nitems = hweight32(get_vref_caps(codec, pin)); pin 2861 sound/pci/hda/hda_generic.c static int create_in_jack_mode(struct hda_codec *codec, hda_nid_t pin) pin 2868 sound/pci/hda/hda_generic.c if (pin == spec->hp_mic_pin) pin 2872 sound/pci/hda/hda_generic.c defcfg = snd_hda_codec_get_pincfg(codec, pin); pin 2877 sound/pci/hda/hda_generic.c if (get_in_jack_num_items(codec, pin) <= 1) pin 2880 sound/pci/hda/hda_generic.c get_jack_mode_name(codec, pin, name, sizeof(name)); pin 2884 sound/pci/hda/hda_generic.c knew->private_value = pin; pin 2998 sound/pci/hda/hda_generic.c static int create_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t pin) pin 3007 sound/pci/hda/hda_generic.c knew->private_value = pin; pin 3035 sound/pci/hda/hda_generic.c hda_nid_t pin, unsigned int *mix_val, pin 3042 sound/pci/hda/hda_generic.c idx = snd_hda_get_conn_index(codec, mix_nid, pin, true); pin 3071 sound/pci/hda/hda_generic.c hda_nid_t pin, const char *ctlname, int ctlidx, pin 3079 sound/pci/hda/hda_generic.c if (!look_for_mix_leaf_ctls(codec, mix_nid, pin, &mix_val, &mute_val)) pin 3082 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, mix_nid, 0); pin 3231 sound/pci/hda/hda_generic.c static int parse_capture_source(struct hda_codec *codec, hda_nid_t pin, pin 3245 sound/pci/hda/hda_generic.c if (!is_reachable_path(codec, pin, adc)) pin 3247 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, adc, anchor); pin 3255 sound/pci/hda/hda_generic.c if (spec->hp_mic_pin == pin) pin 3257 sound/pci/hda/hda_generic.c spec->imux_pins[imux->num_items] = pin; pin 3280 sound/pci/hda/hda_generic.c hda_nid_t pin = cfg->inputs[i].pin; pin 3284 sound/pci/hda/hda_generic.c if (!is_input_pin(codec, pin)) pin 3324 sound/pci/hda/hda_generic.c hda_nid_t pin; pin 3326 sound/pci/hda/hda_generic.c pin = cfg->inputs[i].pin; pin 3327 sound/pci/hda/hda_generic.c if (!is_input_pin(codec, pin)) pin 3332 sound/pci/hda/hda_generic.c val |= snd_hda_get_default_vref(codec, pin); pin 3333 sound/pci/hda/hda_generic.c if (pin != spec->hp_mic_pin && pin 3334 sound/pci/hda/hda_generic.c !snd_hda_codec_get_pin_target(codec, pin)) pin 3335 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, val, false); pin 3338 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, pin, mixer)) { pin 3339 sound/pci/hda/hda_generic.c err = new_analog_input(codec, i, pin, pin 3348 sound/pci/hda/hda_generic.c err = parse_capture_source(codec, pin, i, num_adcs, pin 3354 sound/pci/hda/hda_generic.c err = create_in_jack_mode(codec, pin); pin 3565 sound/pci/hda/hda_generic.c if (cfg->inputs[i].pin != nid) pin 4064 sound/pci/hda/hda_generic.c hda_nid_t dig_nid, pin; pin 4069 sound/pci/hda/hda_generic.c pin = spec->autocfg.dig_out_pins[i]; pin 4070 sound/pci/hda/hda_generic.c dig_nid = look_for_dac(codec, pin, true); pin 4073 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dig_nid, pin, 0); pin 4080 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, PIN_OUT, false); pin 4094 sound/pci/hda/hda_generic.c pin = spec->autocfg.dig_in_pin; pin 4101 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, dig_nid, 0); pin 4108 sound/pci/hda/hda_generic.c set_pin_target(codec, pin, PIN_IN, false); pin 4202 sound/pci/hda/hda_generic.c static bool detect_pin_state(struct hda_codec *codec, hda_nid_t pin) pin 4204 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, pin)) pin 4206 sound/pci/hda/hda_generic.c return snd_hda_jack_detect_state(codec, pin) != HDA_JACK_NOT_PRESENT; pin 4215 sound/pci/hda/hda_generic.c static hda_nid_t set_pin_power_jack(struct hda_codec *codec, hda_nid_t pin, pin 4223 sound/pci/hda/hda_generic.c on = detect_pin_state(codec, pin); pin 4227 sound/pci/hda/hda_generic.c return set_path_power(codec, pin, on, -1); pin 4286 sound/pci/hda/hda_generic.c add_pin_power_ctls(codec, 1, &cfg->inputs[i].pin, on); pin 4315 sound/pci/hda/hda_generic.c sync_pin_power_ctls(codec, 1, &cfg->inputs[i].pin); pin 4381 sound/pci/hda/hda_generic.c int snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin) pin 4391 sound/pci/hda/hda_generic.c path->path[0] = pin; pin 4613 sound/pci/hda/hda_generic.c hda_nid_t pin = spec->am_entry[i].pin; pin 4615 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, pin) & AC_PINCTL_OUT_EN) pin 4617 sound/pci/hda/hda_generic.c if (snd_hda_jack_detect_state(codec, pin) == HDA_JACK_PRESENT) { pin 4841 sound/pci/hda/hda_generic.c find_idx_in_nid_list(spec->am_entry[i].pin, pin 4850 sound/pci/hda/hda_generic.c spec->am_entry[i].pin, pin 4879 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->inputs[i].pin; pin 4905 sound/pci/hda/hda_generic.c spec->am_entry[num_pins].pin = nid; pin 4927 sound/pci/hda/hda_generic.c spec->am_entry[0].pin, pin 4928 sound/pci/hda/hda_generic.c spec->am_entry[1].pin, pin 4929 sound/pci/hda/hda_generic.c spec->am_entry[2].pin); pin 5833 sound/pci/hda/hda_generic.c hda_nid_t pin; pin 5838 sound/pci/hda/hda_generic.c pin = path->path[path->depth - 1]; pin 5839 sound/pci/hda/hda_generic.c restore_pin_ctl(codec, pin); pin 5842 sound/pci/hda/hda_generic.c set_pin_eapd(codec, pin, path->active); pin 5883 sound/pci/hda/hda_generic.c hda_nid_t pin = spec->multi_io[i].pin; pin 5890 sound/pci/hda/hda_generic.c snd_hda_codec_get_pin_target(codec, pin); pin 5923 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->inputs[i].pin; pin 5971 sound/pci/hda/hda_generic.c hda_nid_t pin; pin 5975 sound/pci/hda/hda_generic.c pin = spec->autocfg.dig_in_pin; pin 5976 sound/pci/hda/hda_generic.c if (pin) { pin 5977 sound/pci/hda/hda_generic.c restore_pin_ctl(codec, pin); pin 5987 sound/pci/hda/hda_generic.c const struct hda_pincfg *pin; pin 5990 sound/pci/hda/hda_generic.c snd_array_for_each(&codec->init_pins, i, pin) { pin 5991 sound/pci/hda/hda_generic.c hda_nid_t nid = pin->nid; pin 13 sound/pci/hda/hda_generic.h hda_nid_t pin; /* multi-io widget pin NID */ pin 56 sound/pci/hda/hda_generic.h hda_nid_t pin; /* pin */ pin 354 sound/pci/hda/hda_generic.h int snd_hda_gen_fix_pin_power(struct hda_codec *codec, hda_nid_t pin); pin 488 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, cfg->inputs[i].pin, pin 491 sound/pci/hda/hda_jack.c err = add_jack_kctl(codec, cfg->inputs[i].pin, cfg, pin 400 sound/pci/hda/hda_local.h unsigned int snd_hda_get_default_vref(struct hda_codec *codec, hda_nid_t pin); pin 402 sound/pci/hda/hda_local.h hda_nid_t pin, unsigned int val); pin 403 sound/pci/hda/hda_local.h int _snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, pin 422 sound/pci/hda/hda_local.h snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) pin 424 sound/pci/hda/hda_local.h return _snd_hda_set_pin_ctl(codec, pin, val, false); pin 436 sound/pci/hda/hda_local.h snd_hda_set_pin_ctl_cache(struct hda_codec *codec, hda_nid_t pin, pin 439 sound/pci/hda/hda_local.h return _snd_hda_set_pin_ctl(codec, pin, val, true); pin 84 sound/pci/hda/hda_sysfs.c const struct hda_pincfg *pin; pin 87 sound/pci/hda/hda_sysfs.c snd_array_for_each(list, i, pin) { pin 89 sound/pci/hda/hda_sysfs.c pin->nid, pin->cfg); pin 6691 sound/pci/hda/patch_ca0132.c static void init_output(struct hda_codec *codec, hda_nid_t pin, hda_nid_t dac) pin 6693 sound/pci/hda/patch_ca0132.c if (pin) { pin 6694 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, pin, PIN_HP); pin 6695 sound/pci/hda/patch_ca0132.c if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP) pin 6696 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, pin, 0, pin 6705 sound/pci/hda/patch_ca0132.c static void init_input(struct hda_codec *codec, hda_nid_t pin, hda_nid_t adc) pin 6707 sound/pci/hda/patch_ca0132.c if (pin) { pin 6708 sound/pci/hda/patch_ca0132.c snd_hda_set_pin_ctl(codec, pin, PIN_VREF80); pin 6709 sound/pci/hda/patch_ca0132.c if (get_wcaps(codec, pin) & AC_WCAP_IN_AMP) pin 6710 sound/pci/hda/patch_ca0132.c snd_hda_codec_write(codec, pin, 0, pin 701 sound/pci/hda/patch_cirrus.c hda_nid_t pin = spec->gen.autocfg.dig_out_pins[0]; pin 704 sound/pci/hda/patch_cirrus.c snd_hda_set_pin_ctl_cache(codec, pin, pinctl); pin 254 sound/pci/hda/patch_conexant.c if (cfg->inputs[i].pin == mux_pin) { pin 2988 sound/pci/hda/patch_hdmi.c hda_nid_t pin = per_pin->pin_nid; pin 2990 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin, 0, pin 2993 sound/pci/hda/patch_hdmi.c if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP) pin 2994 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, pin, 0, AC_VERB_SET_AMP_GAIN_MUTE, pin 2996 sound/pci/hda/patch_hdmi.c snd_hda_jack_detect_enable(codec, pin); pin 489 sound/pci/hda/patch_realtek.c const struct hda_pincfg *pin; pin 499 sound/pci/hda/patch_realtek.c snd_array_for_each(&codec->init_pins, i, pin) { pin 501 sound/pci/hda/patch_realtek.c if (pin->nid != mic_pin) pin 502 sound/pci/hda/patch_realtek.c snd_hda_codec_read(codec, pin->nid, 0, pin 4031 sound/pci/hda/patch_realtek.c int pol, pin; pin 4032 sound/pci/hda/patch_realtek.c if (sscanf(dev->name, "HP_Mute_LED_%d_%x", &pol, &pin) != 2) pin 4034 sound/pci/hda/patch_realtek.c if (pin < 0x0a || pin >= 0x10) pin 4037 sound/pci/hda/patch_realtek.c spec->mute_led_nid = pin - 0x0a + 0x18; pin 4050 sound/pci/hda/patch_realtek.c int action, hda_nid_t pin) pin 4056 sound/pci/hda/patch_realtek.c spec->mute_led_nid = pin; pin 5314 sound/pci/hda/patch_realtek.c spec->headset_mic_pin = cfg->inputs[i].pin; pin 5316 sound/pci/hda/patch_realtek.c spec->headphone_mic_pin = cfg->inputs[i].pin; pin 5598 sound/pci/hda/patch_realtek.c nid = cfg->inputs[i].pin; pin 5640 sound/pci/hda/patch_realtek.c hda_nid_t nid = cfg->inputs[i].pin; pin 3117 sound/pci/hda/patch_sigmatel.c static bool is_hp_output(struct hda_codec *codec, hda_nid_t pin) pin 3119 sound/pci/hda/patch_sigmatel.c unsigned int pin_cfg = snd_hda_codec_get_pincfg(codec, pin); pin 3127 sound/pci/hda/patch_sigmatel.c static void fixup_hp_headphone(struct hda_codec *codec, hda_nid_t pin) pin 3129 sound/pci/hda/patch_sigmatel.c unsigned int pin_cfg = snd_hda_codec_get_pincfg(codec, pin); pin 3138 sound/pci/hda/patch_sigmatel.c snd_hda_codec_set_pincfg(codec, pin, pin_cfg); pin 704 sound/pci/hda/patch_via.c static void override_mic_boost(struct hda_codec *codec, hda_nid_t pin, pin 707 sound/pci/hda/patch_via.c snd_hda_override_wcaps(codec, pin, pin 708 sound/pci/hda/patch_via.c get_wcaps(codec, pin) | AC_WCAP_IN_AMP); pin 709 sound/pci/hda/patch_via.c snd_hda_override_amp_caps(codec, pin, HDA_INPUT, pin 467 sound/pci/lola/lola.c chip->pin[CAPT].num_pins = LOLA_AFG_INPUT_PIN_COUNT(chip->lola_caps); pin 468 sound/pci/lola/lola.c chip->pin[PLAY].num_pins = LOLA_AFG_OUTPUT_PIN_COUNT(chip->lola_caps); pin 471 sound/pci/lola/lola.c chip->pin[CAPT].num_pins, chip->pin[PLAY].num_pins); pin 473 sound/pci/lola/lola.c if (chip->pin[CAPT].num_pins > MAX_AUDIO_INOUT_COUNT || pin 474 sound/pci/lola/lola.c chip->pin[PLAY].num_pins > MAX_AUDIO_INOUT_COUNT) { pin 344 sound/pci/lola/lola.h struct lola_pin_array pin[2]; pin 18 sound/pci/lola/lola_mixer.c static int lola_init_pin(struct lola *chip, struct lola_pin *pin, pin 24 sound/pci/lola/lola_mixer.c pin->nid = nid; pin 32 sound/pci/lola/lola_mixer.c pin->is_analog = false; pin 34 sound/pci/lola/lola_mixer.c pin->is_analog = true; pin 36 sound/pci/lola/lola_mixer.c pin->is_analog = true; pin 44 sound/pci/lola/lola_mixer.c if (!pin->is_analog) pin 56 sound/pci/lola/lola_mixer.c pin->amp_mute = LOLA_AMP_MUTE_CAPABLE(val); pin 57 sound/pci/lola/lola_mixer.c pin->amp_step_size = LOLA_AMP_STEP_SIZE(val); pin 58 sound/pci/lola/lola_mixer.c pin->amp_num_steps = LOLA_AMP_NUM_STEPS(val); pin 59 sound/pci/lola/lola_mixer.c if (pin->amp_num_steps) { pin 61 sound/pci/lola/lola_mixer.c pin->amp_num_steps++; pin 62 sound/pci/lola/lola_mixer.c pin->amp_step_size++; pin 64 sound/pci/lola/lola_mixer.c pin->amp_offset = LOLA_AMP_OFFSET(val); pin 72 sound/pci/lola/lola_mixer.c pin->max_level = val & 0x3ff; /* 10 bits */ pin 74 sound/pci/lola/lola_mixer.c pin->config_default_reg = 0; pin 75 sound/pci/lola/lola_mixer.c pin->fixed_gain_list_len = 0; pin 76 sound/pci/lola/lola_mixer.c pin->cur_gain_step = 0; pin 85 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { pin 86 sound/pci/lola/lola_mixer.c err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); pin 89 sound/pci/lola/lola_mixer.c if (chip->pin[dir].pins[i].is_analog) pin 90 sound/pci/lola/lola_mixer.c chip->pin[dir].num_analog_pins++; pin 127 sound/pci/lola/lola_mixer.c chip->mixer.src_phys_ins = chip->pin[CAPT].num_pins; pin 131 sound/pci/lola/lola_mixer.c chip->mixer.dest_phys_outs = chip->pin[PLAY].num_pins; pin 322 sound/pci/lola/lola_mixer.c struct lola_pin *pin; pin 325 sound/pci/lola/lola_mixer.c pin = chip->pin[dir].pins; pin 326 sound/pci/lola/lola_mixer.c max_idx = chip->pin[dir].num_pins; pin 328 sound/pci/lola/lola_mixer.c if (pin[idx].is_analog) { pin 329 sound/pci/lola/lola_mixer.c unsigned int val = mute ? 0 : pin[idx].cur_gain_step; pin 387 sound/pci/lola/lola_mixer.c struct lola_pin *pin; pin 390 sound/pci/lola/lola_mixer.c if (idx >= chip->pin[dir].num_pins) pin 392 sound/pci/lola/lola_mixer.c pin = &chip->pin[dir].pins[idx]; pin 393 sound/pci/lola/lola_mixer.c if (!pin->is_analog || pin->amp_num_steps <= val) pin 395 sound/pci/lola/lola_mixer.c if (external_call && pin->cur_gain_step == val) pin 402 sound/pci/lola/lola_mixer.c err = lola_codec_write(chip, pin->nid, pin 407 sound/pci/lola/lola_mixer.c pin->cur_gain_step = val; pin 421 sound/pci/lola/lola_mixer.c for (n = 0; n < chip->pin[CAPT].num_pins; n += 2) { pin 454 sound/pci/lola/lola_mixer.c lola_set_src_config(chip, (1 << chip->pin[CAPT].num_pins) - 1, false); pin 506 sound/pci/lola/lola_mixer.c uinfo->count = chip->pin[dir].num_pins; pin 508 sound/pci/lola/lola_mixer.c uinfo->value.integer.max = chip->pin[dir].pins[0].amp_num_steps; pin 519 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[dir].num_pins; i++) pin 521 sound/pci/lola/lola_mixer.c chip->pin[dir].pins[i].cur_gain_step; pin 532 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[dir].num_pins; i++) { pin 548 sound/pci/lola/lola_mixer.c struct lola_pin *pin; pin 552 sound/pci/lola/lola_mixer.c pin = &chip->pin[dir].pins[0]; pin 554 sound/pci/lola/lola_mixer.c val2 = pin->amp_step_size * 25; pin 555 sound/pci/lola/lola_mixer.c val1 = -1 * (int)pin->amp_offset * (int)val2; pin 583 sound/pci/lola/lola_mixer.c if (!chip->pin[dir].num_pins) pin 586 sound/pci/lola/lola_mixer.c if (chip->pin[dir].num_pins != chip->pin[dir].num_analog_pins) pin 603 sound/pci/lola/lola_mixer.c uinfo->count = chip->pin[CAPT].num_pins; pin 615 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[CAPT].num_pins; i++) pin 629 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[CAPT].num_pins; i++) pin 111 sound/pci/lola/lola_proc.c chip->pin[CAPT].num_pins, chip->pin[PLAY].num_pins); pin 117 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pin[CAPT].num_pins; i++, nid++) pin 120 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pin[PLAY].num_pins; i++, nid++) pin 155 sound/pci/pcxhr/pcxhr_hwdep.c int is_capture, int pin) pin 172 sound/pci/pcxhr/pcxhr_hwdep.c pin, is_capture ? 'c' : 'p'); pin 174 sound/pci/pcxhr/pcxhr_hwdep.c pipe->first_audio = pin; pin 177 sound/pci/pcxhr/pcxhr_hwdep.c pcxhr_set_pipe_cmd_params(&rmh, is_capture, pin, pin 1641 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_get_gpio_out(struct snd_ymfpci *chip, int pin) pin 1648 sound/pci/ymfpci/ymfpci_main.c reg &= ~(1 << (pin + 8)); pin 1649 sound/pci/ymfpci/ymfpci_main.c reg |= (1 << pin); pin 1653 sound/pci/ymfpci/ymfpci_main.c mode &= ~(3 << (pin * 2)); pin 1655 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_writew(chip, YDSXGR_GPIOFUNCENABLE, reg | (1 << (pin + 8))); pin 1658 sound/pci/ymfpci/ymfpci_main.c return (mode >> pin) & 1; pin 1661 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_set_gpio_out(struct snd_ymfpci *chip, int pin, int enable) pin 1668 sound/pci/ymfpci/ymfpci_main.c reg &= ~(1 << pin); pin 1669 sound/pci/ymfpci/ymfpci_main.c reg &= ~(1 << (pin + 8)); pin 1671 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_writew(chip, YDSXGR_GPIOOUTCTRL, enable << pin); pin 1672 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_writew(chip, YDSXGR_GPIOFUNCENABLE, reg | (1 << (pin + 8))); pin 1683 sound/pci/ymfpci/ymfpci_main.c int pin = (int)kcontrol->private_value; pin 1684 sound/pci/ymfpci/ymfpci_main.c ucontrol->value.integer.value[0] = snd_ymfpci_get_gpio_out(chip, pin); pin 1691 sound/pci/ymfpci/ymfpci_main.c int pin = (int)kcontrol->private_value; pin 1693 sound/pci/ymfpci/ymfpci_main.c if (snd_ymfpci_get_gpio_out(chip, pin) != ucontrol->value.integer.value[0]) { pin 1694 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_set_gpio_out(chip, pin, !!ucontrol->value.integer.value[0]); pin 1695 sound/pci/ymfpci/ymfpci_main.c ucontrol->value.integer.value[0] = snd_ymfpci_get_gpio_out(chip, pin); pin 86 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin; pin 166 sound/soc/codecs/hdac_hdmi.c struct hdac_device *hdev = port->pin->hdev; pin 250 sound/soc/codecs/hdac_hdmi.c return snd_hdac_codec_read(hdev, port->pin->nid, pin 263 sound/soc/codecs/hdac_hdmi.c if (!port->pin->mst_capable) pin 267 sound/soc/codecs/hdac_hdmi.c num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); pin 277 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, pin 367 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin = port->pin; pin 384 sound/soc/codecs/hdac_hdmi.c snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, pin 420 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_dip_index(hdev, pin->nid, 0x0, 0x0); pin 421 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, pin 426 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_dip_index(hdev, pin->nid, 0x0, 0x0); pin 429 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, pin 433 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, pin 438 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_dip_index(hdev, pin->nid, 0x0, 0x0); pin 439 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, pin 491 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin, pin 494 sound/soc/codecs/hdac_hdmi.c if (!(get_wcaps(hdev, pin->nid) & AC_WCAP_CONN_LIST)) { pin 497 sound/soc/codecs/hdac_hdmi.c pin->nid, get_wcaps(hdev, pin->nid)); pin 504 sound/soc/codecs/hdac_hdmi.c port->num_mux_nids = snd_hdac_get_connections(hdev, pin->nid, pin 509 sound/soc/codecs/hdac_hdmi.c pin->nid, port->id); pin 512 sound/soc/codecs/hdac_hdmi.c port->num_mux_nids, pin->nid, port->id); pin 543 sound/soc/codecs/hdac_hdmi.c port->pin, port); pin 574 sound/soc/codecs/hdac_hdmi.c if (port && port->pin) { pin 575 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, pin 578 sound/soc/codecs/hdac_hdmi.c __func__, cvt->name, port->pin->nid, cvt_idx); pin 616 sound/soc/codecs/hdac_hdmi.c port->pin->nid, port->id); pin 730 sound/soc/codecs/hdac_hdmi.c if (p->id == port->id && port->pin == p->pin) pin 788 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_power_state(hdev, port->pin->nid, AC_PWRST_D0); pin 791 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, pin 794 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_amp(hdev, port->pin->nid, AMP_OUT_UNMUTE); pin 799 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_amp(hdev, port->pin->nid, AMP_OUT_MUTE); pin 802 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, pin 805 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_power_state(hdev, port->pin->nid, AC_PWRST_D3); pin 888 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, pin 926 sound/soc/codecs/hdac_hdmi.c p->pin == port->pin) { pin 967 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin = port->pin; pin 987 sound/soc/codecs/hdac_hdmi.c pin->nid, port->id); pin 1081 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin; pin 1107 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1108 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { pin 1110 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); pin 1112 sound/soc/codecs/hdac_hdmi.c snd_soc_dapm_output, &pin->ports[j], pin 1119 sound/soc/codecs/hdac_hdmi.c pin->ports[j].output_pin = widgets[i].name; pin 1125 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1126 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { pin 1128 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); pin 1130 sound/soc/codecs/hdac_hdmi.c &pin->ports[j], &widgets[i], pin 1151 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1152 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { pin 1154 sound/soc/codecs/hdac_hdmi.c int src_index = sink_index + pin->num_ports * pin 1251 sound/soc/codecs/hdac_hdmi.c static void hdac_hdmi_present_sense(struct hdac_hdmi_pin *pin, pin 1254 sound/soc/codecs/hdac_hdmi.c struct hdac_device *hdev = pin->hdev; pin 1270 sound/soc/codecs/hdac_hdmi.c if (pin->mst_capable) pin 1273 sound/soc/codecs/hdac_hdmi.c size = snd_hdac_acomp_get_eld(hdev, pin->nid, port_id, pin 1297 sound/soc/codecs/hdac_hdmi.c __func__, pin->nid, port->id); pin 1327 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin) pin 1345 sound/soc/codecs/hdac_hdmi.c ports[i].pin = pin; pin 1348 sound/soc/codecs/hdac_hdmi.c pin->ports = ports; pin 1349 sound/soc/codecs/hdac_hdmi.c pin->num_ports = max_ports; pin 1356 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin; pin 1359 sound/soc/codecs/hdac_hdmi.c pin = devm_kzalloc(&hdev->dev, sizeof(*pin), GFP_KERNEL); pin 1360 sound/soc/codecs/hdac_hdmi.c if (!pin) pin 1363 sound/soc/codecs/hdac_hdmi.c pin->nid = nid; pin 1364 sound/soc/codecs/hdac_hdmi.c pin->mst_capable = false; pin 1365 sound/soc/codecs/hdac_hdmi.c pin->hdev = hdev; pin 1366 sound/soc/codecs/hdac_hdmi.c ret = hdac_hdmi_add_ports(hdev, pin); pin 1370 sound/soc/codecs/hdac_hdmi.c list_add_tail(&pin->head, &hdmi->pin_list); pin 1372 sound/soc/codecs/hdac_hdmi.c hdmi->num_ports += pin->num_ports; pin 1567 sound/soc/codecs/hdac_hdmi.c static int hdac_hdmi_pin2port(void *aptr, int pin) pin 1575 sound/soc/codecs/hdac_hdmi.c return pin - 4; /* map NID 0x05 -> port #1 */ pin 1582 sound/soc/codecs/hdac_hdmi.c if (pin == map[i]) pin 1587 sound/soc/codecs/hdac_hdmi.c dev_err(&hdev->dev, "Can't find the port for pin %d\n", pin); pin 1595 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin = NULL; pin 1628 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1629 sound/soc/codecs/hdac_hdmi.c if (pin->nid != pin_nid) pin 1634 sound/soc/codecs/hdac_hdmi.c pin->mst_capable = false; pin 1636 sound/soc/codecs/hdac_hdmi.c hport = &pin->ports[0]; pin 1638 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < pin->num_ports; i++) { pin 1639 sound/soc/codecs/hdac_hdmi.c pin->mst_capable = true; pin 1640 sound/soc/codecs/hdac_hdmi.c if (pin->ports[i].id == pipe) { pin 1641 sound/soc/codecs/hdac_hdmi.c hport = &pin->ports[i]; pin 1648 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_present_sense(pin, hport); pin 1675 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin; pin 1689 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1690 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { pin 1692 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); pin 1720 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin; pin 1738 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1739 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { pin 1741 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); pin 1749 sound/soc/codecs/hdac_hdmi.c pin->ports[j].jack_pin = widgets[i].name; pin 1750 sound/soc/codecs/hdac_hdmi.c pin->ports[j].dapm = dapm; pin 1753 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_fill_route(&route[i], pin->ports[j].jack_pin, pin 1754 sound/soc/codecs/hdac_hdmi.c NULL, pin->ports[j].output_pin, NULL); pin 1780 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1781 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) pin 1782 sound/soc/codecs/hdac_hdmi.c snd_soc_dapm_disable_pin(pin->ports[j].dapm, pin 1783 sound/soc/codecs/hdac_hdmi.c pin->ports[j].jack_pin); pin 1834 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin; pin 1836 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) { pin 1839 sound/soc/codecs/hdac_hdmi.c if (hdac_hdmi_get_port_len(hdev, pin->nid) == 0) pin 1840 sound/soc/codecs/hdac_hdmi.c pin->mst_capable = false; pin 1842 sound/soc/codecs/hdac_hdmi.c pin->mst_capable = true; pin 1845 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < pin->num_ports; i++) { pin 1846 sound/soc/codecs/hdac_hdmi.c if (!pin->mst_capable && i > 0) pin 1849 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_present_sense(pin, &pin->ports[i]); pin 2114 sound/soc/codecs/hdac_hdmi.c struct hdac_hdmi_pin *pin; pin 2117 sound/soc/codecs/hdac_hdmi.c list_for_each_entry(pin, &hdmi->pin_list, head) pin 2118 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < pin->num_ports; i++) pin 2119 sound/soc/codecs/hdac_hdmi.c cancel_work_sync(&pin->ports[i].dapm_work); pin 831 sound/soc/codecs/nau8824.c static void nau8824_dapm_disable_pin(struct nau8824 *nau8824, const char *pin) pin 839 sound/soc/codecs/nau8824.c prefix, pin); pin 842 sound/soc/codecs/nau8824.c snd_soc_dapm_disable_pin(dapm, pin); pin 846 sound/soc/codecs/nau8824.c static void nau8824_dapm_enable_pin(struct nau8824 *nau8824, const char *pin) pin 854 sound/soc/codecs/nau8824.c prefix, pin); pin 857 sound/soc/codecs/nau8824.c snd_soc_dapm_force_enable_pin(dapm, pin); pin 187 sound/soc/fsl/wm1133-ev1.c { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE }, pin 193 sound/soc/fsl/wm1133-ev1.c { .pin = "Mic1 Jack", .mask = SND_JACK_MICROPHONE }, pin 194 sound/soc/fsl/wm1133-ev1.c { .pin = "Mic2 Jack", .mask = SND_JACK_MICROPHONE }, pin 527 sound/soc/generic/simple-card-utils.c sjack->pin.pin = pin_name; pin 528 sound/soc/generic/simple-card-utils.c sjack->pin.mask = mask; pin 538 sound/soc/generic/simple-card-utils.c &sjack->pin, 1); pin 92 sound/soc/intel/boards/bdw-rt5677.c .pin = "Headphone", pin 97 sound/soc/intel/boards/bdw-rt5677.c .pin = "Headset Mic", pin 26 sound/soc/intel/boards/broadwell.c .pin = "Mic Jack", pin 30 sound/soc/intel/boards/broadwell.c .pin = "Headphone Jack", pin 48 sound/soc/intel/boards/bxt_rt298.c .pin = "Mic Jack", pin 52 sound/soc/intel/boards/bxt_rt298.c .pin = "Headphone Jack", pin 51 sound/soc/intel/boards/byt-max98090.c .pin = "Headphone", pin 55 sound/soc/intel/boards/byt-max98090.c .pin = "Headset Mic", pin 55 sound/soc/intel/boards/bytcht_cx2072x.c .pin = "Headset Mic", pin 59 sound/soc/intel/boards/bytcht_cx2072x.c .pin = "Headphone", pin 149 sound/soc/intel/boards/bytcht_es8316.c .pin = "Headphone", pin 153 sound/soc/intel/boards/bytcht_es8316.c .pin = "Headset Mic", pin 371 sound/soc/intel/boards/bytcr_rt5640.c .pin = "Headphone", pin 375 sound/soc/intel/boards/bytcr_rt5640.c .pin = "Headset Mic", pin 338 sound/soc/intel/boards/bytcr_rt5651.c .pin = "Headphone", pin 342 sound/soc/intel/boards/bytcr_rt5651.c .pin = "Headset Mic", pin 154 sound/soc/intel/boards/cht_bsw_max98090_ti.c .pin = "Headphone", pin 158 sound/soc/intel/boards/cht_bsw_max98090_ti.c .pin = "Headset Mic", pin 32 sound/soc/intel/boards/cht_bsw_nau8824.c .pin = "Headphone", pin 36 sound/soc/intel/boards/cht_bsw_nau8824.c .pin = "Headset Mic", pin 198 sound/soc/intel/boards/cht_bsw_rt5645.c .pin = "Headphone", pin 202 sound/soc/intel/boards/cht_bsw_rt5645.c .pin = "Headset Mic", pin 39 sound/soc/intel/boards/cht_bsw_rt5672.c .pin = "Headset Mic", pin 43 sound/soc/intel/boards/cht_bsw_rt5672.c .pin = "Headphone", pin 71 sound/soc/intel/boards/kbl_rt5660.c .pin = "Line Out", pin 76 sound/soc/intel/boards/kbl_rt5660.c .pin = "Line In", pin 50 sound/soc/intel/boards/skl_rt286.c .pin = "Mic Jack", pin 54 sound/soc/intel/boards/skl_rt286.c .pin = "Headphone Jack", pin 888 sound/soc/intel/skylake/skl-topology.c struct skl_module_pin *pin = &dst->m_in_pin[i]; pin 890 sound/soc/intel/skylake/skl-topology.c if (pin->is_dynamic) pin 893 sound/soc/intel/skylake/skl-topology.c if ((pin->id.module_id == src->id.module_id) && pin 894 sound/soc/intel/skylake/skl-topology.c (pin->id.instance_id == src->id.instance_id)) { pin 19 sound/soc/mediatek/mt8173/mt8173-max98090.c .pin = "Headphone", pin 23 sound/soc/mediatek/mt8173/mt8173-max98090.c .pin = "Headset Mic", pin 30 sound/soc/pxa/hx4700.c .pin = "Headphone Jack", pin 34 sound/soc/pxa/hx4700.c .pin = "Speaker", pin 31 sound/soc/pxa/palm27x.c .pin = "Headphone Jack", pin 20 sound/soc/pxa/ttc-dkb.c { .pin = "Headset Stereophone", .mask = SND_JACK_HEADPHONE, }, pin 24 sound/soc/pxa/ttc-dkb.c { .pin = "Headset Mic 2", .mask = SND_JACK_MICROPHONE, }, pin 76 sound/soc/pxa/z2.c .pin = "Mic Jack", pin 80 sound/soc/pxa/z2.c .pin = "Headphone Jack", pin 84 sound/soc/pxa/z2.c .pin = "Ext Spk", pin 50 sound/soc/rockchip/rk3288_hdmi_analog.c .pin = "Analog", pin 29 sound/soc/rockchip/rockchip_max98090.c .pin = "Headphone", pin 33 sound/soc/rockchip/rockchip_max98090.c .pin = "Headset Mic", pin 38 sound/soc/samsung/h1940_uda1380.c .pin = "Headphone Jack", pin 42 sound/soc/samsung/h1940_uda1380.c .pin = "Speaker", pin 24 sound/soc/samsung/lowland.c .pin = "Headphone", pin 28 sound/soc/samsung/lowland.c .pin = "Headset Mic", pin 49 sound/soc/samsung/rx1950_uda1380.c .pin = "Headphone Jack", pin 53 sound/soc/samsung/rx1950_uda1380.c .pin = "Speaker", pin 82 sound/soc/samsung/smartq_wm8987.c .pin = "Internal Speaker", pin 103 sound/soc/samsung/speyside.c .pin = "Headset Mic", pin 167 sound/soc/samsung/tobermory.c .pin = "Headset Mic", pin 171 sound/soc/samsung/tobermory.c .pin = "Headphone", pin 81 sound/soc/soc-component.c const char *pin) pin 89 sound/soc/soc-component.c return snd_soc_dapm_enable_pin(dapm, pin); pin 91 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 103 sound/soc/soc-component.c const char *pin) pin 111 sound/soc/soc-component.c return snd_soc_dapm_enable_pin_unlocked(dapm, pin); pin 113 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 125 sound/soc/soc-component.c const char *pin) pin 133 sound/soc/soc-component.c return snd_soc_dapm_disable_pin(dapm, pin); pin 135 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 147 sound/soc/soc-component.c const char *pin) pin 155 sound/soc/soc-component.c return snd_soc_dapm_disable_pin_unlocked(dapm, pin); pin 157 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 169 sound/soc/soc-component.c const char *pin) pin 177 sound/soc/soc-component.c return snd_soc_dapm_nc_pin(dapm, pin); pin 179 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 191 sound/soc/soc-component.c const char *pin) pin 199 sound/soc/soc-component.c return snd_soc_dapm_nc_pin_unlocked(dapm, pin); pin 201 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 213 sound/soc/soc-component.c const char *pin) pin 221 sound/soc/soc-component.c return snd_soc_dapm_get_pin_status(dapm, pin); pin 223 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 235 sound/soc/soc-component.c const char *pin) pin 243 sound/soc/soc-component.c return snd_soc_dapm_force_enable_pin(dapm, pin); pin 245 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 258 sound/soc/soc-component.c const char *pin) pin 266 sound/soc/soc-component.c return snd_soc_dapm_force_enable_pin_unlocked(dapm, pin); pin 268 sound/soc/soc-component.c full_name = kasprintf(GFP_KERNEL, "%s %s", component->name_prefix, pin); pin 2523 sound/soc/soc-dapm.c struct snd_soc_dapm_context *dapm, const char *pin, pin 2530 sound/soc/soc-dapm.c if (!strcmp(w->name, pin)) { pin 2545 sound/soc/soc-dapm.c const char *pin, int status) pin 2547 sound/soc/soc-dapm.c struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true); pin 2552 sound/soc/soc-dapm.c dev_err(dapm->dev, "ASoC: DAPM unknown pin %s\n", pin); pin 3558 sound/soc/soc-dapm.c const char *pin = (const char *)kcontrol->private_value; pin 3563 sound/soc/soc-dapm.c snd_soc_dapm_get_pin_status(&card->dapm, pin); pin 3581 sound/soc/soc-dapm.c const char *pin = (const char *)kcontrol->private_value; pin 3584 sound/soc/soc-dapm.c snd_soc_dapm_enable_pin(&card->dapm, pin); pin 3586 sound/soc/soc-dapm.c snd_soc_dapm_disable_pin(&card->dapm, pin); pin 4481 sound/soc/soc-dapm.c const char *pin) pin 4483 sound/soc/soc-dapm.c return snd_soc_dapm_set_pin(dapm, pin, 1); pin 4498 sound/soc/soc-dapm.c int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin) pin 4504 sound/soc/soc-dapm.c ret = snd_soc_dapm_set_pin(dapm, pin, 1); pin 4527 sound/soc/soc-dapm.c const char *pin) pin 4529 sound/soc/soc-dapm.c struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true); pin 4532 sound/soc/soc-dapm.c dev_err(dapm->dev, "ASoC: unknown pin %s\n", pin); pin 4536 sound/soc/soc-dapm.c dev_dbg(w->dapm->dev, "ASoC: force enable pin %s\n", pin); pin 4566 sound/soc/soc-dapm.c const char *pin) pin 4572 sound/soc/soc-dapm.c ret = snd_soc_dapm_force_enable_pin_unlocked(dapm, pin); pin 4593 sound/soc/soc-dapm.c const char *pin) pin 4595 sound/soc/soc-dapm.c return snd_soc_dapm_set_pin(dapm, pin, 0); pin 4610 sound/soc/soc-dapm.c const char *pin) pin 4616 sound/soc/soc-dapm.c ret = snd_soc_dapm_set_pin(dapm, pin, 0); pin 4641 sound/soc/soc-dapm.c const char *pin) pin 4643 sound/soc/soc-dapm.c return snd_soc_dapm_set_pin(dapm, pin, 0); pin 4661 sound/soc/soc-dapm.c int snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin) pin 4667 sound/soc/soc-dapm.c ret = snd_soc_dapm_set_pin(dapm, pin, 0); pin 4685 sound/soc/soc-dapm.c const char *pin) pin 4687 sound/soc/soc-dapm.c struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, true); pin 4708 sound/soc/soc-dapm.c const char *pin) pin 4710 sound/soc/soc-dapm.c struct snd_soc_dapm_widget *w = dapm_find_widget(dapm, pin, false); pin 4713 sound/soc/soc-dapm.c dev_err(dapm->dev, "ASoC: unknown pin %s\n", pin); pin 81 sound/soc/soc-jack.c struct snd_soc_jack_pin *pin; pin 98 sound/soc/soc-jack.c list_for_each_entry(pin, &jack->pins, list) { pin 99 sound/soc/soc-jack.c enable = pin->mask & jack->status; pin 101 sound/soc/soc-jack.c if (pin->invert) pin 105 sound/soc/soc-jack.c snd_soc_dapm_enable_pin(dapm, pin->pin); pin 107 sound/soc/soc-jack.c snd_soc_dapm_disable_pin(dapm, pin->pin); pin 188 sound/soc/soc-jack.c if (!pins[i].pin) { pin 195 sound/soc/soc-jack.c " (%s)\n", i, pins[i].pin); pin 201 sound/soc/soc-jack.c snd_jack_add_new_kctl(jack->jack, pins[i].pin, pins[i].mask); pin 73 sound/soc/tegra/tegra_alc5632.c .pin = "Headset Mic", pin 77 sound/soc/tegra/tegra_alc5632.c .pin = "Headset Stereophone", pin 93 sound/soc/tegra/tegra_max98090.c .pin = "Headphones", pin 109 sound/soc/tegra/tegra_max98090.c .pin = "Mic Jack", pin 76 sound/soc/tegra/tegra_rt5640.c .pin = "Headphones", pin 92 sound/soc/tegra/tegra_rt5677.c .pin = "Headphone", pin 104 sound/soc/tegra/tegra_rt5677.c .pin = "Headset Mic", pin 93 sound/soc/tegra/tegra_wm8903.c .pin = "Headphone Jack", pin 109 sound/soc/tegra/tegra_wm8903.c .pin = "Mic Jack", pin 107 sound/soc/ti/ams-delta.c int pin, changed = 0; pin 122 sound/soc/ti/ams-delta.c pin = !!(pins & (1 << AMS_DELTA_MOUTHPIECE)); pin 124 sound/soc/ti/ams-delta.c if (pin != snd_soc_dapm_get_pin_status(dapm, "Mouthpiece")) { pin 126 sound/soc/ti/ams-delta.c if (pin) pin 131 sound/soc/ti/ams-delta.c pin = !!(pins & (1 << AMS_DELTA_EARPIECE)); pin 132 sound/soc/ti/ams-delta.c if (pin != snd_soc_dapm_get_pin_status(dapm, "Earpiece")) { pin 134 sound/soc/ti/ams-delta.c if (pin) pin 139 sound/soc/ti/ams-delta.c pin = !!(pins & (1 << AMS_DELTA_MICROPHONE)); pin 140 sound/soc/ti/ams-delta.c if (pin != snd_soc_dapm_get_pin_status(dapm, "Microphone")) { pin 142 sound/soc/ti/ams-delta.c if (pin) pin 147 sound/soc/ti/ams-delta.c pin = !!(pins & (1 << AMS_DELTA_SPEAKER)); pin 148 sound/soc/ti/ams-delta.c if (pin != snd_soc_dapm_get_pin_status(dapm, "Speaker")) { pin 150 sound/soc/ti/ams-delta.c if (pin) pin 155 sound/soc/ti/ams-delta.c pin = !!(pins & (1 << AMS_DELTA_AGC)); pin 156 sound/soc/ti/ams-delta.c if (pin != ams_delta_audio_agc) { pin 157 sound/soc/ti/ams-delta.c ams_delta_audio_agc = pin; pin 159 sound/soc/ti/ams-delta.c if (pin) pin 230 sound/soc/ti/ams-delta.c .pin = "Mouthpiece", pin 234 sound/soc/ti/ams-delta.c .pin = "Earpiece", pin 239 sound/soc/ti/ams-delta.c .pin = "Microphone", pin 244 sound/soc/ti/ams-delta.c .pin = "Speaker", pin 109 sound/soc/ti/omap-abe-twl6040.c .pin = "Headset Mic", pin 113 sound/soc/ti/omap-abe-twl6040.c .pin = "Headset Stereophone", pin 121 sound/soc/ti/omap-twl4030.c .pin = "Headset Mic", pin 125 sound/soc/ti/omap-twl4030.c .pin = "Headset Stereophone", pin 140 sound/soc/ti/omap-twl4030.c int connected, char *pin) pin 143 sound/soc/ti/omap-twl4030.c snd_soc_dapm_disable_pin(dapm, pin); pin 120 sound/usb/clock.c unsigned char pin) pin 129 sound/usb/clock.c &pin, sizeof(pin)); pin 133 sound/usb/clock.c if (ret != sizeof(pin)) { pin 144 sound/usb/clock.c if (ret != pin) { pin 147 sound/usb/clock.c selector_id, pin, ret); pin 2125 sound/usb/mixer.c int pin, ich, err; pin 2140 sound/usb/mixer.c for (pin = 0; pin < input_pins; pin++) { pin 2141 sound/usb/mixer.c err = parse_audio_unit(state, desc->baSourceID[pin]); pin 2147 sound/usb/mixer.c err = check_input_term(state, desc->baSourceID[pin], &iterm); pin 2167 sound/usb/mixer.c build_mixer_unit_ctl(state, desc, pin, ich, num_outs, pin 1008 tools/include/uapi/linux/kvm.h __u32 pin; pin 69 tools/perf/tests/bpf.c bool pin; pin 88 tools/perf/tests/bpf.c .pin = true, pin 262 tools/perf/tests/bpf.c if (bpf_testcase_table[idx].pin) { pin 22 virt/kvm/arm/vgic/vgic-irqfd.c unsigned int spi_id = e->irqchip.pin + VGIC_NR_PRIVATE_IRQS; pin 48 virt/kvm/arm/vgic/vgic-irqfd.c e->irqchip.pin = ue->u.irqchip.pin; pin 49 virt/kvm/arm/vgic/vgic-irqfd.c if ((e->irqchip.pin >= KVM_IRQCHIP_NUM_PINS) || pin 136 virt/kvm/arm/vgic/vgic-irqfd.c entries[i].u.irqchip.pin = i; pin 446 virt/kvm/eventfd.c bool kvm_irq_has_notifier(struct kvm *kvm, unsigned irqchip, unsigned pin) pin 452 virt/kvm/eventfd.c gsi = kvm_irq_map_chip_pin(kvm, irqchip, pin); pin 477 virt/kvm/eventfd.c void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin) pin 481 virt/kvm/eventfd.c trace_kvm_ack_irq(irqchip, pin); pin 484 virt/kvm/eventfd.c gsi = kvm_irq_map_chip_pin(kvm, irqchip, pin); pin 41 virt/kvm/irqchip.c int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) pin 46 virt/kvm/irqchip.c return irq_rt->chip[irqchip][pin]; pin 153 virt/kvm/irqchip.c rt->chip[e->irqchip.irqchip][e->irqchip.pin] = e->gsi;