Lines Matching refs:at91_chip
916 struct at91_gpio_chip *at91_chip;
929 at91_chip = gpiochip_get_data(chip);
938 writel_relaxed(mask, at91_chip->regbase + PIO_PER);
1817 struct at91_gpio_chip *at91_chip = NULL;
1838 at91_chip = devm_kzalloc(&pdev->dev, sizeof(*at91_chip), GFP_KERNEL);
1839 if (!at91_chip) {
1844 at91_chip->regbase = devm_platform_ioremap_resource(pdev, 0);
1845 if (IS_ERR(at91_chip->regbase)) {
1846 ret = PTR_ERR(at91_chip->regbase);
1850 at91_chip->ops = (struct at91_pinctrl_mux_ops *)
1852 at91_chip->pioc_virq = irq;
1853 at91_chip->pioc_idx = alias_idx;
1855 at91_chip->clock = devm_clk_get(&pdev->dev, NULL);
1856 if (IS_ERR(at91_chip->clock)) {
1858 ret = PTR_ERR(at91_chip->clock);
1862 ret = clk_prepare_enable(at91_chip->clock);
1868 at91_chip->chip = at91_gpio_template;
1870 chip = &at91_chip->chip;
1898 range = &at91_chip->range;
1906 ret = at91_gpio_of_irq_setup(pdev, at91_chip);
1910 ret = gpiochip_add_data(chip, at91_chip);
1914 gpio_chips[alias_idx] = at91_chip;
1917 dev_info(&pdev->dev, "at address %p\n", at91_chip->regbase);
1923 clk_disable_unprepare(at91_chip->clock);