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()
1718 struct at91_gpio_chip *at91_chip = NULL; in at91_gpio_probe() local
1739 at91_chip = devm_kzalloc(&pdev->dev, sizeof(*at91_chip), GFP_KERNEL); in at91_gpio_probe()
1740 if (!at91_chip) { in at91_gpio_probe()
1746 at91_chip->regbase = devm_ioremap_resource(&pdev->dev, res); in at91_gpio_probe()
1747 if (IS_ERR(at91_chip->regbase)) { in at91_gpio_probe()
1748 ret = PTR_ERR(at91_chip->regbase); in at91_gpio_probe()
1752 at91_chip->ops = (struct at91_pinctrl_mux_ops *) in at91_gpio_probe()
1754 at91_chip->pioc_virq = irq; in at91_gpio_probe()
1755 at91_chip->pioc_idx = alias_idx; in at91_gpio_probe()
1757 at91_chip->clock = devm_clk_get(&pdev->dev, NULL); in at91_gpio_probe()
1758 if (IS_ERR(at91_chip->clock)) { in at91_gpio_probe()
1760 ret = PTR_ERR(at91_chip->clock); in at91_gpio_probe()
1764 ret = clk_prepare(at91_chip->clock); in at91_gpio_probe()
1769 ret = clk_enable(at91_chip->clock); in at91_gpio_probe()
1775 at91_chip->chip = at91_gpio_template; in at91_gpio_probe()
1777 chip = &at91_chip->chip; in at91_gpio_probe()
1805 range = &at91_chip->range; in at91_gpio_probe()
1817 gpio_chips[alias_idx] = at91_chip; in at91_gpio_probe()
1820 ret = at91_gpio_of_irq_setup(pdev, at91_chip); in at91_gpio_probe()
1824 dev_info(&pdev->dev, "at address %p\n", at91_chip->regbase); in at91_gpio_probe()
1831 clk_disable(at91_chip->clock); in at91_gpio_probe()
1833 clk_unprepare(at91_chip->clock); in at91_gpio_probe()