gck 40 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 44 drivers/clk/at91/clk-generated.c __func__, gck->gckdiv, gck->parent_id); gck 46 drivers/clk/at91/clk-generated.c spin_lock_irqsave(gck->lock, flags); gck 47 drivers/clk/at91/clk-generated.c regmap_write(gck->regmap, gck->layout->offset, gck 48 drivers/clk/at91/clk-generated.c (gck->id & gck->layout->pid_mask)); gck 49 drivers/clk/at91/clk-generated.c regmap_update_bits(gck->regmap, gck->layout->offset, gck 50 drivers/clk/at91/clk-generated.c AT91_PMC_PCR_GCKDIV_MASK | gck->layout->gckcss_mask | gck 51 drivers/clk/at91/clk-generated.c gck->layout->cmd | AT91_PMC_PCR_GCKEN, gck 52 drivers/clk/at91/clk-generated.c field_prep(gck->layout->gckcss_mask, gck->parent_id) | gck 53 drivers/clk/at91/clk-generated.c gck->layout->cmd | gck 54 drivers/clk/at91/clk-generated.c FIELD_PREP(AT91_PMC_PCR_GCKDIV_MASK, gck->gckdiv) | gck 56 drivers/clk/at91/clk-generated.c spin_unlock_irqrestore(gck->lock, flags); gck 62 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 65 drivers/clk/at91/clk-generated.c spin_lock_irqsave(gck->lock, flags); gck 66 drivers/clk/at91/clk-generated.c regmap_write(gck->regmap, gck->layout->offset, gck 67 drivers/clk/at91/clk-generated.c (gck->id & gck->layout->pid_mask)); gck 68 drivers/clk/at91/clk-generated.c regmap_update_bits(gck->regmap, gck->layout->offset, gck 69 drivers/clk/at91/clk-generated.c gck->layout->cmd | AT91_PMC_PCR_GCKEN, gck 70 drivers/clk/at91/clk-generated.c gck->layout->cmd); gck 71 drivers/clk/at91/clk-generated.c spin_unlock_irqrestore(gck->lock, flags); gck 76 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 80 drivers/clk/at91/clk-generated.c spin_lock_irqsave(gck->lock, flags); gck 81 drivers/clk/at91/clk-generated.c regmap_write(gck->regmap, gck->layout->offset, gck 82 drivers/clk/at91/clk-generated.c (gck->id & gck->layout->pid_mask)); gck 83 drivers/clk/at91/clk-generated.c regmap_read(gck->regmap, gck->layout->offset, &status); gck 84 drivers/clk/at91/clk-generated.c spin_unlock_irqrestore(gck->lock, flags); gck 93 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 95 drivers/clk/at91/clk-generated.c return DIV_ROUND_CLOSEST(parent_rate, gck->gckdiv + 1); gck 123 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 140 drivers/clk/at91/clk-generated.c (gck->range.max && min_rate > gck->range.max)) gck 164 drivers/clk/at91/clk-generated.c if (!gck->audio_pll_allowed) gck 197 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 202 drivers/clk/at91/clk-generated.c gck->parent_id = index; gck 208 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 210 drivers/clk/at91/clk-generated.c return gck->parent_id; gck 218 drivers/clk/at91/clk-generated.c struct clk_generated *gck = to_clk_generated(hw); gck 224 drivers/clk/at91/clk-generated.c if (gck->range.max && rate > gck->range.max) gck 231 drivers/clk/at91/clk-generated.c gck->gckdiv = div - 1; gck 255 drivers/clk/at91/clk-generated.c static void clk_generated_startup(struct clk_generated *gck) gck 260 drivers/clk/at91/clk-generated.c spin_lock_irqsave(gck->lock, flags); gck 261 drivers/clk/at91/clk-generated.c regmap_write(gck->regmap, gck->layout->offset, gck 262 drivers/clk/at91/clk-generated.c (gck->id & gck->layout->pid_mask)); gck 263 drivers/clk/at91/clk-generated.c regmap_read(gck->regmap, gck->layout->offset, &tmp); gck 264 drivers/clk/at91/clk-generated.c spin_unlock_irqrestore(gck->lock, flags); gck 266 drivers/clk/at91/clk-generated.c gck->parent_id = field_get(gck->layout->gckcss_mask, tmp); gck 267 drivers/clk/at91/clk-generated.c gck->gckdiv = FIELD_GET(AT91_PMC_PCR_GCKDIV_MASK, tmp); gck 277 drivers/clk/at91/clk-generated.c struct clk_generated *gck; gck 282 drivers/clk/at91/clk-generated.c gck = kzalloc(sizeof(*gck), GFP_KERNEL); gck 283 drivers/clk/at91/clk-generated.c if (!gck) gck 293 drivers/clk/at91/clk-generated.c gck->id = id; gck 294 drivers/clk/at91/clk-generated.c gck->hw.init = &init; gck 295 drivers/clk/at91/clk-generated.c gck->regmap = regmap; gck 296 drivers/clk/at91/clk-generated.c gck->lock = lock; gck 297 drivers/clk/at91/clk-generated.c gck->range = *range; gck 298 drivers/clk/at91/clk-generated.c gck->audio_pll_allowed = pll_audio; gck 299 drivers/clk/at91/clk-generated.c gck->layout = layout; gck 301 drivers/clk/at91/clk-generated.c clk_generated_startup(gck); gck 302 drivers/clk/at91/clk-generated.c hw = &gck->hw; gck 303 drivers/clk/at91/clk-generated.c ret = clk_hw_register(NULL, &gck->hw); gck 305 drivers/clk/at91/clk-generated.c kfree(gck); gck 35 drivers/mmc/host/sdhci-of-at91.c struct clk *gck; gck 166 drivers/mmc/host/sdhci-of-at91.c ret = clk_set_rate(priv->gck, gck_rate); gck 178 drivers/mmc/host/sdhci-of-at91.c real_gck_rate = clk_get_rate(priv->gck); gck 217 drivers/mmc/host/sdhci-of-at91.c clk_prepare_enable(priv->gck); gck 251 drivers/mmc/host/sdhci-of-at91.c clk_disable_unprepare(priv->gck); gck 286 drivers/mmc/host/sdhci-of-at91.c ret = clk_prepare_enable(priv->gck); gck 339 drivers/mmc/host/sdhci-of-at91.c priv->gck = devm_clk_get(&pdev->dev, "multclk"); gck 340 drivers/mmc/host/sdhci-of-at91.c if (IS_ERR(priv->gck)) { gck 342 drivers/mmc/host/sdhci-of-at91.c ret = PTR_ERR(priv->gck); gck 417 drivers/mmc/host/sdhci-of-at91.c clk_disable_unprepare(priv->gck); gck 430 drivers/mmc/host/sdhci-of-at91.c struct clk *gck = priv->gck; gck 440 drivers/mmc/host/sdhci-of-at91.c clk_disable_unprepare(gck);