Home
last modified time | relevance | path

Searched refs:iio_channel (Results 1 – 25 of 42) sorted by relevance

12

/drivers/iio/
Dinkern.c135 static int __of_iio_channel_get(struct iio_channel *channel, in __of_iio_channel_get()
174 static struct iio_channel *of_iio_channel_get(struct device_node *np, int index) in of_iio_channel_get()
176 struct iio_channel *channel; in of_iio_channel_get()
197 struct iio_channel *of_iio_channel_get_by_name(struct device_node *np, in of_iio_channel_get_by_name()
200 struct iio_channel *chan = NULL; in of_iio_channel_get_by_name()
238 static struct iio_channel *of_iio_channel_get_all(struct device *dev) in of_iio_channel_get_all()
240 struct iio_channel *chans; in of_iio_channel_get_all()
279 static inline struct iio_channel *of_iio_channel_get_all(struct device *dev) in of_iio_channel_get_all()
286 static struct iio_channel *iio_channel_get_sys(const char *name, in iio_channel_get_sys()
290 struct iio_channel *channel; in iio_channel_get_sys()
[all …]
/drivers/power/supply/
Daxp288_fuel_gauge.c112 struct iio_channel *iio_channel[IIO_CHANNEL_NUM]; member
233 ret = iio_read_channel_raw(info->iio_channel[BAT_VOLT], &info->bat_volt); in fuel_gauge_update_registers()
239 ret = iio_read_channel_raw(info->iio_channel[BAT_CHRG_CURR], &info->c_curr); in fuel_gauge_update_registers()
244 ret = iio_read_channel_raw(info->iio_channel[BAT_D_CURR], &info->d_curr); in fuel_gauge_update_registers()
649 info->iio_channel[i] = in axp288_fuel_gauge_probe()
651 if (IS_ERR(info->iio_channel[i])) { in axp288_fuel_gauge_probe()
652 ret = PTR_ERR(info->iio_channel[i]); in axp288_fuel_gauge_probe()
737 if (!IS_ERR_OR_NULL(info->iio_channel[i])) in axp288_fuel_gauge_probe()
738 iio_channel_release(info->iio_channel[i]); in axp288_fuel_gauge_probe()
761 iio_channel_release(info->iio_channel[i]); in axp288_fuel_gauge_remove()
Drx51_battery.c20 struct iio_channel *channel_temp;
21 struct iio_channel *channel_bsi;
22 struct iio_channel *channel_vbat;
28 static int rx51_battery_read_adc(struct iio_channel *channel) in rx51_battery_read_adc()
Dtwl4030_madc_battery.c27 struct iio_channel *channel_temp;
28 struct iio_channel *channel_ichg;
29 struct iio_channel *channel_vbat;
45 static int madc_read(struct iio_channel *channel) in madc_read()
Dlego_ev3_battery.c28 struct iio_channel *iio_v;
29 struct iio_channel *iio_i;
Dda9150-charger.c38 struct iio_channel *ibus_chan;
39 struct iio_channel *vbus_chan;
40 struct iio_channel *tjunc_chan;
41 struct iio_channel *vbat_chan;
Dlp8788-charger.c107 struct iio_channel *chan[LP8788_NUM_CHG_ADC];
235 struct iio_channel *channel = pchg->chan[LP8788_VBATT]; in lp8788_get_vbatt_adc()
290 struct iio_channel *channel = pchg->chan[LP8788_BATT_TEMP]; in lp8788_get_battery_temperature()
569 struct iio_channel *chan; in lp8788_setup_adc_channel()
Daxp20x_battery.c73 struct iio_channel *batt_chrg_i;
74 struct iio_channel *batt_dischrg_i;
75 struct iio_channel *batt_v;
Dcpcap-charger.c133 struct iio_channel *channels[CPCAP_CHARGER_IIO_NR];
178 struct iio_channel *channel; in cpcap_charger_get_charge_voltage()
194 struct iio_channel *channel; in cpcap_charger_get_charge_current()
446 struct iio_channel *channel = in cpcap_charger_vbus_valid()
Daxp20x_ac_power.c45 struct iio_channel *acin_v;
46 struct iio_channel *acin_i;
Dcpcap-battery.c132 struct iio_channel *channels[CPCAP_BATTERY_IIO_NR];
186 struct iio_channel *channel; in cpcap_charger_battery_temperature()
206 struct iio_channel *channel; in cpcap_battery_get_voltage()
222 struct iio_channel *channel; in cpcap_battery_get_current()
Daxp20x_usb_power.c68 struct iio_channel *vbus_v;
69 struct iio_channel *vbus_i;
Dingenic-battery.c18 struct iio_channel *channel;
Drn5t618_power.c69 struct iio_channel *channel_vusb;
70 struct iio_channel *channel_vadp;
/drivers/iio/buffer/
Dindustrialio-buffer-cb.c18 struct iio_channel *channels;
55 struct iio_channel *chan; in iio_channel_get_all_cb()
140 struct iio_channel
Dindustrialio-hw-consumer.c24 struct iio_channel *channels;
87 struct iio_channel *chan; in iio_hw_consumer_alloc()
/drivers/hwmon/
Diio_hwmon.c27 struct iio_channel *channels;
47 struct iio_channel *chan = &state->channels[sattr->index]; in iio_hwmon_read_val()
72 struct iio_channel *channels; in iio_hwmon_probe()
/drivers/input/touchscreen/
Dcolibri-vf50-ts.c39 struct iio_channel *channels;
52 static int adc_ts_measure(struct iio_channel *channel, in adc_ts_measure()
256 struct iio_channel *channels = data; in vf50_ts_channel_release()
264 struct iio_channel *channels; in vf50_ts_probe()
/drivers/iio/multiplexer/
Diio-mux.c31 struct iio_channel *parent;
342 struct iio_channel *parent; in mux_probe()
/drivers/thermal/
Dthermal-generic-adc.c19 struct iio_channel *channel;
/drivers/input/keyboard/
Dadc-keys.c25 struct iio_channel *channel;
/drivers/extcon/
Dextcon-adc-jack.c51 struct iio_channel *chan;
/drivers/staging/iio/Documentation/
Dinkernel.txt41 The consumer first has to obtain an iio_channel structure from the core
/drivers/iio/dac/
Ddpot-dac.c39 struct iio_channel *dpot;
/drivers/phy/motorola/
Dphy-cpcap-usb.c132 struct iio_channel *vbus;
133 struct iio_channel *id;

12