Home
last modified time | relevance | path

Searched refs:clk_id (Results 1 – 25 of 217) sorted by relevance

123456789

/Linux-v4.19/drivers/clk/keystone/
Dsci-clk.c59 u8 clk_id; member
81 clk->clk_id, enable_ssc, in sci_clk_prepare()
98 clk->clk_id); in sci_clk_unprepare()
102 clk->dev_id, clk->clk_id, ret); in sci_clk_unprepare()
119 clk->clk_id, &req_state, in sci_clk_is_prepared()
124 clk->dev_id, clk->clk_id, ret); in sci_clk_is_prepared()
147 clk->clk_id, &freq); in sci_clk_recalc_rate()
151 clk->dev_id, clk->clk_id, ret); in sci_clk_recalc_rate()
177 clk->clk_id, in sci_clk_determine_rate()
185 clk->dev_id, clk->clk_id, ret); in sci_clk_determine_rate()
[all …]
/Linux-v4.19/drivers/soc/mediatek/
Dmtk-scpsys.c89 enum clk_id { enum
126 enum clk_id clk_id[MAX_CLKS]; member
426 for (j = 0; j < MAX_CLKS && data->clk_id[j]; j++) { in init_scp()
427 struct clk *c = clk[data->clk_id[j]]; in init_scp()
493 .clk_id = {CLK_NONE},
501 .clk_id = {CLK_MM},
511 .clk_id = {CLK_MFG},
520 .clk_id = {CLK_MM},
529 .clk_id = {CLK_MM},
537 .clk_id = {CLK_NONE},
[all …]
/Linux-v4.19/drivers/firmware/arm_scmi/
Dclock.c98 u32 clk_id, struct scmi_clock_info *clk) in scmi_clock_attributes_get() argument
105 sizeof(clk_id), sizeof(*attr), &t); in scmi_clock_attributes_get()
109 *(__le32 *)t->tx.buf = cpu_to_le32(clk_id); in scmi_clock_attributes_get()
123 scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id, in scmi_clock_describe_rates_get() argument
144 clk_desc->id = cpu_to_le32(clk_id); in scmi_clock_describe_rates_get()
194 scmi_clock_rate_get(const struct scmi_handle *handle, u32 clk_id, u64 *value) in scmi_clock_rate_get() argument
204 *(__le32 *)t->tx.buf = cpu_to_le32(clk_id); in scmi_clock_rate_get()
218 static int scmi_clock_rate_set(const struct scmi_handle *handle, u32 clk_id, in scmi_clock_rate_set() argument
232 cfg->id = cpu_to_le32(clk_id); in scmi_clock_rate_set()
243 scmi_clock_config_set(const struct scmi_handle *handle, u32 clk_id, u32 config) in scmi_clock_config_set() argument
[all …]
/Linux-v4.19/drivers/firmware/
Dti_sci.h225 u8 clk_id; member
246 u8 clk_id; member
284 u8 clk_id; member
301 u8 clk_id; member
332 u8 clk_id; member
375 u8 clk_id; member
431 u8 clk_id; member
449 u8 clk_id; member
Dti_sci.c916 u32 dev_id, u8 clk_id, in ti_sci_set_clock_state() argument
944 req->clk_id = clk_id; in ti_sci_set_clock_state()
976 u32 dev_id, u8 clk_id, in ti_sci_cmd_get_clock_state() argument
1007 req->clk_id = clk_id; in ti_sci_cmd_get_clock_state()
1047 u8 clk_id, bool needs_ssc, bool can_change_freq, in ti_sci_cmd_get_clock() argument
1056 return ti_sci_set_clock_state(handle, dev_id, clk_id, flags, in ti_sci_cmd_get_clock()
1073 u32 dev_id, u8 clk_id) in ti_sci_cmd_idle_clock() argument
1075 return ti_sci_set_clock_state(handle, dev_id, clk_id, 0, in ti_sci_cmd_idle_clock()
1092 u32 dev_id, u8 clk_id) in ti_sci_cmd_put_clock() argument
1094 return ti_sci_set_clock_state(handle, dev_id, clk_id, 0, in ti_sci_cmd_put_clock()
[all …]
Darm_scpi.c543 scpi_clk_get_range(u16 clk_id, unsigned long *min, unsigned long *max) in scpi_clk_get_range() argument
547 __le16 le_clk_id = cpu_to_le16(clk_id); in scpi_clk_get_range()
558 static unsigned long scpi_clk_get_val(u16 clk_id) in scpi_clk_get_val() argument
562 __le16 le_clk_id = cpu_to_le16(clk_id); in scpi_clk_get_val()
570 static int scpi_clk_set_val(u16 clk_id, unsigned long rate) in scpi_clk_set_val() argument
574 .id = cpu_to_le16(clk_id), in scpi_clk_set_val()
582 static int legacy_scpi_clk_set_val(u16 clk_id, unsigned long rate) in legacy_scpi_clk_set_val() argument
586 .id = cpu_to_le16(clk_id), in legacy_scpi_clk_set_val()
/Linux-v4.19/sound/soc/omap/
Domap-dmic.c283 static int omap_dmic_select_fclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_fclk() argument
302 if (dmic->sysclk == clk_id) { in omap_dmic_select_fclk()
313 switch (clk_id) { in omap_dmic_select_fclk()
324 dev_err(dmic->dev, "fclk clk_id (%d) not supported\n", clk_id); in omap_dmic_select_fclk()
357 dmic->sysclk = clk_id; in omap_dmic_select_fclk()
367 static int omap_dmic_select_outclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_outclk() argument
372 if (clk_id != OMAP_DMIC_ABE_DMIC_CLK) { in omap_dmic_select_outclk()
374 clk_id); in omap_dmic_select_outclk()
394 static int omap_dmic_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in omap_dmic_set_dai_sysclk() argument
400 return omap_dmic_select_fclk(dmic, clk_id, freq); in omap_dmic_set_dai_sysclk()
[all …]
Domap-abe-twl6040.c52 int clk_id, freq; in omap_abe_hw_params() local
55 clk_id = twl6040_get_clk_id(codec_dai->component); in omap_abe_hw_params()
56 if (clk_id == TWL6040_SYSCLK_SEL_HPPLL) in omap_abe_hw_params()
58 else if (clk_id == TWL6040_SYSCLK_SEL_LPPLL) in omap_abe_hw_params()
64 ret = snd_soc_dai_set_sysclk(codec_dai, clk_id, freq, in omap_abe_hw_params()
/Linux-v4.19/drivers/clk/tegra/
Dclk.c241 for (; dup_list->clk_id < clk_max; dup_list++) { in tegra_init_dup_clks()
242 clk = clks[dup_list->clk_id]; in tegra_init_dup_clks()
253 for (; tbl->clk_id < clk_max; tbl++) { in tegra_init_from_table()
254 clk = clks[tbl->clk_id]; in tegra_init_from_table()
257 __func__, PTR_ERR(clk), tbl->clk_id); in tegra_init_from_table()
350 struct clk ** __init tegra_lookup_dt_id(int clk_id, in tegra_lookup_dt_id() argument
353 if (tegra_clk[clk_id].present) in tegra_lookup_dt_id()
354 return &clks[tegra_clk[clk_id].dt_id]; in tegra_lookup_dt_id()
Dclk-tegra-audio.c46 int clk_id; member
54 .clk_id = tegra_clk_ ## _name,\
79 int clk_id; member
90 .clk_id = tegra_clk_ ## _name ## _2x,\
194 dt_clk = tegra_lookup_dt_id(info->clk_id, tegra_clks); in tegra_audio_clk_init()
220 dt_clk = tegra_lookup_dt_id(data->clk_id, tegra_clks); in tegra_audio_clk_init()
245 dt_clk = tegra_lookup_dt_id(data->clk_id, tegra_clks); in tegra_audio_clk_init()
Dclk.h344 int clk_id; member
622 int clk_id; member
642 .clk_id = _clk_id, \
743 unsigned int clk_id; member
755 int clk_id; member
761 .clk_id = _clk_id, \
791 struct clk **tegra_lookup_dt_id(int clk_id, struct tegra_clk *tegra_clk);
/Linux-v4.19/sound/soc/codecs/
Dadav80x.c538 int clk_id, int source, in adav80x_set_sysclk() argument
545 switch (clk_id) { in adav80x_set_sysclk()
558 if (adav80x->clk_src != clk_id) { in adav80x_set_sysclk()
561 adav80x->clk_src = clk_id; in adav80x_set_sysclk()
562 if (clk_id == ADAV80X_CLK_XTAL) in adav80x_set_sysclk()
563 clk_id = ADAV80X_CLK_XIN; in adav80x_set_sysclk()
565 iclk_ctrl1 = ADAV80X_ICLK_CTRL1_DAC_SRC(clk_id) | in adav80x_set_sysclk()
566 ADAV80X_ICLK_CTRL1_ADC_SRC(clk_id) | in adav80x_set_sysclk()
567 ADAV80X_ICLK_CTRL1_ICLK2_SRC(clk_id); in adav80x_set_sysclk()
568 iclk_ctrl2 = ADAV80X_ICLK_CTRL2_ICLK1_SRC(clk_id); in adav80x_set_sysclk()
[all …]
Dmc13783.c255 int clk_id, unsigned int freq, int dir, in mc13783_set_sysclk() argument
273 if (clk_id == MC13783_CLK_CLIB) in mc13783_set_sysclk()
284 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_dac() argument
286 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_dac()
290 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_codec() argument
292 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_codec()
296 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_sync() argument
300 ret = mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_sync()
304 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_sync()
Dtas2552.c401 static int tas2552_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in tas2552_set_dai_sysclk() argument
408 switch (clk_id) { in tas2552_set_dai_sysclk()
415 clk_id = TAS2552_PLL_CLKIN_BCLK; in tas2552_set_dai_sysclk()
422 val = (clk_id << 3) & mask; /* bit 4:5 in the register */ in tas2552_set_dai_sysclk()
424 tas2552->pll_clk_id = clk_id; in tas2552_set_dai_sysclk()
432 val = (clk_id >> 1) & mask; /* bit 0:1 in the register */ in tas2552_set_dai_sysclk()
434 tas2552->pdm_clk_id = clk_id; in tas2552_set_dai_sysclk()
438 dev_err(component->dev, "Invalid clk id: %d\n", clk_id); in tas2552_set_dai_sysclk()
Dwm8960.c135 int clk_id; member
758 if (wm8960->clk_id != WM8960_SYSCLK_MCLK && !wm8960->freq_in) { in wm8960_configure_clocking()
770 if (wm8960->clk_id == WM8960_SYSCLK_AUTO) { in wm8960_configure_clocking()
781 if (wm8960->clk_id != WM8960_SYSCLK_PLL) { in wm8960_configure_clocking()
785 } else if (wm8960->clk_id != WM8960_SYSCLK_AUTO) { in wm8960_configure_clocking()
933 if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1)) in wm8960_set_bias_level_out3()
1054 if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1)) in wm8960_set_bias_level_capless()
1286 static int wm8960_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in wm8960_set_dai_sysclk() argument
1292 switch (clk_id) { in wm8960_set_dai_sysclk()
1308 wm8960->clk_id = clk_id; in wm8960_set_dai_sysclk()
Dcpcap.c950 int clk_id, int freq) in cpcap_set_sysclk() argument
977 if (clk_id < 0 || clk_id > 1) { in cpcap_set_sysclk()
978 dev_err(cpcap->component->dev, "invalid clk id %d", clk_id); in cpcap_set_sysclk()
982 clk_id ? BIT(clkidshift) : 0); in cpcap_set_sysclk()
1028 cpcap->codec_clk_id = clk_id; in cpcap_set_sysclk()
1126 static int cpcap_hifi_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, in cpcap_hifi_set_dai_sysclk() argument
1133 dev_dbg(dev, "HiFi setup sysclk: clk_id=%u, freq=%u", clk_id, freq); in cpcap_hifi_set_dai_sysclk()
1134 return cpcap_set_sysclk(cpcap, CPCAP_DAI_HIFI, clk_id, freq); in cpcap_hifi_set_dai_sysclk()
1283 static int cpcap_voice_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, in cpcap_voice_set_dai_sysclk() argument
1290 clk_id, freq); in cpcap_voice_set_dai_sysclk()
[all …]
Drt286.c49 int clk_id; member
341 if (rt286->clk_id == RT286_SCLK_S_MCLK) in is_mclk_mode()
804 int clk_id, unsigned int freq, int dir) in rt286_set_dai_sysclk() argument
811 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk()
827 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk()
835 if (RT286_SCLK_S_MCLK == clk_id) { in rt286_set_dai_sysclk()
862 rt286->clk_id = clk_id; in rt286_set_dai_sysclk()
Drt298.c48 int clk_id; member
367 if (rt298->clk_id == RT298_SCLK_S_MCLK) in is_mclk_mode()
873 int clk_id, unsigned int freq, int dir) in rt298_set_dai_sysclk() argument
880 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk()
894 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk()
902 if (RT298_SCLK_S_MCLK == clk_id) { in rt298_set_dai_sysclk()
929 rt298->clk_id = clk_id; in rt298_set_dai_sysclk()
Drt274.c46 int clk_id; member
797 int clk_id, unsigned int freq, int dir) in rt274_set_dai_sysclk() argument
805 switch (clk_id) { in rt274_set_dai_sysclk()
831 if (clk_id == RT274_SCLK_S_MCLK) { in rt274_set_dai_sysclk()
839 if (clk_id == RT274_SCLK_S_MCLK) { in rt274_set_dai_sysclk()
862 rt274->clk_id = clk_id; in rt274_set_dai_sysclk()
/Linux-v4.19/drivers/base/regmap/
Dregmap-mmio.c224 const char *clk_id, in regmap_mmio_gen_context() argument
311 if (clk_id == NULL) in regmap_mmio_gen_context()
314 ctx->clk = clk_get(dev, clk_id); in regmap_mmio_gen_context()
334 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id, in __regmap_init_mmio_clk() argument
342 ctx = regmap_mmio_gen_context(dev, clk_id, regs, config); in __regmap_init_mmio_clk()
352 const char *clk_id, in __devm_regmap_init_mmio_clk() argument
360 ctx = regmap_mmio_gen_context(dev, clk_id, regs, config); in __devm_regmap_init_mmio_clk()
/Linux-v4.19/include/linux/
Dscmi_protocol.h70 (const struct scmi_handle *handle, u32 clk_id);
71 int (*rate_get)(const struct scmi_handle *handle, u32 clk_id,
73 int (*rate_set)(const struct scmi_handle *handle, u32 clk_id,
75 int (*enable)(const struct scmi_handle *handle, u32 clk_id);
76 int (*disable)(const struct scmi_handle *handle, u32 clk_id);
/Linux-v4.19/tools/testing/selftests/seccomp/
Dseccomp_benchmark.c19 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument
26 assert(clock_gettime(clk_id, &start) == 0); in timing()
31 assert(clock_gettime(clk_id, &finish) == 0); in timing()
/Linux-v4.19/arch/nds32/kernel/vdso/
Dgettimeofday.c196 register clockid_t clk_id asm("$r0") = _clk_id; in clock_getres_fallback()
203 :"r"(clk_id), "r"(res), "i"(__NR_clock_getres) in clock_getres_fallback()
209 notrace int __vdso_clock_getres(clockid_t clk_id, struct timespec *res) in __vdso_clock_getres() argument
213 switch (clk_id) { in __vdso_clock_getres()
226 return clock_getres_fallback(clk_id, res); in __vdso_clock_getres()
/Linux-v4.19/drivers/clk/nxp/
Dclk-lpc18xx-cgu.c164 u8 clk_id; member
173 .clk_id = CLK_SRC_ ##_id, \
199 u8 clk_id; member
207 .clk_id = BASE_ ##_id ##_CLK, \
262 u8 clk_id; member
273 .clk_id = CLK_SRC_ ##_id, \
537 const char *name = clk_src_names[clk->clk_id]; in lpc18xx_cgu_register_div()
557 const char *name = clk_base_names[clk->clk_id]; in lpc18xx_register_base_clk()
584 const char *name = clk_src_names[clk->clk_id]; in lpc18xx_cgu_register_pll()
/Linux-v4.19/drivers/clk/
Dclk-u300.c879 u32 clk_id; in of_u300_syscon_clk_init() local
887 if (of_property_read_u32(np, "clock-id", &clk_id)) { in of_u300_syscon_clk_init()
915 if (u3clk->type == clk_type && u3clk->id == clk_id) in of_u300_syscon_clk_init()
931 if (clk_type == U300_CLK_TYPE_REST && clk_id == 5) in of_u300_syscon_clk_init()
933 if (clk_type == U300_CLK_TYPE_REST && clk_id == 9) in of_u300_syscon_clk_init()
935 if (clk_type == U300_CLK_TYPE_REST && clk_id == 12) in of_u300_syscon_clk_init()

123456789