atmel_pioctrl 143 drivers/pinctrl/pinctrl-at91-pio4.c static unsigned int atmel_gpio_read(struct atmel_pioctrl *atmel_pioctrl, atmel_pioctrl 146 drivers/pinctrl/pinctrl-at91-pio4.c return readl_relaxed(atmel_pioctrl->reg_base atmel_pioctrl 150 drivers/pinctrl/pinctrl-at91-pio4.c static void atmel_gpio_write(struct atmel_pioctrl *atmel_pioctrl, atmel_pioctrl 154 drivers/pinctrl/pinctrl-at91-pio4.c writel_relaxed(val, atmel_pioctrl->reg_base atmel_pioctrl 168 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = irq_data_get_irq_chip_data(d); atmel_pioctrl 169 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[d->hwirq]; atmel_pioctrl 172 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_MSKR, atmel_pioctrl 174 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR); atmel_pioctrl 203 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR, reg); atmel_pioctrl 210 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = irq_data_get_irq_chip_data(d); atmel_pioctrl 211 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[d->hwirq]; atmel_pioctrl 213 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_IDR, atmel_pioctrl 219 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = irq_data_get_irq_chip_data(d); atmel_pioctrl 220 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[d->hwirq]; atmel_pioctrl 222 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_IER, atmel_pioctrl 230 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = irq_data_get_irq_chip_data(d); atmel_pioctrl 235 drivers/pinctrl/pinctrl-at91-pio4.c irq_set_irq_wake(atmel_pioctrl->irqs[bank], on); atmel_pioctrl 238 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_wakeup_sources[bank] |= BIT(line); atmel_pioctrl 240 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_wakeup_sources[bank] &= ~(BIT(line)); atmel_pioctrl 259 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = gpiochip_get_data(chip); atmel_pioctrl 261 drivers/pinctrl/pinctrl-at91-pio4.c return irq_find_mapping(atmel_pioctrl->irq_domain, offset); atmel_pioctrl 267 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = irq_desc_get_handler_data(desc); atmel_pioctrl 273 drivers/pinctrl/pinctrl-at91-pio4.c for (n = 0; n < atmel_pioctrl->nbanks; n++) { atmel_pioctrl 274 drivers/pinctrl/pinctrl-at91-pio4.c if (atmel_pioctrl->irqs[n] == irq) { atmel_pioctrl 281 drivers/pinctrl/pinctrl-at91-pio4.c dev_err(atmel_pioctrl->dev, atmel_pioctrl 289 drivers/pinctrl/pinctrl-at91-pio4.c isr = (unsigned long)atmel_gpio_read(atmel_pioctrl, bank, atmel_pioctrl 291 drivers/pinctrl/pinctrl-at91-pio4.c isr &= (unsigned long)atmel_gpio_read(atmel_pioctrl, bank, atmel_pioctrl 298 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip, atmel_pioctrl 307 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = gpiochip_get_data(chip); atmel_pioctrl 308 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; atmel_pioctrl 311 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_MSKR, atmel_pioctrl 313 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR); atmel_pioctrl 315 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR, reg); atmel_pioctrl 322 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = gpiochip_get_data(chip); atmel_pioctrl 323 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; atmel_pioctrl 326 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_PDSR); atmel_pioctrl 334 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = gpiochip_get_data(chip); atmel_pioctrl 335 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; atmel_pioctrl 338 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, atmel_pioctrl 342 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_MSKR, atmel_pioctrl 344 drivers/pinctrl/pinctrl-at91-pio4.c reg = atmel_gpio_read(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR); atmel_pioctrl 346 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, ATMEL_PIO_CFGR, reg); atmel_pioctrl 353 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = gpiochip_get_data(chip); atmel_pioctrl 354 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pin *pin = atmel_pioctrl->pins[offset]; atmel_pioctrl 356 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, pin->bank, atmel_pioctrl 374 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 375 drivers/pinctrl/pinctrl-at91-pio4.c unsigned bank = atmel_pioctrl->pins[pin_id]->bank; atmel_pioctrl 376 drivers/pinctrl/pinctrl-at91-pio4.c unsigned line = atmel_pioctrl->pins[pin_id]->line; atmel_pioctrl 377 drivers/pinctrl/pinctrl-at91-pio4.c void __iomem *addr = atmel_pioctrl->reg_base atmel_pioctrl 390 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 391 drivers/pinctrl/pinctrl-at91-pio4.c unsigned bank = atmel_pioctrl->pins[pin_id]->bank; atmel_pioctrl 392 drivers/pinctrl/pinctrl-at91-pio4.c unsigned line = atmel_pioctrl->pins[pin_id]->line; atmel_pioctrl 393 drivers/pinctrl/pinctrl-at91-pio4.c void __iomem *addr = atmel_pioctrl->reg_base atmel_pioctrl 404 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 406 drivers/pinctrl/pinctrl-at91-pio4.c return atmel_pioctrl->npins; atmel_pioctrl 412 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 414 drivers/pinctrl/pinctrl-at91-pio4.c return atmel_pioctrl->groups[selector].name; atmel_pioctrl 421 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 423 drivers/pinctrl/pinctrl-at91-pio4.c *pins = (unsigned *)&atmel_pioctrl->groups[selector].pin; atmel_pioctrl 432 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 435 drivers/pinctrl/pinctrl-at91-pio4.c for (i = 0; i < atmel_pioctrl->npins; i++) { atmel_pioctrl 436 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_group *grp = atmel_pioctrl->groups + i; atmel_pioctrl 450 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 467 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[pin_id]->mux = func_id; atmel_pioctrl 468 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[pin_id]->ioset = ATMEL_GET_PIN_IOSET(pinfunc); atmel_pioctrl 470 drivers/pinctrl/pinctrl-at91-pio4.c if (np->parent == atmel_pioctrl->node) atmel_pioctrl 471 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[pin_id]->device = np->name; atmel_pioctrl 473 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[pin_id]->device = np->parent->name; atmel_pioctrl 616 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 618 drivers/pinctrl/pinctrl-at91-pio4.c *groups = atmel_pioctrl->group_names; atmel_pioctrl 619 drivers/pinctrl/pinctrl-at91-pio4.c *num_groups = atmel_pioctrl->npins; atmel_pioctrl 628 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 633 drivers/pinctrl/pinctrl-at91-pio4.c atmel_functions[function], atmel_pioctrl->groups[group].name); atmel_pioctrl 635 drivers/pinctrl/pinctrl-at91-pio4.c pin = atmel_pioctrl->groups[group].pin; atmel_pioctrl 656 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 658 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_group *grp = atmel_pioctrl->groups + group; atmel_pioctrl 710 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 711 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_group *grp = atmel_pioctrl->groups + group; atmel_pioctrl 773 drivers/pinctrl/pinctrl-at91-pio4.c writel_relaxed(mask, atmel_pioctrl->reg_base + atmel_pioctrl 777 drivers/pinctrl/pinctrl-at91-pio4.c writel_relaxed(mask, atmel_pioctrl->reg_base + atmel_pioctrl 811 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = pinctrl_dev_get_drvdata(pctldev); atmel_pioctrl 814 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->pins[pin_id]->device) atmel_pioctrl 817 drivers/pinctrl/pinctrl-at91-pio4.c if (atmel_pioctrl->pins[pin_id]) atmel_pioctrl 819 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[pin_id]->device, atmel_pioctrl 820 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[pin_id]->ioset); atmel_pioctrl 863 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = dev_get_drvdata(dev); atmel_pioctrl 870 drivers/pinctrl/pinctrl-at91-pio4.c for (i = 0; i < atmel_pioctrl->nbanks; i++) { atmel_pioctrl 871 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].imr = atmel_pioctrl 872 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_read(atmel_pioctrl, i, ATMEL_PIO_IMR); atmel_pioctrl 873 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, i, ATMEL_PIO_IDR, atmel_pioctrl 874 drivers/pinctrl/pinctrl-at91-pio4.c ~atmel_pioctrl->pm_wakeup_sources[i]); atmel_pioctrl 875 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].odsr = atmel_pioctrl 876 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_read(atmel_pioctrl, i, ATMEL_PIO_ODSR); atmel_pioctrl 878 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, i, atmel_pioctrl 880 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].cfgr[j] = atmel_pioctrl 881 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_read(atmel_pioctrl, i, atmel_pioctrl 891 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl = dev_get_drvdata(dev); atmel_pioctrl 894 drivers/pinctrl/pinctrl-at91-pio4.c for (i = 0; i < atmel_pioctrl->nbanks; i++) { atmel_pioctrl 895 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, i, ATMEL_PIO_IER, atmel_pioctrl 896 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].imr); atmel_pioctrl 897 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, i, ATMEL_PIO_SODR, atmel_pioctrl 898 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].odsr); atmel_pioctrl 900 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, i, atmel_pioctrl 902 drivers/pinctrl/pinctrl-at91-pio4.c atmel_gpio_write(atmel_pioctrl, i, ATMEL_PIO_CFGR, atmel_pioctrl 903 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup[i].cfgr[j]); atmel_pioctrl 939 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_pioctrl *atmel_pioctrl; atmel_pioctrl 942 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl = devm_kzalloc(dev, sizeof(*atmel_pioctrl), GFP_KERNEL); atmel_pioctrl 943 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl) atmel_pioctrl 945 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->dev = dev; atmel_pioctrl 946 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->node = dev->of_node; atmel_pioctrl 947 drivers/pinctrl/pinctrl-at91-pio4.c platform_set_drvdata(pdev, atmel_pioctrl); atmel_pioctrl 955 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->nbanks = atmel_pioctrl_data->nbanks; atmel_pioctrl 956 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->npins = atmel_pioctrl->nbanks * ATMEL_PIO_NPINS_PER_BANK; atmel_pioctrl 959 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->reg_base = devm_ioremap_resource(dev, res); atmel_pioctrl 960 drivers/pinctrl/pinctrl-at91-pio4.c if (IS_ERR(atmel_pioctrl->reg_base)) atmel_pioctrl 963 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->clk = devm_clk_get(dev, NULL); atmel_pioctrl 964 drivers/pinctrl/pinctrl-at91-pio4.c if (IS_ERR(atmel_pioctrl->clk)) { atmel_pioctrl 966 drivers/pinctrl/pinctrl-at91-pio4.c return PTR_ERR(atmel_pioctrl->clk); atmel_pioctrl 969 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins = devm_kcalloc(dev, atmel_pioctrl 970 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->npins, atmel_pioctrl 971 drivers/pinctrl/pinctrl-at91-pio4.c sizeof(*atmel_pioctrl->pins), atmel_pioctrl 973 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->pins) atmel_pioctrl 976 drivers/pinctrl/pinctrl-at91-pio4.c pin_desc = devm_kcalloc(dev, atmel_pioctrl->npins, sizeof(*pin_desc), atmel_pioctrl 981 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pinctrl_desc.npins = atmel_pioctrl->npins; atmel_pioctrl 987 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->npins, sizeof(*group_names), atmel_pioctrl 991 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->group_names = group_names; atmel_pioctrl 993 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->groups = devm_kcalloc(&pdev->dev, atmel_pioctrl 994 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->npins, sizeof(*atmel_pioctrl->groups), atmel_pioctrl 996 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->groups) atmel_pioctrl 998 drivers/pinctrl/pinctrl-at91-pio4.c for (i = 0 ; i < atmel_pioctrl->npins; i++) { atmel_pioctrl 999 drivers/pinctrl/pinctrl-at91-pio4.c struct atmel_group *group = atmel_pioctrl->groups + i; atmel_pioctrl 1003 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[i] = devm_kzalloc(dev, atmel_pioctrl 1004 drivers/pinctrl/pinctrl-at91-pio4.c sizeof(**atmel_pioctrl->pins), GFP_KERNEL); atmel_pioctrl 1005 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->pins[i]) atmel_pioctrl 1008 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[i]->pin_id = i; atmel_pioctrl 1009 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[i]->bank = bank; atmel_pioctrl 1010 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pins[i]->line = line; atmel_pioctrl 1023 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip = &atmel_gpio_chip; atmel_pioctrl 1024 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip->of_node = dev->of_node; atmel_pioctrl 1025 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip->ngpio = atmel_pioctrl->npins; atmel_pioctrl 1026 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip->label = dev_name(dev); atmel_pioctrl 1027 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip->parent = dev; atmel_pioctrl 1028 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip->names = atmel_pioctrl->group_names; atmel_pioctrl 1030 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_wakeup_sources = devm_kcalloc(dev, atmel_pioctrl 1031 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->nbanks, atmel_pioctrl 1032 drivers/pinctrl/pinctrl-at91-pio4.c sizeof(*atmel_pioctrl->pm_wakeup_sources), atmel_pioctrl 1034 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->pm_wakeup_sources) atmel_pioctrl 1037 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pm_suspend_backup = devm_kcalloc(dev, atmel_pioctrl 1038 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->nbanks, atmel_pioctrl 1039 drivers/pinctrl/pinctrl-at91-pio4.c sizeof(*atmel_pioctrl->pm_suspend_backup), atmel_pioctrl 1041 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->pm_suspend_backup) atmel_pioctrl 1044 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->irqs = devm_kcalloc(dev, atmel_pioctrl 1045 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->nbanks, atmel_pioctrl 1046 drivers/pinctrl/pinctrl-at91-pio4.c sizeof(*atmel_pioctrl->irqs), atmel_pioctrl 1048 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->irqs) atmel_pioctrl 1052 drivers/pinctrl/pinctrl-at91-pio4.c for (i = 0; i < atmel_pioctrl->nbanks; i++) { atmel_pioctrl 1059 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->irqs[i] = res->start; atmel_pioctrl 1061 drivers/pinctrl/pinctrl-at91-pio4.c irq_set_handler_data(res->start, atmel_pioctrl); atmel_pioctrl 1065 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->irq_domain = irq_domain_add_linear(dev->of_node, atmel_pioctrl 1066 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->gpio_chip->ngpio, atmel_pioctrl 1068 drivers/pinctrl/pinctrl-at91-pio4.c if (!atmel_pioctrl->irq_domain) { atmel_pioctrl 1072 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->irq_domain->name = "atmel gpio"; atmel_pioctrl 1074 drivers/pinctrl/pinctrl-at91-pio4.c for (i = 0; i < atmel_pioctrl->npins; i++) { atmel_pioctrl 1075 drivers/pinctrl/pinctrl-at91-pio4.c int irq = irq_create_mapping(atmel_pioctrl->irq_domain, i); atmel_pioctrl 1079 drivers/pinctrl/pinctrl-at91-pio4.c irq_set_chip_data(irq, atmel_pioctrl); atmel_pioctrl 1085 drivers/pinctrl/pinctrl-at91-pio4.c ret = clk_prepare_enable(atmel_pioctrl->clk); atmel_pioctrl 1091 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl->pinctrl_dev = devm_pinctrl_register(&pdev->dev, atmel_pioctrl 1093 drivers/pinctrl/pinctrl-at91-pio4.c atmel_pioctrl); atmel_pioctrl 1094 drivers/pinctrl/pinctrl-at91-pio4.c if (IS_ERR(atmel_pioctrl->pinctrl_dev)) { atmel_pioctrl 1095 drivers/pinctrl/pinctrl-at91-pio4.c ret = PTR_ERR(atmel_pioctrl->pinctrl_dev); atmel_pioctrl 1100 drivers/pinctrl/pinctrl-at91-pio4.c ret = gpiochip_add_data(atmel_pioctrl->gpio_chip, atmel_pioctrl); atmel_pioctrl 1106 drivers/pinctrl/pinctrl-at91-pio4.c ret = gpiochip_add_pin_range(atmel_pioctrl->gpio_chip, dev_name(dev), atmel_pioctrl 1107 drivers/pinctrl/pinctrl-at91-pio4.c 0, 0, atmel_pioctrl->gpio_chip->ngpio); atmel_pioctrl 1118 drivers/pinctrl/pinctrl-at91-pio4.c gpiochip_remove(atmel_pioctrl->gpio_chip); atmel_pioctrl 1121 drivers/pinctrl/pinctrl-at91-pio4.c clk_disable_unprepare(atmel_pioctrl->clk); atmel_pioctrl 1124 drivers/pinctrl/pinctrl-at91-pio4.c irq_domain_remove(atmel_pioctrl->irq_domain);