Lines Matching refs:init
854 struct clk_init_data init;
882 memset(&init, 0, sizeof(init));
886 parent_names[init.num_parents++] = __clk_get_name(vc5->pin_xin);
894 parent_names[init.num_parents++] = __clk_get_name(vc5->pin_xin);
899 parent_names[init.num_parents++] =
903 if (!init.num_parents) {
908 init.name = kasprintf(GFP_KERNEL, "%pOFn.mux", client->dev.of_node);
909 if (!init.name) {
914 init.ops = &vc5_mux_ops;
915 init.flags = 0;
916 init.parent_names = parent_names;
917 vc5->clk_mux.init = &init;
921 kfree(init.name); /* clock framework made a copy of the name */
925 memset(&init, 0, sizeof(init));
926 init.name = kasprintf(GFP_KERNEL, "%pOFn.dbl",
928 if (!init.name) {
932 init.ops = &vc5_dbl_ops;
933 init.flags = CLK_SET_RATE_PARENT;
934 init.parent_names = parent_names;
936 init.num_parents = 1;
937 vc5->clk_mul.init = &init;
941 kfree(init.name); /* clock framework made a copy of the name */
945 memset(&init, 0, sizeof(init));
946 init.name = kasprintf(GFP_KERNEL, "%pOFn.pfd", client->dev.of_node);
947 if (!init.name) {
951 init.ops = &vc5_pfd_ops;
952 init.flags = CLK_SET_RATE_PARENT;
953 init.parent_names = parent_names;
958 init.num_parents = 1;
959 vc5->clk_pfd.init = &init;
963 kfree(init.name); /* clock framework made a copy of the name */
966 memset(&init, 0, sizeof(init));
967 init.name = kasprintf(GFP_KERNEL, "%pOFn.pll", client->dev.of_node);
968 if (!init.name) {
972 init.ops = &vc5_pll_ops;
973 init.flags = CLK_SET_RATE_PARENT;
974 init.parent_names = parent_names;
976 init.num_parents = 1;
979 vc5->clk_pll.hw.init = &init;
983 kfree(init.name); /* clock framework made a copy of the name */
988 memset(&init, 0, sizeof(init));
989 init.name = kasprintf(GFP_KERNEL, "%pOFn.fod%d",
991 if (!init.name) {
995 init.ops = &vc5_fod_ops;
996 init.flags = CLK_SET_RATE_PARENT;
997 init.parent_names = parent_names;
999 init.num_parents = 1;
1002 vc5->clk_fod[n].hw.init = &init;
1006 kfree(init.name); /* clock framework made a copy of the name */
1010 memset(&init, 0, sizeof(init));
1011 init.name = kasprintf(GFP_KERNEL, "%pOFn.out0_sel_i2cb",
1013 if (!init.name) {
1017 init.ops = &vc5_clk_out_ops;
1018 init.flags = CLK_SET_RATE_PARENT;
1019 init.parent_names = parent_names;
1021 init.num_parents = 1;
1024 vc5->clk_out[0].hw.init = &init;
1028 kfree(init.name); /* clock framework made a copy of the name */
1040 memset(&init, 0, sizeof(init));
1041 init.name = kasprintf(GFP_KERNEL, "%pOFn.out%d",
1043 if (!init.name) {
1047 init.ops = &vc5_clk_out_ops;
1048 init.flags = CLK_SET_RATE_PARENT;
1049 init.parent_names = parent_names;
1050 init.num_parents = 2;
1053 vc5->clk_out[n].hw.init = &init;
1057 kfree(init.name); /* clock framework made a copy of the name */
1074 dev_err(&client->dev, "unable to register %s\n", init.name);
1075 kfree(init.name); /* clock framework made a copy of the name */