Lines Matching refs:gpiospec

86 	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()
255 chip = of_find_gpiochip_by_xlate(&gpiospec); in of_get_named_gpiod_flags()
261 desc = of_xlate_and_get_gpiod_flags(chip, &gpiospec, flags); in of_get_named_gpiod_flags()
273 of_node_put(gpiospec.np); in of_get_named_gpiod_flags()
584 struct of_phandle_args gpiospec; in of_parse_own_gpio() local
602 gpiospec.np = chip_np; in of_parse_own_gpio()
603 gpiospec.args_count = tmp; in of_parse_own_gpio()
607 &gpiospec.args[i]); in of_parse_own_gpio()
612 desc = of_xlate_and_get_gpiod_flags(chip, &gpiospec, &xlate_flags); in of_parse_own_gpio()
800 const struct of_phandle_args *gpiospec, in of_gpio_simple_xlate() argument
814 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in of_gpio_simple_xlate()
817 if (gpiospec->args[0] >= gc->ngpio) in of_gpio_simple_xlate()
821 *flags = gpiospec->args[1]; in of_gpio_simple_xlate()
823 return gpiospec->args[0]; in of_gpio_simple_xlate()