Home
last modified time | relevance | path

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

12345678910>>...41

/Linux-v6.1/drivers/ssb/
Ddriver_chipcommon_pmu.c51 u16 freq; /* Crystal frequency in kHz.*/ member
58 { .freq = 12000, .xf = 1, .wb_int = 73, .wb_frac = 349525, },
59 { .freq = 13000, .xf = 2, .wb_int = 67, .wb_frac = 725937, },
60 { .freq = 14400, .xf = 3, .wb_int = 61, .wb_frac = 116508, },
61 { .freq = 15360, .xf = 4, .wb_int = 57, .wb_frac = 305834, },
62 { .freq = 16200, .xf = 5, .wb_int = 54, .wb_frac = 336579, },
63 { .freq = 16800, .xf = 6, .wb_int = 52, .wb_frac = 399457, },
64 { .freq = 19200, .xf = 7, .wb_int = 45, .wb_frac = 873813, },
65 { .freq = 19800, .xf = 8, .wb_int = 44, .wb_frac = 466033, },
66 { .freq = 20000, .xf = 9, .wb_int = 44, .wb_frac = 0, },
[all …]
/Linux-v6.1/drivers/devfreq/
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 …]
Dgovernor_passive.c1 // SPDX-License-Identifier: GPL-2.0-only
29 list_for_each_entry(parent_cpu_data, &p_data->cpu_data_list, node) in get_parent_cpu_data()
30 if (parent_cpu_data->first_cpu == cpumask_first(policy->related_cpus)) in get_parent_cpu_data()
40 list_for_each_entry_safe(parent_cpu_data, tmp, &p_data->cpu_data_list, node) { in delete_parent_cpu_data()
41 list_del(&parent_cpu_data->node); in delete_parent_cpu_data()
43 if (parent_cpu_data->opp_table) in delete_parent_cpu_data()
44 dev_pm_opp_put_opp_table(parent_cpu_data->opp_table); in delete_parent_cpu_data()
53 unsigned long *freq) in get_target_freq_by_required_opp() argument
58 if (!p_dev || !p_opp_table || !opp_table || !freq) in get_target_freq_by_required_opp()
61 p_opp = devfreq_recommended_opp(p_dev, freq, 0); in get_target_freq_by_required_opp()
[all …]
/Linux-v6.1/sound/soc/codecs/
Dmax9867.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright 2013-2015 Maxim Integrated Products
6 // Copyright 2018 Ladislav Michl <ladis@linux-mips.org>
40 "Butterworth/8-24"
53 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max9867_adc_dac_event()
57 if (!strcmp(w->name, "ADCL")) in max9867_adc_dac_event()
59 else if (!strcmp(w->name, "ADCR")) in max9867_adc_dac_event()
61 else if (!strcmp(w->name, "DACL")) in max9867_adc_dac_event()
63 else if (!strcmp(w->name, "DACR")) in max9867_adc_dac_event()
69 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event()
[all …]
Dmax98090.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98090.c -- MAX98090 ALSA SoC Audio driver
5 * Copyright 2011-2012 Maxim Integrated Products
253 switch (reg) { in max98090_volatile_register()
266 switch (reg) { in max98090_readable_register()
280 /* Reset the codec by writing to this write-only reset register */ in max98090_reset()
281 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset()
284 dev_err(max98090->component->dev, in max98090_reset()
301 -600, 600, 0);
304 0, 3, TLV_DB_SCALE_ITEM(-600, 300, 0),
[all …]
/Linux-v6.1/drivers/media/tuners/
Dtda18271-fe.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 tda18271-fe.c - driver for the Philips / NXP TDA18271 silicon tuner
9 #include "tda18271-priv.h"
17 MODULE_PARM_DESC(debug, "set debug level (info=1, map=2, reg=4, adv=8, cal=16 (or-able))");
19 static int tda18271_cal_on_startup = -1;
26 /*---------------------------------------------------------------------*/
30 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_toggle_output()
33 priv->output_opt & TDA18271_OUTPUT_LT_OFF ? 1 : 0, in tda18271_toggle_output()
34 priv->output_opt & TDA18271_OUTPUT_XT_OFF ? 1 : 0); in tda18271_toggle_output()
41 priv->output_opt & TDA18271_OUTPUT_XT_OFF ? "off" : "on", in tda18271_toggle_output()
[all …]
Dmt2266.c1 // SPDX-License-Identifier: GPL-2.0-or-later
51 { .addr = priv->cfg->i2c_address, .flags = 0, .buf = &reg, .len = 1 }, in mt2266_readreg()
52 { .addr = priv->cfg->i2c_address, .flags = I2C_M_RD, .buf = val, .len = 1 }, in mt2266_readreg()
54 if (i2c_transfer(priv->i2c, msg, 2) != 2) { in mt2266_readreg()
56 return -EREMOTEIO; in mt2266_readreg()
66 .addr = priv->cfg->i2c_address, .flags = 0, .buf = buf, .len = 2 in mt2266_writereg()
68 if (i2c_transfer(priv->i2c, &msg, 1) != 1) { in mt2266_writereg()
70 return -EREMOTEIO; in mt2266_writereg()
79 .addr = priv->cfg->i2c_address, .flags = 0, .buf = buf, .len = len in mt2266_writeregs()
81 if (i2c_transfer(priv->i2c, &msg, 1) != 1) { in mt2266_writeregs()
[all …]
Dfc0012.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
9 #include "fc0012-priv.h"
15 .addr = priv->cfg->i2c_address, .flags = 0, .buf = buf, .len = 2 in fc0012_writereg()
18 if (i2c_transfer(priv->i2c, &msg, 1) != 1) { in fc0012_writereg()
19 dev_err(&priv->i2c->dev, in fc0012_writereg()
22 return -EREMOTEIO; in fc0012_writereg()
30 { .addr = priv->cfg->i2c_address, .flags = 0, in fc0012_readreg()
32 { .addr = priv->cfg->i2c_address, .flags = I2C_M_RD, in fc0012_readreg()
36 if (i2c_transfer(priv->i2c, msg, 2) != 2) { in fc0012_readreg()
[all …]
/Linux-v6.1/net/wireless/
Dchan.c1 // SPDX-License-Identifier: GPL-2.0
8 * Copyright 2013-2014 Intel Mobile Communications GmbH
9 * Copyright 2018-2022 Intel Corporation
16 #include "rdev-ops.h"
18 static bool cfg80211_valid_60g_freq(u32 freq) in cfg80211_valid_60g_freq() argument
20 return freq >= 58320 && freq <= 70200; in cfg80211_valid_60g_freq()
30 chandef->chan = chan; in cfg80211_chandef_create()
31 chandef->freq1_offset = chan->freq_offset; in cfg80211_chandef_create()
32 chandef->center_freq2 = 0; in cfg80211_chandef_create()
33 chandef->edmg.bw_config = 0; in cfg80211_chandef_create()
[all …]
/Linux-v6.1/sound/pci/lola/
Dlola_clock.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Support for Digigram Lola PCI-e boards
17 unsigned int freq; in lola_sample_rate_convert() local
20 switch (coded & 0x3) { in lola_sample_rate_convert()
21 case 0: freq = 48000; break; in lola_sample_rate_convert()
22 case 1: freq = 44100; break; in lola_sample_rate_convert()
23 case 2: freq = 32000; break; in lola_sample_rate_convert()
28 switch (coded & 0x1c) { in lola_sample_rate_convert()
31 case (1 << 2): freq *= 2; break; in lola_sample_rate_convert()
32 case (2 << 2): freq *= 4; break; in lola_sample_rate_convert()
[all …]
/Linux-v6.1/drivers/media/i2c/cx25840/
Dcx25840-audio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include <media/v4l2-common.h>
9 #include <media/drv-intf/cx25840.h>
11 #include "cx25840-core.h"
17 * NTSC Color subcarrier freq * 8 = 4.5 MHz/286 * 455/2 * 8 = 28.63636363... MHz
31 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument
35 if (state->aud_input != CX25840_AUDIO_SERIAL) { in cx25840_set_audclk_freq()
36 switch (freq) { in cx25840_set_audclk_freq()
47 * 432 MHz pre-postdivide in cx25840_set_audclk_freq()
53 * 196.6 MHz pre-postdivide in cx25840_set_audclk_freq()
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dnv50.c34 struct nvkm_device *device = clk->base.subdev.device; in read_div()
35 switch (device->chipset) { in read_div()
54 struct nvkm_subdev *subdev = &clk->base.subdev; in read_pll_src()
55 struct nvkm_device *device = subdev->device; in read_pll_src()
56 u32 coef, ref = nvkm_clk_read(&clk->base, nv_clk_src_crystal); in read_pll_src()
60 switch (device->chipset) { in read_pll_src()
63 switch (base) { in read_pll_src()
91 switch (base) { in read_pll_src()
101 switch (rsel) { in read_pll_src()
103 case 1: return nvkm_clk_read(&clk->base, nv_clk_src_crystal); in read_pll_src()
[all …]
Dgk104.c33 u32 freq; member
52 struct nvkm_device *device = clk->base.subdev.device; in read_vco()
62 struct nvkm_device *device = clk->base.subdev.device; in read_pll()
74 switch (pll) { in read_pll()
77 sclk = device->crystal; in read_pll()
108 struct nvkm_device *device = clk->base.subdev.device; in read_div()
112 switch (ssrc & 0x00000003) { in read_div()
115 return device->crystal; in read_div()
135 struct nvkm_device *device = clk->base.subdev.device; in read_mem()
136 switch (nvkm_rd32(device, 0x1373f4) & 0x0000000f) { in read_mem()
[all …]
Dgf100.c33 u32 freq; member
51 struct nvkm_device *device = clk->base.subdev.device; in read_vco()
54 return nvkm_clk_read(&clk->base, nv_clk_src_sppll0); in read_vco()
55 return nvkm_clk_read(&clk->base, nv_clk_src_sppll1); in read_vco()
61 struct nvkm_device *device = clk->base.subdev.device; in read_pll()
72 switch (pll) { in read_pll()
75 sclk = device->crystal; in read_pll()
79 sclk = nvkm_clk_read(&clk->base, nv_clk_src_mpllsrc); in read_pll()
82 sclk = nvkm_clk_read(&clk->base, nv_clk_src_mpllsrcref); in read_pll()
100 struct nvkm_device *device = clk->base.subdev.device; in read_div()
[all …]
/Linux-v6.1/sound/soc/ti/
Domap-dmic.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap-dmic.c -- OMAP ASoC DMIC DAI driver
5 * Copyright (C) 2010 - 2011 Texas Instruments
30 #include "omap-dmic.h"
31 #include "sdma-pcm.h"
53 writel_relaxed(val, dmic->io_base + reg); in omap_dmic_write()
58 return readl_relaxed(dmic->io_base + reg); in omap_dmic_read()
69 omap_dmic_write(dmic, OMAP_DMIC_CTRL_REG, ctrl | dmic->ch_enabled); in omap_dmic_start()
96 mutex_lock(&dmic->mutex); in omap_dmic_dai_startup()
99 dmic->active = 1; in omap_dmic_dai_startup()
[all …]
/Linux-v6.1/drivers/media/radio/
Dtea575x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <media/v4l2-device.h>
15 #include <media/v4l2-dev.h>
16 #include <media/v4l2-fh.h>
17 #include <media/v4l2-ioctl.h>
18 #include <media/v4l2-event.h>
19 #include <media/drv-intf/tea575x.h>
87 if (tea->ops->write_val) in snd_tea575x_write()
88 return tea->ops->write_val(tea, val); in snd_tea575x_write()
90 tea->ops->set_direction(tea, 1); in snd_tea575x_write()
[all …]
/Linux-v6.1/drivers/media/radio/si470x/
Dradio-si470x-common.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/media/radio/si470x/radio-si470x-common.c
14 * 2008-01-12 Tobias Lorenz <tobias.lorenz@gmx.net>
16 * - First working version
17 * 2008-01-13 Tobias Lorenz <tobias.lorenz@gmx.net>
19 * - Improved error handling, every function now returns errno
20 * - Improved multi user access (start/mute/stop)
21 * - Channel doesn't get lost anymore after start/mute/stop
22 * - RDS support added (polling mode via interrupt EP 1)
23 * - marked default module parameters with *value*
[all …]
/Linux-v6.1/sound/drivers/vx/
Dvx_uer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 * vx_modify_board_clock - tell the board that its clock has been modified
32 * vx_modify_board_inputs - resync audio inputs
44 * vx_read_one_cbit - read one bit from UER config
52 mutex_lock(&chip->lock); in vx_read_one_cbit()
53 if (chip->type >= VX_TYPE_VXPOCKET) { in vx_read_one_cbit()
62 mutex_unlock(&chip->lock); in vx_read_one_cbit()
67 * vx_write_one_cbit - write one bit to UER config
74 mutex_lock(&chip->lock); in vx_write_one_cbit()
82 mutex_unlock(&chip->lock); in vx_write_one_cbit()
[all …]
/Linux-v6.1/drivers/cpufreq/
Dfreq_table.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2002 - 2003 Dominik Brodowski
19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq()
25 if (pos->flags & CPUFREQ_BOOST_FREQ) in policy_has_boost_freq()
38 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local
41 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo()
44 && (pos->flags & CPUFREQ_BOOST_FREQ)) in cpufreq_frequency_table_cpuinfo()
47 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
48 if (freq < min_freq) in cpufreq_frequency_table_cpuinfo()
49 min_freq = freq; in cpufreq_frequency_table_cpuinfo()
[all …]
/Linux-v6.1/drivers/clk/hisilicon/
Dclk-hi6220-stub.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/clk-provider.h>
69 unsigned int freq; in hi6220_acpu_get_freq() local
71 regmap_read(stub_clk->dfs_map, ACPU_DFS_CUR_FREQ, &freq); in hi6220_acpu_get_freq()
72 return freq; in hi6220_acpu_get_freq()
76 unsigned int freq) in hi6220_acpu_set_freq() argument
81 regmap_write(stub_clk->dfs_map, ACPU_DFS_FREQ_REQ, freq); in hi6220_acpu_set_freq()
89 mbox_send_message(stub_clk->mbox, &data); in hi6220_acpu_set_freq()
94 unsigned int freq) in hi6220_acpu_round_freq() argument
100 regmap_read(stub_clk->dfs_map, ACPU_DFS_FLAG, &limit_flag); in hi6220_acpu_round_freq()
[all …]
/Linux-v6.1/drivers/video/fbdev/
Di740fb.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * i740fb - framebuffer driver for Intel740
6 * Based on old i740fb driver (c) 2001-2002 Andrey Ulanov <drey@rt.mipt.ru>
8 * VGA 16-color framebuffer driver (c) 1999 Ben Pfaff <pfaffben@debian.org>
10 * i740 driver from XFree86 (c) 1998-1999 Precision Insight, Inc., Cedar Park,
28 #include <linux/i2c-algo-bit.h>
98 vga_mm_w(par->regs, port, val); in i740outb()
102 return vga_mm_r(par->regs, port); in i740inb()
106 vga_mm_w_fast(par->regs, port, reg, val); in i740outreg()
110 vga_mm_w(par->regs, port, reg); in i740inreg()
[all …]
/Linux-v6.1/drivers/media/platform/qcom/venus/
Dhfi_platform.c1 // SPDX-License-Identifier: GPL-2.0-only
11 switch (version) { in hfi_platform_get()
27 unsigned long freq = 0; in hfi_platform_get_codec_vpp_freq() local
33 if (plat->codec_vpp_freq) in hfi_platform_get_codec_vpp_freq()
34 freq = plat->codec_vpp_freq(session_type, codec); in hfi_platform_get_codec_vpp_freq()
36 return freq; in hfi_platform_get_codec_vpp_freq()
43 unsigned long freq = 0; in hfi_platform_get_codec_vsp_freq() local
49 if (plat->codec_vpp_freq) in hfi_platform_get_codec_vsp_freq()
50 freq = plat->codec_vsp_freq(session_type, codec); in hfi_platform_get_codec_vsp_freq()
52 return freq; in hfi_platform_get_codec_vsp_freq()
[all …]
/Linux-v6.1/drivers/media/v4l2-core/
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-v6.1/drivers/iio/filter/
Dadmv8818.c1 // SPDX-License-Identifier: GPL-2.0-only
120 static int __admv8818_hpf_select(struct admv8818_state *st, u64 freq) in __admv8818_hpf_select() argument
126 if (freq < freq_range_hpf[0][0]) in __admv8818_hpf_select()
129 if (freq > freq_range_hpf[3][1]) { in __admv8818_hpf_select()
137 freq_step = div_u64((freq_range_hpf[i][1] - in __admv8818_hpf_select()
140 if (freq > freq_range_hpf[i][0] && in __admv8818_hpf_select()
141 (freq < freq_range_hpf[i][1] + freq_step)) { in __admv8818_hpf_select()
145 if (freq < (freq_range_hpf[i][0] + (freq_step * j))) { in __admv8818_hpf_select()
146 hpf_step = j - 1; in __admv8818_hpf_select()
155 if (freq >= 12000 * HZ_PER_MHZ && freq <= 12500 * HZ_PER_MHZ) { in __admv8818_hpf_select()
[all …]
/Linux-v6.1/drivers/net/wireless/ath/ath5k/
Deeprom.c2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com>
4 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org>
49 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq()
52 val = bin > 62 ? (10 * 62) + (5 * (bin - 62)) + 5100 : in ath5k_eeprom_bin2freq()
55 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq()
75 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_eeprom_init_header()
89 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_0) in ath5k_eeprom_init_header()
101 eep_max = (eep_max | val) - AR5K_EEPROM_INFO_BASE; in ath5k_eeprom_init_header()
114 return -EIO; in ath5k_eeprom_init_header()
[all …]

12345678910>>...41