Searched refs:nchans (Results 1 – 5 of 5) sorted by relevance
/drivers/staging/comedi/drivers/ |
D | comedi_bond.c | 51 unsigned int nchans; member 58 unsigned int nchans; member 74 n_left = devpriv->nchans - base_chan; in bonding_dio_insn_bits() 83 if (base_chan < bdev->nchans) { in bonding_dio_insn_bits() 92 b_chans = bdev->nchans - base_chan; in bonding_dio_insn_bits() 117 base_chan -= bdev->nchans; in bonding_dio_insn_bits() 138 for (bdev = *devs++; chan >= bdev->nchans; bdev = *devs++) in bonding_dio_insn_config() 139 chan -= bdev->nchans; in bonding_dio_insn_config() 185 int sdev = -1, nchans; in do_dev_config() local 219 nchans = comedi_get_n_channels(d, sdev); in do_dev_config() [all …]
|
/drivers/i2c/muxes/ |
D | i2c-mux-pca954x.c | 74 u8 nchans; member 101 .nchans = 2, 107 .nchans = 2, 114 .nchans = 2, 120 .nchans = 4, 127 .nchans = 4, 133 .nchans = 4, 138 .nchans = 8, 144 .nchans = 8, 149 .nchans = 4, [all …]
|
D | i2c-mux-ltc4306.c | 43 u8 nchans; member 55 .nchans = LTC4305_MAX_NCHANS, 58 .nchans = LTC4306_MAX_NCHANS, 228 chip->nchans, sizeof(*data), in ltc4306_probe() 282 for (num = 0; num < chip->nchans; num++) { in ltc4306_probe()
|
/drivers/iio/adc/ |
D | qcom-pm8xxx-xoadc.c | 406 unsigned int nchans; member 429 for (i = 0; i < adc->nchans; i++) { in pm8xxx_get_channel() 719 for (i = 0; i < adc->nchans; i++) in pm8xxx_of_xlate() 830 adc->nchans = of_get_available_child_count(np); in pm8xxx_xoadc_parse_channels() 831 if (!adc->nchans) { in pm8xxx_xoadc_parse_channels() 835 dev_dbg(adc->dev, "found %d ADC channels\n", adc->nchans); in pm8xxx_xoadc_parse_channels() 837 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels() 842 adc->chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels() 942 indio_dev->num_channels = adc->nchans; in pm8xxx_xoadc_probe()
|
/drivers/of/ |
D | unittest.c | 1952 int i, nchans; in unittest_i2c_mux_probe() local 1973 nchans = max_reg == (u32)-1 ? 0 : max_reg + 1; in unittest_i2c_mux_probe() 1974 if (nchans == 0) { in unittest_i2c_mux_probe() 1979 muxc = i2c_mux_alloc(adap, dev, nchans, 0, 0, in unittest_i2c_mux_probe() 1983 for (i = 0; i < nchans; i++) { in unittest_i2c_mux_probe()
|