Searched refs:clki (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/drivers/scsi/ufs/ |
D | ufshcd-pltfrm.c | 55 struct ufs_clk_info *clki; in ufshcd_parse_clock_info() local 111 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_clock_info() 112 if (!clki) { in ufshcd_parse_clock_info() 117 clki->min_freq = clkfreq[i]; in ufshcd_parse_clock_info() 118 clki->max_freq = clkfreq[i+1]; in ufshcd_parse_clock_info() 119 clki->name = kstrdup(name, GFP_KERNEL); in ufshcd_parse_clock_info() 121 clki->min_freq, clki->max_freq, clki->name); in ufshcd_parse_clock_info() 122 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
|
D | cdns-pltfrm.c | 31 struct ufs_clk_info *clki; in cdns_ufs_set_hclkdiv() local 39 list_for_each_entry(clki, head, list) { in cdns_ufs_set_hclkdiv() 40 if (IS_ERR_OR_NULL(clki->clk)) in cdns_ufs_set_hclkdiv() 42 if (!strcmp(clki->name, "core_clk")) in cdns_ufs_set_hclkdiv() 43 core_clk_rate = clk_get_rate(clki->clk); in cdns_ufs_set_hclkdiv()
|
D | ufshcd.c | 369 struct ufs_clk_info *clki; in ufshcd_print_clk_freqs() local 375 list_for_each_entry(clki, head, list) { in ufshcd_print_clk_freqs() 376 if (!IS_ERR_OR_NULL(clki->clk) && clki->min_freq && in ufshcd_print_clk_freqs() 377 clki->max_freq) in ufshcd_print_clk_freqs() 379 clki->name, clki->curr_freq); in ufshcd_print_clk_freqs() 906 struct ufs_clk_info *clki; in ufshcd_scale_clks() local 918 list_for_each_entry(clki, head, list) { in ufshcd_scale_clks() 919 if (!IS_ERR_OR_NULL(clki->clk)) { in ufshcd_scale_clks() 920 if (scale_up && clki->max_freq) { in ufshcd_scale_clks() 921 if (clki->curr_freq == clki->max_freq) in ufshcd_scale_clks() [all …]
|
D | ufs-qcom.c | 342 struct ufs_clk_info *clki; in ufs_qcom_cfg_timers() local 382 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_cfg_timers() 383 if (!strcmp(clki->name, "core_clk")) in ufs_qcom_cfg_timers() 384 core_clk_rate = clk_get_rate(clki->clk); in ufs_qcom_cfg_timers()
|
/Linux-v5.4/drivers/iio/adc/ |
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() 315 clk_disable_unprepare(adc->clki); in mcp3911_probe() [all …]
|