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()
68 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_set_parent() local
73 regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMDS, in at91sam9x5_clk_smd_set_parent()
81 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_get_parent() local
84 regmap_read(smd->regmap, AT91_PMC_SMD, &smdr); in at91sam9x5_clk_smd_get_parent()
92 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_set_rate() local
98 regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMD_DIV, in at91sam9x5_clk_smd_set_rate()
116 struct at91sam9x5_clk_smd *smd; in at91sam9x5_clk_register_smd() local
121 smd = kzalloc(sizeof(*smd), GFP_KERNEL); in at91sam9x5_clk_register_smd()
122 if (!smd) in at91sam9x5_clk_register_smd()
131 smd->hw.init = &init; in at91sam9x5_clk_register_smd()
132 smd->regmap = regmap; in at91sam9x5_clk_register_smd()
134 hw = &smd->hw; in at91sam9x5_clk_register_smd()
135 ret = clk_hw_register(NULL, &smd->hw); in at91sam9x5_clk_register_smd()
137 kfree(smd); in at91sam9x5_clk_register_smd()