/linux-6.3-rc2/drivers/clk/zynqmp/ |
A D | pll.c | 21 u32 clk_id; member 52 u32 clk_id = clk->clk_id; in zynqmp_pll_get_mode() local 75 u32 clk_id = clk->clk_id; in zynqmp_pll_set_mode() local 137 u32 clk_id = clk->clk_id; in zynqmp_pll_recalc_rate() local 181 u32 clk_id = clk->clk_id; in zynqmp_pll_set_rate() local 229 u32 clk_id = clk->clk_id; in zynqmp_pll_is_enabled() local 253 u32 clk_id = clk->clk_id; in zynqmp_pll_enable() local 265 ret = zynqmp_pm_clock_enable(clk_id); in zynqmp_pll_enable() 281 u32 clk_id = clk->clk_id; in zynqmp_pll_disable() local 287 ret = zynqmp_pm_clock_disable(clk_id); in zynqmp_pll_disable() [all …]
|
A D | clk-gate-zynqmp.c | 23 u32 clk_id; member 38 u32 clk_id = gate->clk_id; in zynqmp_clk_gate_enable() local 41 ret = zynqmp_pm_clock_enable(clk_id); in zynqmp_clk_gate_enable() 45 __func__, clk_name, clk_id, ret); in zynqmp_clk_gate_enable() 58 u32 clk_id = gate->clk_id; in zynqmp_clk_gate_disable() local 61 ret = zynqmp_pm_clock_disable(clk_id); in zynqmp_clk_gate_disable() 65 __func__, clk_name, clk_id, ret); in zynqmp_clk_gate_disable() 78 u32 clk_id = gate->clk_id; in zynqmp_clk_gate_is_enabled() local 81 ret = zynqmp_pm_clock_getstate(clk_id, &state); in zynqmp_clk_gate_is_enabled() 107 struct clk_hw *zynqmp_clk_register_gate(const char *name, u32 clk_id, in zynqmp_clk_register_gate() argument [all …]
|
A D | clkc.c | 78 u32 clk_id; member 147 if (clk_id >= clock_max_idx) in zynqmp_is_valid_clock() 150 return clock[clk_id].valid; in zynqmp_is_valid_clock() 186 *type = clock[clk_id].type; in zynqmp_get_clock_type() 322 qdata.arg1 = clk_id; in zynqmp_clk_register_fixed_factor() 453 ret = zynqmp_pm_clock_get_topology(clock[clk_id].clk_id, j, in zynqmp_clock_get_topology() 520 ret = zynqmp_pm_clock_get_parents(clock[clk_id].clk_id, j, in zynqmp_clock_get_parents() 552 clk_nodes = clock[clk_id].node; in zynqmp_get_parent_list() 553 parents = clock[clk_id].parent; in zynqmp_get_parent_list() 595 nodes = clock[clk_id].node; in zynqmp_register_clk_topology() [all …]
|
A D | clk-mux-zynqmp.c | 32 u32 clk_id; member 47 u32 clk_id = mux->clk_id; in zynqmp_clk_mux_get_parent() local 51 ret = zynqmp_pm_clock_getparent(clk_id, &val); in zynqmp_clk_mux_get_parent() 77 u32 clk_id = mux->clk_id; in zynqmp_clk_mux_set_parent() local 80 ret = zynqmp_pm_clock_setparent(clk_id, index); in zynqmp_clk_mux_set_parent() 131 struct clk_hw *zynqmp_clk_register_mux(const char *name, u32 clk_id, in zynqmp_clk_register_mux() argument 157 mux->clk_id = clk_id; in zynqmp_clk_register_mux()
|
A D | divider.c | 44 u32 clk_id; member 84 u32 clk_id = divider->clk_id; in zynqmp_clk_divider_recalc_rate() local 89 ret = zynqmp_pm_clock_getdivider(clk_id, &div); in zynqmp_clk_divider_recalc_rate() 173 u32 clk_id = divider->clk_id; in zynqmp_clk_divider_round_rate() local 180 ret = zynqmp_pm_clock_getdivider(clk_id, &bestdiv); in zynqmp_clk_divider_round_rate() 230 u32 clk_id = divider->clk_id; in zynqmp_clk_divider_set_rate() local 247 ret = zynqmp_pm_clock_setdivider(clk_id, div); in zynqmp_clk_divider_set_rate() 275 static u32 zynqmp_clk_get_max_divisor(u32 clk_id, u32 type) in zynqmp_clk_get_max_divisor() argument 282 qdata.arg1 = clk_id; in zynqmp_clk_get_max_divisor() 329 u32 clk_id, in zynqmp_clk_register_divider() argument [all …]
|
A D | clk-zynqmp.h | 70 struct clk_hw *zynqmp_clk_register_pll(const char *name, u32 clk_id, 75 struct clk_hw *zynqmp_clk_register_gate(const char *name, u32 clk_id, 81 u32 clk_id, 86 struct clk_hw *zynqmp_clk_register_mux(const char *name, u32 clk_id, 92 u32 clk_id,
|
/linux-6.3-rc2/drivers/clk/keystone/ |
A D | sci-clk.c | 55 u32 clk_id; member 359 if (ca->dev_id == cb->dev_id && ca->clk_id == cb->clk_id) in _cmp_sci_clk() 362 (ca->dev_id == cb->dev_id && ca->clk_id > cb->clk_id)) in _cmp_sci_clk() 427 int clk_id = 0; in ti_sci_scan_clocks_from_fw() local 446 clk_id = 0; in ti_sci_scan_clocks_from_fw() 449 clk_id++; in ti_sci_scan_clocks_from_fw() 472 sci_clk->clk_id = clk_id; in ti_sci_scan_clocks_from_fw() 478 clk_id++; in ti_sci_scan_clocks_from_fw() 518 int clk_id; in ti_sci_scan_clocks_from_dt() local 594 sci_clk->clk_id = clk_id++; in ti_sci_scan_clocks_from_dt() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/timens/ |
A D | timens.h | 64 static inline int _settime(clockid_t clk_id, time_t offset) in _settime() argument 69 if (clk_id == CLOCK_MONOTONIC_COARSE || clk_id == CLOCK_MONOTONIC_RAW) in _settime() 70 clk_id = CLOCK_MONOTONIC; in _settime() 72 len = snprintf(buf, sizeof(buf), "%d %ld 0", clk_id, offset); in _settime() 86 static inline int _gettime(clockid_t clk_id, struct timespec *res, bool raw_syscall) in _gettime() argument 91 if (clock_gettime(clk_id, res)) { in _gettime() 92 pr_perror("clock_gettime(%d)", (int)clk_id); in _gettime() 98 err = syscall(SYS_clock_gettime, clk_id, res); in _gettime() 100 pr_perror("syscall(SYS_clock_gettime(%d))", (int)clk_id); in _gettime()
|
/linux-6.3-rc2/drivers/soc/mediatek/ |
A D | mtk-scpsys.c | 81 enum clk_id { enum 129 enum clk_id clk_id[MAX_CLKS]; member 572 .clk_id = {CLK_MM}, 591 .clk_id = {CLK_MM}, 600 .clk_id = {CLK_MM}, 648 .clk_id = {CLK_MM}, 675 .clk_id = {CLK_MM}, 788 .clk_id = {CLK_MM}, 926 .clk_id = {CLK_MM}, 942 .clk_id = {CLK_MM}, [all …]
|
/linux-6.3-rc2/drivers/firmware/arm_scmi/ |
A D | clock.c | 86 __le32 clk_id; member 198 u32 clk_id; member 299 .clk_id = clk_id, in scmi_clock_describe_rates_get() 329 u32 clk_id, u64 *value) in scmi_clock_rate_get() argument 350 u32 clk_id, u64 rate) in scmi_clock_rate_set() argument 368 cfg->id = cpu_to_le32(clk_id); in scmi_clock_rate_set() 432 u32 clk_id) in scmi_clock_enable_atomic() argument 438 u32 clk_id) in scmi_clock_disable_atomic() argument 456 if (clk_id >= ci->num_clocks) in scmi_clock_info_get() 459 clk = ci->clk + clk_id; in scmi_clock_info_get() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/vDSO/ |
A D | vdso_test_abi.c | 32 typedef long (*vdso_clock_gettime_t)(clockid_t clk_id, struct timespec *ts); 33 typedef long (*vdso_clock_getres_t)(clockid_t clk_id, struct timespec *ts); 63 static void vdso_test_clock_gettime(clockid_t clk_id) in vdso_test_clock_gettime() argument 75 long ret = vdso_clock_gettime(clk_id, &ts); in vdso_test_clock_gettime() 108 static void vdso_test_clock_getres(clockid_t clk_id) in vdso_test_clock_getres() argument 122 long ret = vdso_clock_getres(clk_id, &ts); in vdso_test_clock_getres() 131 ret = syscall(SYS_clock_getres, clk_id, &sys_ts); in vdso_test_clock_getres()
|
/linux-6.3-rc2/sound/soc/ti/ |
A D | omap-dmic.c | 279 static int omap_dmic_select_fclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_fclk() argument 298 if (dmic->sysclk == clk_id) { in omap_dmic_select_fclk() 309 switch (clk_id) { in omap_dmic_select_fclk() 320 dev_err(dmic->dev, "fclk clk_id (%d) not supported\n", clk_id); in omap_dmic_select_fclk() 353 dmic->sysclk = clk_id; in omap_dmic_select_fclk() 363 static int omap_dmic_select_outclk(struct omap_dmic *dmic, int clk_id, in omap_dmic_select_outclk() argument 368 if (clk_id != OMAP_DMIC_ABE_DMIC_CLK) { in omap_dmic_select_outclk() 370 clk_id); in omap_dmic_select_outclk() 390 static int omap_dmic_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, in omap_dmic_set_dai_sysclk() argument 396 return omap_dmic_select_fclk(dmic, clk_id, freq); in omap_dmic_set_dai_sysclk() [all …]
|
A D | omap-abe-twl6040.c | 52 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-6.3-rc2/drivers/firmware/ |
A D | ti_sci.c | 986 if (clk_id < 255) { in ti_sci_set_clock_state() 987 req->clk_id = clk_id; in ti_sci_set_clock_state() 989 req->clk_id = 255; in ti_sci_set_clock_state() 1054 if (clk_id < 255) { in ti_sci_cmd_get_clock_state() 1055 req->clk_id = clk_id; in ti_sci_cmd_get_clock_state() 1286 req->clk_id = clk_id; in ti_sci_cmd_clk_set_parent() 1354 req->clk_id = clk_id; in ti_sci_cmd_clk_get_parent() 1424 req->clk_id = clk_id; in ti_sci_cmd_clk_get_num_parents() 1503 req->clk_id = clk_id; in ti_sci_cmd_clk_get_match_freq() 1579 req->clk_id = clk_id; in ti_sci_cmd_clk_set_freq() [all …]
|
A D | ti_sci.h | 272 u8 clk_id; member 298 u8 clk_id; member 341 u8 clk_id; member 363 u8 clk_id; member 401 u8 clk_id; member 452 u8 clk_id; member 511 u8 clk_id; member 532 u8 clk_id; member
|
/linux-6.3-rc2/drivers/clk/tegra/ |
A D | clk-tegra-audio.c | 35 int clk_id; member 41 .clk_id = tegra_clk_ ## _name,\ 66 int clk_id; member 77 .clk_id = tegra_clk_ ## _name ## _2x,\ 181 dt_clk = tegra_lookup_dt_id(info->clk_id, tegra_clks); in tegra_audio_clk_init() 207 dt_clk = tegra_lookup_dt_id(data->clk_id, tegra_clks); in tegra_audio_clk_init() 231 dt_clk = tegra_lookup_dt_id(data->clk_id, tegra_clks); in tegra_audio_clk_init()
|
A D | clk.c | 262 for (; dup_list->clk_id < clk_max; dup_list++) { in tegra_init_dup_clks() 263 clk = clks[dup_list->clk_id]; in tegra_init_dup_clks() 274 for (; tbl->clk_id < clk_max; tbl++) { in tegra_init_from_table() 275 clk = clks[tbl->clk_id]; in tegra_init_from_table() 278 __func__, PTR_ERR(clk), tbl->clk_id); in tegra_init_from_table() 373 struct clk ** __init tegra_lookup_dt_id(int clk_id, in tegra_lookup_dt_id() argument 376 if (tegra_clk[clk_id].present) in tegra_lookup_dt_id() 377 return &clks[tegra_clk[clk_id].dt_id]; in tegra_lookup_dt_id()
|
/linux-6.3-rc2/sound/soc/codecs/ |
A D | adav80x.c | 538 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() 566 ADAV80X_ICLK_CTRL1_ADC_SRC(clk_id) | in adav80x_set_sysclk() 580 switch (clk_id) { in adav80x_set_sysclk() 589 clk_id -= ADAV80X_CLK_SYSCLK1; in adav80x_set_sysclk() 595 adav80x->sysclk_pd[clk_id] = true; in adav80x_set_sysclk() [all …]
|
A D | mc13783.c | 241 int clk_id, unsigned int freq, int dir, in mc13783_set_sysclk() argument 259 if (clk_id == MC13783_CLK_CLIB) in mc13783_set_sysclk() 270 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_dac() argument 272 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_dac() 276 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_codec() argument 278 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_codec() 282 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_sync() argument 286 ret = mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_sync() 290 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_sync()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | clockid.c | 55 static int get_clockid_res(clockid_t clk_id, u64 *res_ns) in get_clockid_res() argument 60 if (!clock_getres(clk_id, &res)) in get_clockid_res() 110 const char *clockid_name(clockid_t clk_id) in clockid_name() argument 115 if (cm->clockid == clk_id) in clockid_name()
|
/linux-6.3-rc2/sound/soc/qcom/qdsp6/ |
A D | q6dsp-lpass-clocks.h | 7 int clk_id; member 14 .clk_id = id, \ 22 int (*lpass_set_clk)(struct device *dev, int clk_id, int attr,
|
A D | q6prm.c | 112 static int q6prm_request_lpass_clock(struct device *dev, int clk_id, int clk_attr, int clk_root, in q6prm_request_lpass_clock() argument 137 req->clock_id.clock_id = clk_id; in q6prm_request_lpass_clock() 149 static int q6prm_release_lpass_clock(struct device *dev, int clk_id, int clk_attr, int clk_root, in q6prm_release_lpass_clock() argument 174 rel->clock_id.clock_id = clk_id; in q6prm_release_lpass_clock() 183 int q6prm_set_lpass_clock(struct device *dev, int clk_id, int clk_attr, int clk_root, in q6prm_set_lpass_clock() argument 187 return q6prm_request_lpass_clock(dev, clk_id, clk_attr, clk_attr, freq); in q6prm_set_lpass_clock() 189 return q6prm_release_lpass_clock(dev, clk_id, clk_attr, clk_attr, freq); in q6prm_set_lpass_clock()
|
/linux-6.3-rc2/drivers/clk/baikal-t1/ |
A D | clk-ccu-pll.c | 87 unsigned int clk_id) in ccu_pll_find_desc() argument 92 if (pll_info[idx].id == clk_id) in ccu_pll_find_desc() 134 unsigned int clk_id; in ccu_pll_of_clk_hw_get() local 136 clk_id = clkspec->args[0]; in ccu_pll_of_clk_hw_get() 137 pll = ccu_pll_find_desc(data, clk_id); in ccu_pll_of_clk_hw_get() 140 pr_info("Invalid PLL clock ID %d specified\n", clk_id); in ccu_pll_of_clk_hw_get()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
A D | smu_v11_0.c | 501 uint8_t clk_id, in smu_v11_0_atom_get_smu_clockinfo() argument 509 input.clk_id = clk_id; in smu_v11_0_atom_get_smu_clockinfo() 797 int clk_id; in smu_v11_0_get_max_sustainable_clock() local 806 if (clk_id < 0) in smu_v11_0_get_max_sustainable_clock() 1738 if (clk_id < 0) { in smu_v11_0_get_dpm_ultimate_freq() 1774 if (clk_id < 0) in smu_v11_0_set_soft_freq_limited_range() 1775 return clk_id; in smu_v11_0_set_soft_freq_limited_range() 1814 if (clk_id < 0) in smu_v11_0_set_hard_freq_limited_range() 1815 return clk_id; in smu_v11_0_set_hard_freq_limited_range() 1971 if (clk_id < 0) in smu_v11_0_get_dpm_freq_by_index() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
A D | smu_v13_0.c | 873 int clk_id; in smu_v13_0_get_max_sustainable_clock() local 882 if (clk_id < 0) in smu_v13_0_get_max_sustainable_clock() 1611 if (clk_id < 0) { in smu_v13_0_get_dpm_ultimate_freq() 1656 if (clk_id < 0) in smu_v13_0_set_soft_freq_limited_range() 1657 return clk_id; in smu_v13_0_set_soft_freq_limited_range() 1696 if (clk_id < 0) in smu_v13_0_set_hard_freq_limited_range() 1697 return clk_id; in smu_v13_0_set_hard_freq_limited_range() 1934 if (clk_id < 0) in smu_v13_0_get_dpm_freq_by_index() 1935 return clk_id; in smu_v13_0_get_dpm_freq_by_index() 1982 if (clk_id < 0) in smu_v13_0_get_fine_grained_status() [all …]
|