Lines Matching refs:at91_chip
801 struct at91_gpio_chip *at91_chip; in at91_gpio_request_enable() local
814 at91_chip = container_of(chip, struct at91_gpio_chip, chip); in at91_gpio_request_enable()
823 writel_relaxed(mask, at91_chip->regbase + PIO_PER); in at91_gpio_request_enable()
1691 struct at91_gpio_chip *at91_chip = NULL; in at91_gpio_probe() local
1712 at91_chip = devm_kzalloc(&pdev->dev, sizeof(*at91_chip), GFP_KERNEL); in at91_gpio_probe()
1713 if (!at91_chip) { in at91_gpio_probe()
1719 at91_chip->regbase = devm_ioremap_resource(&pdev->dev, res); in at91_gpio_probe()
1720 if (IS_ERR(at91_chip->regbase)) { in at91_gpio_probe()
1721 ret = PTR_ERR(at91_chip->regbase); in at91_gpio_probe()
1725 at91_chip->ops = (struct at91_pinctrl_mux_ops *) in at91_gpio_probe()
1727 at91_chip->pioc_virq = irq; in at91_gpio_probe()
1728 at91_chip->pioc_idx = alias_idx; in at91_gpio_probe()
1730 at91_chip->clock = devm_clk_get(&pdev->dev, NULL); in at91_gpio_probe()
1731 if (IS_ERR(at91_chip->clock)) { in at91_gpio_probe()
1733 ret = PTR_ERR(at91_chip->clock); in at91_gpio_probe()
1737 ret = clk_prepare(at91_chip->clock); in at91_gpio_probe()
1742 ret = clk_enable(at91_chip->clock); in at91_gpio_probe()
1748 at91_chip->chip = at91_gpio_template; in at91_gpio_probe()
1750 chip = &at91_chip->chip; in at91_gpio_probe()
1778 range = &at91_chip->range; in at91_gpio_probe()
1790 gpio_chips[alias_idx] = at91_chip; in at91_gpio_probe()
1793 ret = at91_gpio_of_irq_setup(pdev, at91_chip); in at91_gpio_probe()
1797 dev_info(&pdev->dev, "at address %p\n", at91_chip->regbase); in at91_gpio_probe()
1804 clk_disable(at91_chip->clock); in at91_gpio_probe()
1806 clk_unprepare(at91_chip->clock); in at91_gpio_probe()