Home
last modified time | relevance | path

Searched refs:dac (Results 1 – 25 of 139) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dtables_lpphy.c1070 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 152, },
1071 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 147, },
1072 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 143, },
1073 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 139, },
1074 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 135, },
1075 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 131, },
1076 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 128, },
1077 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 124, },
1078 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 121, },
1079 { .gm = 7, .pga = 15, .pad = 14, .dac = 0, .bb_mult = 117, },
[all …]
/kernel/linux/linux-5.10/sound/soc/img/
Dpistachio-internal-dac.c82 static void pistachio_internal_dac_pwr_off(struct pistachio_internal_dac *dac) in pistachio_internal_dac_pwr_off() argument
84 regmap_update_bits(dac->regmap, PISTACHIO_INTERNAL_DAC_CTRL, in pistachio_internal_dac_pwr_off()
88 pistachio_internal_dac_reg_writel(dac->regmap, 0, in pistachio_internal_dac_pwr_off()
92 static void pistachio_internal_dac_pwr_on(struct pistachio_internal_dac *dac) in pistachio_internal_dac_pwr_on() argument
94 regmap_update_bits(dac->regmap, PISTACHIO_INTERNAL_DAC_SRST, in pistachio_internal_dac_pwr_on()
98 regmap_update_bits(dac->regmap, PISTACHIO_INTERNAL_DAC_SRST, in pistachio_internal_dac_pwr_on()
101 pistachio_internal_dac_reg_writel(dac->regmap, in pistachio_internal_dac_pwr_on()
105 regmap_update_bits(dac->regmap, PISTACHIO_INTERNAL_DAC_CTRL, in pistachio_internal_dac_pwr_on()
124 struct pistachio_internal_dac *dac = snd_soc_component_get_drvdata(component); in pistachio_internal_dac_codec_probe() local
126 snd_soc_component_init_regmap(component, dac->regmap); in pistachio_internal_dac_codec_probe()
[all …]
/kernel/linux/linux-5.10/drivers/iio/dac/
Dlpc18xx_dac.c53 struct lpc18xx_dac *dac = iio_priv(indio_dev); in lpc18xx_dac_read_raw() local
58 reg = readl(dac->base + LPC18XX_DAC_CR); in lpc18xx_dac_read_raw()
65 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
78 struct lpc18xx_dac *dac = iio_priv(indio_dev); in lpc18xx_dac_write_raw() local
89 mutex_lock(&dac->lock); in lpc18xx_dac_write_raw()
90 writel(reg, dac->base + LPC18XX_DAC_CR); in lpc18xx_dac_write_raw()
91 writel(LPC18XX_DAC_CTRL_DMA_ENA, dac->base + LPC18XX_DAC_CTRL); in lpc18xx_dac_write_raw()
92 mutex_unlock(&dac->lock); in lpc18xx_dac_write_raw()
108 struct lpc18xx_dac *dac; in lpc18xx_dac_probe() local
111 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*dac)); in lpc18xx_dac_probe()
[all …]
Ddpot-dac.c56 struct dpot_dac *dac = iio_priv(indio_dev); in dpot_dac_read_raw() local
62 return iio_read_channel_raw(dac->dpot, val); in dpot_dac_read_raw()
65 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw()
69 do_div(tmp, dac->max_ohms); in dpot_dac_read_raw()
70 tmp *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
84 *val *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
85 *val2 *= dac->max_ohms; in dpot_dac_read_raw()
100 struct dpot_dac *dac = iio_priv(indio_dev); in dpot_dac_read_avail() local
105 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail()
115 struct dpot_dac *dac = iio_priv(indio_dev); in dpot_dac_write_raw() local
[all …]
Dstm32-dac.c39 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_is_enabled() local
43 ret = regmap_read(dac->common->regmap, STM32_DAC_CR, &val); in stm32_dac_is_enabled()
57 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_set_enable_state() local
64 mutex_lock(&dac->lock); in stm32_dac_set_enable_state()
67 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state()
75 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state()
80 ret = regmap_update_bits(dac->common->regmap, STM32_DAC_CR, msk, en); in stm32_dac_set_enable_state()
81 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state()
93 if (en && dac->common->hfsel) in stm32_dac_set_enable_state()
112 static int stm32_dac_get_value(struct stm32_dac *dac, int channel, int *val) in stm32_dac_get_value() argument
[all …]
Dad5755.c515 for (i = 0; i < ARRAY_SIZE(pdata->dac); ++i) { in ad5755_setup_pdata()
516 val = pdata->dac[i].slew.step_size << in ad5755_setup_pdata()
518 val |= pdata->dac[i].slew.rate << in ad5755_setup_pdata()
520 if (pdata->dac[i].slew.enable) in ad5755_setup_pdata()
529 for (i = 0; i < ARRAY_SIZE(pdata->dac); ++i) { in ad5755_setup_pdata()
530 if (!ad5755_is_valid_mode(st, pdata->dac[i].mode)) in ad5755_setup_pdata()
534 if (!pdata->dac[i].ext_current_sense_resistor) in ad5755_setup_pdata()
536 if (pdata->dac[i].enable_voltage_overrange) in ad5755_setup_pdata()
538 val |= pdata->dac[i].mode; in ad5755_setup_pdata()
572 if (pdata && ad5755_is_voltage_mode(pdata->dac[i].mode)) in ad5755_init_channels()
[all …]
DMakefile29 obj-$(CONFIG_CIO_DAC) += cio-dac.o
30 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
40 obj-$(CONFIG_STM32_DAC_CORE) += stm32-dac-core.o
41 obj-$(CONFIG_STM32_DAC) += stm32-dac.o
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Ddacnv50.c29 nv50_dac_clock(struct nvkm_ior *dac) in nv50_dac_clock() argument
31 struct nvkm_device *device = dac->disp->engine.subdev.device; in nv50_dac_clock()
32 const u32 doff = nv50_ior_base(dac); in nv50_dac_clock()
37 nv50_dac_sense(struct nvkm_ior *dac, u32 loadval) in nv50_dac_sense() argument
39 struct nvkm_device *device = dac->disp->engine.subdev.device; in nv50_dac_sense()
40 const u32 doff = nv50_ior_base(dac); in nv50_dac_sense()
42 dac->func->power(dac, false, true, false, false, false); in nv50_dac_sense()
49 dac->func->power(dac, false, false, false, false, false); in nv50_dac_sense()
66 nv50_dac_power(struct nvkm_ior *dac, bool normal, bool pu, in nv50_dac_power() argument
69 struct nvkm_device *device = dac->disp->engine.subdev.device; in nv50_dac_power()
[all …]
Ddacgf119.c25 gf119_dac_clock(struct nvkm_ior *dac) in gf119_dac_clock() argument
27 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_clock()
28 const u32 doff = nv50_ior_base(dac); in gf119_dac_clock()
33 gf119_dac_state(struct nvkm_ior *dac, struct nvkm_ior_state *state) in gf119_dac_state() argument
35 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_state()
36 const u32 coff = (state == &dac->asy) * 0x20000 + dac->id * 0x20; in gf119_dac_state()
/kernel/linux/linux-5.10/drivers/leds/
Dleds-dac124s085.c52 struct dac124s085 *dac; in dac124s085_probe() local
56 dac = devm_kzalloc(&spi->dev, sizeof(*dac), GFP_KERNEL); in dac124s085_probe()
57 if (!dac) in dac124s085_probe()
62 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) { in dac124s085_probe()
63 led = dac->leds + i; in dac124s085_probe()
77 spi_set_drvdata(spi, dac); in dac124s085_probe()
83 led_classdev_unregister(&dac->leds[i].ldev); in dac124s085_probe()
90 struct dac124s085 *dac = spi_get_drvdata(spi); in dac124s085_remove() local
93 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) in dac124s085_remove()
94 led_classdev_unregister(&dac->leds[i].ldev); in dac124s085_remove()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Denvelope-detector.txt12 | dac|-->--|- / |
22 - io-channels: Channel node of the dac to be used for comparator input.
23 - io-channel-names: Should be "dac".
38 dac: dac {
39 compatible = "dpot-dac";
48 io-channels = <&dac 0>;
49 io-channel-names = "dac";
/kernel/linux/linux-5.10/sound/mips/
Dhal2.c83 struct hal2_codec dac; member
303 if (hal2->dac.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { in hal2_interrupt()
304 snd_pcm_period_elapsed(hal2->dac.substream); in hal2_interrupt()
335 unsigned int master = hal2->dac.master; in hal2_set_dac_rate()
336 int inc = hal2->dac.inc; in hal2_set_dac_rate()
337 int mod = hal2->dac.mod; in hal2_set_dac_rate()
358 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_setup_dac()
365 sample_size = 2 * hal2->dac.voices; in hal2_setup_dac()
385 | (hal2->dac.voices << H2I_C1_DATAT_SHIFT)); in hal2_setup_dac()
415 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_start_dac()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/dac/
Dvf610-dac.txt7 - compatible: Should contain "fsl,vf610-dac"
11 - clock-names: Must contain "dac" matching entry in the clocks property.
14 dac0: dac@400cc000 {
15 compatible = "fsl,vf610-dac";
18 clock-names = "dac";
Dlpc1850-dac.txt4 - compatible: Should be "nxp,lpc1850-dac"
12 dac: dac@400e1000 {
13 compatible = "nxp,lpc1850-dac";
Ddpot-dac.txt16 | '---' dac output voltage
21 - compatible: Should be "dpot-dac"
36 dac {
37 compatible = "dpot-dac";
/kernel/linux/linux-5.10/sound/soc/codecs/
Dsti-sas.c79 struct sti_dac_audio dac; member
91 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
104 status = regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
278 drvdata->dac.mclk = freq; in sti_sas_set_sysclk()
300 if ((drvdata->dac.mclk / runtime->rate) != 256) { in sti_sas_prepare()
441 drvdata->dac.virt_regmap = devm_regmap_init(&pdev->dev, NULL, drvdata, in sti_sas_driver_probe()
443 if (IS_ERR(drvdata->dac.virt_regmap)) { in sti_sas_driver_probe()
445 return PTR_ERR(drvdata->dac.virt_regmap); in sti_sas_driver_probe()
449 drvdata->dac.regmap = in sti_sas_driver_probe()
451 if (IS_ERR(drvdata->dac.regmap)) { in sti_sas_driver_probe()
[all …]
Dtlv320aic23.c230 int dac, int dac_l, int dac_h, int need_dac) in get_score() argument
233 (dac >= dac_l) && (dac <= dac_h)) { in get_score()
235 int diff_dac = need_dac - dac; in get_score()
265 int dac; in find_rate() local
270 dac = base * sr_dac_mult_table[j]; in find_rate()
272 dac, dac_l, dac_h, need_dac); in find_rate()
280 (dac >> 1), dac_l, dac_h, need_dac); in find_rate()
301 int dac = (val * sr_dac_mult_table[sr]) / SR_MULT; in get_current_sample_rates() local
304 dac >>= 1; in get_current_sample_rates()
307 *sample_rate_dac = dac; in get_current_sample_rates()
[all …]
Dwm8728.c90 u16 dac = snd_soc_component_read(component, WM8728_DACCTL); in wm8728_hw_params() local
92 dac &= ~0x18; in wm8728_hw_params()
98 dac |= 0x10; in wm8728_hw_params()
101 dac |= 0x08; in wm8728_hw_params()
107 snd_soc_component_write(component, WM8728_DACCTL, dac); in wm8728_hw_params()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dimg,pistachio-internal-dac.txt5 - compatible: "img,pistachio-internal-dac"
8 node which contains the internal dac control registers
14 internal_dac: internal-dac {
15 compatible = "img,pistachio-internal-dac";
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dffb.c355 struct ffb_dac __iomem *dac; member
427 struct ffb_dac __iomem *dac = par->dac; in ffb_switch_from_graph() local
446 upa_writel(FFB_DAC_CUR_CTRL, &dac->type2); in ffb_switch_from_graph()
448 upa_writel(0, &dac->value2); in ffb_switch_from_graph()
451 FFB_DAC_CUR_CTRL_P1), &dac->value2); in ffb_switch_from_graph()
676 struct ffb_dac __iomem *dac = par->dac; in ffb_blank() local
685 upa_writel(FFB_DAC_TGEN, &dac->type); in ffb_blank()
686 val = upa_readl(&dac->value); in ffb_blank()
701 upa_writel(FFB_DAC_TGEN, &dac->type); in ffb_blank()
702 upa_writel(val, &dac->value); in ffb_blank()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Denvelope-detector.c56 struct iio_channel *dac; member
150 ret = iio_write_channel_raw(env->dac, env->invert ? 0 : env->dac_max); in envelope_detector_setup_compare()
158 ret = iio_write_channel_raw(env->dac, env->level); in envelope_detector_setup_compare()
221 return iio_read_channel_scale(env->dac, val, val2); in envelope_detector_read_raw()
350 env->dac = devm_iio_channel_get(dev, "dac"); in envelope_detector_probe()
351 if (IS_ERR(env->dac)) in envelope_detector_probe()
352 return dev_err_probe(dev, PTR_ERR(env->dac), in envelope_detector_probe()
374 ret = iio_get_channel_type(env->dac, &type); in envelope_detector_probe()
383 ret = iio_read_max_channel_raw(env->dac, &env->dac_max); in envelope_detector_probe()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/i2c/
Dadv7343.txt19 - ad,adv7343-power-mode-dac: array configuring the power on/off DAC's 1..6,
22 - ad,adv7343-sd-config-dac-out: array configure SD DAC Output's 1 and 2, 0 = OFF
41 adi,dac-enable = <1 1 1 0 0 1>;
43 adi,sd-dac-enable = <1 0>;
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun4i_tv.c30 #define SUN4I_TVE_EN_DAC_MAP(dac, out) (((out) & 0xf) << (dac + 1) * 4) argument
51 #define SUN4I_TVE_DAC0_DAC_EN(dac) BIT(dac) argument
54 #define SUN4I_TVE_NOTCH_DAC0_TO_DAC_DLY(dac, x) ((4 - (x)) << (dac * 3)) argument
71 #define SUN4I_TVE_DAC1_AMPLITUDE(dac, x) ((x) << (dac * 8)) argument
74 #define SUN4I_TVE_DETECT_STA_DAC(dac) BIT((dac * 8)) argument
/kernel/linux/linux-5.10/sound/soc/tegra/
Dtegra20_das.c35 int tegra20_das_connect_dap_to_dac(int dap, int dac) in tegra20_das_connect_dap_to_dac() argument
45 reg = dac << TEGRA20_DAS_DAP_CTRL_SEL_DAP_CTRL_SEL_P; in tegra20_das_connect_dap_to_dac()
75 int tegra20_das_connect_dac_to_dap(int dac, int dap) in tegra20_das_connect_dac_to_dap() argument
84 (dac * TEGRA20_DAS_DAC_INPUT_DATA_CLK_SEL_STRIDE); in tegra20_das_connect_dac_to_dap()
/kernel/linux/linux-5.10/sound/pci/ice1712/
Dphase.c354 int dac; in wm_master_vol_put() local
356 for (dac = 0; dac < ice->num_total_dacs; dac += 2) in wm_master_vol_put()
357 wm_set_vol(ice, WM_DAC_ATTEN + dac + ch, in wm_master_vol_put()
358 spec->vol[dac + ch], in wm_master_vol_put()
604 int dac; in wm_master_mute_put() local
609 for (dac = 0; dac < ice->num_total_dacs; dac += 2) in wm_master_mute_put()
610 wm_set_vol(ice, WM_DAC_ATTEN + dac + i, in wm_master_mute_put()
611 spec->vol[dac + i], in wm_master_mute_put()

123456