Searched refs:clki (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/drivers/ufs/host/ |
D | ufshcd-pltfrm.c | 31 struct ufs_clk_info *clki; in ufshcd_parse_clock_info() local 87 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_clock_info() 88 if (!clki) { in ufshcd_parse_clock_info() 93 clki->min_freq = clkfreq[i]; in ufshcd_parse_clock_info() 94 clki->max_freq = clkfreq[i+1]; in ufshcd_parse_clock_info() 95 clki->name = devm_kstrdup(dev, name, GFP_KERNEL); in ufshcd_parse_clock_info() 96 if (!clki->name) { in ufshcd_parse_clock_info() 102 clki->keep_link_active = true; in ufshcd_parse_clock_info() 104 clki->min_freq, clki->max_freq, clki->name); in ufshcd_parse_clock_info() 105 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
|
D | ufs-mediatek.c | 753 struct ufs_clk_info *clki, *clki_tmp; in ufs_mtk_init_clocks() local 760 list_for_each_entry_safe(clki, clki_tmp, head, list) { in ufs_mtk_init_clocks() 761 if (!strcmp(clki->name, "ufs_sel")) { in ufs_mtk_init_clocks() 762 host->mclk.ufs_sel_clki = clki; in ufs_mtk_init_clocks() 763 } else if (!strcmp(clki->name, "ufs_sel_max_src")) { in ufs_mtk_init_clocks() 764 host->mclk.ufs_sel_max_clki = clki; in ufs_mtk_init_clocks() 765 clk_disable_unprepare(clki->clk); in ufs_mtk_init_clocks() 766 list_del(&clki->list); in ufs_mtk_init_clocks() 767 } else if (!strcmp(clki->name, "ufs_sel_min_src")) { in ufs_mtk_init_clocks() 768 host->mclk.ufs_sel_min_clki = clki; in ufs_mtk_init_clocks() [all …]
|
D | cdns-pltfrm.c | 111 struct ufs_clk_info *clki; in cdns_ufs_set_hclkdiv() local 119 list_for_each_entry(clki, head, list) { in cdns_ufs_set_hclkdiv() 120 if (IS_ERR_OR_NULL(clki->clk)) in cdns_ufs_set_hclkdiv() 122 if (!strcmp(clki->name, "core_clk")) in cdns_ufs_set_hclkdiv() 123 core_clk_rate = clk_get_rate(clki->clk); in cdns_ufs_set_hclkdiv()
|
D | ufs-qcom.c | 538 struct ufs_clk_info *clki; in ufs_qcom_cfg_timers() local 578 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_cfg_timers() 579 if (!strcmp(clki->name, "core_clk")) in ufs_qcom_cfg_timers() 580 core_clk_rate = clk_get_rate(clki->clk); in ufs_qcom_cfg_timers() 1180 struct ufs_clk_info *clki; in ufs_qcom_init() local 1253 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_init() 1254 if (!strcmp(clki->name, "core_clk_unipro")) in ufs_qcom_init() 1255 clki->keep_link_active = true; in ufs_qcom_init()
|
D | ufs-exynos.c | 417 struct ufs_clk_info *clki; in exynos_ufs_get_clk_info() local 426 list_for_each_entry(clki, head, list) { in exynos_ufs_get_clk_info() 427 if (!IS_ERR(clki->clk)) { in exynos_ufs_get_clk_info() 428 if (!strcmp(clki->name, "core_clk")) in exynos_ufs_get_clk_info() 429 ufs->clk_hci_core = clki->clk; in exynos_ufs_get_clk_info() 430 else if (!strcmp(clki->name, "sclk_unipro_main")) in exynos_ufs_get_clk_info() 431 ufs->clk_unipro_main = clki->clk; in exynos_ufs_get_clk_info()
|
/linux-6.6.21/drivers/iio/adc/ |
D | mcp3911.c | 74 struct clk *clki; member 421 if (adc->clki) { in mcp3911_config() 502 adc->clki = devm_clk_get_enabled(&adc->spi->dev, NULL); in mcp3911_probe() 503 if (IS_ERR(adc->clki)) { in mcp3911_probe() 504 if (PTR_ERR(adc->clki) == -ENOENT) { in mcp3911_probe() 505 adc->clki = NULL; in mcp3911_probe() 509 PTR_ERR(adc->clki)); in mcp3911_probe() 510 return PTR_ERR(adc->clki); in mcp3911_probe()
|
/linux-6.6.21/drivers/ufs/core/ |
D | ufshcd.c | 456 struct ufs_clk_info *clki; in ufshcd_print_clk_freqs() local 462 list_for_each_entry(clki, head, list) { in ufshcd_print_clk_freqs() 463 if (!IS_ERR_OR_NULL(clki->clk) && clki->min_freq && in ufshcd_print_clk_freqs() 464 clki->max_freq) in ufshcd_print_clk_freqs() 466 clki->name, clki->curr_freq); in ufshcd_print_clk_freqs() 1013 struct ufs_clk_info *clki; in ufshcd_set_clk_freq() local 1019 list_for_each_entry(clki, head, list) { in ufshcd_set_clk_freq() 1020 if (!IS_ERR_OR_NULL(clki->clk)) { in ufshcd_set_clk_freq() 1021 if (scale_up && clki->max_freq) { in ufshcd_set_clk_freq() 1022 if (clki->curr_freq == clki->max_freq) in ufshcd_set_clk_freq() [all …]
|