Home
last modified time | relevance | path

Searched refs:gpiospec (Results 1 – 9 of 9) sorted by relevance

/drivers/gpio/
Dgpiolib-of.c31 struct of_phandle_args *gpiospec = data; in of_gpiochip_match_node_and_xlate() local
33 return chip->gpiodev->dev.of_node == gpiospec->np && in of_gpiochip_match_node_and_xlate()
34 chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate()
38 struct of_phandle_args *gpiospec) in of_find_gpiochip_by_xlate() argument
40 return gpiochip_find(gpiospec, of_gpiochip_match_node_and_xlate); in of_find_gpiochip_by_xlate()
44 struct of_phandle_args *gpiospec, in of_xlate_and_get_gpiod_flags() argument
49 if (chip->of_gpio_n_cells != gpiospec->args_count) in of_xlate_and_get_gpiod_flags()
52 ret = chip->of_xlate(chip, gpiospec, flags); in of_xlate_and_get_gpiod_flags()
73 struct of_phandle_args gpiospec; in of_get_named_gpiod_flags() local
79 &gpiospec); in of_get_named_gpiod_flags()
[all …]
Dgpio-brcmstb.c305 const struct of_phandle_args *gpiospec, u32 *flags) in brcmstb_gpio_of_xlate() argument
316 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in brcmstb_gpio_of_xlate()
319 offset = gpiospec->args[0] - (gc->base - priv->gpio_base); in brcmstb_gpio_of_xlate()
326 gpiospec->args[0]); in brcmstb_gpio_of_xlate()
330 *flags = gpiospec->args[1]; in brcmstb_gpio_of_xlate()
Dgpio-lpc32xx.c494 const struct of_phandle_args *gpiospec, u32 *flags) in lpc32xx_of_xlate() argument
497 u32 bank = gpiospec->args[0]; in lpc32xx_of_xlate()
503 *flags = gpiospec->args[2]; in lpc32xx_of_xlate()
504 return gpiospec->args[1]; in lpc32xx_of_xlate()
Dgpio-davinci.c176 const struct of_phandle_args *gpiospec, in davinci_gpio_of_xlate() argument
182 if (gpiospec->args[0] > pdata->ngpio) in davinci_gpio_of_xlate()
185 if (gc != &chips[gpiospec->args[0] / 32].chip) in davinci_gpio_of_xlate()
189 *flags = gpiospec->args[1]; in davinci_gpio_of_xlate()
191 return gpiospec->args[0] % 32; in davinci_gpio_of_xlate()
Dgpio-etraxfs.c183 const struct of_phandle_args *gpiospec, in etraxfs_gpio_of_xlate() argument
190 if (etraxfs_gpio_chip_to_port(gc) + 0xA != gpiospec->args[2]) in etraxfs_gpio_of_xlate()
193 return of_gpio_simple_xlate(gc, gpiospec, flags); in etraxfs_gpio_of_xlate()
Dgpio-pxa.c320 const struct of_phandle_args *gpiospec, in pxa_gpio_of_xlate() argument
323 if (gpiospec->args[0] > pxa_last_gpio) in pxa_gpio_of_xlate()
327 *flags = gpiospec->args[1]; in pxa_gpio_of_xlate()
329 return gpiospec->args[0]; in pxa_gpio_of_xlate()
/drivers/pinctrl/sirf/
Dpinctrl-sirf.c263 const struct of_phandle_args *gpiospec, in sirfsoc_gpio_of_xlate() argument
266 if (gpiospec->args[0] > SIRFSOC_GPIO_NO_OF_BANKS * SIRFSOC_GPIO_BANK_SIZE) in sirfsoc_gpio_of_xlate()
270 *flags = gpiospec->args[1]; in sirfsoc_gpio_of_xlate()
272 return gpiospec->args[0]; in sirfsoc_gpio_of_xlate()
/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c506 const struct of_phandle_args *gpiospec, in sunxi_pinctrl_gpio_of_xlate() argument
511 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
512 pin = base + gpiospec->args[1]; in sunxi_pinctrl_gpio_of_xlate()
518 *flags = gpiospec->args[2]; in sunxi_pinctrl_gpio_of_xlate()
/drivers/pinctrl/
Dpinctrl-single.c1514 struct of_phandle_args gpiospec; in pcs_add_gpio_func() local
1520 i, &gpiospec); in pcs_add_gpio_func()
1531 range->offset = gpiospec.args[0]; in pcs_add_gpio_func()
1532 range->npins = gpiospec.args[1]; in pcs_add_gpio_func()
1533 range->gpiofunc = gpiospec.args[2]; in pcs_add_gpio_func()