Home
last modified time | relevance | path

Searched refs:gpiospec (Results 1 - 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpio/
H A 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()
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()
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()
93 of_find_gpiochip_by_xlate( struct of_phandle_args *gpiospec) of_find_gpiochip_by_xlate() argument
99 of_xlate_and_get_gpiod_flags(struct gpio_chip *chip, struct of_phandle_args *gpiospec, enum of_gpio_flags *flags) of_xlate_and_get_gpiod_flags() argument
584 struct of_phandle_args gpiospec; of_parse_own_gpio() local
799 of_gpio_simple_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) of_gpio_simple_xlate() argument
[all...]
H A Dgpio-lpc32xx.c492 const struct of_phandle_args *gpiospec, u32 *flags) in lpc32xx_of_xlate()
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()
491 lpc32xx_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) lpc32xx_of_xlate() argument
H A Dgpio-pxa.c334 const struct of_phandle_args *gpiospec, in pxa_gpio_of_xlate()
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()
333 pxa_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) pxa_gpio_of_xlate() argument
H A Dgpio-brcmstb.c419 const struct of_phandle_args *gpiospec, u32 *flags) in brcmstb_gpio_of_xlate()
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()
418 brcmstb_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) brcmstb_gpio_of_xlate() argument
/kernel/linux/linux-6.6/drivers/gpio/
H A Dgpiolib-of.c123 struct of_phandle_args *gpiospec = data; in of_gpiochip_match_node_and_xlate() local
125 return device_match_of_node(&chip->gpiodev->dev, gpiospec->np) && in of_gpiochip_match_node_and_xlate()
127 chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate()
131 struct of_phandle_args *gpiospec) in of_find_gpiochip_by_xlate()
133 return gpiochip_find(gpiospec, of_gpiochip_match_node_and_xlate); in of_find_gpiochip_by_xlate()
137 struct of_phandle_args *gpiospec, in of_xlate_and_get_gpiod_flags()
142 if (chip->of_gpio_n_cells != gpiospec->args_count) in of_xlate_and_get_gpiod_flags()
145 ret = chip->of_xlate(chip, gpiospec, flags); in of_xlate_and_get_gpiod_flags()
365 struct of_phandle_args gpiospec; in of_get_named_gpiod_flags() local
371 &gpiospec); in of_get_named_gpiod_flags()
130 of_find_gpiochip_by_xlate( struct of_phandle_args *gpiospec) of_find_gpiochip_by_xlate() argument
136 of_xlate_and_get_gpiod_flags(struct gpio_chip *chip, struct of_phandle_args *gpiospec, enum of_gpio_flags *flags) of_xlate_and_get_gpiod_flags() argument
685 struct of_phandle_args gpiospec; of_parse_own_gpio() local
890 of_gpio_simple_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) of_gpio_simple_xlate() argument
[all...]
H A Dgpio-brcmstb.c403 const struct of_phandle_args *gpiospec, u32 *flags) in brcmstb_gpio_of_xlate()
414 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in brcmstb_gpio_of_xlate()
417 offset = gpiospec->args[0] - (gc->base - priv->gpio_base); in brcmstb_gpio_of_xlate()
424 gpiospec->args[0]); in brcmstb_gpio_of_xlate()
428 *flags = gpiospec->args[1]; in brcmstb_gpio_of_xlate()
402 brcmstb_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) brcmstb_gpio_of_xlate() argument
H A Dgpio-aggregator.c436 const struct of_phandle_args *gpiospec, in gpiochip_fwd_delay_of_xlate()
443 if (gpiospec->args_count != chip->of_gpio_n_cells) in gpiochip_fwd_delay_of_xlate()
446 line = gpiospec->args[0]; in gpiochip_fwd_delay_of_xlate()
451 timings->ramp_up_us = gpiospec->args[1]; in gpiochip_fwd_delay_of_xlate()
452 timings->ramp_down_us = gpiospec->args[2]; in gpiochip_fwd_delay_of_xlate()
435 gpiochip_fwd_delay_of_xlate(struct gpio_chip *chip, const struct of_phandle_args *gpiospec, u32 *flags) gpiochip_fwd_delay_of_xlate() argument
H A Dgpio-lpc32xx.c492 const struct of_phandle_args *gpiospec, u32 *flags) in lpc32xx_of_xlate()
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()
491 lpc32xx_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) lpc32xx_of_xlate() argument
H A Dgpio-pxa.c328 const struct of_phandle_args *gpiospec, in pxa_gpio_of_xlate()
331 if (gpiospec->args[0] > pxa_last_gpio) in pxa_gpio_of_xlate()
335 *flags = gpiospec->args[1]; in pxa_gpio_of_xlate()
337 return gpiospec->args[0]; in pxa_gpio_of_xlate()
327 pxa_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) pxa_gpio_of_xlate() argument
/kernel/linux/linux-6.6/drivers/pinctrl/
H A Dpinctrl-microchip-sgpio.c576 const struct of_phandle_args *gpiospec, in microchip_sgpio_of_xlate()
587 if (gpiospec->args[0] > SGPIO_BITS_PER_WORD || in microchip_sgpio_of_xlate()
588 gpiospec->args[1] > priv->bitcount) in microchip_sgpio_of_xlate()
591 pin = sgpio_addr_to_pin(priv, gpiospec->args[0], gpiospec->args[1]); in microchip_sgpio_of_xlate()
597 *flags = gpiospec->args[2]; in microchip_sgpio_of_xlate()
575 microchip_sgpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) microchip_sgpio_of_xlate() argument
H A Dpinctrl-single.c1342 struct of_phandle_args gpiospec; in pcs_add_gpio_func() local
1348 i, &gpiospec); in pcs_add_gpio_func()
1359 range->offset = gpiospec.args[0]; in pcs_add_gpio_func()
1360 range->npins = gpiospec.args[1]; in pcs_add_gpio_func()
1361 range->gpiofunc = gpiospec.args[2]; in pcs_add_gpio_func()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/
H A Dti-sn65dsi86.c933 const struct of_phandle_args *gpiospec, in tn_sn_bridge_of_xlate()
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()
932 tn_sn_bridge_of_xlate(struct gpio_chip *chip, const struct of_phandle_args *gpiospec, u32 *flags) tn_sn_bridge_of_xlate() argument
/kernel/linux/linux-5.10/drivers/pinctrl/sirf/
H A Dpinctrl-sirf.c262 const struct of_phandle_args *gpiospec, in sirfsoc_gpio_of_xlate()
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()
261 sirfsoc_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) sirfsoc_gpio_of_xlate() argument
/kernel/linux/linux-6.6/drivers/media/i2c/
H A Dds90ub913.c177 const struct of_phandle_args *gpiospec, in ub913_gpio_of_xlate()
181 *flags = gpiospec->args[1]; in ub913_gpio_of_xlate()
183 return gpiospec->args[0]; in ub913_gpio_of_xlate()
176 ub913_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) ub913_gpio_of_xlate() argument
H A Dds90ub953.c385 const struct of_phandle_args *gpiospec, in ub953_gpio_of_xlate()
389 *flags = gpiospec->args[1]; in ub953_gpio_of_xlate()
391 return gpiospec->args[0]; in ub953_gpio_of_xlate()
384 ub953_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) ub953_gpio_of_xlate() argument
/kernel/linux/linux-5.10/drivers/pinctrl/sunxi/
H A Dpinctrl-sunxi.c903 const struct of_phandle_args *gpiospec, in sunxi_pinctrl_gpio_of_xlate()
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()
902 sunxi_pinctrl_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) sunxi_pinctrl_gpio_of_xlate() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/
H A Dti-sn65dsi86.c1648 const struct of_phandle_args *gpiospec, in tn_sn_bridge_of_xlate()
1651 if (WARN_ON(gpiospec->args_count < chip->of_gpio_n_cells)) in tn_sn_bridge_of_xlate()
1654 if (gpiospec->args[0] > chip->ngpio || gpiospec->args[0] < 1) in tn_sn_bridge_of_xlate()
1658 *flags = gpiospec->args[1]; in tn_sn_bridge_of_xlate()
1660 return gpiospec->args[0] - SN_GPIO_PHYSICAL_OFFSET; in tn_sn_bridge_of_xlate()
1647 tn_sn_bridge_of_xlate(struct gpio_chip *chip, const struct of_phandle_args *gpiospec, u32 *flags) tn_sn_bridge_of_xlate() argument
/kernel/linux/linux-5.10/drivers/pinctrl/
H A 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()
/kernel/linux/linux-6.6/drivers/pinctrl/sunxi/
H A Dpinctrl-sunxi.c976 const struct of_phandle_args *gpiospec, in sunxi_pinctrl_gpio_of_xlate()
981 base = PINS_PER_BANK * gpiospec->args[0]; in sunxi_pinctrl_gpio_of_xlate()
982 pin = base + gpiospec->args[1]; in sunxi_pinctrl_gpio_of_xlate()
988 *flags = gpiospec->args[2]; in sunxi_pinctrl_gpio_of_xlate()
975 sunxi_pinctrl_gpio_of_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags) sunxi_pinctrl_gpio_of_xlate() argument
/kernel/linux/linux-5.10/include/linux/gpio/
H A Ddriver.h494 const struct of_phandle_args *gpiospec, u32 *flags);
/kernel/linux/linux-6.6/include/linux/gpio/
H A Ddriver.h528 const struct of_phandle_args *gpiospec, u32 *flags);

Completed in 54 milliseconds