Home
last modified time | relevance | path

Searched refs:n_phandles (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/regulator/
H A Dof_regulator.c34 int n_phandles; in of_get_regulation_constraints() local
37 n_phandles = of_count_phandle_with_args(np, "regulator-coupled-with", in of_get_regulation_constraints()
39 n_phandles = max(n_phandles, 0); in of_get_regulation_constraints()
172 if (n_phandles) { in of_get_regulation_constraints()
174 sizeof(*constraints->max_spread) * n_phandles, in of_get_regulation_constraints()
181 constraints->max_spread, n_phandles); in of_get_regulation_constraints()
497 int n_phandles; in of_get_n_coupled() local
499 n_phandles = of_count_phandle_with_args(node, in of_get_n_coupled()
503 return (n_phandles > 0) ? n_phandles : 0; in of_get_n_coupled()
511 int n_phandles, i; in of_coupling_find_node() local
[all …]
H A Dcore.c5452 int err, n_phandles; in regulator_init_coupling() local
5455 n_phandles = 0; in regulator_init_coupling()
5457 n_phandles = of_get_n_coupled(rdev); in regulator_init_coupling()
5459 coupled = kcalloc(n_phandles + 1, sizeof(*coupled), GFP_KERNEL); in regulator_init_coupling()
5470 rdev->coupling_desc.n_coupled = n_phandles + 1; in regulator_init_coupling()
5474 if (n_phandles == 0) in regulator_init_coupling()