Searched refs:n_phandles (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/regulator/ |
H A D | of_regulator.c | 34 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() 493 int n_phandles; in of_get_n_coupled() local 495 n_phandles = of_count_phandle_with_args(node, in of_get_n_coupled() 499 return (n_phandles > in of_get_n_coupled() 507 int n_phandles, i; of_coupling_find_node() local 552 int n_phandles = of_get_n_coupled(rdev); of_check_coupling_data() local [all...] |
H A D | core.c | 5198 int err, n_phandles; in regulator_init_coupling() local 5201 n_phandles = 0; in regulator_init_coupling() 5203 n_phandles = of_get_n_coupled(rdev); in regulator_init_coupling() 5205 coupled = kcalloc(n_phandles + 1, sizeof(*coupled), GFP_KERNEL); in regulator_init_coupling() 5216 rdev->coupling_desc.n_coupled = n_phandles + 1; in regulator_init_coupling() 5220 if (n_phandles == 0) in regulator_init_coupling()
|
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | of_regulator.c | 90 int n_phandles; in of_get_regulation_constraints() local 93 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() 228 if (n_phandles) { in of_get_regulation_constraints() 230 sizeof(*constraints->max_spread) * n_phandles, in of_get_regulation_constraints() 237 constraints->max_spread, n_phandles); in of_get_regulation_constraints() 559 int n_phandles; in of_get_n_coupled() local 561 n_phandles = of_count_phandle_with_args(node, in of_get_n_coupled() 565 return (n_phandles > in of_get_n_coupled() 573 int n_phandles, i; of_coupling_find_node() local 618 int n_phandles = of_get_n_coupled(rdev); of_check_coupling_data() local [all...] |
H A D | core.c | 5416 int err, n_phandles; in regulator_init_coupling() local 5419 n_phandles = 0; in regulator_init_coupling() 5421 n_phandles = of_get_n_coupled(rdev); in regulator_init_coupling() 5423 coupled = kcalloc(n_phandles + 1, sizeof(*coupled), GFP_KERNEL); in regulator_init_coupling() 5434 rdev->coupling_desc.n_coupled = n_phandles + 1; in regulator_init_coupling() 5438 if (n_phandles == 0) in regulator_init_coupling()
|
Completed in 18 milliseconds