Home
last modified time | relevance | path

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

/drivers/gpio/
Dgpiolib-of.c86 struct of_phandle_args *gpiospec = data; in of_gpiochip_match_node_and_xlate() local
88 return chip->gpiodev->dev.of_node == gpiospec->np && in of_gpiochip_match_node_and_xlate()
90 chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate()
94 struct of_phandle_args *gpiospec) in of_find_gpiochip_by_xlate() argument
96 return gpiochip_find(gpiospec, of_gpiochip_match_node_and_xlate); in of_find_gpiochip_by_xlate()
100 struct of_phandle_args *gpiospec, in of_xlate_and_get_gpiod_flags() argument
105 if (chip->of_gpio_n_cells != gpiospec->args_count) in of_xlate_and_get_gpiod_flags()
108 ret = chip->of_xlate(chip, gpiospec, flags); in of_xlate_and_get_gpiod_flags()
242 struct of_phandle_args gpiospec; in of_get_named_gpiod_flags() local
248 &gpiospec); in of_get_named_gpiod_flags()
[all …]
Dgpio-lpc32xx.c492 const struct of_phandle_args *gpiospec, u32 *flags) in lpc32xx_of_xlate() argument
495 u32 bank = gpiospec->args[0]; in lpc32xx_of_xlate()
501 *flags = gpiospec->args[2]; in lpc32xx_of_xlate()
502 return gpiospec->args[1]; in lpc32xx_of_xlate()
Dgpio-brcmstb.c419 const struct of_phandle_args *gpiospec, u32 *flags) in brcmstb_gpio_of_xlate() argument
430 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in brcmstb_gpio_of_xlate()
433 offset = gpiospec->args[0] - (gc->base - priv->gpio_base); in brcmstb_gpio_of_xlate()
440 gpiospec->args[0]); in brcmstb_gpio_of_xlate()
444 *flags = gpiospec->args[1]; in brcmstb_gpio_of_xlate()
Dgpio-pxa.c334 const struct of_phandle_args *gpiospec, in pxa_gpio_of_xlate() argument
337 if (gpiospec->args[0] > pxa_last_gpio) in pxa_gpio_of_xlate()
341 *flags = gpiospec->args[1]; in pxa_gpio_of_xlate()
343 return gpiospec->args[0]; in pxa_gpio_of_xlate()
/drivers/gpu/drm/bridge/
Dti-sn65dsi86.c933 const struct of_phandle_args *gpiospec, in tn_sn_bridge_of_xlate() argument
936 if (WARN_ON(gpiospec->args_count < chip->of_gpio_n_cells)) in tn_sn_bridge_of_xlate()
939 if (gpiospec->args[0] > chip->ngpio || gpiospec->args[0] < 1) in tn_sn_bridge_of_xlate()
943 *flags = gpiospec->args[1]; in tn_sn_bridge_of_xlate()
945 return gpiospec->args[0] - SN_GPIO_PHYSICAL_OFFSET; in tn_sn_bridge_of_xlate()
/drivers/pinctrl/sirf/
Dpinctrl-sirf.c262 const struct of_phandle_args *gpiospec, in sirfsoc_gpio_of_xlate() argument
265 if (gpiospec->args[0] > SIRFSOC_GPIO_NO_OF_BANKS * SIRFSOC_GPIO_BANK_SIZE) in sirfsoc_gpio_of_xlate()
269 *flags = gpiospec->args[1]; in sirfsoc_gpio_of_xlate()
271 return gpiospec->args[0]; in sirfsoc_gpio_of_xlate()
/drivers/pinctrl/
Dpinctrl-single.c1347 struct of_phandle_args gpiospec; in pcs_add_gpio_func() local
1353 i, &gpiospec); in pcs_add_gpio_func()
1364 range->offset = gpiospec.args[0]; in pcs_add_gpio_func()
1365 range->npins = gpiospec.args[1]; in pcs_add_gpio_func()
1366 range->gpiofunc = gpiospec.args[2]; in pcs_add_gpio_func()
/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c903 const struct of_phandle_args *gpiospec, in sunxi_pinctrl_gpio_of_xlate() argument
908 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
909 pin = base + gpiospec->args[1]; in sunxi_pinctrl_gpio_of_xlate()
915 *flags = gpiospec->args[2]; in sunxi_pinctrl_gpio_of_xlate()