Home
last modified time | relevance | path

Searched refs:nchans (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dcomedi_bond.c51 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 …]
/kernel/linux/linux-5.10/drivers/i2c/muxes/
Di2c-mux-pca954x.c69 u8 nchans; member
96 .nchans = 2,
102 .nchans = 2,
109 .nchans = 2,
115 .nchans = 4,
122 .nchans = 4,
128 .nchans = 4,
133 .nchans = 8,
139 .nchans = 8,
144 .nchans = 4,
[all …]
Di2c-mux-ltc4306.c43 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()
/kernel/linux/linux-5.10/drivers/iio/adc/
Dab8500-gpadc.c246 unsigned int nchans; member
260 for (i = 0; i < gpadc->nchans; i++) { in ab8500_gpadc_get_channel()
265 if (i == gpadc->nchans) in ab8500_gpadc_get_channel()
1038 unsigned int nchans; in ab8500_gpadc_parse_channels() local
1041 nchans = of_get_available_child_count(np); in ab8500_gpadc_parse_channels()
1042 if (!nchans) { in ab8500_gpadc_parse_channels()
1046 dev_info(gpadc->dev, "found %d ADC channels\n", nchans); in ab8500_gpadc_parse_channels()
1048 iio_chans = devm_kcalloc(gpadc->dev, nchans, in ab8500_gpadc_parse_channels()
1053 gpadc->chans = devm_kcalloc(gpadc->dev, nchans, in ab8500_gpadc_parse_channels()
1074 gpadc->nchans = nchans; in ab8500_gpadc_parse_channels()
[all …]
Dqcom-pm8xxx-xoadc.c407 unsigned int nchans; member
430 for (i = 0; i < adc->nchans; i++) { in pm8xxx_get_channel()
720 for (i = 0; i < adc->nchans; i++) in pm8xxx_of_xlate()
831 adc->nchans = of_get_available_child_count(np); in pm8xxx_xoadc_parse_channels()
832 if (!adc->nchans) { in pm8xxx_xoadc_parse_channels()
836 dev_dbg(adc->dev, "found %d ADC channels\n", adc->nchans); in pm8xxx_xoadc_parse_channels()
838 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels()
843 adc->chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels()
941 indio_dev->num_channels = adc->nchans; in pm8xxx_xoadc_probe()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-bus-i2c-devices-pca954x18 0..<nchans> set the mux to a predetermined channel,
/kernel/linux/linux-5.10/drivers/of/
Dunittest.c2561 int i, nchans; in unittest_i2c_mux_probe() local
2582 nchans = max_reg == (u32)-1 ? 0 : max_reg + 1; in unittest_i2c_mux_probe()
2583 if (nchans == 0) { in unittest_i2c_mux_probe()
2588 muxc = i2c_mux_alloc(adap, dev, nchans, 0, 0, in unittest_i2c_mux_probe()
2592 for (i = 0; i < nchans; i++) { in unittest_i2c_mux_probe()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0022_linux_drivers_i2c.patch3654 + .nchans = 4,
3659 .nchans = 4,