/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables_lpphy.c | 1070 { .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/drivers/iio/dac/ |
H A D | ad3552r.c | 55 static int ad3552r_transfer(struct ad3552r_desc *dac, u8 addr, u32 len, in ad3552r_transfer() argument 64 return spi_write_then_read(dac->spi, buf, 1, data, len); in ad3552r_transfer() 67 return spi_write_then_read(dac->spi, buf, len + 1, NULL, 0); in ad3552r_transfer() 70 static int ad3552r_write_reg(struct ad3552r_desc *dac, u8 addr, u16 val) in ad3552r_write_reg() argument 85 return ad3552r_transfer(dac, addr, reg_len, buf, false); in ad3552r_write_reg() 88 static int ad3552r_read_reg(struct ad3552r_desc *dac, u8 addr, u16 *val) in ad3552r_read_reg() argument 94 err = ad3552r_transfer(dac, addr, reg_len, buf, true); in ad3552r_read_reg() 108 static int ad3552r_update_reg_field(struct ad3552r_desc *dac, u8 addr, u16 mask, in ad3552r_update_reg_field() argument 114 ret = ad3552r_read_reg(dac, addr, ®); in ad3552r_update_reg_field() 121 return ad3552r_write_reg(dac, addr, reg); in ad3552r_update_reg_field() [all …]
|
H A D | ad5766.c | 145 static int __ad5766_spi_read(struct ad5766_state *st, u8 dac, int *val) in __ad5766_spi_read() argument 162 st->data[0].d32 = AD5766_CMD_READBACK_REG(dac); in __ad5766_spi_read() 182 static int ad5766_read(struct iio_dev *indio_dev, u8 dac, int *val) in ad5766_read() argument 188 ret = __ad5766_spi_read(st, dac, val); in ad5766_read() 194 static int ad5766_write(struct iio_dev *indio_dev, u8 dac, u16 data) in ad5766_write() argument 200 ret = __ad5766_spi_write(st, AD5766_CMD_WR_DAC_REG(dac), data); in ad5766_write()
|
/linux/sound/soc/img/ |
H A D | pistachio-internal-dac.c | 82 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/drivers/leds/ |
H 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/sound/soc/codecs/ |
H A D | sti-sas.c | 72 struct sti_dac_audio dac; member 84 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg() 96 return regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg() 268 drvdata->dac.mclk = freq; in sti_sas_set_sysclk() 290 if ((drvdata->dac.mclk / runtime->rate) != 256) { in sti_sas_prepare() 427 drvdata->dac.virt_regmap = devm_regmap_init(&pdev->dev, NULL, drvdata, in sti_sas_driver_probe() 429 if (IS_ERR(drvdata->dac.virt_regmap)) { in sti_sas_driver_probe() 431 return PTR_ERR(drvdata->dac.virt_regmap); in sti_sas_driver_probe() 435 drvdata->dac.regmap = in sti_sas_driver_probe() 437 if (IS_ERR(drvdata->dac.regmap)) { in sti_sas_driver_probe() [all …]
|
H 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() 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 …]
|
H A D | wm8728.c | 90 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/drivers/video/fbdev/ |
H 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 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 …]
|
H A D | arkfb.c | 34 struct dac_info *dac; member 360 struct dac_info dac; member 497 int rv = dac_set_freq(par->dac, 0, 1000000000 / pixclock); in ark_set_pixclock() 547 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_release() 714 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 723 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 730 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 740 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 744 dac_set_mode(par->dac, DAC_PSEUDO8_16); in arkfb_set_par() 753 dac_set_mode(par->dac, DAC_RGB1555_16); in arkfb_set_par() [all …]
|
H A D | pmag-ba-fb.c | 42 volatile u32 __iomem *dac; member 82 writeb(v, par->dac + reg / 4); in dac_write() 87 return readb(par->dac + reg / 4); in dac_read() 186 par->dac = par->mmio + PMAG_BA_BT459; in pmagbafb_probe()
|
/linux/Documentation/devicetree/bindings/sound/ |
H 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/ |
H A D | envelope-detector.c | 55 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/drivers/gpu/drm/sun4i/ |
H A D | sun4i_tv.c | 31 #define SUN4I_TVE_EN_DAC_MAP(dac, out) (((out) & 0xf) << (dac + 1) * 4) argument 52 #define SUN4I_TVE_DAC0_DAC_EN(dac) BIT(dac) argument 55 #define SUN4I_TVE_NOTCH_DAC0_TO_DAC_DLY(dac, x) ((4 - (x)) << (dac * 3)) argument 72 #define SUN4I_TVE_DAC1_AMPLITUDE(dac, x) ((x) << (dac * 8)) argument 75 #define SUN4I_TVE_DETECT_STA_DAC(dac) BIT((dac * 8)) argument
|
/linux/sound/soc/tegra/ |
H A D | tegra20_das.c | 104 static void tegra20_das_connect_dap_to_dac(struct tegra20_das *das, int dap, int dac) in tegra20_das_connect_dap_to_dac() argument 111 reg = dac << TEGRA20_DAS_DAP_CTRL_SEL_DAP_CTRL_SEL_P; in tegra20_das_connect_dap_to_dac() 116 static void tegra20_das_connect_dac_to_dap(struct tegra20_das *das, int dac, int dap) in tegra20_das_connect_dac_to_dap() argument 122 (dac * TEGRA20_DAS_DAC_INPUT_DATA_CLK_SEL_STRIDE); in tegra20_das_connect_dac_to_dap()
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | adv7343.txt | 19 - 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/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | nv50.c | 275 nv50_dac_clock(struct nvkm_ior *dac) in nv50_dac_clock() argument 277 struct nvkm_device *device = dac->disp->engine.subdev.device; in nv50_dac_clock() 278 const u32 doff = nv50_ior_base(dac); in nv50_dac_clock() 284 nv50_dac_sense(struct nvkm_ior *dac, u32 loadval) in nv50_dac_sense() argument 286 struct nvkm_device *device = dac->disp->engine.subdev.device; in nv50_dac_sense() 287 const u32 doff = nv50_ior_base(dac); in nv50_dac_sense() 289 dac->func->power(dac, false, true, false, false, false); in nv50_dac_sense() 296 dac->func->power(dac, false, false, false, false, false); in nv50_dac_sense() 313 nv50_dac_power(struct nvkm_ior *dac, bool normal, bool pu, bool data, bool vsync, bool hsync) in nv50_dac_power() argument 315 struct nvkm_device *device = dac->disp->engine.subdev.device; in nv50_dac_power() [all …]
|
/linux/sound/pci/ice1712/ |
H A D | phase.c | 354 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()
|
/linux/drivers/hwmon/ |
H A D | max6650.c | 114 u8 dac; member 140 static int dac_to_pwm(int dac, bool v12) in dac_to_pwm() argument 146 return clamp_val(255 - (255 * dac) / DAC_LIMIT(v12), 0, 255); in dac_to_pwm() 445 data->dac = reg; in max6650_init_client() 499 data->dac = pwm_to_dac(state, data->config & MAX6650_CFG_V12); in max6650_set_cur_state() 500 err = i2c_smbus_write_byte_data(client, MAX6650_REG_DAC, data->dac); in max6650_set_cur_state() 532 *val = dac_to_pwm(data->dac, in max6650_read() 629 data->dac = reg; in max6650_write()
|
/linux/drivers/media/i2c/ |
H A D | adv7343.c | 232 state->pdata->mode_config.dac[2] << 2 | in adv7343_setoutput() 233 state->pdata->mode_config.dac[1] << 3 | in adv7343_setoutput() 234 state->pdata->mode_config.dac[0] << 4 | in adv7343_setoutput() 235 state->pdata->mode_config.dac[5] << 5 | in adv7343_setoutput() 236 state->pdata->mode_config.dac[4] << 6 | in adv7343_setoutput() 237 state->pdata->mode_config.dac[3] << 7; in adv7343_setoutput() 421 pdata->mode_config.dac, 6); in adv7343_get_pdata()
|
H A D | ak881x.c | 183 u8 dac; in ak881x_s_stream() local 187 dac = 3; in ak881x_s_stream() 189 dac = 4; in ak881x_s_stream() 191 reg_write(client, AK881X_DAC_MODE, dac); in ak881x_s_stream()
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-tse850-3.dts | 61 dac: dpot-dac { label 62 compatible = "dpot-dac"; 71 io-channels = <&dac 0>; 72 io-channel-names = "dac";
|
/linux/arch/alpha/kernel/ |
H A D | core_cia.c | 860 int lock, dac; in cia_decode_pci_error() local 864 dac = (cia->pci_err0 >> 5) & 1; in cia_decode_pci_error() 871 if (dac) { in cia_decode_pci_error() 880 window, lock, dac); in cia_decode_pci_error() 907 int dac; in cia_decode_pci_error() local 912 dac = (cia->pci_err0 >> 28) & 1; in cia_decode_pci_error() 915 if (dac) { in cia_decode_pci_error() 925 addr, dac); in cia_decode_pci_error()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-adc-envelope-detector | 16 | dac|-->--|- / | 26 dac instead of zero. The envelope detector will search
|
/linux/sound/pci/hda/ |
H A D | hda_generic.c | 1357 return spec->multi_io[idx].dac; in get_primary_out() 1363 hda_nid_t dac, hda_nid_t pin) in try_dac() argument 1365 return is_reachable_path(codec, dac, pin) ? dac : 0; in try_dac() 1377 hda_nid_t dac; in try_assign_dacs() local 1416 dac = dacs[i]; in try_assign_dacs() 1417 if (!dac) { in try_assign_dacs() 1419 dac = try_dac(codec, get_primary_out(codec, i), pin); in try_assign_dacs() 1420 if (!dac) in try_assign_dacs() 1421 dac = try_dac(codec, dacs[0], pin); in try_assign_dacs() 1422 if (!dac) in try_assign_dacs() [all …]
|