Lines Matching refs:gpiospec

55 	struct of_phandle_args *gpiospec = data;  in of_gpiochip_match_node_and_xlate()  local
57 return chip->gpiodev->dev.of_node == gpiospec->np && in of_gpiochip_match_node_and_xlate()
59 chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate()
63 struct of_phandle_args *gpiospec) in of_find_gpiochip_by_xlate() argument
65 return gpiochip_find(gpiospec, of_gpiochip_match_node_and_xlate); in of_find_gpiochip_by_xlate()
69 struct of_phandle_args *gpiospec, in of_xlate_and_get_gpiod_flags() argument
74 if (chip->of_gpio_n_cells != gpiospec->args_count) in of_xlate_and_get_gpiod_flags()
77 ret = chip->of_xlate(chip, gpiospec, flags); in of_xlate_and_get_gpiod_flags()
229 struct of_phandle_args gpiospec; in of_get_named_gpiod_flags() local
235 &gpiospec); in of_get_named_gpiod_flags()
242 chip = of_find_gpiochip_by_xlate(&gpiospec); in of_get_named_gpiod_flags()
248 desc = of_xlate_and_get_gpiod_flags(chip, &gpiospec, flags); in of_get_named_gpiod_flags()
260 of_node_put(gpiospec.np); in of_get_named_gpiod_flags()
543 struct of_phandle_args gpiospec; in of_parse_own_gpio() local
561 gpiospec.np = chip_np; in of_parse_own_gpio()
562 gpiospec.args_count = tmp; in of_parse_own_gpio()
566 &gpiospec.args[i]); in of_parse_own_gpio()
571 desc = of_xlate_and_get_gpiod_flags(chip, &gpiospec, &xlate_flags); in of_parse_own_gpio()
648 const struct of_phandle_args *gpiospec, in of_gpio_simple_xlate() argument
662 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in of_gpio_simple_xlate()
665 if (gpiospec->args[0] >= gc->ngpio) in of_gpio_simple_xlate()
669 *flags = gpiospec->args[1]; in of_gpio_simple_xlate()
671 return gpiospec->args[0]; in of_gpio_simple_xlate()