Lines Matching refs:smd
29 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_recalc_rate() local
33 regmap_read(smd->regmap, AT91_PMC_SMD, &smdr); in at91sam9x5_clk_smd_recalc_rate()
63 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_set_parent() local
68 regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMDS, in at91sam9x5_clk_smd_set_parent()
76 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_get_parent() local
79 regmap_read(smd->regmap, AT91_PMC_SMD, &smdr); in at91sam9x5_clk_smd_get_parent()
87 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_set_rate() local
93 regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMD_DIV, in at91sam9x5_clk_smd_set_rate()
111 struct at91sam9x5_clk_smd *smd; in at91sam9x5_clk_register_smd() local
116 smd = kzalloc(sizeof(*smd), GFP_KERNEL); in at91sam9x5_clk_register_smd()
117 if (!smd) in at91sam9x5_clk_register_smd()
126 smd->hw.init = &init; in at91sam9x5_clk_register_smd()
127 smd->regmap = regmap; in at91sam9x5_clk_register_smd()
129 hw = &smd->hw; in at91sam9x5_clk_register_smd()
130 ret = clk_hw_register(NULL, &smd->hw); in at91sam9x5_clk_register_smd()
132 kfree(smd); in at91sam9x5_clk_register_smd()