Lines Matching defs:args
78 * @of_args: phandle to the reset controller with all the args like GPIO number
113 if (reset_spec->args[0] >= rcdev->nr_resets)
116 return reset_spec->args[0];
895 * @args: phandle to the GPIO provider with all the args like GPIO number
897 static int __reset_add_reset_gpio_device(const struct of_phandle_args *args)
905 * args[0]: GPIO number
906 * args[1]: GPIO flags
909 if (args->args_count != 2)
922 if (args->np == rgpio_dev->of_args.np) {
923 if (of_phandle_args_equal(args, &rgpio_dev->of_args))
941 ret = __reset_add_reset_gpio_lookup(id, args->np, args->args[0],
942 args->args[1]);
946 rgpio_dev->of_args = *args;
979 static struct reset_controller_dev *__reset_find_rcdev(const struct of_phandle_args *args,
988 if (rcdev->of_args && of_phandle_args_equal(args,
992 if (args->np == rcdev->of_node)
1007 struct of_phandle_args args;
1024 index, &args);
1036 0, &args);
1042 ret = __reset_add_reset_gpio_device(&args);
1050 rcdev = __reset_find_rcdev(&args, gpio_fallback);
1056 if (WARN_ON(args.args_count != rcdev->of_reset_n_cells)) {
1061 rstc_id = rcdev->of_xlate(rcdev, &args);
1073 of_node_put(args.np);