/linux/drivers/net/wireless/broadcom/b43/ |
A D | tables_lpphy.c | 1278 { .gm = 4, .pga = 9, .pad = 5, .dac = 0, .bb_mult = 70, }, 1279 { .gm = 4, .pga = 9, .pad = 5, .dac = 0, .bb_mult = 68, }, 1280 { .gm = 4, .pga = 9, .pad = 5, .dac = 0, .bb_mult = 66, }, 1281 { .gm = 4, .pga = 9, .pad = 5, .dac = 0, .bb_mult = 64, }, 1282 { .gm = 4, .pga = 9, .pad = 5, .dac = 0, .bb_mult = 63, }, 1283 { .gm = 4, .pga = 9, .pad = 5, .dac = 0, .bb_mult = 61, }, 1284 { .gm = 4, .pga = 9, .pad = 5, .dac = 0, .bb_mult = 59, }, 1285 { .gm = 4, .pga = 9, .pad = 4, .dac = 0, .bb_mult = 71, }, 1286 { .gm = 4, .pga = 9, .pad = 4, .dac = 0, .bb_mult = 69, }, 2352 tmp |= data.dac; in lpphy_rev0_1_write_gain_table() [all …]
|
/linux/sound/soc/img/ |
A D | pistachio-internal-dac.c | 146 struct pistachio_internal_dac *dac; in pistachio_internal_dac_probe() local 151 dac = devm_kzalloc(dev, sizeof(*dac), GFP_KERNEL); in pistachio_internal_dac_probe() 153 if (!dac) in pistachio_internal_dac_probe() 156 platform_set_drvdata(pdev, dac); in pistachio_internal_dac_probe() 160 if (IS_ERR(dac->regmap)) in pistachio_internal_dac_probe() 161 return PTR_ERR(dac->regmap); in pistachio_internal_dac_probe() 164 if (IS_ERR(dac->supply)) { in pistachio_internal_dac_probe() 165 ret = PTR_ERR(dac->supply); in pistachio_internal_dac_probe() 217 regulator_disable(dac->supply); in pistachio_internal_dac_probe() 228 regulator_disable(dac->supply); in pistachio_internal_dac_remove() [all …]
|
/linux/drivers/iio/dac/ |
A D | lpc18xx_dac.c | 89 mutex_lock(&dac->lock); 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 116 dac = iio_priv(indio_dev); in lpc18xx_dac_probe() 117 mutex_init(&dac->lock); in lpc18xx_dac_probe() 120 if (IS_ERR(dac->base)) in lpc18xx_dac_probe() 121 return PTR_ERR(dac->base); in lpc18xx_dac_probe() 124 if (IS_ERR(dac->clk)) in lpc18xx_dac_probe() 129 if (IS_ERR(dac->vref)) in lpc18xx_dac_probe() 165 regulator_disable(dac->vref); in lpc18xx_dac_probe() [all …]
|
A D | dpot-dac.c | 56 struct dpot_dac *dac = iio_priv(indio_dev); in dpot_dac_read_raw() local 69 do_div(tmp, dac->max_ohms); in dpot_dac_read_raw() 85 *val2 *= dac->max_ohms; in dpot_dac_read_raw() 169 struct dpot_dac *dac; in dpot_dac_probe() local 178 dac = iio_priv(indio_dev); in dpot_dac_probe() 187 if (IS_ERR(dac->vref)) in dpot_dac_probe() 192 if (IS_ERR(dac->dpot)) in dpot_dac_probe() 208 dac->max_ohms = ret; in dpot_dac_probe() 210 ret = regulator_enable(dac->vref); in dpot_dac_probe() 225 regulator_disable(dac->vref); in dpot_dac_probe() [all …]
|
A D | stm32-dac.c | 39 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_is_enabled() local 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() 80 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state() 92 if (en && dac->common->hfsel) in stm32_dac_set_enable_state() 145 *val = dac->common->vref_mv; in stm32_dac_read_raw() 314 struct stm32_dac *dac; in stm32_dac_probe() local 325 dac = iio_priv(indio_dev); in stm32_dac_probe() [all …]
|
A D | ad5755.c | 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() 536 if (pdata->dac[i].enable_voltage_overrange) in ad5755_setup_pdata() 538 val |= pdata->dac[i].mode; in ad5755_setup_pdata() 599 .dac = { 665 pdata->dac[devnr].mode = tmp; in ad5755_parse_dt() 681 pdata->dac[devnr].slew.rate = in ad5755_parse_dt() 694 pdata->dac[devnr].slew.step_size = in ad5755_parse_dt() 704 pdata->dac[devnr].slew.enable = false; in ad5755_parse_dt() [all …]
|
A D | .built-in.a.cmd | 1 …dac/built-in.a := echo >/dev/null; rm -f drivers/iio/dac/built-in.a; /usr/bin/ccache /home/test/wo…
|
A D | Makefile | 30 obj-$(CONFIG_CIO_DAC) += cio-dac.o 31 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o 41 obj-$(CONFIG_STM32_DAC_CORE) += stm32-dac-core.o 42 obj-$(CONFIG_STM32_DAC) += stm32-dac.o
|
/linux/fs/xfs/libxfs/ |
A D | xfs_attr.c | 252 struct xfs_delattr_context *dac) in xfs_attr_trans_roll() argument 302 struct xfs_delattr_context *dac, in xfs_attr_sf_addname() argument 361 switch (dac->dela_state) { in xfs_attr_set_iter() 399 dac->dela_state, args->dp); in xfs_attr_set_iter() 441 if (dac->blkcnt > 0) { in xfs_attr_set_iter() 501 dac->dela_state, args->dp); in xfs_attr_set_iter() 552 if (dac->blkcnt > 0) { in xfs_attr_set_iter() 1138 if (dac->da_state) in xfs_attr_node_addname_find_attr() 1400 switch (dac->dela_state) { in xfs_attr_remove_iter() 1419 if (!dac->da_state) { in xfs_attr_remove_iter() [all …]
|
A D | xfs_attr_remote.c | 571 struct xfs_delattr_context *dac) in xfs_attr_rmtval_find_space() argument 574 struct xfs_bmbt_irec *map = &dac->map; in xfs_attr_rmtval_find_space() 577 dac->lblkno = 0; in xfs_attr_rmtval_find_space() 578 dac->blkcnt = 0; in xfs_attr_rmtval_find_space() 587 dac->blkcnt = args->rmtblkcnt; in xfs_attr_rmtval_find_space() 588 dac->lblkno = args->rmtblkno; in xfs_attr_rmtval_find_space() 601 struct xfs_delattr_context *dac) in xfs_attr_rmtval_set_blk() argument 621 dac->lblkno += map->br_blockcount; in xfs_attr_rmtval_set_blk() 622 dac->blkcnt -= map->br_blockcount; in xfs_attr_rmtval_set_blk() 676 struct xfs_delattr_context *dac) in xfs_attr_rmtval_remove() argument [all …]
|
A D | xfs_attr_remote.h | 15 int xfs_attr_rmtval_remove(struct xfs_delattr_context *dac); 18 int xfs_attr_rmtval_set_blk(struct xfs_delattr_context *dac); 19 int xfs_attr_rmtval_find_space(struct xfs_delattr_context *dac);
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
A D | dacnv50.c | 29 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 70 const u32 doff = nv50_ior_base(dac); in nv50_dac_power() [all …]
|
A D | dacgf119.c | 25 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/drivers/leds/ |
A D | leds-dac124s085.c | 52 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/Documentation/devicetree/bindings/iio/dac/ |
A D | st,stm32-dac.yaml | 4 $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 …]
|
A D | fsl,vf610-dac.yaml | 4 $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";
|
A D | nxp,lpc1850-dac.yaml | 4 $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";
|
A D | dpot-dac.yaml | 4 $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/sound/mips/ |
A D | hal2.c | 83 struct hal2_codec dac; member 336 int inc = hal2->dac.inc; in hal2_set_dac_rate() 337 int mod = hal2->dac.mod; in hal2_set_dac_rate() 532 struct hal2_codec *dac = &hal2->dac; in hal2_playback_prepare() local 535 dac->sample_rate = hal2_compute_rate(dac, runtime->rate); in hal2_playback_prepare() 536 memset(&dac->pcm_indirect, 0, sizeof(dac->pcm_indirect)); in hal2_playback_prepare() 539 dac->pcm_indirect.hw_io = dac->buffer_dma; in hal2_playback_prepare() 541 dac->substream = substream; in hal2_playback_prepare() 567 struct hal2_codec *dac = &hal2->dac; in hal2_playback_pointer() local 589 struct hal2_codec *dac = &hal2->dac; in hal2_playback_ack() local [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
A D | envelope-detector.yaml | 22 | 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/sound/soc/codecs/ |
A D | sti-sas.c | 76 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() 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() 450 return PTR_ERR(drvdata->dac.regmap); in sti_sas_driver_probe() [all …]
|
A D | tlv320aic23.c | 230 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() 304 dac >>= 1; in get_current_sample_rates() 307 *sample_rate_dac = dac; in get_current_sample_rates() 324 u32 adc, dac; in set_sample_rate_control() local [all …]
|
/linux/drivers/video/fbdev/ |
A D | ffb.c | 355 struct ffb_dac __iomem *dac; member 427 struct ffb_dac __iomem *dac = par->dac; in ffb_switch_from_graph() local 448 upa_writel(0, &dac->value2); in ffb_switch_from_graph() 676 struct ffb_dac __iomem *dac = par->dac; in ffb_blank() local 686 val = upa_readl(&dac->value); in ffb_blank() 702 upa_writel(val, &dac->value); in ffb_blank() 705 upa_readl(&dac->value); in ffb_blank() 901 struct ffb_dac __iomem *dac; in ffb_probe() local 923 if (!par->dac) in ffb_probe() 957 dac = par->dac; in ffb_probe() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
A D | img,pistachio-internal-dac.txt | 5 - 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/drivers/iio/adc/ |
A D | envelope-detector.c | 56 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()
|