Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/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 …]
/linux-6.12.1/drivers/i2c/muxes/
Di2c-mux-pca954x.c97 u8 nchans; member
128 .nchans = 8,
133 .nchans = 8,
142 .nchans = 8,
151 .nchans = 4,
157 .nchans = 4,
162 .nchans = 4,
169 .nchans = 2,
175 .nchans = 2,
182 .nchans = 2,
[all …]
Di2c-mux-ltc4306.c42 u8 nchans; member
54 .nchans = LTC4305_MAX_NCHANS,
57 .nchans = LTC4306_MAX_NCHANS,
227 chip->nchans, sizeof(*data), in ltc4306_probe()
281 for (num = 0; num < chip->nchans; num++) { in ltc4306_probe()
/linux-6.12.1/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()
1033 unsigned int nchans; in ab8500_gpadc_parse_channels() local
1036 nchans = device_get_child_node_count(gpadc->dev); in ab8500_gpadc_parse_channels()
1037 if (!nchans) { in ab8500_gpadc_parse_channels()
1041 dev_info(gpadc->dev, "found %d ADC channels\n", nchans); in ab8500_gpadc_parse_channels()
1043 iio_chans = devm_kcalloc(gpadc->dev, nchans, in ab8500_gpadc_parse_channels()
1048 gpadc->chans = devm_kcalloc(gpadc->dev, nchans, in ab8500_gpadc_parse_channels()
1068 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_fwnode_xlate()
829 adc->nchans = device_get_child_node_count(adc->dev); in pm8xxx_xoadc_parse_channels()
830 if (!adc->nchans) { in pm8xxx_xoadc_parse_channels()
834 dev_dbg(adc->dev, "found %d ADC channels\n", adc->nchans); in pm8xxx_xoadc_parse_channels()
836 adc->iio_chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels()
841 adc->chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels()
937 indio_dev->num_channels = adc->nchans; in pm8xxx_xoadc_probe()
Dstm32-adc.c2035 int nchans) in stm32_adc_legacy_chan_init() argument
2041 int num_se = nchans - num_diff; in stm32_adc_legacy_chan_init()
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-bus-i2c-devices-pca954x18 0..<nchans> set the mux to a predetermined channel,
/linux-6.12.1/sound/soc/apple/
Dmca.c385 static unsigned int mca_crop_mask(unsigned int mask, int nchans) in mca_crop_mask() argument
387 while (hweight32(mask) > nchans) in mca_crop_mask()
394 unsigned int mask, int slots, int nchans, in mca_configure_serdes() argument
443 writel_relaxed(~((u32)mca_crop_mask(mask, nchans)), in mca_configure_serdes()
452 writel_relaxed(~((u32)mca_crop_mask(mask, nchans)), in mca_configure_serdes()
/linux-6.12.1/drivers/of/
Dunittest.c2947 int i, nchans; in unittest_i2c_mux_probe() local
2968 nchans = max_reg == (u32)-1 ? 0 : max_reg + 1; in unittest_i2c_mux_probe()
2969 if (nchans == 0) { in unittest_i2c_mux_probe()
2974 muxc = i2c_mux_alloc(adap, dev, nchans, 0, 0, in unittest_i2c_mux_probe()
2978 for (i = 0; i < nchans; i++) { in unittest_i2c_mux_probe()