/linux-6.6.21/arch/arm/mach-vt8500/ |
D | vt8500.c | 66 void __iomem *gpio_base; in vt8500_init() local 74 gpio_base = of_iomap(np, 0); in vt8500_init() 76 if (!gpio_base) in vt8500_init() 82 gpio_base = ioremap(LEGACY_GPIO_BASE, 0x1000); in vt8500_init() 83 if (!gpio_base) in vt8500_init() 87 if (gpio_base) { in vt8500_init() 88 writel(readl(gpio_base + VT8500_GPIO_MUX_REG) | 1, in vt8500_init() 89 gpio_base + VT8500_GPIO_MUX_REG); in vt8500_init() 90 iounmap(gpio_base); in vt8500_init() 106 gpio_base = of_iomap(np, 0); in vt8500_init() [all …]
|
/linux-6.6.21/drivers/pinctrl/actions/ |
D | pinctrl-owl.c | 538 void __iomem *gpio_base; in owl_gpio_request() local 545 gpio_base = pctrl->base + port->offset; in owl_gpio_request() 552 owl_gpio_update_reg(gpio_base + port->outen, offset, true); in owl_gpio_request() 562 void __iomem *gpio_base; in owl_gpio_free() local 569 gpio_base = pctrl->base + port->offset; in owl_gpio_free() 573 owl_gpio_update_reg(gpio_base + port->outen, offset, false); in owl_gpio_free() 576 owl_gpio_update_reg(gpio_base + port->inen, offset, false); in owl_gpio_free() 584 void __iomem *gpio_base; in owl_gpio_get() local 592 gpio_base = pctrl->base + port->offset; in owl_gpio_get() 595 val = readl_relaxed(gpio_base + port->dat); in owl_gpio_get() [all …]
|
/linux-6.6.21/arch/mips/loongson2ef/lemote-2f/ |
D | reset.c | 54 int gpio_base; in fl2f_shutdown() local 58 gpio_base = lo & 0xff00; in fl2f_shutdown() 61 val = inl(gpio_base + GPIOL_OUT_EN); in fl2f_shutdown() 64 outl(val, gpio_base + GPIOL_OUT_EN); in fl2f_shutdown() 67 val = inl(gpio_base + GPIOL_OUT_VAL) & ~(1 << (13)); in fl2f_shutdown() 69 outl(val, gpio_base + GPIOL_OUT_VAL); in fl2f_shutdown()
|
/linux-6.6.21/drivers/gpio/ |
D | gpio-vf610.c | 33 void __iomem *gpio_base; member 90 mask &= vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_get() 95 return !!(vf610_gpio_readl(port->gpio_base + offset) & BIT(gpio)); in vf610_gpio_get() 104 vf610_gpio_writel(mask, port->gpio_base + offset); in vf610_gpio_set() 114 val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_input() 116 vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_input() 132 val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_output() 134 vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_output() 277 port->gpio_base = devm_platform_ioremap_resource(pdev, 1); in vf610_gpio_probe() 278 if (IS_ERR(port->gpio_base)) in vf610_gpio_probe() [all …]
|
D | gpio-xlp.c | 246 void __iomem *gpio_base; in xlp_gpio_probe() local 253 gpio_base = devm_platform_ioremap_resource(pdev, 0); in xlp_gpio_probe() 254 if (IS_ERR(gpio_base)) in xlp_gpio_probe() 255 return PTR_ERR(gpio_base); in xlp_gpio_probe() 261 priv->gpio_out_en = gpio_base + GPIO_9XX_OUTPUT_EN; in xlp_gpio_probe() 262 priv->gpio_paddrv = gpio_base + GPIO_9XX_PADDRV; in xlp_gpio_probe() 263 priv->gpio_intr_stat = gpio_base + GPIO_9XX_INT_STAT; in xlp_gpio_probe() 264 priv->gpio_intr_type = gpio_base + GPIO_9XX_INT_TYPE; in xlp_gpio_probe() 265 priv->gpio_intr_pol = gpio_base + GPIO_9XX_INT_POL; in xlp_gpio_probe() 266 priv->gpio_intr_en = gpio_base + GPIO_9XX_INT_EN00; in xlp_gpio_probe()
|
D | gpio-brcmstb.c | 53 int gpio_base; member 95 return hwirq - (bank->gc.base - bank->parent_priv->gpio_base); in brcmstb_gpio_hwirq_to_offset() 121 int hwirq = offset + (gc->base - priv->gpio_base); in brcmstb_gpio_to_irq() 266 int hwbase = bank->gc.base - priv->gpio_base; in brcmstb_gpio_irq_bank_handler() 417 offset = gpiospec->args[0] - (gc->base - priv->gpio_base); in brcmstb_gpio_of_xlate() 602 static int gpio_base; in brcmstb_gpio_probe() local 616 priv->gpio_base = gpio_base; in brcmstb_gpio_probe() 656 gpio_base += MAX_GPIO_PER_BANK; in brcmstb_gpio_probe() 696 gc->base = gpio_base; in brcmstb_gpio_probe() 718 gpio_base += gc->ngpio; in brcmstb_gpio_probe() [all …]
|
D | gpio-merrifield.c | 73 u32 gpio_base, irq_base; in mrfld_gpio_probe() local 88 gpio_base = readl(base + 1 * sizeof(u32)); in mrfld_gpio_probe() 106 priv->info.base = gpio_base; in mrfld_gpio_probe()
|
D | gpio-ich.c | 89 struct resource *gpio_base; /* GPIO IO base */ member 114 ichx_priv.gpio_base); in ichx_write_bit() 121 ichx_priv.gpio_base); in ichx_write_bit() 126 ichx_priv.gpio_base); in ichx_write_bit() 143 ichx_priv.gpio_base); in ichx_read_bit() 433 ichx_priv.gpio_base = res_base; in ichx_gpio_probe()
|
D | gpio-tangier.h | 52 unsigned int gpio_base; member 59 .gpio_base = (gstart), \
|
D | gpio-tps65910.c | 85 tps65910_board->gpio_base = -1; in tps65910_parse_dt_for_gpio() 143 if (pdata && pdata->gpio_base) in tps65910_gpio_probe() 144 tps65910_gpio->gpio_chip.base = pdata->gpio_base; in tps65910_gpio_probe()
|
D | gpio-tps6586x.c | 102 if (pdata && pdata->gpio_base) in tps6586x_gpio_probe() 103 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; in tps6586x_gpio_probe()
|
D | gpio-davinci.c | 47 static void __iomem *gpio_base; variable 232 gpio_base = devm_platform_ioremap_resource(pdev, 0); in davinci_gpio_probe() 233 if (IS_ERR(gpio_base)) in davinci_gpio_probe() 234 return PTR_ERR(gpio_base); in davinci_gpio_probe() 261 chips->regs[bank] = gpio_base + offset_array[bank]; in davinci_gpio_probe() 617 writel_relaxed(binten, gpio_base + BINTEN); in davinci_gpio_irq_setup()
|
D | gpio-wm8350.c | 117 if (pdata && pdata->gpio_base) in wm8350_gpio_probe() 118 wm8350_gpio->gpio_chip.base = pdata->gpio_base; in wm8350_gpio_probe()
|
D | gpio-da9055.c | 145 if (pdata && pdata->gpio_base) in da9055_gpio_probe() 146 gpio->gp.base = pdata->gpio_base; in da9055_gpio_probe()
|
D | gpio-rc5t583.c | 121 if (pdata && pdata->gpio_base) in rc5t583_gpio_probe() 122 rc5t583_gpio->gpio_chip.base = pdata->gpio_base; in rc5t583_gpio_probe()
|
/linux-6.6.21/arch/mips/ath79/ |
D | early_printk.c | 59 void __iomem *gpio_base; in prom_enable_uart() local 91 gpio_base = (void __iomem *)KSEG1ADDR(AR71XX_GPIO_BASE); in prom_enable_uart() 92 t = __raw_readl(gpio_base + AR71XX_GPIO_REG_FUNC); in prom_enable_uart() 94 __raw_writel(t, gpio_base + AR71XX_GPIO_REG_FUNC); in prom_enable_uart()
|
/linux-6.6.21/drivers/pinctrl/nuvoton/ |
D | pinctrl-wpcm450.c | 60 void __iomem *gpio_base; member 138 iowrite32(BIT(bit), pctrl->gpio_base + WPCM450_GPEVST); in wpcm450_gpio_irq_ack() 156 even = ioread32(pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_mask() 158 iowrite32(even, pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_mask() 180 even = ioread32(pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_unmask() 182 iowrite32(even, pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_unmask() 195 void __iomem *reg = gpio->pctrl->gpio_base + gpio->bank->datain; in wpcm450_gpio_get() 229 evpol = ioread32(pctrl->gpio_base + WPCM450_GPEVPOL); in wpcm450_gpio_fix_evpol() 231 iowrite32(evpol, pctrl->gpio_base + WPCM450_GPEVPOL); in wpcm450_gpio_fix_evpol() 254 evtype = ioread32(pctrl->gpio_base + WPCM450_GPEVTYPE); in wpcm450_gpio_set_irq_type() [all …]
|
/linux-6.6.21/drivers/pcmcia/ |
D | electra_cf.c | 45 void __iomem *gpio_base; member 59 gpio = in_le32(cf->gpio_base+0x40); in electra_cf_present() 138 out_le32(cf->gpio_base+0x90, gpio); in electra_cf_set_socket() 211 cf->gpio_base = ioremap(0xfc103000, 0x1000); in electra_cf_probe() 212 if (!cf->gpio_base) in electra_cf_probe() 298 iounmap(cf->gpio_base); in electra_cf_probe() 324 iounmap(cf->gpio_base); in electra_cf_remove()
|
/linux-6.6.21/arch/arm/mach-ep93xx/ |
D | vision_ep9307.c | 121 .gpio_base = PCA9539_74_GPIO_BASE, 126 .gpio_base = PCA9539_75_GPIO_BASE, 131 .gpio_base = PCA9539_76_GPIO_BASE, 136 .gpio_base = PCA9539_77_GPIO_BASE,
|
/linux-6.6.21/arch/arm/mach-s3c/ |
D | mach-crag6410-module.c | 67 .gpio_base = CODEC_GPIO_BASE, 115 .gpio_base = CODEC_GPIO_BASE, 185 .gpio_base = CODEC_GPIO_BASE, 216 .gpio_base = CODEC_GPIO_BASE, 249 .gpio_base = CODEC_GPIO_BASE,
|
/linux-6.6.21/drivers/pinctrl/intel/ |
D | pinctrl-intel.c | 904 if (pgrp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_to_pin() 907 if (offset >= pgrp->gpio_base && in intel_gpio_to_pin() 908 offset < pgrp->gpio_base + pgrp->size) { in intel_gpio_to_pin() 911 pin = pgrp->base + offset - pgrp->gpio_base; in intel_gpio_to_pin() 947 return pin - padgrp->base + padgrp->gpio_base; in intel_pin_to_gpio() 1237 generic_handle_domain_irq(gc->irq.domain, padgrp->gpio_base + gpp_offset); in intel_gpio_community_irq_handler() 1302 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges() 1306 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges() 1344 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio() 1347 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio() [all …]
|
/linux-6.6.21/include/linux/platform_data/ |
D | max732x.h | 9 unsigned gpio_base; member
|
D | gpio-htc-egpio.h | 23 int gpio_base; member
|
/linux-6.6.21/include/linux/ |
D | timb_gpio.h | 20 int gpio_base; member
|
/linux-6.6.21/include/linux/mfd/da9052/ |
D | pdata.h | 21 int gpio_base; member
|