Lines Matching refs:gpiospec

124 	const struct of_phandle_args *gpiospec = data;  in of_gpiochip_match_node_and_xlate()  local
126 return device_match_of_node(&chip->gpiodev->dev, gpiospec->np) && in of_gpiochip_match_node_and_xlate()
128 chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate()
132 of_find_gpio_device_by_xlate(const struct of_phandle_args *gpiospec) in of_find_gpio_device_by_xlate() argument
134 return gpio_device_find(gpiospec, of_gpiochip_match_node_and_xlate); in of_find_gpio_device_by_xlate()
138 struct of_phandle_args *gpiospec, in of_xlate_and_get_gpiod_flags() argument
143 if (chip->of_gpio_n_cells != gpiospec->args_count) in of_xlate_and_get_gpiod_flags()
146 ret = chip->of_xlate(chip, gpiospec, flags); in of_xlate_and_get_gpiod_flags()
392 struct of_phandle_args gpiospec; in of_get_named_gpiod_flags() local
397 &gpiospec); in of_get_named_gpiod_flags()
405 of_find_gpio_device_by_xlate(&gpiospec); in of_get_named_gpiod_flags()
412 &gpiospec, flags); in of_get_named_gpiod_flags()
424 of_node_put(gpiospec.np); in of_get_named_gpiod_flags()
736 struct of_phandle_args gpiospec; in of_parse_own_gpio() local
754 gpiospec.np = chip_np; in of_parse_own_gpio()
755 gpiospec.args_count = tmp; in of_parse_own_gpio()
759 &gpiospec.args[i]); in of_parse_own_gpio()
764 desc = of_xlate_and_get_gpiod_flags(chip, &gpiospec, &xlate_flags); in of_parse_own_gpio()
945 const struct of_phandle_args *gpiospec, in of_gpio_simple_xlate() argument
959 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in of_gpio_simple_xlate()
962 if (gpiospec->args[0] >= gc->ngpio) in of_gpio_simple_xlate()
966 *flags = gpiospec->args[1]; in of_gpio_simple_xlate()
968 return gpiospec->args[0]; in of_gpio_simple_xlate()