Lines Matching full:size
21 /* Some size */
22 uint64_t size; member
25 .size = 0,
29 static int some_get_size(const struct device *dev, uint64_t *size) in some_get_size() argument
33 *size = simulated_values.size; in some_get_size()
38 static int enotsup_get_size(const struct device *dev, uint64_t *size) in enotsup_get_size() argument
85 uint64_t size = 0; in ZTEST() local
87 simulated_values.size = 45; in ZTEST()
88 zassert_ok(flash_get_size(&size_fun_dev, &size), "Expected success"); in ZTEST()
89 zassert_equal(size, simulated_values.size, "Size mismatch"); in ZTEST()
90 simulated_values.size = 46; in ZTEST()
91 zassert_ok(flash_get_size(&size_fun_dev, &size), "Expected success"); in ZTEST()
92 zassert_equal(size, simulated_values.size, "Size mismatch"); in ZTEST()
93 zassert_equal(flash_get_size(&no_fun_dev, &size), -ENOSYS); in ZTEST()
95 zassert_equal(flash_get_size(&enotsup_fun_dev, &size), -ENOTSUP); in ZTEST()