nmk_chip 289 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_set_mode(struct nmk_gpio_chip *nmk_chip, nmk_chip 294 drivers/pinctrl/nomadik/pinctrl-nomadik.c afunc = readl(nmk_chip->addr + NMK_GPIO_AFSLA) & ~BIT(offset); nmk_chip 295 drivers/pinctrl/nomadik/pinctrl-nomadik.c bfunc = readl(nmk_chip->addr + NMK_GPIO_AFSLB) & ~BIT(offset); nmk_chip 300 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(afunc, nmk_chip->addr + NMK_GPIO_AFSLA); nmk_chip 301 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(bfunc, nmk_chip->addr + NMK_GPIO_AFSLB); nmk_chip 304 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_set_slpm(struct nmk_gpio_chip *nmk_chip, nmk_chip 309 drivers/pinctrl/nomadik/pinctrl-nomadik.c slpm = readl(nmk_chip->addr + NMK_GPIO_SLPC); nmk_chip 314 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(slpm, nmk_chip->addr + NMK_GPIO_SLPC); nmk_chip 317 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_set_pull(struct nmk_gpio_chip *nmk_chip, nmk_chip 322 drivers/pinctrl/nomadik/pinctrl-nomadik.c pdis = readl(nmk_chip->addr + NMK_GPIO_PDIS); nmk_chip 325 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->pull_up &= ~BIT(offset); nmk_chip 330 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(pdis, nmk_chip->addr + NMK_GPIO_PDIS); nmk_chip 333 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->pull_up |= BIT(offset); nmk_chip 334 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DATS); nmk_chip 336 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->pull_up &= ~BIT(offset); nmk_chip 337 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DATC); nmk_chip 341 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_set_lowemi(struct nmk_gpio_chip *nmk_chip, nmk_chip 344 drivers/pinctrl/nomadik/pinctrl-nomadik.c bool enabled = nmk_chip->lowemi & BIT(offset); nmk_chip 350 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->lowemi |= BIT(offset); nmk_chip 352 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->lowemi &= ~BIT(offset); nmk_chip 354 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel_relaxed(nmk_chip->lowemi, nmk_chip 355 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->addr + NMK_GPIO_LOWEMI); nmk_chip 358 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_make_input(struct nmk_gpio_chip *nmk_chip, nmk_chip 361 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DIRC); nmk_chip 364 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_set_output(struct nmk_gpio_chip *nmk_chip, nmk_chip 368 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DATS); nmk_chip 370 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DATC); nmk_chip 373 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_make_output(struct nmk_gpio_chip *nmk_chip, nmk_chip 376 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DIRS); nmk_chip 377 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_output(nmk_chip, offset, val); nmk_chip 380 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_set_mode_safe(struct nmk_gpio_chip *nmk_chip, nmk_chip 384 drivers/pinctrl/nomadik/pinctrl-nomadik.c u32 rwimsc = nmk_chip->rwimsc; nmk_chip 385 drivers/pinctrl/nomadik/pinctrl-nomadik.c u32 fwimsc = nmk_chip->fwimsc; nmk_chip 387 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (glitch && nmk_chip->set_ioforce) { nmk_chip 391 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(rwimsc & ~bit, nmk_chip->addr + NMK_GPIO_RWIMSC); nmk_chip 392 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(fwimsc & ~bit, nmk_chip->addr + NMK_GPIO_FWIMSC); nmk_chip 394 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->set_ioforce(true); nmk_chip 397 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_mode(nmk_chip, offset, gpio_mode); nmk_chip 399 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (glitch && nmk_chip->set_ioforce) { nmk_chip 400 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->set_ioforce(false); nmk_chip 402 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(rwimsc, nmk_chip->addr + NMK_GPIO_RWIMSC); nmk_chip 403 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(fwimsc, nmk_chip->addr + NMK_GPIO_FWIMSC); nmk_chip 408 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_gpio_disable_lazy_irq(struct nmk_gpio_chip *nmk_chip, unsigned offset) nmk_chip 410 drivers/pinctrl/nomadik/pinctrl-nomadik.c u32 falling = nmk_chip->fimsc & BIT(offset); nmk_chip 411 drivers/pinctrl/nomadik/pinctrl-nomadik.c u32 rising = nmk_chip->rimsc & BIT(offset); nmk_chip 412 drivers/pinctrl/nomadik/pinctrl-nomadik.c int gpio = nmk_chip->chip.base + offset; nmk_chip 413 drivers/pinctrl/nomadik/pinctrl-nomadik.c int irq = irq_find_mapping(nmk_chip->chip.irq.domain, offset); nmk_chip 423 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->rimsc &= ~BIT(offset); nmk_chip 424 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel_relaxed(nmk_chip->rimsc, nmk_chip 425 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->addr + NMK_GPIO_RIMSC); nmk_chip 429 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->fimsc &= ~BIT(offset); nmk_chip 430 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel_relaxed(nmk_chip->fimsc, nmk_chip 431 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->addr + NMK_GPIO_FIMSC); nmk_chip 434 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(nmk_chip->chip.parent, "%d: clearing interrupt mask\n", gpio); nmk_chip 615 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 617 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 618 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(d->hwirq), nmk_chip->addr + NMK_GPIO_IC); nmk_chip 619 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 627 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_irq_modify(struct nmk_gpio_chip *nmk_chip, nmk_chip 639 drivers/pinctrl/nomadik/pinctrl-nomadik.c rimscval = &nmk_chip->rimsc; nmk_chip 640 drivers/pinctrl/nomadik/pinctrl-nomadik.c fimscval = &nmk_chip->fimsc; nmk_chip 644 drivers/pinctrl/nomadik/pinctrl-nomadik.c rimscval = &nmk_chip->rwimsc; nmk_chip 645 drivers/pinctrl/nomadik/pinctrl-nomadik.c fimscval = &nmk_chip->fwimsc; nmk_chip 649 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (nmk_chip->edge_rising & BIT(offset)) { nmk_chip 654 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(*rimscval, nmk_chip->addr + rimscreg); nmk_chip 656 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (nmk_chip->edge_falling & BIT(offset)) { nmk_chip 661 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(*fimscval, nmk_chip->addr + fimscreg); nmk_chip 665 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void __nmk_gpio_set_wake(struct nmk_gpio_chip *nmk_chip, nmk_chip 673 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (nmk_chip->sleepmode && on) { nmk_chip 674 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_slpm(nmk_chip, offset, nmk_chip 678 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_irq_modify(nmk_chip, offset, WAKE, on); nmk_chip 683 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 686 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = irq_data_get_irq_chip_data(d); nmk_chip 687 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!nmk_chip) nmk_chip 690 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 692 drivers/pinctrl/nomadik/pinctrl-nomadik.c spin_lock(&nmk_chip->lock); nmk_chip 694 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_irq_modify(nmk_chip, d->hwirq, NORMAL, enable); nmk_chip 696 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!(nmk_chip->real_wake & BIT(d->hwirq))) nmk_chip 697 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_wake(nmk_chip, d->hwirq, enable); nmk_chip 699 drivers/pinctrl/nomadik/pinctrl-nomadik.c spin_unlock(&nmk_chip->lock); nmk_chip 701 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 718 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 721 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = irq_data_get_irq_chip_data(d); nmk_chip 722 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!nmk_chip) nmk_chip 725 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 727 drivers/pinctrl/nomadik/pinctrl-nomadik.c spin_lock(&nmk_chip->lock); nmk_chip 730 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_wake(nmk_chip, d->hwirq, on); nmk_chip 733 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->real_wake |= BIT(d->hwirq); nmk_chip 735 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->real_wake &= ~BIT(d->hwirq); nmk_chip 737 drivers/pinctrl/nomadik/pinctrl-nomadik.c spin_unlock(&nmk_chip->lock); nmk_chip 739 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 748 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 751 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = irq_data_get_irq_chip_data(d); nmk_chip 752 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!nmk_chip) nmk_chip 759 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 760 drivers/pinctrl/nomadik/pinctrl-nomadik.c spin_lock_irqsave(&nmk_chip->lock, flags); nmk_chip 763 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_irq_modify(nmk_chip, d->hwirq, NORMAL, false); nmk_chip 766 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_irq_modify(nmk_chip, d->hwirq, WAKE, false); nmk_chip 768 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->edge_rising &= ~BIT(d->hwirq); nmk_chip 770 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->edge_rising |= BIT(d->hwirq); nmk_chip 772 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->edge_falling &= ~BIT(d->hwirq); nmk_chip 774 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->edge_falling |= BIT(d->hwirq); nmk_chip 777 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_irq_modify(nmk_chip, d->hwirq, NORMAL, true); nmk_chip 780 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_irq_modify(nmk_chip, d->hwirq, WAKE, true); nmk_chip 782 drivers/pinctrl/nomadik/pinctrl-nomadik.c spin_unlock_irqrestore(&nmk_chip->lock, flags); nmk_chip 783 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 790 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = irq_data_get_irq_chip_data(d); nmk_chip 792 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 799 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = irq_data_get_irq_chip_data(d); nmk_chip 802 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 825 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 828 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 829 drivers/pinctrl/nomadik/pinctrl-nomadik.c status = readl(nmk_chip->addr + NMK_GPIO_IS); nmk_chip 830 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 838 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 839 drivers/pinctrl/nomadik/pinctrl-nomadik.c u32 status = nmk_chip->get_latent_status(nmk_chip->bank); nmk_chip 848 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 851 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 853 drivers/pinctrl/nomadik/pinctrl-nomadik.c dir = !(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset)); nmk_chip 855 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 862 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 864 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 866 drivers/pinctrl/nomadik/pinctrl-nomadik.c writel(BIT(offset), nmk_chip->addr + NMK_GPIO_DIRC); nmk_chip 868 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 875 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 878 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 880 drivers/pinctrl/nomadik/pinctrl-nomadik.c value = !!(readl(nmk_chip->addr + NMK_GPIO_DAT) & BIT(offset)); nmk_chip 882 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 890 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 892 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 894 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_output(nmk_chip, offset, val); nmk_chip 896 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 902 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 904 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 906 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_make_output(nmk_chip, offset, val); nmk_chip 908 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 914 drivers/pinctrl/nomadik/pinctrl-nomadik.c static int nmk_gpio_get_mode(struct nmk_gpio_chip *nmk_chip, int offset) nmk_chip 918 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 920 drivers/pinctrl/nomadik/pinctrl-nomadik.c afunc = readl(nmk_chip->addr + NMK_GPIO_AFSLA) & BIT(offset); nmk_chip 921 drivers/pinctrl/nomadik/pinctrl-nomadik.c bfunc = readl(nmk_chip->addr + NMK_GPIO_AFSLB) & BIT(offset); nmk_chip 923 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 935 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); nmk_chip 956 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 957 drivers/pinctrl/nomadik/pinctrl-nomadik.c is_out = !!(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset)); nmk_chip 958 drivers/pinctrl/nomadik/pinctrl-nomadik.c pull = !(readl(nmk_chip->addr + NMK_GPIO_PDIS) & BIT(offset)); nmk_chip 959 drivers/pinctrl/nomadik/pinctrl-nomadik.c data_out = !!(readl(nmk_chip->addr + NMK_GPIO_DAT) & BIT(offset)); nmk_chip 960 drivers/pinctrl/nomadik/pinctrl-nomadik.c mode = nmk_gpio_get_mode(nmk_chip, offset); nmk_chip 995 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (nmk_chip->edge_rising & BIT(offset)) nmk_chip 997 drivers/pinctrl/nomadik/pinctrl-nomadik.c else if (nmk_chip->edge_falling & BIT(offset)) nmk_chip 1008 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 1041 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 1061 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = nmk_gpio_chips[id]; nmk_chip 1062 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (nmk_chip) { nmk_chip 1064 drivers/pinctrl/nomadik/pinctrl-nomadik.c return nmk_chip; nmk_chip 1067 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = devm_kzalloc(&pdev->dev, sizeof(*nmk_chip), GFP_KERNEL); nmk_chip 1068 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!nmk_chip) { nmk_chip 1073 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->bank = id; nmk_chip 1074 drivers/pinctrl/nomadik/pinctrl-nomadik.c chip = &nmk_chip->chip; nmk_chip 1086 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->addr = base; nmk_chip 1094 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->clk = clk; nmk_chip 1096 drivers/pinctrl/nomadik/pinctrl-nomadik.c BUG_ON(nmk_chip->bank >= ARRAY_SIZE(nmk_gpio_chips)); nmk_chip 1097 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_gpio_chips[id] = nmk_chip; nmk_chip 1098 drivers/pinctrl/nomadik/pinctrl-nomadik.c return nmk_chip; nmk_chip 1104 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 1112 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = nmk_gpio_populate_chip(np, dev); nmk_chip 1113 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (IS_ERR(nmk_chip)) { nmk_chip 1115 drivers/pinctrl/nomadik/pinctrl-nomadik.c return PTR_ERR(nmk_chip); nmk_chip 1122 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev->id = nmk_chip->bank; nmk_chip 1135 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->parent_irq = irq; nmk_chip 1136 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->latent_parent_irq = latent_irq; nmk_chip 1137 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->sleepmode = supports_sleepmode; nmk_chip 1138 drivers/pinctrl/nomadik/pinctrl-nomadik.c spin_lock_init(&nmk_chip->lock); nmk_chip 1140 drivers/pinctrl/nomadik/pinctrl-nomadik.c chip = &nmk_chip->chip; nmk_chip 1152 drivers/pinctrl/nomadik/pinctrl-nomadik.c irqchip = &nmk_chip->irqchip; nmk_chip 1166 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 1167 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->lowemi = readl_relaxed(nmk_chip->addr + NMK_GPIO_LOWEMI); nmk_chip 1168 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 1171 drivers/pinctrl/nomadik/pinctrl-nomadik.c ret = gpiochip_add_data(chip, nmk_chip); nmk_chip 1175 drivers/pinctrl/nomadik/pinctrl-nomadik.c platform_set_drvdata(dev, nmk_chip); nmk_chip 1189 drivers/pinctrl/nomadik/pinctrl-nomadik.c gpiochip_remove(&nmk_chip->chip); nmk_chip 1195 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->parent_irq, nmk_chip 1197 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (nmk_chip->latent_parent_irq > 0) nmk_chip 1200 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip->latent_parent_irq, nmk_chip 1203 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_info(&dev->dev, "at address %p\n", nmk_chip->addr); nmk_chip 1613 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 1616 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = find_nmk_gpio_from_pin(g->pins[i]); nmk_chip 1617 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!nmk_chip) { nmk_chip 1625 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 1634 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_gpio_disable_lazy_irq(nmk_chip, bit); nmk_chip 1636 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_mode_safe(nmk_chip, bit, nmk_chip 1638 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 1670 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 1683 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = gpiochip_get_data(chip); nmk_chip 1687 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 1690 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_mode(nmk_chip, bit, NMK_GPIO_ALT_GPIO); nmk_chip 1691 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 1737 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 1743 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = find_nmk_gpio_from_pin(pin); nmk_chip 1744 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!nmk_chip) { nmk_chip 1784 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(nmk_chip->chip.parent, nmk_chip 1793 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(nmk_chip->chip.parent, nmk_chip 1800 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_enable(nmk_chip->clk); nmk_chip 1804 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_mode(nmk_chip, bit, NMK_GPIO_ALT_GPIO); nmk_chip 1806 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_make_output(nmk_chip, bit, val); nmk_chip 1808 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_make_input(nmk_chip, bit); nmk_chip 1809 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_pull(nmk_chip, bit, pull); nmk_chip 1812 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_lowemi(nmk_chip, bit, lowemi); nmk_chip 1814 drivers/pinctrl/nomadik/pinctrl-nomadik.c __nmk_gpio_set_slpm(nmk_chip, bit, slpm); nmk_chip 1815 drivers/pinctrl/nomadik/pinctrl-nomadik.c clk_disable(nmk_chip->clk); nmk_chip 1909 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_gpio_chip *nmk_chip; nmk_chip 1916 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_chip = nmk_gpio_populate_chip(gpio_np, pdev); nmk_chip 1917 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (IS_ERR(nmk_chip))