Lines Matching refs:reg0
14 static const struct device *const reg0 = DEVICE_DT_GET(DT_NODELABEL(reg0)); variable
104 config = reg0->config; in ZTEST()
140 zassert_false(regulator_common_is_init_enabled(reg0)); in ZTEST()
172 zassert_equal(regulator_enable(reg0), 0); in ZTEST()
173 zassert_equal(regulator_fake_enable_fake.arg0_val, reg0); in ZTEST()
177 zassert_equal(regulator_disable(reg0), 0); in ZTEST()
178 zassert_equal(regulator_fake_disable_fake.arg0_val, reg0); in ZTEST()
203 zassert_equal(regulator_count_voltages(reg0), 10U); in ZTEST()
204 zassert_equal(regulator_fake_count_voltages_fake.arg0_val, reg0); in ZTEST()
233 zassert_equal(regulator_list_voltage(reg0, 0, &volt_uv), 0); in ZTEST()
236 zassert_equal(regulator_fake_list_voltage_fake.arg0_val, reg0); in ZTEST()
256 zassert_equal(regulator_list_voltage(reg0, 0, NULL), -EINVAL); in ZTEST()
258 zassert_equal(regulator_fake_list_voltage_fake.arg0_val, reg0); in ZTEST()
295 zassert_false(regulator_is_supported_voltage(reg0, 0, 50)); in ZTEST()
296 zassert_true(regulator_is_supported_voltage(reg0, 50, 100)); in ZTEST()
297 zassert_true(regulator_is_supported_voltage(reg0, 100, 200)); in ZTEST()
298 zassert_true(regulator_is_supported_voltage(reg0, 150, 200)); in ZTEST()
299 zassert_true(regulator_is_supported_voltage(reg0, 200, 300)); in ZTEST()
300 zassert_true(regulator_is_supported_voltage(reg0, 300, 400)); in ZTEST()
301 zassert_true(regulator_is_supported_voltage(reg0, 400, 500)); in ZTEST()
302 zassert_false(regulator_is_supported_voltage(reg0, 500, 600)); in ZTEST()
342 zassert_equal(regulator_set_voltage(reg0, 0, 0), 0); in ZTEST()
343 zassert_equal(regulator_fake_set_voltage_fake.arg0_val, reg0); in ZTEST()
355 zassert_equal(regulator_set_voltage(reg0, 0, 0), -EINVAL); in ZTEST()
356 zassert_equal(regulator_fake_set_voltage_fake.arg0_val, reg0); in ZTEST()
396 zassert_equal(regulator_get_voltage(reg0, &volt_uv), 0); in ZTEST()
399 zassert_equal(regulator_fake_get_voltage_fake.arg0_val, reg0); in ZTEST()
417 zassert_equal(regulator_get_voltage(reg0, NULL), -EIO); in ZTEST()
419 zassert_equal(regulator_fake_get_voltage_fake.arg0_val, reg0); in ZTEST()
436 zassert_equal(regulator_set_current_limit(reg0, 0, 0), 0); in ZTEST()
437 zassert_equal(regulator_fake_set_current_limit_fake.arg0_val, reg0); in ZTEST()
449 zassert_equal(regulator_set_current_limit(reg0, 0, 0), -EINVAL); in ZTEST()
450 zassert_equal(regulator_fake_set_current_limit_fake.arg0_val, reg0); in ZTEST()
490 zassert_equal(regulator_get_current_limit(reg0, &curr_ua), 0); in ZTEST()
493 zassert_equal(regulator_fake_get_current_limit_fake.arg0_val, reg0); in ZTEST()
511 zassert_equal(regulator_get_current_limit(reg0, NULL), -EIO); in ZTEST()
513 zassert_equal(regulator_fake_get_current_limit_fake.arg0_val, reg0); in ZTEST()
530 zassert_equal(regulator_set_mode(reg0, 0), 0); in ZTEST()
531 zassert_equal(regulator_set_mode(reg0, 1), 0); in ZTEST()
532 zassert_equal(regulator_set_mode(reg0, 10), 0); in ZTEST()
542 zassert_equal(regulator_set_mode(reg0, 0), -ENOTSUP); in ZTEST()
543 zassert_equal(regulator_fake_set_mode_fake.arg0_val, reg0); in ZTEST()
591 zassert_equal(regulator_get_active_discharge(reg0, &active_discharge), false); in ZTEST()
594 zassert_equal(regulator_fake_get_active_discharge_fake.arg0_val, reg0); in ZTEST()
622 zassert_equal(regulator_get_mode(reg0, &mode), 0U); in ZTEST()
625 zassert_equal(regulator_fake_get_mode_fake.arg0_val, reg0); in ZTEST()
643 zassert_equal(regulator_get_mode(reg0, NULL), -EIO); in ZTEST()
645 zassert_equal(regulator_fake_get_mode_fake.arg0_val, reg0); in ZTEST()
673 zassert_equal(regulator_get_error_flags(reg0, &flags), 0); in ZTEST()
676 zassert_equal(regulator_fake_get_error_flags_fake.arg0_val, reg0); in ZTEST()
693 err = regulator_common_get_max_voltage(reg0, &max_uv); in ZTEST()
706 err = regulator_common_get_min_voltage(reg0, &min_uv); in ZTEST()
720 zassert_equal(regulator_get_error_flags(reg0, NULL), -EIO); in ZTEST()
722 zassert_equal(regulator_fake_get_error_flags_fake.arg0_val, reg0); in ZTEST()
729 zassert_true(device_is_ready(reg0)); in setup()