/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-xlp.c | 295 void __iomem *gpio_base; in xlp_gpio_probe() local 304 gpio_base = devm_platform_ioremap_resource(pdev, 0); in xlp_gpio_probe() 305 if (IS_ERR(gpio_base)) in xlp_gpio_probe() 306 return PTR_ERR(gpio_base); in xlp_gpio_probe() 328 priv->gpio_out_en = gpio_base + GPIO_OUTPUT_EN; in xlp_gpio_probe() 329 priv->gpio_paddrv = gpio_base + GPIO_PADDRV; in xlp_gpio_probe() 330 priv->gpio_intr_stat = gpio_base + GPIO_INT_STAT; in xlp_gpio_probe() 331 priv->gpio_intr_type = gpio_base + GPIO_INT_TYPE; in xlp_gpio_probe() 332 priv->gpio_intr_pol = gpio_base + GPIO_INT_POL; in xlp_gpio_probe() 333 priv->gpio_intr_en = gpio_base + GPIO_INT_EN00; in xlp_gpio_probe() [all …]
|
D | gpio-vf610.c | 34 void __iomem *gpio_base; member 91 mask &= vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_get() 96 return !!(vf610_gpio_readl(port->gpio_base + offset) & BIT(gpio)); in vf610_gpio_get() 105 vf610_gpio_writel(mask, port->gpio_base + offset); in vf610_gpio_set() 115 val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_input() 117 vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_input() 131 val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_output() 133 vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_output() 264 port->gpio_base = devm_platform_ioremap_resource(pdev, 1); in vf610_gpio_probe() 265 if (IS_ERR(port->gpio_base)) in vf610_gpio_probe() [all …]
|
D | gpio-brcmstb.c | 63 int gpio_base; member 105 return hwirq - (bank->gc.base - bank->parent_priv->gpio_base); in brcmstb_gpio_hwirq_to_offset() 131 int hwirq = offset + (gc->base - priv->gpio_base); in brcmstb_gpio_to_irq() 276 int hwbase = bank->gc.base - priv->gpio_base; in brcmstb_gpio_irq_bank_handler() 433 offset = gpiospec->args[0] - (gc->base - priv->gpio_base); in brcmstb_gpio_of_xlate() 661 static int gpio_base; in brcmstb_gpio_probe() local 676 priv->gpio_base = gpio_base; in brcmstb_gpio_probe() 716 gpio_base += MAX_GPIO_PER_BANK; in brcmstb_gpio_probe() 757 gc->base = gpio_base; in brcmstb_gpio_probe() 779 gpio_base += gc->ngpio; in brcmstb_gpio_probe() [all …]
|
D | gpio-ich.c | 91 struct resource *gpio_base; /* GPIO IO base */ member 116 ichx_priv.gpio_base); in ichx_write_bit() 123 ichx_priv.gpio_base); in ichx_write_bit() 128 ichx_priv.gpio_base); in ichx_write_bit() 145 ichx_priv.gpio_base); in ichx_read_bit() 435 ichx_priv.gpio_base = res_base; in ichx_gpio_probe()
|
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-davinci.c | 48 static void __iomem *gpio_base; variable 234 gpio_base = devm_platform_ioremap_resource(pdev, 0); in davinci_gpio_probe() 235 if (IS_ERR(gpio_base)) in davinci_gpio_probe() 236 return PTR_ERR(gpio_base); in davinci_gpio_probe() 265 chips->regs[bank] = gpio_base + offset_array[bank]; in davinci_gpio_probe() 622 writel_relaxed(binten, gpio_base + BINTEN); in davinci_gpio_irq_setup()
|
D | gpio-merrifield.c | 38 unsigned int gpio_base; member 45 .gpio_base = (gstart), \ 414 range->gpio_base, in mrfld_gpio_add_pin_ranges() 430 u32 gpio_base, irq_base; in mrfld_gpio_probe() local 447 gpio_base = readl(base + 1 * sizeof(u32)); in mrfld_gpio_probe() 469 priv->chip.base = gpio_base; in mrfld_gpio_probe()
|
D | gpio-tps6586x.c | 104 if (pdata && pdata->gpio_base) in tps6586x_gpio_probe() 105 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; in tps6586x_gpio_probe()
|
D | gpio-wm8350.c | 119 if (pdata && pdata->gpio_base) in wm8350_gpio_probe() 120 wm8350_gpio->gpio_chip.base = pdata->gpio_base; in wm8350_gpio_probe()
|
D | gpio-msic.c | 256 if (!pdata || !pdata->gpio_base) { in platform_msic_gpio_probe() 269 mg->irq_base = pdata->gpio_base + MSIC_GPIO_IRQ_OFFSET; in platform_msic_gpio_probe() 276 mg->chip.base = pdata->gpio_base; in platform_msic_gpio_probe()
|
D | gpio-da9055.c | 146 if (pdata && pdata->gpio_base) in da9055_gpio_probe() 147 gpio->gp.base = pdata->gpio_base; in da9055_gpio_probe()
|
/kernel/linux/linux-5.10/arch/x86/platform/intel-mid/device_libs/ |
D | platform_tca6416.c | 22 int gpio_base, intr; in tca6416_platform_data() local 30 gpio_base = get_gpio_by_name(base_pin_name); in tca6416_platform_data() 33 if (gpio_base < 0) in tca6416_platform_data() 35 tca6416.gpio_base = gpio_base; in tca6416_platform_data() 38 tca6416.irq_base = gpio_base + INTEL_MID_IRQ_OFFSET; in tca6416_platform_data()
|
D | platform_max7315.c | 23 int gpio_base, intr; in max7315_platform_data() local 46 gpio_base = get_gpio_by_name(base_pin_name); in max7315_platform_data() 49 if (gpio_base < 0) in max7315_platform_data() 51 max7315->gpio_base = gpio_base; in max7315_platform_data() 54 max7315->irq_base = gpio_base + INTEL_MID_IRQ_OFFSET; in max7315_platform_data()
|
D | platform_pcal9555a.c | 31 int gpio_base, intr; in pcal9555a_platform_data() local 36 gpio_base = get_gpio_by_name(base_pin_name); in pcal9555a_platform_data() 40 if (gpio_base == -1) in pcal9555a_platform_data() 50 pcal9555a->gpio_base = gpio_base; in pcal9555a_platform_data() 54 pcal9555a->irq_base = gpio_base + INTEL_MID_IRQ_OFFSET; in pcal9555a_platform_data()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/mips/ath79/ |
D | early_printk.c | 62 void __iomem *gpio_base; in prom_enable_uart() local 94 gpio_base = (void __iomem *)KSEG1ADDR(AR71XX_GPIO_BASE); in prom_enable_uart() 95 t = __raw_readl(gpio_base + AR71XX_GPIO_REG_FUNC); in prom_enable_uart() 97 __raw_writel(t, gpio_base + AR71XX_GPIO_REG_FUNC); in prom_enable_uart()
|
/kernel/linux/linux-5.10/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() 296 iounmap(cf->gpio_base); in electra_cf_probe() 322 iounmap(cf->gpio_base); in electra_cf_remove()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | asic3.c | 443 unsigned int gpio_base; in asic3_gpio_direction() local 448 gpio_base = ASIC3_GPIO_TO_BASE(offset); in asic3_gpio_direction() 450 if (gpio_base > ASIC3_GPIO_D_BASE) { in asic3_gpio_direction() 452 gpio_base, offset); in asic3_gpio_direction() 458 out_reg = asic3_read_register(asic, gpio_base + ASIC3_GPIO_DIRECTION); in asic3_gpio_direction() 466 asic3_write_register(asic, gpio_base + ASIC3_GPIO_DIRECTION, out_reg); in asic3_gpio_direction() 489 unsigned int gpio_base; in asic3_gpio_get() local 494 gpio_base = ASIC3_GPIO_TO_BASE(offset); in asic3_gpio_get() 496 if (gpio_base > ASIC3_GPIO_D_BASE) { in asic3_gpio_get() 498 gpio_base, offset); in asic3_gpio_get() [all …]
|
/kernel/linux/linux-5.10/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,
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
D | mach-crag6410-module.c | 73 .gpio_base = CODEC_GPIO_BASE, 121 .gpio_base = CODEC_GPIO_BASE, 191 .gpio_base = CODEC_GPIO_BASE, 222 .gpio_base = CODEC_GPIO_BASE, 260 .gpio_base = CODEC_GPIO_BASE,
|
/kernel/linux/linux-5.10/drivers/pinctrl/intel/ |
D | pinctrl-intel.c | 870 if (pgrp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_to_pin() 873 if (offset >= pgrp->gpio_base && in intel_gpio_to_pin() 874 offset < pgrp->gpio_base + pgrp->size) { in intel_gpio_to_pin() 877 pin = pgrp->base + offset - pgrp->gpio_base; in intel_gpio_to_pin() 911 return pin - padgrp->base + padgrp->gpio_base; in intel_pin_to_gpio() 1183 padgrp->gpio_base + gpp_offset); in intel_gpio_community_irq_handler() 1250 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges() 1254 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges() 1292 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio() 1295 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | timb_gpio.h | 20 int gpio_base; member
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
D | gpio-dwapb.h | 15 unsigned int gpio_base; member
|