Searched refs:n_phandles (Results 1 - 2 of 2) sorted by relevance
/device/soc/rockchip/common/sdk_linux/drivers/regulator/ |
H A D | of_regulator.c | 32 int n_phandles; in of_get_regulation_constraints() local 35 n_phandles = of_count_phandle_with_args(np, "regulator-coupled-with", NULL); in of_get_regulation_constraints() 36 n_phandles = max(n_phandles, 0); in of_get_regulation_constraints() 177 if (n_phandles) { in of_get_regulation_constraints() 178 constraints->max_spread = devm_kzalloc(dev, sizeof(*constraints->max_spread) * n_phandles, GFP_KERNEL); in of_get_regulation_constraints() 184 of_property_read_u32_array(np, "regulator-coupled-max-spread", constraints->max_spread, n_phandles); in of_get_regulation_constraints() 495 int n_phandles; in of_get_n_coupled() local 497 n_phandles = of_count_phandle_with_args(node, "regulator-coupled-with", NULL); in of_get_n_coupled() 499 return (n_phandles > in of_get_n_coupled() 505 int n_phandles, i; of_coupling_find_node() local 549 int n_phandles = of_get_n_coupled(rdev); of_check_coupling_data() local [all...] |
H A D | core.c | 5381 int err, n_phandles;
in regulator_init_coupling() local 5384 n_phandles = 0;
in regulator_init_coupling() 5386 n_phandles = of_get_n_coupled(rdev);
in regulator_init_coupling() 5389 coupled = kcalloc(n_phandles + 1, sizeof(*coupled), GFP_KERNEL);
in regulator_init_coupling() 5401 rdev->coupling_desc.n_coupled = n_phandles + 1;
in regulator_init_coupling() 5405 if (n_phandles == 0) {
in regulator_init_coupling()
|
Completed in 10 milliseconds