Home
last modified time | relevance | path

Searched +full:switching +full:- +full:freq (Results 1 – 25 of 179) sorted by relevance

12345678

/linux/Documentation/devicetree/bindings/leds/backlight/
H A Dqcom-wled.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <andersson@kernel.org>
11 - Kiran Gunda <quic_kgunda@quicinc.com>
21 - qcom,pm8941-wled
22 - qcom,pmi8950-wled
23 - qcom,pmi8994-wled
24 - qcom,pmi8998-wled
[all …]
/linux/drivers/devfreq/
H A Dimx8m-ddrc.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/clk-provider.h>
14 #include <linux/arm-smccc.h>
40 * +----------+ |\ +------+
41 * | dram_pll |-------|M| dram_core | |
42 * +----------+ |U|---------->| D |
43 * /--|X| | D |
46 * +---------+ | |
48 * +---------+ | |
50 * +----------+ | | |
[all …]
/linux/drivers/cpufreq/
H A DKconfig.powerpc1 # SPDX-License-Identifier: GPL-2.0-only
8 For details, take a look at <file:Documentation/cpu-freq/>.
24 This adds support for frequency switching on Maple 970FX
31 This adds support for frequency switching on Apple PowerBooks,
39 This adds support for frequency switching on Apple iMac G5,
47 This adds the support for frequency switching on PA Semi
55 This adds support for CPU frequency switching on IBM POWERNV
H A Dcpufreq.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
9 * Oct 2005 - Ashok Raj <ashok.raj@intel.com>
11 * Feb 2006 - Jacob Shin <jacob.shin@amd.com>
12 * Fix handling for CPU hotplug -- affected CPUs
54 * The "cpufreq driver" - the arch- or hardware-dependent low
73 return cpufreq_driver->target_index || cpufreq_driver->target; in has_target()
78 return !!cpufreq_driver->target_index; in has_target_index()
114 return !!(cpufreq_driver->flags & CPUFREQ_HAVE_GOVERNOR_PER_POLICY); in have_governor_per_policy()
123 return &policy->kobj; in get_governor_parent_kobj()
[all …]
H A Dpmac64-cpufreq.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org>
4 * and Markus Demleitner <msdemlei@cl.uni-heidelberg.de>
46 #define PCR_FREQ_REQ_VALID 0x00010000U /* freq request valid */
73 * the various frequencies, retrieved from the device-tree
93 * SMU based voltage switching for Neo2 platforms
108 * Platform function based voltage/vdnap switching for Neo2
145 * SCOM based frequency switching for 970FX rev3
205 * Fake voltage switching for platforms with missing support
215 * Platform function based voltage switching for PowerMac7,2 & 7,3
[all …]
H A Dmaple-cpufreq.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 Dmitry Eremin-Solenikov
4 * Copyright (C) 2002 - 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org>
5 * and Markus Demleitner <msdemlei@cl.uni-heidelberg.de>
40 #define PCR_FREQ_REQ_VALID 0x00010000U /* freq request valid */
67 * the various frequencies, retrieved from the device-tree
75 * SCOM based frequency switching for 970FX rev3
164 int rc = -ENODEV; in maple_cpufreq_init()
189 /* Look for the powertune data in the device-tree */ in maple_cpufreq_init()
191 * On Maple this property is provided by PIBS in dual-processor config, in maple_cpufreq_init()
[all …]
H A Dvexpress-spc-cpufreq.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2013 - 2019 ARM Ltd.
45 #define ACTUAL_FREQ(cluster, freq) ((cluster == A7_CLUSTER) ? freq << 1 : freq) argument
46 #define VIRT_FREQ(cluster, freq) ((cluster == A7_CLUSTER) ? freq >> 1 : freq) argument
138 ret = -EIO; in ve_spc_cpufreq_set_rate()
154 /* Recalc freq for old cluster when switching clusters */ in ve_spc_cpufreq_set_rate()
161 /* Set freq of old cluster if there are cpus left on it */ in ve_spc_cpufreq_set_rate()
180 u32 cpu = policy->cpu, cur_cluster, new_cluster, actual_cluster; in ve_spc_cpufreq_set_target()
217 if (pos->frequency < min_freq) in get_table_min()
218 min_freq = pos->frequency; in get_table_min()
[all …]
H A Darmada-37xx-cpufreq.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Gregory CLEMENT <gregory.clement@free-electrons.com>
24 #include "cpufreq-dt.h"
115 static struct armada_37xx_dvfs *armada_37xx_cpu_freq_info_get(u32 freq) in armada_37xx_cpu_freq_info_get() argument
120 if (freq == armada_37xx_dvfs[i].cpu_freq_max) in armada_37xx_cpu_freq_info_get()
124 pr_err("Unsupported CPU frequency %d MHz\n", freq/1000000); in armada_37xx_cpu_freq_info_get()
166 * Set cpu divider based on the pre-computed array in in armada37xx_cpufreq_dvfs_setup()
187 * the round-up closest to the target voltage value.
193 /* Find out the round-up closest supported voltage value */ in armada_37xx_avs_val_match()
203 avs = ARRAY_SIZE(avs_map) - 1; in armada_37xx_avs_val_match()
[all …]
H A Dcpufreq_ondemand.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/percpu-defs.h>
20 /* On-demand governor macros */
56 * Find right freq to be set now with powersave_bias on.
67 struct policy_dbs_info *policy_dbs = policy->governor_data; in generic_powersave_bias_target()
69 struct dbs_data *dbs_data = policy_dbs->dbs_data; in generic_powersave_bias_target()
70 struct od_dbs_tuners *od_tuners = dbs_data->tuners; in generic_powersave_bias_target()
71 struct cpufreq_frequency_table *freq_table = policy->freq_table; in generic_powersave_bias_target()
74 dbs_info->freq_lo = 0; in generic_powersave_bias_target()
75 dbs_info->freq_lo_delay_us = 0; in generic_powersave_bias_target()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddm_pp_smu.h117 * fixed clock at requested freq, either from FCH bypass or DFS
154 // voltage managed SMU, freq set by driver
161 // freq/voltage managed by SMU
177 * fixed clock at requested freq, either from FCH bypass or DFS
234 * is used to perform uCLK switching, so disabling pstate disables uCLK switching.
236 * Note that when setting handshake to unsupported, the call is pre-emptive. That means
238 * request to go un-acked. Only when the call completes should such a state be applied to
254 uint32_t Freq; // In MHz member
/linux/drivers/net/wireless/broadcom/b43/
H A Dradio_2059.h1 /* SPDX-License-Identifier: GPL-2.0 */
26 /* Values for various registers uploaded on channel switching */
29 u16 freq; member
59 *b43_phy_ht_get_channeltab_e_r2059(struct b43_wldev *dev, u16 freq);
/linux/drivers/acpi/dptf/
H A Ddptf_pch_fivr.c1 // SPDX-License-Identifier: GPL-2.0-only
24 int ret = -EFAULT; in pch_fivr_read()
31 if (!obj || obj->type != ACPI_TYPE_PACKAGE) in pch_fivr_read()
38 if (fivr_resp->status) in pch_fivr_read()
51 * freq_mhz_low_clock : Set PCH FIVR switching freq for
53 * freq_mhz_high_clock : Set PCH FIVR switching freq for
65 status = pch_fivr_read(acpi_dev->handle, #method, &fivr_resp);\
82 return -EINVAL;\
84 status = acpi_execute_simple_method(acpi_dev->handle, #method, val);\
88 return -EINVAL;\
[all …]
/linux/drivers/staging/media/av7110/
H A Dav7110_v4l.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * - video4linux interface for DVB and Siemens DVB-C analog module
6 * Copyright (C) 1999-2002 Ralph Metzler
10 * Copyright (C) 1998,1999 Christian Theiss <mistert@rz.fh-augsburg.de>
33 switch (av7110->adac_type) { in msp_writereg()
44 if (i2c_transfer(&av7110->i2c_adap, &msgs, 1) != 1) { in msp_writereg()
45 dprintk(1, "failed @ card %d, %u = %u\n", av7110->dvb_adapter.num, reg, val); in msp_writereg()
46 return -EIO; in msp_writereg()
60 switch (av7110->adac_type) { in msp_readreg()
73 if (i2c_transfer(&av7110->i2c_adap, &msgs[0], 2) != 2) { in msp_readreg()
[all …]
/linux/arch/arm/mach-shmobile/
H A Dsetup-rcar-gen2.c1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Generation 2 support
12 #include <linux/dma-map-ops.h>
23 #include "rcar-gen2.h"
26 { .compatible = "renesas,r8a7742-cpg-mssr", .data = "extal" },
27 { .compatible = "renesas,r8a7743-cpg-mssr", .data = "extal" },
28 { .compatible = "renesas,r8a7744-cpg-mssr", .data = "extal" },
29 { .compatible = "renesas,r8a7790-cpg-mssr", .data = "extal" },
30 { .compatible = "renesas,r8a7791-cpg-mssr", .data = "extal" },
31 { .compatible = "renesas,r8a7793-cpg-mssr", .data = "extal" },
[all …]
/linux/drivers/net/wireless/ath/
H A Dspectral_common.h33 * TODO: this might need rework when switching to nl80211-based
54 __be16 freq; member
71 __be16 freq; member
/linux/arch/arm/lib/
H A Ddelay.c1 // SPDX-License-Identifier: GPL-2.0-only
18 * Default to the loop-based delay implementation.
33 return -ENXIO; in read_current_timer()
35 *timer_val = delay_timer->read_current_timer(); in read_current_timer()
49 while ((get_cycles() - start) < cycles) in __timer_delay()
70 clocks_calc_mult_shift(&new_mult, &new_shift, timer->freq, in register_current_timer_delay()
81 pr_info("Switching to timer-based delay loop, resolution %lluns\n", res); in register_current_timer_delay()
83 lpj_fine = timer->freq / HZ; in register_current_timer_delay()
/linux/sound/aoa/soundbus/
H A Dsoundbus.h1 /* SPDX-License-Identifier: GPL-2.0-only */
15 /* When switching from master to slave or the other way around,
22 * The constants here are codec-point of view, so when we switch
71 * to be used (master clock speed = sysclock_factor * sampling freq)
76 /* Bus factor, bus clock speed = bus_factor * sampling freq)
82 /* clock switching, see above */
89 * That can depend on other user-switchable controls.
/linux/Documentation/devicetree/bindings/regulator/
H A Dmps,mpq7920.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Saravanan Sekar <sravanhome@gmail.com>
14 pattern: "pmic@[0-9a-f]{1,2}"
17 - mps,mpq7920
27 after their hardware counterparts BUCK[1-4], one LDORTC, and LDO[2-5]
30 mps,switch-freq:
35 switching frequency must be one of following corresponding value
44 "^ldo[1-4]$":
[all …]
/linux/drivers/gpu/drm/msm/
H A Dmsm_gpu_devfreq.c1 // SPDX-License-Identifier: GPL-2.0-only
19 static int msm_devfreq_target(struct device *dev, unsigned long *freq, in msm_devfreq_target() argument
23 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_target()
27 * Note that devfreq_recommended_opp() can modify the freq in msm_devfreq_target()
30 opp = devfreq_recommended_opp(dev, freq, flags); in msm_devfreq_target()
38 * the new target freq (to use when we return to active) in msm_devfreq_target()
40 if (df->idle_freq) { in msm_devfreq_target()
41 df->idle_freq = *freq; in msm_devfreq_target()
46 if (gpu->funcs->gpu_set_freq) { in msm_devfreq_target()
47 mutex_lock(&df->lock); in msm_devfreq_target()
[all …]
/linux/kernel/sched/
H A Dcpufreq_schedutil.c1 // SPDX-License-Identifier: GPL-2.0
3 * CPUFreq governor based on scheduler-provided CPU utilization data.
52 /* The field below is for single-CPU policies only: */
67 * Since cpufreq_update_util() is called with rq->lock held for in sugov_should_update_freq()
68 * the @target_cpu, our per-CPU data is fully serialized. in sugov_should_update_freq()
70 * However, drivers cannot in general deal with cross-CPU in sugov_should_update_freq()
72 * sugov_update_commit() call may not for the fast switching platforms. in sugov_should_update_freq()
78 * This is needed on the slow switching platforms too to prevent CPUs in sugov_should_update_freq()
81 if (!cpufreq_this_cpu_can_update(sg_policy->policy)) in sugov_should_update_freq()
84 if (unlikely(sg_policy->limits_changed)) { in sugov_should_update_freq()
[all …]
/linux/drivers/memory/samsung/
H A Dexynos5422-dmc.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/devfreq-event.h>
101 * struct dmc_opp_table - Operating level desciption
113 * struct exynos5_dmc - main structure describing DMC device
196 __val = (t_val) << (timing)->bit_beg; \
220 TIMING_FIELD("tW2W-C2C", 14, 14),
221 TIMING_FIELD("tR2R-C2C", 12, 12),
243 for (i = 0; i < dmc->num_counters; i++) { in exynos5_counters_set_event()
244 if (!dmc->counter[i]) in exynos5_counters_set_event()
246 ret = devfreq_event_set_event(dmc->counter[i]); in exynos5_counters_set_event()
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dx-powers,axp152.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: X-Powers AXP PMIC
10 - Chen-Yu Tsai <wens@csie.org>
13 - if:
18 - x-powers,axp152
19 - x-powers,axp202
20 - x-powers,axp209
[all …]
/linux/sound/soc/codecs/
H A Dmax9867.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright 2013-2015 Maxim Integrated Products
6 // Copyright 2018 Ladislav Michl <ladis@linux-mips.org>
42 "Butterworth/8-24"
55 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max9867_adc_dac_event()
71 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event()
73 max9867->adc_dac_active &= ~BIT(adc_dac); in max9867_adc_dac_event()
86 ret = regmap_read(max9867->regmap, MAX9867_CODECFLTR, &reg); in max9867_filter_get()
88 return -EINVAL; in max9867_filter_get()
91 ucontrol->value.enumerated.item[0] = 1; in max9867_filter_get()
[all …]
/linux/drivers/media/v4l2-core/
H A Dtuner-core.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright(c) 2005-2011 by Mauro Carvalho Chehab
9 * - Added support for a separate Radio tuner
10 * - Major rework and cleanups at the code
31 #include <media/tuner-types.h>
32 #include <media/v4l2-device.h>
33 #include <media/v4l2-ioctl.h>
39 #include "tuner-simple.h"
45 #define UNSET (-1U)
64 static char pal[] = "--";
[all …]
/linux/Documentation/devicetree/bindings/net/wireless/
H A Dmediatek,mt76.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Felix Fietkau <nbd@nbd.name>
12 - Lorenzo Bianconi <lorenzo@kernel.org>
13 - Ryder Lee <ryder.lee@mediatek.com>
25 - mediatek,mt76
26 - mediatek,mt7628-wmac
27 - mediatek,mt7622-wmac
[all …]

12345678