Searched refs:clki (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/scsi/ufs/ |
A D | ufshcd-pltfrm.c | 30 struct ufs_clk_info *clki; in ufshcd_parse_clock_info() local 86 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_clock_info() 87 if (!clki) { in ufshcd_parse_clock_info() 92 clki->min_freq = clkfreq[i]; in ufshcd_parse_clock_info() 93 clki->max_freq = clkfreq[i+1]; in ufshcd_parse_clock_info() 94 clki->name = devm_kstrdup(dev, name, GFP_KERNEL); in ufshcd_parse_clock_info() 96 clki->keep_link_active = true; in ufshcd_parse_clock_info() 98 clki->min_freq, clki->max_freq, clki->name); in ufshcd_parse_clock_info() 99 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
|
A 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()
|
A D | ufshcd.c | 421 clki->name, clki->curr_freq); in ufshcd_print_clk_freqs() 964 if (clki->curr_freq == clki->max_freq) in ufshcd_set_clk_freq() 979 clki->curr_freq = clki->max_freq; in ufshcd_set_clk_freq() 982 if (clki->curr_freq == clki->min_freq) in ufshcd_set_clk_freq() 996 clki->curr_freq = clki->min_freq; in ufshcd_set_clk_freq() 1000 clki->name, clk_get_rate(clki->clk)); in ufshcd_set_clk_freq() 1058 if (clki->curr_freq == clki->max_freq) in ufshcd_is_devfreq_scaling_required() 1062 if (clki->curr_freq == clki->min_freq) in ufshcd_is_devfreq_scaling_required() 8451 clki->clk = devm_clk_get(dev, clki->name); in ufshcd_init_clocks() 8475 clki->curr_freq = clki->max_freq; in ufshcd_init_clocks() [all …]
|
A D | ufs-qcom.c | 396 struct ufs_clk_info *clki; in ufs_qcom_cfg_timers() local 436 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_cfg_timers() 437 if (!strcmp(clki->name, "core_clk")) in ufs_qcom_cfg_timers() 438 core_clk_rate = clk_get_rate(clki->clk); in ufs_qcom_cfg_timers() 989 struct ufs_clk_info *clki; in ufs_qcom_init() local 1083 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_init() 1084 if (!strcmp(clki->name, "core_clk_unipro")) in ufs_qcom_init() 1085 clki->keep_link_active = true; in ufs_qcom_init()
|
A D | ufs-exynos.c | 422 struct ufs_clk_info *clki; in exynos_ufs_get_clk_info() local 431 list_for_each_entry(clki, head, list) { in exynos_ufs_get_clk_info() 432 if (!IS_ERR(clki->clk)) { in exynos_ufs_get_clk_info() 433 if (!strcmp(clki->name, "core_clk")) in exynos_ufs_get_clk_info() 434 ufs->clk_hci_core = clki->clk; in exynos_ufs_get_clk_info() 435 else if (!strcmp(clki->name, "sclk_unipro_main")) in exynos_ufs_get_clk_info() 436 ufs->clk_unipro_main = clki->clk; in exynos_ufs_get_clk_info()
|
/linux/drivers/iio/adc/ |
A D | mcp3911.c | 53 struct clk *clki; member 230 if (adc->clki) { in mcp3911_config() 272 adc->clki = devm_clk_get(&adc->spi->dev, NULL); in mcp3911_probe() 273 if (IS_ERR(adc->clki)) { in mcp3911_probe() 274 if (PTR_ERR(adc->clki) == -ENOENT) { in mcp3911_probe() 275 adc->clki = NULL; in mcp3911_probe() 279 PTR_ERR(adc->clki)); in mcp3911_probe() 280 ret = PTR_ERR(adc->clki); in mcp3911_probe() 284 ret = clk_prepare_enable(adc->clki); in mcp3911_probe() 313 clk_disable_unprepare(adc->clki); in mcp3911_probe() [all …]
|
Completed in 31 milliseconds