Home
last modified time | relevance | path

Searched refs:bipolar (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/Documentation/devicetree/bindings/iio/adc/
Dxilinx-xadc.txt82 * xlnx,bipolar: If set the channel is used in bipolar
121 xlnx,bipolar;
138 xlnx,bipolar;
/linux-6.12.1/drivers/iio/adc/
Dad7124.c153 bool bipolar;
402 val = AD7124_CONFIG_BIPOLAR(cfg->bipolar) | AD7124_CONFIG_REF_SEL(cfg->refsel) | in ad7124_write_config()
595 if (st->channels[chan->address].cfg.bipolar) in ad7124_read_raw()
604 if (st->channels[chan->address].cfg.bipolar) in ad7124_read_raw()
653 if (st->channels[chan->address].cfg.bipolar) in ad7124_write_raw()
857 cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); in ad7124_parse_channel_config()
Dad7173.c186 bool bipolar;
630 if (cfg->bipolar) in ad7173_load_config()
848 *val2 = chan->scan_type.realbits - !!(ch->cfg.bipolar); in ad7173_read_raw()
856 *val2 = chan->scan_type.realbits - ch->cfg.bipolar; in ad7173_read_raw()
1225 chan_st_priv->cfg.bipolar = false; in ad7173_fw_parse_channel_config()
1294 chan_st_priv->cfg.bipolar = fwnode_property_read_bool(child, "bipolar"); in ad7173_fw_parse_channel_config()
1295 if (chan_st_priv->cfg.bipolar) in ad7173_fw_parse_channel_config()
Dmax11410.c128 bool bipolar; member
371 FIELD_PREP(MAX11410_CTRL_UNIPOLAR_BIT, cfg.bipolar ? 0 : 1); in max11410_configure_channel()
447 if (cfg.bipolar) in max11410_get_scale()
467 if (cfg.bipolar) in max11410_read_raw()
771 cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); in max11410_parse_channels()
Dad4695.c117 bool bipolar; member
405 val = FIELD_PREP(AD4695_REG_CONFIG_IN_MODE, cfg->bipolar ? 1 : 0); in ad4695_write_chn_cfg()
906 chan_cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); in ad4695_parse_channel_cfg()
948 if (chan_cfg->bipolar && in ad4695_parse_channel_cfg()
954 if (chan_cfg->bipolar) in ad4695_parse_channel_cfg()
Dad4130.c291 bool bipolar; member
1091 *val = st->bipolar ? -BIT(chan->scan_type.realbits - 1) : 0; in ad4130_read_raw()
1680 st->bipolar = device_property_read_bool(dev, "adi,bipolar"); in ad4310_parse_fw()
1712 unsigned int pow = ad4130_resolution(st) - st->bipolar; in ad4130_fill_scale_tbls()
1853 val |= FIELD_PREP(AD4130_ADC_CONTROL_BIPOLAR_MASK, st->bipolar); in ad4130_setup()
Dad7192.c563 bool buf_en, bipolar, burnout_curr_en; in ad7192_setup() local
604 bipolar = device_property_read_bool(dev, "bipolar"); in ad7192_setup()
605 if (!bipolar) in ad7192_setup()
/linux-6.12.1/Documentation/iio/
Dad4695.rst93 bipolar;
120 bipolar;
/linux-6.12.1/drivers/comedi/drivers/
Damplc_pci230.c1419 bool bipolar = comedi_range_is_bipolar(s, range); in pci230_ai_check_chanlist() local
1451 if (bipolar != prev_bipolar) { in pci230_ai_check_chanlist()
1469 prev_bipolar = bipolar; in pci230_ai_check_chanlist()