Home
last modified time | relevance | path

Searched refs:refsel (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-6.6/drivers/iio/adc/
H A Dad7949.c73 * @refsel: reference selection
85 u32 refsel; member
230 switch (ad7949_adc->refsel) { in ad7949_spi_read_raw()
288 FIELD_PREP(AD7949_CFG_MASK_REF, ad7949_adc->refsel) | in ad7949_spi_init()
357 ad7949_adc->refsel = AD7949_CFG_VAL_REF_INT_2500; in ad7949_spi_probe()
360 ad7949_adc->refsel = AD7949_CFG_VAL_REF_INT_4096; in ad7949_spi_probe()
380 ad7949_adc->refsel = AD7949_CFG_VAL_REF_EXT_TEMP; in ad7949_spi_probe()
383 ad7949_adc->refsel = AD7949_CFG_VAL_REF_EXT_TEMP_BUF; in ad7949_spi_probe()
386 if (ad7949_adc->refsel & AD7949_CFG_VAL_REF_EXTERNAL) { in ad7949_spi_probe()
H A Dmax11410.c125 u8 refsel; member
200 u8 refsel) in max11410_get_vrefp()
202 refsel = refsel % 4; in max11410_get_vrefp()
203 if (refsel == 3) in max11410_get_vrefp()
206 return st->vrefp[refsel]; in max11410_get_vrefp()
210 u8 refsel) in max11410_get_vrefn()
212 if (refsel > 2) in max11410_get_vrefn()
215 return st->vrefn[refsel]; in max11410_get_vrefn()
370 FIELD_PREP(MAX11410_CTRL_REFSEL_MASK, cfg.refsel) | in max11410_configure_channel()
199 max11410_get_vrefp(struct max11410_state *st, u8 refsel) max11410_get_vrefp() argument
209 max11410_get_vrefn(struct max11410_state *st, u8 refsel) max11410_get_vrefn() argument
[all...]
H A Dad7124.c149 enum ad7124_ref_sel refsel; member
360 unsigned int refsel = cfg->refsel; in ad7124_init_config_vref() local
362 switch (refsel) { in ad7124_init_config_vref()
366 if (IS_ERR(st->vref[refsel])) { in ad7124_init_config_vref()
369 ad7124_ref_names[refsel]); in ad7124_init_config_vref()
370 return PTR_ERR(st->vref[refsel]); in ad7124_init_config_vref()
372 cfg->vref_mv = regulator_get_voltage(st->vref[refsel]); in ad7124_init_config_vref()
383 dev_err(&st->sd.spi->dev, "Invalid reference %d\n", refsel); in ad7124_init_config_vref()
398 val = AD7124_CONFIG_BIPOLAR(cfg->bipolar) | AD7124_CONFIG_REF_SEL(cfg->refsel) | in ad7124_write_config()
[all...]
H A Dad7793.c241 pdata->refsel != AD7793_REFSEL_REFIN1) in ad7793_check_platform_data()
293 st->conf |= AD7793_CONF_REFSEL(pdata->refsel); in ad7793_setup()
802 if (pdata->refsel != AD7793_REFSEL_INTERNAL) { in ad7793_probe()
/kernel/linux/linux-6.6/arch/powerpc/platforms/83xx/
H A Dusb_831x.c94 u32 refsel; in mpc831x_usb_cfg() local
100 refsel = CONTROL_REFSEL_24MHZ; in mpc831x_usb_cfg()
102 refsel = CONTROL_REFSEL_48MHZ; in mpc831x_usb_cfg()
105 CONTROL_UTMI_PHY_EN | refsel); in mpc831x_usb_cfg()
/kernel/linux/linux-5.10/drivers/iio/adc/
H A Dad7124.c139 enum ad7124_ref_sel refsel; member
552 unsigned int refsel = st->channel_config[channel_number].refsel; in ad7124_init_channel_vref() local
554 switch (refsel) { in ad7124_init_channel_vref()
558 if (IS_ERR(st->vref[refsel])) { in ad7124_init_channel_vref()
561 ad7124_ref_names[refsel]); in ad7124_init_channel_vref()
562 return PTR_ERR(st->vref[refsel]); in ad7124_init_channel_vref()
565 regulator_get_voltage(st->vref[refsel]); in ad7124_init_channel_vref()
576 dev_err(&st->sd.spi->dev, "Invalid reference %d\n", refsel); in ad7124_init_channel_vref()
637 st->channel_config[channel].refsel in ad7124_of_parse_channel_config()
[all...]
H A Dad7793.c241 pdata->refsel != AD7793_REFSEL_REFIN1) in ad7793_check_platform_data()
293 st->conf |= AD7793_CONF_REFSEL(pdata->refsel); in ad7793_setup()
797 if (pdata->refsel != AD7793_REFSEL_INTERNAL) { in ad7793_probe()
845 if (pdata->refsel != AD7793_REFSEL_INTERNAL) in ad7793_probe()
860 if (pdata->refsel != AD7793_REFSEL_INTERNAL) in ad7793_remove()
/kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/
H A Dusb.c174 u32 refsel; in mpc831x_usb_cfg() local
180 refsel = CONTROL_REFSEL_24MHZ; in mpc831x_usb_cfg()
182 refsel = CONTROL_REFSEL_48MHZ; in mpc831x_usb_cfg()
185 CONTROL_UTMI_PHY_EN | refsel); in mpc831x_usb_cfg()
/kernel/linux/linux-5.10/include/linux/platform_data/
H A Dad7793.h93 * @refsel: Reference voltage selection
105 enum ad7793_refsel refsel; member
/kernel/linux/linux-6.6/include/linux/platform_data/
H A Dad7793.h93 * @refsel: Reference voltage selection
105 enum ad7793_refsel refsel; member

Completed in 8 milliseconds