| /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 …]
|
| /drivers/iio/dac/ |
| A D | ad3552r.c | 248 if (!dac->gpio_ldac) { in ad3552r_write_all_channels() 257 if (dac->gpio_ldac) in ad3552r_write_all_channels() 283 if (dac->gpio_ldac) in ad3552r_write_codes() 367 dac->gpio_reset = devm_gpiod_get_optional(&dac->spi->dev, "reset", in ad3552r_reset() 370 return dev_err_probe(&dac->spi->dev, PTR_ERR(dac->gpio_reset), in ad3552r_reset() 388 addr.dac = dac; in ad3552r_reset() 450 reg = ad3552r_calc_custom_gain(dac->ch_data[ch].p, dac->ch_data[ch].n, in ad3552r_configure_custom_gain() 493 if (!dac->num_ch) { in ad3552r_configure_device() 537 ad3552r_calc_gain_and_offset(&dac->ch_data[ch], dac->model_data); in ad3552r_configure_device() 572 dac->num_ch = cnt; in ad3552r_configure_device() [all …]
|
| A D | lpc18xx_dac.c | 88 mutex_lock(&dac->lock); 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 115 dac = iio_priv(indio_dev); in lpc18xx_dac_probe() 116 mutex_init(&dac->lock); in lpc18xx_dac_probe() 119 if (IS_ERR(dac->base)) in lpc18xx_dac_probe() 120 return PTR_ERR(dac->base); in lpc18xx_dac_probe() 123 if (IS_ERR(dac->clk)) in lpc18xx_dac_probe() 128 if (IS_ERR(dac->vref)) in lpc18xx_dac_probe() 164 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 | 43 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_is_enabled() local 61 struct stm32_dac *dac = iio_priv(indio_dev); in stm32_dac_set_enable_state() local 68 mutex_lock(&dac->lock); in stm32_dac_set_enable_state() 71 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state() 78 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state() 84 mutex_unlock(&dac->lock); in stm32_dac_set_enable_state() 95 if (en && dac->common->hfsel) in stm32_dac_set_enable_state() 148 *val = dac->common->vref_mv; in stm32_dac_read_raw() 317 struct stm32_dac *dac; in stm32_dac_probe() local 328 dac = iio_priv(indio_dev); in stm32_dac_probe() [all …]
|
| A D | ad5755.c | 158 } dac[4]; member 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() 629 if (pdata->dac[i].enable_voltage_overrange) in ad5755_setup_pdata() 631 val |= pdata->dac[i].mode; in ad5755_setup_pdata() 692 .dac = { 771 pdata->dac[devnr].slew.rate = in ad5755_parse_fw() 784 pdata->dac[devnr].slew.step_size = in ad5755_parse_fw() 794 pdata->dac[devnr].slew.enable = false; in ad5755_parse_fw() [all …]
|
| A D | Makefile | 37 obj-$(CONFIG_ADI_AXI_DAC) += adi-axi-dac.o 39 obj-$(CONFIG_CIO_DAC) += cio-dac.o 40 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o 55 obj-$(CONFIG_STM32_DAC_CORE) += stm32-dac-core.o 56 obj-$(CONFIG_STM32_DAC) += stm32-dac.o
|
| A D | ad5766.c | 145 static int __ad5766_spi_read(struct ad5766_state *st, u8 dac, int *val) in __ad5766_spi_read() argument 160 st->data[0].d32 = AD5766_CMD_READBACK_REG(dac); in __ad5766_spi_read() 180 static int ad5766_read(struct iio_dev *indio_dev, u8 dac, int *val) in ad5766_read() argument 186 ret = __ad5766_spi_read(st, dac, val); in ad5766_read() 192 static int ad5766_write(struct iio_dev *indio_dev, u8 dac, u16 data) in ad5766_write() argument 198 ret = __ad5766_spi_write(st, AD5766_CMD_WR_DAC_REG(dac), data); in ad5766_write()
|
| A D | ad5592r-base.c | 192 u8 pulldown = 0, tristate = 0, dac = 0, adc = 0; in ad5592r_set_channel_modes() local 198 dac |= BIT(i); in ad5592r_set_channel_modes() 206 dac |= BIT(i); in ad5592r_set_channel_modes() 251 ret = ops->reg_write(st, AD5592R_REG_DAC_EN, dac); in ad5592r_set_channel_modes()
|
| /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()
|
| /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() 956 dac = par->dac; in ffb_probe() [all …]
|
| A D | arkfb.c | 34 struct dac_info *dac; member 360 struct dac_info dac; member 435 struct dac_info *info = &ics_info->dac; in ics5342_init() 548 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_release() 715 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 724 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 731 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 741 dac_set_mode(par->dac, DAC_PSEUDO8_8); in arkfb_set_par() 997 if (! par->dac) { in ark_pci_probe() 1073 dac_release(par->dac); in ark_pci_probe() [all …]
|
| 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()
|
| A D | pmagb-b-fb.c | 40 volatile u32 __iomem *dac; member 81 writeb(v, par->dac + reg / 4); in dac_write() 86 return readb(par->dac + reg / 4); in dac_read() 294 par->dac = par->mmio + PMAGB_B_BT459; in pmagbbfb_probe()
|
| /drivers/iio/adc/ |
| 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()
|
| /drivers/gpu/drm/sun4i/ |
| 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
|
| /drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| A D | nv50.c | 275 nv50_dac_clock(struct nvkm_ior *dac) in nv50_dac_clock() argument 278 const u32 doff = nv50_ior_base(dac); in nv50_dac_clock() 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() 333 const u32 coff = dac->id * 8 + (state == &dac->arm) * 4; in nv50_dac_state() 1609 if (func->dac.cnt) { in nv50_disp_oneinit() 1610 disp->dac.nr = func->dac.cnt(disp, &disp->dac.mask); in nv50_disp_oneinit() 1611 nvkm_debug(subdev, " DAC(s): %d (%02lx)\n", disp->dac.nr, disp->dac.mask); in nv50_disp_oneinit() 1612 for_each_set_bit(i, &disp->dac.mask, disp->dac.nr) { in nv50_disp_oneinit() [all …]
|
| A D | gf119.c | 352 gf119_dac_clock(struct nvkm_ior *dac) in gf119_dac_clock() argument 354 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_clock() 355 const u32 doff = nv50_ior_base(dac); in gf119_dac_clock() 360 gf119_dac_state(struct nvkm_ior *dac, struct nvkm_ior_state *state) in gf119_dac_state() argument 362 struct nvkm_device *device = dac->disp->engine.subdev.device; in gf119_dac_state() 363 const u32 coff = (state == &dac->asy) * 0x20000 + dac->id * 0x20; in gf119_dac_state() 1189 for (i = 0; i < disp->dac.nr; i++) { in gf119_disp_init() 1243 .dac = { .cnt = gf119_dac_cnt, .new = gf119_dac_new },
|
| /drivers/hwmon/ |
| 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()
|
| /drivers/media/i2c/ |
| 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()
|
| 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()
|
| /drivers/gpu/drm/radeon/ |
| A D | radeon_combios.c | 850 uint8_t rev, bg, dac; in radeon_combios_get_primary_dac_info() local 867 p_dac->ps2_pdac_adj = (bg << 8) | (dac); in radeon_combios_get_primary_dac_info() 870 dac = RBIOS8(dac_info + 0x3) & 0xf; in radeon_combios_get_primary_dac_info() 874 if ((dac == 0) || (bg == 0)) in radeon_combios_get_primary_dac_info() 1001 uint8_t rev, bg, dac; in radeon_combios_get_tv_dac_info() local 1015 dac = RBIOS8(dac_info + 0xd) & 0xf; in radeon_combios_get_tv_dac_info() 1019 dac = RBIOS8(dac_info + 0xf) & 0xf; in radeon_combios_get_tv_dac_info() 1023 dac = RBIOS8(dac_info + 0x11) & 0xf; in radeon_combios_get_tv_dac_info() 1056 (bg << 16) | (dac << 20); in radeon_combios_get_tv_dac_info() 1064 dac = RBIOS8(dac_info + 0x5) & 0xf; in radeon_combios_get_tv_dac_info() [all …]
|
| /drivers/input/touchscreen/ |
| A D | ad7877.c | 169 u16 dac; member 497 return sprintf(buf, "%u\n", ts->dac); in ad7877_dac_show() 513 ts->dac = val & 0xFF; in ad7877_dac_store() 514 ad7877_write(ts->spi, AD7877_REG_DAC, (ts->dac << 4) | AD7877_DAC_CONF); in ad7877_dac_store() 520 static DEVICE_ATTR(dac, 0664, ad7877_dac_show, ad7877_dac_store);
|
| /drivers/gpu/drm/nouveau/dispnv50/ |
| A D | core827d.c | 33 .dac = &dac507d,
|
| A D | core917d.c | 36 .dac = &dac907d,
|