Lines Matching refs:volt_uv
215 static int list_voltage_ok(const struct device *dev, unsigned int idx, int32_t *volt_uv) in list_voltage_ok() argument
220 *volt_uv = 100; in list_voltage_ok()
227 int32_t volt_uv; in ZTEST() local
233 zassert_equal(regulator_list_voltage(reg0, 0, &volt_uv), 0); in ZTEST()
234 zassert_equal(volt_uv, 100); in ZTEST()
238 zassert_equal(regulator_fake_list_voltage_fake.arg2_val, &volt_uv); in ZTEST()
241 static int list_voltage_invalid(const struct device *dev, unsigned int idx, int32_t *volt_uv) in list_voltage_invalid() argument
245 ARG_UNUSED(volt_uv); in list_voltage_invalid()
263 static int list_voltage(const struct device *dev, unsigned int idx, int32_t *volt_uv) in list_voltage() argument
269 *volt_uv = 100; in list_voltage()
272 *volt_uv = 200; in list_voltage()
275 *volt_uv = 300; in list_voltage()
278 *volt_uv = 400; in list_voltage()
379 static int get_voltage_ok(const struct device *dev, int32_t *volt_uv) in get_voltage_ok() argument
383 *volt_uv = 100; in get_voltage_ok()
390 int32_t volt_uv; in ZTEST() local
396 zassert_equal(regulator_get_voltage(reg0, &volt_uv), 0); in ZTEST()
397 zassert_equal(volt_uv, 100); in ZTEST()
400 zassert_equal(regulator_fake_get_voltage_fake.arg1_val, &volt_uv); in ZTEST()
403 static int get_voltage_fail(const struct device *dev, int32_t *volt_uv) in get_voltage_fail() argument
406 ARG_UNUSED(volt_uv); in get_voltage_fail()