Lines Matching refs:init
947 struct clk_init_data init;
1000 memset(&init, 0, sizeof(init));
1004 parent_names[init.num_parents++] = __clk_get_name(vc5->pin_xin);
1012 parent_names[init.num_parents++] = __clk_get_name(vc5->pin_xin);
1017 parent_names[init.num_parents++] =
1021 if (!init.num_parents)
1032 init.name = kasprintf(GFP_KERNEL, "%pOFn.mux", client->dev.of_node);
1033 if (!init.name) {
1038 init.ops = &vc5_mux_ops;
1039 init.flags = 0;
1040 init.parent_names = parent_names;
1041 vc5->clk_mux.init = &init;
1045 kfree(init.name); /* clock framework made a copy of the name */
1049 memset(&init, 0, sizeof(init));
1050 init.name = kasprintf(GFP_KERNEL, "%pOFn.dbl",
1052 if (!init.name) {
1056 init.ops = &vc5_dbl_ops;
1057 init.flags = CLK_SET_RATE_PARENT;
1058 init.parent_names = parent_names;
1060 init.num_parents = 1;
1061 vc5->clk_mul.init = &init;
1065 kfree(init.name); /* clock framework made a copy of the name */
1069 memset(&init, 0, sizeof(init));
1070 init.name = kasprintf(GFP_KERNEL, "%pOFn.pfd", client->dev.of_node);
1071 if (!init.name) {
1075 init.ops = &vc5_pfd_ops;
1076 init.flags = CLK_SET_RATE_PARENT;
1077 init.parent_names = parent_names;
1082 init.num_parents = 1;
1083 vc5->clk_pfd.init = &init;
1087 kfree(init.name); /* clock framework made a copy of the name */
1090 memset(&init, 0, sizeof(init));
1091 init.name = kasprintf(GFP_KERNEL, "%pOFn.pll", client->dev.of_node);
1092 if (!init.name) {
1096 init.ops = &vc5_pll_ops;
1097 init.flags = CLK_SET_RATE_PARENT;
1098 init.parent_names = parent_names;
1100 init.num_parents = 1;
1103 vc5->clk_pll.hw.init = &init;
1107 kfree(init.name); /* clock framework made a copy of the name */
1112 memset(&init, 0, sizeof(init));
1113 init.name = kasprintf(GFP_KERNEL, "%pOFn.fod%d",
1115 if (!init.name) {
1119 init.ops = &vc5_fod_ops;
1120 init.flags = CLK_SET_RATE_PARENT;
1121 init.parent_names = parent_names;
1123 init.num_parents = 1;
1126 vc5->clk_fod[n].hw.init = &init;
1130 kfree(init.name); /* clock framework made a copy of the name */
1134 memset(&init, 0, sizeof(init));
1135 init.name = kasprintf(GFP_KERNEL, "%pOFn.out0_sel_i2cb",
1137 if (!init.name) {
1141 init.ops = &vc5_clk_out_ops;
1142 init.flags = CLK_SET_RATE_PARENT;
1143 init.parent_names = parent_names;
1145 init.num_parents = 1;
1148 vc5->clk_out[0].hw.init = &init;
1152 kfree(init.name); /* clock framework made a copy of the name */
1164 memset(&init, 0, sizeof(init));
1165 init.name = kasprintf(GFP_KERNEL, "%pOFn.out%d",
1167 if (!init.name) {
1171 init.ops = &vc5_clk_out_ops;
1172 init.flags = CLK_SET_RATE_PARENT;
1173 init.parent_names = parent_names;
1174 init.num_parents = 2;
1177 vc5->clk_out[n].hw.init = &init;
1181 kfree(init.name); /* clock framework made a copy of the name */
1200 "unable to register %s\n", init.name);
1201 kfree(init.name); /* clock framework made a copy of the name */