Searched refs:n_phandles (Results 1 – 2 of 2) sorted by relevance
90 int n_phandles; in of_get_regulation_constraints() local93 n_phandles = of_count_phandle_with_args(np, "regulator-coupled-with", in of_get_regulation_constraints()95 n_phandles = max(n_phandles, 0); in of_get_regulation_constraints()240 if (n_phandles) { in of_get_regulation_constraints()242 sizeof(*constraints->max_spread) * n_phandles, in of_get_regulation_constraints()249 constraints->max_spread, n_phandles); in of_get_regulation_constraints()749 int n_phandles; in of_get_n_coupled() local751 n_phandles = of_count_phandle_with_args(node, in of_get_n_coupled()755 return (n_phandles > 0) ? n_phandles : 0; in of_get_n_coupled()763 int n_phandles, i; in of_coupling_find_node() local[all …]
5909 int err, n_phandles; in regulator_init_coupling() local5912 n_phandles = 0; in regulator_init_coupling()5914 n_phandles = of_get_n_coupled(rdev); in regulator_init_coupling()5916 coupled = kzalloc_objs(*coupled, n_phandles + 1); in regulator_init_coupling()5927 rdev->coupling_desc.n_coupled = n_phandles + 1; in regulator_init_coupling()5931 if (n_phandles == 0) in regulator_init_coupling()