Lines Matching refs:smd
36 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_recalc_rate() local
40 regmap_read(smd->regmap, AT91_PMC_SMD, &smdr); in at91sam9x5_clk_smd_recalc_rate()
70 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_set_parent() local
75 regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMDS, in at91sam9x5_clk_smd_set_parent()
83 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_get_parent() local
86 regmap_read(smd->regmap, AT91_PMC_SMD, &smdr); in at91sam9x5_clk_smd_get_parent()
94 struct at91sam9x5_clk_smd *smd = to_at91sam9x5_clk_smd(hw); in at91sam9x5_clk_smd_set_rate() local
100 regmap_update_bits(smd->regmap, AT91_PMC_SMD, AT91_PMC_SMD_DIV, in at91sam9x5_clk_smd_set_rate()
118 struct at91sam9x5_clk_smd *smd; in at91sam9x5_clk_register_smd() local
123 smd = kzalloc(sizeof(*smd), GFP_KERNEL); in at91sam9x5_clk_register_smd()
124 if (!smd) in at91sam9x5_clk_register_smd()
133 smd->hw.init = &init; in at91sam9x5_clk_register_smd()
134 smd->regmap = regmap; in at91sam9x5_clk_register_smd()
136 hw = &smd->hw; in at91sam9x5_clk_register_smd()
137 ret = clk_hw_register(NULL, &smd->hw); in at91sam9x5_clk_register_smd()
139 kfree(smd); in at91sam9x5_clk_register_smd()