• Home
  • Raw
  • Download

Lines Matching refs:at91_chip

913 	struct at91_gpio_chip *at91_chip;  in at91_gpio_request_enable()  local
926 at91_chip = gpiochip_get_data(chip); in at91_gpio_request_enable()
935 writel_relaxed(mask, at91_chip->regbase + PIO_PER); in at91_gpio_request_enable()
1816 struct at91_gpio_chip *at91_chip = NULL; in at91_gpio_probe() local
1837 at91_chip = devm_kzalloc(&pdev->dev, sizeof(*at91_chip), GFP_KERNEL); in at91_gpio_probe()
1838 if (!at91_chip) { in at91_gpio_probe()
1844 at91_chip->regbase = devm_ioremap_resource(&pdev->dev, res); in at91_gpio_probe()
1845 if (IS_ERR(at91_chip->regbase)) { in at91_gpio_probe()
1846 ret = PTR_ERR(at91_chip->regbase); in at91_gpio_probe()
1850 at91_chip->ops = (struct at91_pinctrl_mux_ops *) in at91_gpio_probe()
1852 at91_chip->pioc_virq = irq; in at91_gpio_probe()
1853 at91_chip->pioc_idx = alias_idx; in at91_gpio_probe()
1855 at91_chip->clock = devm_clk_get(&pdev->dev, NULL); in at91_gpio_probe()
1856 if (IS_ERR(at91_chip->clock)) { in at91_gpio_probe()
1858 ret = PTR_ERR(at91_chip->clock); in at91_gpio_probe()
1862 ret = clk_prepare_enable(at91_chip->clock); in at91_gpio_probe()
1868 at91_chip->chip = at91_gpio_template; in at91_gpio_probe()
1870 chip = &at91_chip->chip; in at91_gpio_probe()
1898 range = &at91_chip->range; in at91_gpio_probe()
1906 ret = gpiochip_add_data(chip, at91_chip); in at91_gpio_probe()
1910 gpio_chips[alias_idx] = at91_chip; in at91_gpio_probe()
1913 ret = at91_gpio_of_irq_setup(pdev, at91_chip); in at91_gpio_probe()
1917 dev_info(&pdev->dev, "at address %p\n", at91_chip->regbase); in at91_gpio_probe()
1925 clk_disable_unprepare(at91_chip->clock); in at91_gpio_probe()