Home
last modified time | relevance | path

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

1234567

/linux-5.19.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 …]
/linux-5.19.10/drivers/iio/dac/
Dad3552r.c339 static int ad3552r_transfer(struct ad3552r_desc *dac, u8 addr, u32 len, in ad3552r_transfer() argument
348 return spi_write_then_read(dac->spi, buf, 1, data, len); in ad3552r_transfer()
351 return spi_write_then_read(dac->spi, buf, len + 1, NULL, 0); in ad3552r_transfer()
354 static int ad3552r_write_reg(struct ad3552r_desc *dac, u8 addr, u16 val) in ad3552r_write_reg() argument
369 return ad3552r_transfer(dac, addr, reg_len, buf, false); in ad3552r_write_reg()
372 static int ad3552r_read_reg(struct ad3552r_desc *dac, u8 addr, u16 *val) in ad3552r_read_reg() argument
378 err = ad3552r_transfer(dac, addr, reg_len, buf, true); in ad3552r_read_reg()
397 static int ad3552r_update_reg_field(struct ad3552r_desc *dac, u8 addr, u16 mask, in ad3552r_update_reg_field() argument
403 ret = ad3552r_read_reg(dac, addr, &reg); in ad3552r_update_reg_field()
410 return ad3552r_write_reg(dac, addr, reg); in ad3552r_update_reg_field()
[all …]
Dlpc18xx_dac.c52 struct lpc18xx_dac *dac = iio_priv(indio_dev); in lpc18xx_dac_read_raw() local
57 reg = readl(dac->base + LPC18XX_DAC_CR); in lpc18xx_dac_read_raw()
64 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
77 struct lpc18xx_dac *dac = iio_priv(indio_dev); in lpc18xx_dac_write_raw() local
88 mutex_lock(&dac->lock); in lpc18xx_dac_write_raw()
89 writel(reg, dac->base + LPC18XX_DAC_CR); in lpc18xx_dac_write_raw()
90 writel(LPC18XX_DAC_CTRL_DMA_ENA, dac->base + LPC18XX_DAC_CTRL); in lpc18xx_dac_write_raw()
91 mutex_unlock(&dac->lock); in lpc18xx_dac_write_raw()
107 struct lpc18xx_dac *dac; in lpc18xx_dac_probe() local
110 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()
74 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state()
79 ret = regmap_update_bits(dac->common->regmap, STM32_DAC_CR, msk, en); in stm32_dac_set_enable_state()
80 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state()
92 if (en && dac->common->hfsel) in stm32_dac_set_enable_state()
111 static int stm32_dac_get_value(struct stm32_dac *dac, int channel, int *val) in stm32_dac_get_value() argument
[all …]
Dad5755.c158 } dac[4]; member
608 for (i = 0; i < ARRAY_SIZE(pdata->dac); ++i) { in ad5755_setup_pdata()
609 val = pdata->dac[i].slew.step_size << in ad5755_setup_pdata()
611 val |= pdata->dac[i].slew.rate << in ad5755_setup_pdata()
613 if (pdata->dac[i].slew.enable) in ad5755_setup_pdata()
622 for (i = 0; i < ARRAY_SIZE(pdata->dac); ++i) { in ad5755_setup_pdata()
623 if (!ad5755_is_valid_mode(st, pdata->dac[i].mode)) in ad5755_setup_pdata()
627 if (!pdata->dac[i].ext_current_sense_resistor) in ad5755_setup_pdata()
629 if (pdata->dac[i].enable_voltage_overrange) in ad5755_setup_pdata()
631 val |= pdata->dac[i].mode; in ad5755_setup_pdata()
[all …]
DMakefile32 obj-$(CONFIG_CIO_DAC) += cio-dac.o
33 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
44 obj-$(CONFIG_STM32_DAC_CORE) += stm32-dac-core.o
45 obj-$(CONFIG_STM32_DAC) += stm32-dac.o
/linux-5.19.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 …]
/linux-5.19.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()
/linux-5.19.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()
/linux-5.19.10/Documentation/devicetree/bindings/iio/dac/
Dst,stm32-dac.yaml4 $id: "http://devicetree.org/schemas/iio/dac/st,stm32-dac.yaml#"
23 - st,stm32f4-dac-core
24 - st,stm32h7-dac-core
60 "^dac@[1-2]+$":
68 const: st,stm32-dac
88 dac: dac@40017000 {
89 compatible = "st,stm32h7-dac-core";
97 dac@1 {
98 compatible = "st,stm32-dac";
103 dac@2 {
[all …]
Dfsl,vf610-dac.yaml4 $id: http://devicetree.org/schemas/iio/dac/fsl,vf610-dac.yaml#
14 const: fsl,vf610-dac
26 const: dac
47 dac@400cc000 {
48 compatible = "fsl,vf610-dac";
51 clock-names = "dac";
Dnxp,lpc1850-dac.yaml4 $id: http://devicetree.org/schemas/iio/dac/nxp,lpc1850-dac.yaml#
17 const: nxp,lpc1850-dac
49 dac: dac@400e1000 {
50 compatible = "nxp,lpc1850-dac";
Ddpot-dac.yaml4 $id: http://devicetree.org/schemas/iio/dac/dpot-dac.yaml#
26 | '---' dac output voltage
32 const: dpot-dac
58 dac {
59 compatible = "dpot-dac";
/linux-5.19.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 …]
/linux-5.19.10/Documentation/devicetree/bindings/iio/adc/
Denvelope-detector.yaml22 | dac|-->--|- / |
36 description: Channel node of the dac to be used for comparator input.
39 const: dac
69 dac: dac {
70 compatible = "dpot-dac";
79 io-channels = <&dac 0>;
80 io-channel-names = "dac";
/linux-5.19.10/sound/soc/codecs/
Dsti-sas.c76 struct sti_dac_audio dac; member
88 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
101 status = regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
275 drvdata->dac.mclk = freq; in sti_sas_set_sysclk()
297 if ((drvdata->dac.mclk / runtime->rate) != 256) { in sti_sas_prepare()
438 drvdata->dac.virt_regmap = devm_regmap_init(&pdev->dev, NULL, drvdata, in sti_sas_driver_probe()
440 if (IS_ERR(drvdata->dac.virt_regmap)) { in sti_sas_driver_probe()
442 return PTR_ERR(drvdata->dac.virt_regmap); in sti_sas_driver_probe()
446 drvdata->dac.regmap = in sti_sas_driver_probe()
448 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()
/linux-5.19.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";
/linux-5.19.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 …]
/linux-5.19.10/drivers/iio/adc/
Denvelope-detector.c55 struct iio_channel *dac; member
149 ret = iio_write_channel_raw(env->dac, env->invert ? 0 : env->dac_max); in envelope_detector_setup_compare()
157 ret = iio_write_channel_raw(env->dac, env->level); in envelope_detector_setup_compare()
220 return iio_read_channel_scale(env->dac, val, val2); in envelope_detector_read_raw()
349 env->dac = devm_iio_channel_get(dev, "dac"); in envelope_detector_probe()
350 if (IS_ERR(env->dac)) in envelope_detector_probe()
351 return dev_err_probe(dev, PTR_ERR(env->dac), in envelope_detector_probe()
373 ret = iio_get_channel_type(env->dac, &type); in envelope_detector_probe()
382 ret = iio_read_max_channel_raw(env->dac, &env->dac_max); in envelope_detector_probe()
/linux-5.19.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>;
/linux-5.19.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

1234567