Lines Matching refs:dev_test

15 	struct udevice *dev_fixed, *dev_fixed_factor, *dev_clk, *dev_test;  in dm_test_clk()  local
32 &dev_test)); in dm_test_clk()
33 ut_assertok(sandbox_clk_test_get(dev_test)); in dm_test_clk()
34 ut_assertok(sandbox_clk_test_valid(dev_test)); in dm_test_clk()
37 sandbox_clk_test_get_rate(dev_test, in dm_test_clk()
39 ut_asserteq(0, sandbox_clk_test_get_rate(dev_test, in dm_test_clk()
41 ut_asserteq(0, sandbox_clk_test_get_rate(dev_test, in dm_test_clk()
44 rate = sandbox_clk_test_set_rate(dev_test, SANDBOX_CLK_TEST_ID_FIXED, in dm_test_clk()
47 rate = sandbox_clk_test_get_rate(dev_test, SANDBOX_CLK_TEST_ID_FIXED); in dm_test_clk()
50 ut_asserteq(0, sandbox_clk_test_set_rate(dev_test, in dm_test_clk()
53 ut_asserteq(0, sandbox_clk_test_set_rate(dev_test, in dm_test_clk()
57 ut_asserteq(1000, sandbox_clk_test_get_rate(dev_test, in dm_test_clk()
59 ut_asserteq(2000, sandbox_clk_test_get_rate(dev_test, in dm_test_clk()
62 ut_asserteq(1000, sandbox_clk_test_set_rate(dev_test, in dm_test_clk()
65 ut_asserteq(2000, sandbox_clk_test_set_rate(dev_test, in dm_test_clk()
69 rate = sandbox_clk_test_set_rate(dev_test, SANDBOX_CLK_TEST_ID_SPI, 0); in dm_test_clk()
71 rate = sandbox_clk_test_set_rate(dev_test, SANDBOX_CLK_TEST_ID_I2C, 0); in dm_test_clk()
74 ut_asserteq(10000, sandbox_clk_test_get_rate(dev_test, in dm_test_clk()
76 ut_asserteq(20000, sandbox_clk_test_get_rate(dev_test, in dm_test_clk()
84 ut_assertok(sandbox_clk_test_enable(dev_test, SANDBOX_CLK_TEST_ID_SPI)); in dm_test_clk()
88 ut_assertok(sandbox_clk_test_enable(dev_test, SANDBOX_CLK_TEST_ID_I2C)); in dm_test_clk()
92 ut_assertok(sandbox_clk_test_disable(dev_test, in dm_test_clk()
97 ut_assertok(sandbox_clk_test_disable(dev_test, in dm_test_clk()
102 ut_assertok(sandbox_clk_test_free(dev_test)); in dm_test_clk()
110 struct udevice *dev_clk, *dev_test; in dm_test_clk_bulk() local
115 &dev_test)); in dm_test_clk_bulk()
116 ut_assertok(sandbox_clk_test_get_bulk(dev_test)); in dm_test_clk_bulk()
122 ut_assertok(sandbox_clk_test_enable_bulk(dev_test)); in dm_test_clk_bulk()
127 ut_assertok(sandbox_clk_test_disable_bulk(dev_test)); in dm_test_clk_bulk()
132 ut_assertok(sandbox_clk_test_enable_bulk(dev_test)); in dm_test_clk_bulk()
137 ut_assertok(sandbox_clk_test_release_bulk(dev_test)); in dm_test_clk_bulk()