Home
last modified time | relevance | path

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

/drivers/gpio/
Dgpiolib-of.c31 struct of_phandle_args gpiospec; member
42 if ((gc->of_node != gg_data->gpiospec.np) || in of_gpiochip_find_and_xlate()
43 (gc->of_gpio_n_cells != gg_data->gpiospec.args_count) || in of_gpiochip_find_and_xlate()
47 ret = gc->of_xlate(gc, &gg_data->gpiospec, gg_data->flags); in of_gpiochip_find_and_xlate()
90 &gg_data.gpiospec); in of_get_named_gpiod_flags()
99 of_node_put(gg_data.gpiospec.np); in of_get_named_gpiod_flags()
132 const struct of_phandle_args *gpiospec, u32 *flags) in of_gpio_simple_xlate() argument
145 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in of_gpio_simple_xlate()
148 if (gpiospec->args[0] >= gc->ngpio) in of_gpio_simple_xlate()
152 *flags = gpiospec->args[1]; in of_gpio_simple_xlate()
[all …]
Dgpio-davinci.c179 const struct of_phandle_args *gpiospec, in davinci_gpio_of_xlate() argument
185 if (gpiospec->args[0] > pdata->ngpio) in davinci_gpio_of_xlate()
188 if (gc != &chips[gpiospec->args[0] / 32].chip) in davinci_gpio_of_xlate()
192 *flags = gpiospec->args[1]; in davinci_gpio_of_xlate()
194 return gpiospec->args[0] % 32; in davinci_gpio_of_xlate()
Dgpio-lpc32xx.c533 const struct of_phandle_args *gpiospec, u32 *flags) in lpc32xx_of_xlate() argument
536 u32 bank = gpiospec->args[0]; in lpc32xx_of_xlate()
542 *flags = gpiospec->args[2]; in lpc32xx_of_xlate()
543 return gpiospec->args[1]; in lpc32xx_of_xlate()
Dgpio-pxa.c278 const struct of_phandle_args *gpiospec, in pxa_gpio_of_xlate() argument
281 if (gpiospec->args[0] > pxa_last_gpio) in pxa_gpio_of_xlate()
284 if (gc != &pxa_gpio_chips[gpiospec->args[0] / 32].chip) in pxa_gpio_of_xlate()
288 *flags = gpiospec->args[1]; in pxa_gpio_of_xlate()
290 return gpiospec->args[0] % 32; in pxa_gpio_of_xlate()
/drivers/pinctrl/sirf/
Dpinctrl-sirf.c272 const struct of_phandle_args *gpiospec, in sirfsoc_gpio_of_xlate() argument
275 if (gpiospec->args[0] > SIRFSOC_GPIO_NO_OF_BANKS * SIRFSOC_GPIO_BANK_SIZE) in sirfsoc_gpio_of_xlate()
279 *flags = gpiospec->args[1]; in sirfsoc_gpio_of_xlate()
281 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.c1510 struct of_phandle_args gpiospec; in pcs_add_gpio_func() local
1516 i, &gpiospec); in pcs_add_gpio_func()
1527 range->offset = gpiospec.args[0]; in pcs_add_gpio_func()
1528 range->npins = gpiospec.args[1]; in pcs_add_gpio_func()
1529 range->gpiofunc = gpiospec.args[2]; in pcs_add_gpio_func()
Dpinctrl-st.c761 const struct of_phandle_args *gpiospec, u32 *flags) in st_gpio_xlate() argument
766 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in st_gpio_xlate()
769 if (gpiospec->args[0] > gc->ngpio) in st_gpio_xlate()
772 return gpiospec->args[0]; in st_gpio_xlate()