Lines Matching refs:parent

31 	struct clk_hw *parent;  in clk_gate_register_test_parent_names()  local
34 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_register_test_parent_names()
36 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_names()
41 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_names()
44 clk_hw_unregister_fixed_rate(parent); in clk_gate_register_test_parent_names()
49 struct clk_hw *parent; in clk_gate_register_test_parent_data() local
53 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_register_test_parent_data()
55 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_data()
56 pdata.hw = parent; in clk_gate_register_test_parent_data()
61 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_data()
64 clk_hw_unregister_fixed_rate(parent); in clk_gate_register_test_parent_data()
69 struct clk_hw *parent; in clk_gate_register_test_parent_data_legacy() local
73 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_register_test_parent_data_legacy()
75 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_data_legacy()
81 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_data_legacy()
84 clk_hw_unregister_fixed_rate(parent); in clk_gate_register_test_parent_data_legacy()
89 struct clk_hw *parent; in clk_gate_register_test_parent_hw() local
92 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_register_test_parent_hw()
94 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_hw()
96 ret = clk_hw_register_gate_parent_hw(NULL, "test_gate", parent, 0, NULL, in clk_gate_register_test_parent_hw()
99 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_hw()
102 clk_hw_unregister_fixed_rate(parent); in clk_gate_register_test_parent_hw()
133 struct clk_hw *parent; member
151 struct clk_hw *parent = ctx->parent; in clk_gate_test_parent_rate() local
153 unsigned long prate = clk_hw_get_rate(parent); in clk_gate_test_parent_rate()
162 struct clk_hw *parent = ctx->parent; in clk_gate_test_enable() local
172 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(parent)); in clk_gate_test_enable()
173 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(parent)); in clk_gate_test_enable()
179 struct clk_hw *parent = ctx->parent; in clk_gate_test_disable() local
192 KUNIT_EXPECT_FALSE(test, clk_hw_is_enabled(parent)); in clk_gate_test_disable()
193 KUNIT_EXPECT_FALSE(test, clk_hw_is_prepared(parent)); in clk_gate_test_disable()
205 struct clk_hw *parent; in clk_gate_test_init() local
210 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_test_init()
212 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_test_init()
214 hw = clk_hw_register_gate_parent_hw(NULL, "test_gate", parent, 0, in clk_gate_test_init()
219 ctx->parent = parent; in clk_gate_test_init()
229 clk_hw_unregister_fixed_rate(ctx->parent); in clk_gate_test_exit()
242 struct clk_hw *parent = ctx->parent; in clk_gate_test_invert_enable() local
252 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(parent)); in clk_gate_test_invert_enable()
253 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(parent)); in clk_gate_test_invert_enable()
259 struct clk_hw *parent = ctx->parent; in clk_gate_test_invert_disable() local
272 KUNIT_EXPECT_FALSE(test, clk_hw_is_enabled(parent)); in clk_gate_test_invert_disable()
273 KUNIT_EXPECT_FALSE(test, clk_hw_is_prepared(parent)); in clk_gate_test_invert_disable()
284 struct clk_hw *parent; in clk_gate_test_invert_init() local
289 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_test_invert_init()
291 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_test_invert_init()
294 hw = clk_hw_register_gate_parent_hw(NULL, "test_gate", parent, 0, in clk_gate_test_invert_init()
300 ctx->parent = parent; in clk_gate_test_invert_init()
315 struct clk_hw *parent = ctx->parent; in clk_gate_test_hiword_enable() local
325 KUNIT_EXPECT_TRUE(test, clk_hw_is_enabled(parent)); in clk_gate_test_hiword_enable()
326 KUNIT_EXPECT_TRUE(test, clk_hw_is_prepared(parent)); in clk_gate_test_hiword_enable()
332 struct clk_hw *parent = ctx->parent; in clk_gate_test_hiword_disable() local
345 KUNIT_EXPECT_FALSE(test, clk_hw_is_enabled(parent)); in clk_gate_test_hiword_disable()
346 KUNIT_EXPECT_FALSE(test, clk_hw_is_prepared(parent)); in clk_gate_test_hiword_disable()
357 struct clk_hw *parent; in clk_gate_test_hiword_init() local
362 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_test_hiword_init()
364 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_test_hiword_init()
366 hw = clk_hw_register_gate_parent_hw(NULL, "test_gate", parent, 0, in clk_gate_test_hiword_init()
372 ctx->parent = parent; in clk_gate_test_hiword_init()