Home
last modified time | relevance | path

Searched refs:chans (Results 1 – 21 of 21) sorted by relevance

/linux-4.19.296/drivers/iio/
Dinkern.c230 struct iio_channel *chans; in of_iio_channel_get_all() local
247 chans = kcalloc(nummaps + 1, sizeof(*chans), GFP_KERNEL); in of_iio_channel_get_all()
248 if (chans == NULL) in of_iio_channel_get_all()
253 ret = __of_iio_channel_get(&chans[mapind], dev->of_node, in of_iio_channel_get_all()
258 return chans; in of_iio_channel_get_all()
262 iio_device_put(chans[i].indio_dev); in of_iio_channel_get_all()
263 kfree(chans); in of_iio_channel_get_all()
412 struct iio_channel *chans; in iio_channel_get_all() local
421 chans = of_iio_channel_get_all(dev); in iio_channel_get_all()
422 if (chans) in iio_channel_get_all()
[all …]
/linux-4.19.296/drivers/iio/adc/
Ddln2-adc.c619 int i, ret, chans; in dln2_adc_probe() local
641 chans = dln2_adc_get_chan_count(dln2); in dln2_adc_probe()
642 if (chans < 0) { in dln2_adc_probe()
643 dev_err(dev, "failed to get channel count: %d\n", chans); in dln2_adc_probe()
644 return chans; in dln2_adc_probe()
646 if (chans > DLN2_ADC_MAX_CHANNELS) { in dln2_adc_probe()
647 chans = DLN2_ADC_MAX_CHANNELS; in dln2_adc_probe()
652 for (i = 0; i < chans; ++i) in dln2_adc_probe()
661 indio_dev->num_channels = chans + 1; in dln2_adc_probe()
Dqcom-pm8xxx-xoadc.c406 struct pm8xxx_chan_info *chans; member
429 struct pm8xxx_chan_info *ch = &adc->chans[i]; in pm8xxx_get_channel()
719 if (adc->chans[i].hwchan->pre_scale_mux == pre_scale_mux && in pm8xxx_of_xlate()
720 adc->chans[i].hwchan->amux_channel == amux_channel) in pm8xxx_of_xlate()
841 adc->chans = devm_kcalloc(adc->dev, adc->nchans, in pm8xxx_xoadc_parse_channels()
842 sizeof(*adc->chans), GFP_KERNEL); in pm8xxx_xoadc_parse_channels()
843 if (!adc->chans) in pm8xxx_xoadc_parse_channels()
848 ch = &adc->chans[i]; in pm8xxx_xoadc_parse_channels()
/linux-4.19.296/drivers/iio/humidity/
Dam2315.c41 s16 chans[2]; member
177 data->scan.chans[0] = sensor_data.hum_data; in am2315_trigger_handler()
178 data->scan.chans[1] = sensor_data.temp_data; in am2315_trigger_handler()
183 data->scan.chans[i] = (bit ? sensor_data.temp_data : in am2315_trigger_handler()
/linux-4.19.296/include/linux/
Dipmi.h214 unsigned int chans);
218 unsigned int chans);
Dmailbox_controller.h77 struct mbox_chan *chans; member
Dieee80211.h2766 } __packed chans; member
/linux-4.19.296/drivers/char/ipmi/
Dipmi_msghandler.c247 unsigned int chans; member
1626 && (rcvr->chans & (1 << chan))) in find_cmd_rcvr()
1635 unsigned int chans) in is_cmd_rcvr_exclusive() argument
1641 && (rcvr->chans & chans)) in is_cmd_rcvr_exclusive()
1650 unsigned int chans) in ipmi_register_for_cmd() argument
1667 rcvr->chans = chans; in ipmi_register_for_cmd()
1672 if (!is_cmd_rcvr_exclusive(intf, netfn, cmd, chans)) { in ipmi_register_for_cmd()
1695 unsigned int chans) in ipmi_unregister_for_cmd() argument
1708 if (((1 << i) & chans) == 0) in ipmi_unregister_for_cmd()
1715 rcvr->chans &= ~chans; in ipmi_unregister_for_cmd()
[all …]
Dipmi_devintf.c392 val.chans); in ipmi_ioctl()
406 val.chans); in ipmi_ioctl()
/linux-4.19.296/drivers/iio/accel/
Dstk8ba50.c99 s16 chans[3]; member
329 (u8 *)data->scan.chans); in stk8ba50_trigger_handler()
342 data->scan.chans[i++] = ret; in stk8ba50_trigger_handler()
Dbma220_spi.c80 s8 chans[3]; member
114 ret = spi_write_then_read(spi, data->tx_buf, 1, &data->scan.chans, in bma220_trigger_handler()
Dstk8312.c111 s8 chans[3]; member
448 data->scan.chans); in stk8312_trigger_handler()
462 data->scan.chans[i++] = ret; in stk8312_trigger_handler()
Dkxcjk-1013.c157 s16 chans[AXIS_MAX]; member
1093 (u8 *)data->scan.chans); in kxcjk1013_trigger_handler()
/linux-4.19.296/drivers/edac/
Di82975x_edac.c481 int chans; in i82975x_probe1() local
545 chans = dual_channel_active(mch_window) + 1; in i82975x_probe1()
552 layers[1].size = I82975X_NR_CSROWS(chans); in i82975x_probe1()
/linux-4.19.296/drivers/iio/light/
Disl29125.c59 u16 chans[3]; member
194 data->scan.chans[j++] = ret; in isl29125_trigger_handler()
Dtcs3414.c61 u16 chans[4]; member
219 data->scan.chans[j++] = ret; in tcs3414_trigger_handler()
Dtcs3472.c72 u16 chans[4]; member
396 data->scan.chans[j++] = ret; in tcs3472_trigger_handler()
Dsi1145.c1004 #define SI1145_PART(id, iio_info, chans, leds, uncompressed_meas_rate) \ argument
1005 {id, iio_info, chans, ARRAY_SIZE(chans), leds, uncompressed_meas_rate}
/linux-4.19.296/include/uapi/linux/
Dipmi.h356 unsigned int chans; member
/linux-4.19.296/include/linux/mfd/
Dstm32-timers.h117 struct dma_chan *chans[STM32_TIMERS_MAX_DMAS]; member
/linux-4.19.296/drivers/iio/gyro/
Dbmg160_core.c108 s16 chans[3]; member
879 data->scan.chans, AXIS_MAX * 2); in bmg160_trigger_handler()