Home
last modified time | relevance | path

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

/linux-5.19.10/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.c418 const struct of_phandle_args *gpiospec, u32 *flags) in brcmstb_gpio_of_xlate() argument
429 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in brcmstb_gpio_of_xlate()
432 offset = gpiospec->args[0] - (gc->base - priv->gpio_base); in brcmstb_gpio_of_xlate()
439 gpiospec->args[0]); in brcmstb_gpio_of_xlate()
443 *flags = gpiospec->args[1]; in brcmstb_gpio_of_xlate()
Dgpio-pxa.c333 const struct of_phandle_args *gpiospec, in pxa_gpio_of_xlate() argument
336 if (gpiospec->args[0] > pxa_last_gpio) in pxa_gpio_of_xlate()
340 *flags = gpiospec->args[1]; in pxa_gpio_of_xlate()
342 return gpiospec->args[0]; in pxa_gpio_of_xlate()
/linux-5.19.10/drivers/pinctrl/
Dpinctrl-microchip-sgpio.c573 const struct of_phandle_args *gpiospec, in microchip_sgpio_of_xlate() argument
584 if (gpiospec->args[0] > SGPIO_BITS_PER_WORD || in microchip_sgpio_of_xlate()
585 gpiospec->args[1] > priv->bitcount) in microchip_sgpio_of_xlate()
588 pin = sgpio_addr_to_pin(priv, gpiospec->args[0], gpiospec->args[1]); in microchip_sgpio_of_xlate()
594 *flags = gpiospec->args[2]; in microchip_sgpio_of_xlate()
Dpinctrl-single.c1341 struct of_phandle_args gpiospec; in pcs_add_gpio_func() local
1347 i, &gpiospec); in pcs_add_gpio_func()
1358 range->offset = gpiospec.args[0]; in pcs_add_gpio_func()
1359 range->npins = gpiospec.args[1]; in pcs_add_gpio_func()
1360 range->gpiofunc = gpiospec.args[2]; in pcs_add_gpio_func()
/linux-5.19.10/drivers/gpu/drm/bridge/
Dti-sn65dsi86.c1532 const struct of_phandle_args *gpiospec, in tn_sn_bridge_of_xlate() argument
1535 if (WARN_ON(gpiospec->args_count < chip->of_gpio_n_cells)) in tn_sn_bridge_of_xlate()
1538 if (gpiospec->args[0] > chip->ngpio || gpiospec->args[0] < 1) in tn_sn_bridge_of_xlate()
1542 *flags = gpiospec->args[1]; in tn_sn_bridge_of_xlate()
1544 return gpiospec->args[0] - SN_GPIO_PHYSICAL_OFFSET; in tn_sn_bridge_of_xlate()
/linux-5.19.10/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c908 const struct of_phandle_args *gpiospec, in sunxi_pinctrl_gpio_of_xlate() argument
913 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
914 pin = base + gpiospec->args[1]; in sunxi_pinctrl_gpio_of_xlate()
920 *flags = gpiospec->args[2]; in sunxi_pinctrl_gpio_of_xlate()
/linux-5.19.10/include/linux/gpio/
Ddriver.h517 const struct of_phandle_args *gpiospec, u32 *flags);