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