Home
last modified time | relevance | path

Searched defs:adc (Results 1 – 25 of 116) sorted by relevance

12345

/linux-6.1.9/drivers/iio/adc/
Dstm32-adc.c530 static u32 stm32_adc_readl(struct stm32_adc *adc, u32 reg) in stm32_adc_readl()
541 static u16 stm32_adc_readw(struct stm32_adc *adc, u32 reg) in stm32_adc_readw()
546 static void stm32_adc_writel(struct stm32_adc *adc, u32 reg, u32 val) in stm32_adc_writel()
551 static void stm32_adc_set_bits(struct stm32_adc *adc, u32 reg, u32 bits) in stm32_adc_set_bits()
560 static void stm32_adc_set_bits_common(struct stm32_adc *adc, u32 reg, u32 bits) in stm32_adc_set_bits_common()
568 static void stm32_adc_clr_bits(struct stm32_adc *adc, u32 reg, u32 bits) in stm32_adc_clr_bits()
577 static void stm32_adc_clr_bits_common(struct stm32_adc *adc, u32 reg, u32 bits) in stm32_adc_clr_bits_common()
589 static void stm32_adc_conv_irq_enable(struct stm32_adc *adc) in stm32_adc_conv_irq_enable()
599 static void stm32_adc_conv_irq_disable(struct stm32_adc *adc) in stm32_adc_conv_irq_disable()
605 static void stm32_adc_ovr_irq_enable(struct stm32_adc *adc) in stm32_adc_ovr_irq_enable()
[all …]
Dstm32-dfsdm-adc.c315 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in stm32_dfsdm_compute_all_osrs() local
336 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in stm32_dfsdm_start_channel() local
356 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in stm32_dfsdm_stop_channel() local
391 static int stm32_dfsdm_start_filter(struct stm32_dfsdm_adc *adc, in stm32_dfsdm_start_filter()
426 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in stm32_dfsdm_filter_set_trig() local
455 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in stm32_dfsdm_channels_configure() local
501 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in stm32_dfsdm_filter_configure() local
673 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in dfsdm_adc_audio_get_spiclk() local
682 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in dfsdm_adc_set_samp_freq() local
707 struct stm32_dfsdm_adc *adc = iio_priv(indio_dev); in dfsdm_adc_audio_set_spiclk() local
[all …]
Dti-adc12138.c128 static int adc12138_mode_programming(struct adc12138 *adc, u8 mode, in adc12138_mode_programming()
153 static int adc12138_read_status(struct adc12138 *adc) in adc12138_read_status()
166 static int __adc12138_start_conv(struct adc12138 *adc, in __adc12138_start_conv()
178 static int adc12138_start_conv(struct adc12138 *adc, in adc12138_start_conv()
186 static int adc12138_start_and_read_conv(struct adc12138 *adc, in adc12138_start_and_read_conv()
193 static int adc12138_read_conv_data(struct adc12138 *adc, __be16 *value) in adc12138_read_conv_data()
200 static int adc12138_wait_eoc(struct adc12138 *adc, unsigned long timeout) in adc12138_wait_eoc()
208 static int adc12138_adc_conversion(struct adc12138 *adc, in adc12138_adc_conversion()
231 struct adc12138 *adc = iio_priv(iio); in adc12138_read_raw() local
287 static int adc12138_init(struct adc12138 *adc) in adc12138_init()
[all …]
Dpalmas_gpadc.c146 static int palmas_disable_auto_conversion(struct palmas_gpadc *adc) in palmas_disable_auto_conversion()
182 struct palmas_gpadc *adc = data; in palmas_gpadc_irq() local
191 struct palmas_gpadc *adc = data; in palmas_gpadc_irq_auto() local
199 static int palmas_gpadc_start_mask_interrupt(struct palmas_gpadc *adc, in palmas_gpadc_start_mask_interrupt()
219 static int palmas_gpadc_enable(struct palmas_gpadc *adc, int adc_chan, in palmas_gpadc_enable()
279 static int palmas_gpadc_read_prepare(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_read_prepare()
290 static void palmas_gpadc_read_done(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_read_done()
296 static int palmas_gpadc_calibrate(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_calibrate()
337 static int palmas_gpadc_start_conversion(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_start_conversion()
371 static int palmas_gpadc_get_calibrated_code(struct palmas_gpadc *adc, in palmas_gpadc_get_calibrated_code()
[all …]
Dmxs-lradc-adc.c134 struct mxs_lradc_adc *adc = iio_priv(iio_dev); in mxs_lradc_adc_read_single() local
221 struct mxs_lradc_adc *adc = iio_priv(iio_dev); in mxs_lradc_adc_read_raw() local
273 struct mxs_lradc_adc *adc = iio_priv(iio_dev); in mxs_lradc_adc_write_raw() local
320 struct mxs_lradc_adc *adc = iio_priv(iio); in mxs_lradc_adc_show_scale_avail() local
387 struct mxs_lradc_adc *adc = iio_priv(iio); in mxs_lradc_adc_handle_irq() local
417 struct mxs_lradc_adc *adc = iio_priv(iio); in mxs_lradc_adc_trigger_handler() local
440 struct mxs_lradc_adc *adc = iio_priv(iio); in mxs_lradc_adc_configure_trigger() local
456 struct mxs_lradc_adc *adc = iio_priv(iio); in mxs_lradc_adc_trigger_init() local
478 struct mxs_lradc_adc *adc = iio_priv(iio); in mxs_lradc_adc_trigger_remove() local
485 struct mxs_lradc_adc *adc = iio_priv(iio); in mxs_lradc_adc_buffer_preenable() local
[all …]
Drzg2l_adc.c93 static unsigned int rzg2l_adc_readl(struct rzg2l_adc *adc, u32 reg) in rzg2l_adc_readl()
98 static void rzg2l_adc_writel(struct rzg2l_adc *adc, unsigned int reg, u32 val) in rzg2l_adc_writel()
103 static void rzg2l_adc_pwr(struct rzg2l_adc *adc, bool on) in rzg2l_adc_pwr()
116 static void rzg2l_adc_start_stop(struct rzg2l_adc *adc, bool start) in rzg2l_adc_start_stop()
142 static void rzg2l_set_trigger(struct rzg2l_adc *adc) in rzg2l_set_trigger()
161 static int rzg2l_adc_conversion_setup(struct rzg2l_adc *adc, u8 ch) in rzg2l_adc_conversion_setup()
201 static int rzg2l_adc_conversion(struct iio_dev *indio_dev, struct rzg2l_adc *adc, u8 ch) in rzg2l_adc_conversion()
234 struct rzg2l_adc *adc = iio_priv(indio_dev); in rzg2l_adc_read_raw() local
274 struct rzg2l_adc *adc = dev_id; in rzg2l_adc_isr() local
302 static int rzg2l_adc_parse_properties(struct platform_device *pdev, struct rzg2l_adc *adc) in rzg2l_adc_parse_properties()
[all …]
Dimx8qxp-adc.c120 static void imx8qxp_adc_reset(struct imx8qxp_adc *adc) in imx8qxp_adc_reset()
137 static void imx8qxp_adc_reg_config(struct imx8qxp_adc *adc, int channel) in imx8qxp_adc_reg_config()
173 static void imx8qxp_adc_fifo_config(struct imx8qxp_adc *adc) in imx8qxp_adc_fifo_config()
189 static void imx8qxp_adc_disable(struct imx8qxp_adc *adc) in imx8qxp_adc_disable()
202 struct imx8qxp_adc *adc = iio_priv(indio_dev); in imx8qxp_adc_read_raw() local
266 struct imx8qxp_adc *adc = dev_id; in imx8qxp_adc_isr() local
281 struct imx8qxp_adc *adc = iio_priv(indio_dev); in imx8qxp_adc_reg_access() local
304 struct imx8qxp_adc *adc; in imx8qxp_adc_probe() local
403 struct imx8qxp_adc *adc = iio_priv(indio_dev); in imx8qxp_adc_remove() local
425 struct imx8qxp_adc *adc = iio_priv(indio_dev); in imx8qxp_adc_runtime_suspend() local
[all …]
Dqcom-spmi-adc5.c158 static int adc5_read(struct adc5_chip *adc, u16 offset, u8 *data, int len) in adc5_read()
163 static int adc5_write(struct adc5_chip *adc, u16 offset, u8 *data, int len) in adc5_write()
168 static int adc5_masked_write(struct adc5_chip *adc, u16 offset, u8 mask, u8 val) in adc5_masked_write()
173 static int adc5_read_voltage_data(struct adc5_chip *adc, u16 *data) in adc5_read_voltage_data()
198 static int adc5_poll_wait_eoc(struct adc5_chip *adc) in adc5_poll_wait_eoc()
220 static void adc5_update_dig_param(struct adc5_chip *adc, in adc5_update_dig_param()
236 static int adc5_configure(struct adc5_chip *adc, in adc5_configure()
273 static int adc7_configure(struct adc5_chip *adc, in adc7_configure()
314 static int adc5_do_conversion(struct adc5_chip *adc, in adc5_do_conversion()
355 static int adc7_do_conversion(struct adc5_chip *adc, in adc7_do_conversion()
[all …]
Dingenic-adc.c116 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_set_adcmd() local
169 static void ingenic_adc_set_config(struct ingenic_adc *adc, in ingenic_adc_set_config()
184 static void ingenic_adc_enable_unlocked(struct ingenic_adc *adc, in ingenic_adc_enable_unlocked()
200 static void ingenic_adc_enable(struct ingenic_adc *adc, in ingenic_adc_enable()
209 static int ingenic_adc_capture(struct ingenic_adc *adc, in ingenic_adc_capture()
243 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_write_raw() local
314 static int jz4725b_adc_init_clk_div(struct device *dev, struct ingenic_adc *adc) in jz4725b_adc_init_clk_div()
350 static int jz4770_adc_init_clk_div(struct device *dev, struct ingenic_adc *adc) in jz4770_adc_init_clk_div()
613 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_read_avail() local
636 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_read_chan_info_raw() local
[all …]
Dti-adc084s021.c73 static int adc084s021_adc_conversion(struct adc084s021 *adc, __be16 *data) in adc084s021_adc_conversion()
93 struct adc084s021 *adc = iio_priv(indio_dev); in adc084s021_read_raw() local
148 struct adc084s021 *adc = iio_priv(indio_dev); in adc084s021_buffer_trigger_handler() local
165 struct adc084s021 *adc = iio_priv(indio_dev); in adc084s021_buffer_preenable() local
182 struct adc084s021 *adc = iio_priv(indio_dev); in adc084s021_buffer_postdisable() local
201 struct adc084s021 *adc; in adc084s021_probe() local
Dmax1241.c42 static int max1241_read(struct max1241 *adc) in max1241_read()
71 struct max1241 *adc = iio_priv(indio_dev); in max1241_read_raw() local
115 struct max1241 *adc = data; in max1241_disable_vdd_action() local
126 struct max1241 *adc = data; in max1241_disable_vref_action() local
139 struct max1241 *adc; in max1241_probe() local
Dmcp3422.c95 static int mcp3422_update_config(struct mcp3422 *adc, u8 newconfig) in mcp3422_update_config()
108 static int mcp3422_read(struct mcp3422 *adc, int *value, u8 *config) in mcp3422_read()
130 static int mcp3422_read_channel(struct mcp3422 *adc, in mcp3422_read_channel()
164 struct mcp3422 *adc = iio_priv(iio); in mcp3422_read_raw() local
198 struct mcp3422 *adc = iio_priv(iio); in mcp3422_write_raw() local
274 struct mcp3422 *adc = iio_priv(dev_to_iio_dev(dev)); in mcp3422_show_samp_freqs() local
285 struct mcp3422 *adc = iio_priv(dev_to_iio_dev(dev)); in mcp3422_show_scales() local
337 struct mcp3422 *adc; in mcp3422_probe() local
Dmcp3911.c82 static int mcp3911_read(struct mcp3911 *adc, u8 reg, u32 *val, u8 len) in mcp3911_read()
98 static int mcp3911_write(struct mcp3911 *adc, u8 reg, u32 val, u8 len) in mcp3911_write()
109 static int mcp3911_update(struct mcp3911 *adc, u8 reg, u32 mask, in mcp3911_update()
158 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_read_raw() local
228 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_write_raw() local
297 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_trigger_handler() local
342 static int mcp3911_config(struct mcp3911 *adc) in mcp3911_config()
410 struct mcp3911 *adc = iio_trigger_get_drvdata(trig); in mcp3911_set_trigger_state() local
428 struct mcp3911 *adc; in mcp3911_probe() local
Dmax1118.c71 struct max1118 *adc = iio_priv(indio_dev); in max1118_read() local
117 struct max1118 *adc = iio_priv(indio_dev); in max1118_get_vref_mV() local
140 struct max1118 *adc = iio_priv(indio_dev); in max1118_read_raw() local
171 struct max1118 *adc = iio_priv(indio_dev); in max1118_trigger_handler() local
210 struct max1118 *adc; in max1118_probe() local
Dti-adc0832.c120 static int adc0831_adc_conversion(struct adc0832 *adc) in adc0831_adc_conversion()
135 static int adc0832_adc_conversion(struct adc0832 *adc, int channel, in adc0832_adc_conversion()
173 struct adc0832 *adc = iio_priv(iio); in adc0832_read_raw() local
208 struct adc0832 *adc = iio_priv(indio_dev); in adc0832_trigger_handler() local
247 struct adc0832 *adc; in adc0832_probe() local
Dlp8788_adc.c48 static int lp8788_get_adc_result(struct lp8788_adc *adc, enum lp8788_adc_id id, in lp8788_get_adc_result()
98 struct lp8788_adc *adc = iio_priv(indio_dev); in lp8788_adc_read_raw() local
169 struct lp8788_adc *adc) in lp8788_iio_map_register()
191 struct lp8788_adc *adc; in lp8788_adc_probe() local
Dlpc18xx_adc.c69 static int lpc18xx_adc_read_chan(struct lpc18xx_adc *adc, unsigned int ch) in lpc18xx_adc_read_chan()
91 struct lpc18xx_adc *adc = iio_priv(indio_dev); in lpc18xx_adc_read_raw() local
119 struct lpc18xx_adc *adc = data; in lpc18xx_clear_cr_reg() local
132 struct lpc18xx_adc *adc; in lpc18xx_adc_probe() local
Dintel_mrfld_adc.c65 struct mrfld_adc *adc = iio_priv(indio_dev); in mrfld_adc_thread_isr() local
75 struct mrfld_adc *adc = iio_priv(indio_dev); in mrfld_adc_single_conv() local
127 struct mrfld_adc *adc = iio_priv(indio_dev); in mrfld_adc_read_raw() local
185 struct mrfld_adc *adc; in mrfld_adc_probe() local
Dqcom-pm8xxx-xoadc.c419 struct pm8xxx_xoadc *adc = iio_priv(indio_dev); in pm8xxx_eoc_irq() local
427 pm8xxx_get_channel(struct pm8xxx_xoadc *adc, u8 chan) in pm8xxx_get_channel()
439 static int pm8xxx_read_channel_rsv(struct pm8xxx_xoadc *adc, in pm8xxx_read_channel_rsv()
570 static int pm8xxx_read_channel(struct pm8xxx_xoadc *adc, in pm8xxx_read_channel()
582 static int pm8xxx_calibrate_device(struct pm8xxx_xoadc *adc) in pm8xxx_calibrate_device()
653 struct pm8xxx_xoadc *adc = iio_priv(indio_dev); in pm8xxx_read_raw() local
700 struct pm8xxx_xoadc *adc = iio_priv(indio_dev); in pm8xxx_fwnode_xlate() local
823 static int pm8xxx_xoadc_parse_channels(struct pm8xxx_xoadc *adc) in pm8xxx_xoadc_parse_channels()
884 struct pm8xxx_xoadc *adc; in pm8xxx_xoadc_probe() local
963 struct pm8xxx_xoadc *adc = iio_priv(indio_dev); in pm8xxx_xoadc_remove() local
Dti-adc128s052.c35 static int adc128_adc_conversion(struct adc128 *adc, u8 channel) in adc128_adc_conversion()
64 struct adc128 *adc = iio_priv(indio_dev); in adc128_read_raw() local
144 struct adc128 *adc; in adc128_probe() local
Dmen_z188_adc.c53 struct z188_adc *adc = iio_priv(iio_dev); in z188_iio_read_raw() local
103 struct z188_adc *adc; in men_z188_probe() local
148 struct z188_adc *adc = iio_priv(indio_dev); in men_z188_remove() local
/linux-6.1.9/arch/arm/mach-s3c/
Dadc.c83 static inline void s3c_adc_convert(struct adc_device *adc) in s3c_adc_convert()
91 static inline void s3c_adc_select(struct adc_device *adc, in s3c_adc_select()
117 static void s3c_adc_dbgshow(struct adc_device *adc) in s3c_adc_dbgshow()
125 static void s3c_adc_try(struct adc_device *adc) in s3c_adc_try()
148 struct adc_device *adc = adc_dev; in s3c_adc_start() local
282 struct adc_device *adc = pw; in s3c_adc_irq() local
335 struct adc_device *adc; in s3c_adc_probe() local
402 struct adc_device *adc = platform_get_drvdata(pdev); in s3c_adc_remove() local
413 struct adc_device *adc = dev_get_drvdata(dev); in s3c_adc_suspend() local
434 struct adc_device *adc = platform_get_drvdata(pdev); in s3c_adc_resume() local
/linux-6.1.9/drivers/hwmon/
Dadcxx.c52 struct adcxx *adc = spi_get_drvdata(spi); in adcxx_show() local
95 struct adcxx *adc = spi_get_drvdata(spi); in adcxx_max_show() local
113 struct adcxx *adc = spi_get_drvdata(spi); in adcxx_max_store() local
154 struct adcxx *adc; in adcxx_probe() local
199 struct adcxx *adc = spi_get_drvdata(spi); in adcxx_remove() local
Dsmm665.c116 #define SMM665_VMON_ADC_TO_VOLTS(adc) ((adc) * vref / 256) argument
119 #define SMM665_12VIN_ADC_TO_VOLTS(adc) ((adc) * vref * 3 / 256) argument
122 #define SMM665_AIN_ADC_TO_VOLTS(adc) ((adc) * vref / 512) argument
125 #define SMM665_TEMP_ADC_TO_CELSIUS(adc) (((adc) <= 511) ? \ argument
144 u16 adc[SMM665_NUM_ADC]; /* adc values (raw) */ member
177 static int smm665_read_adc(struct smm665_data *data, int adc) in smm665_read_adc()
362 int adc = attr->index; in smm665_show_input() local
/linux-6.1.9/drivers/mfd/
Dpcf50633-adc.c69 struct pcf50633_adc *adc = __to_adc(pcf); in trigger_next_adc_job_if_any() local
83 struct pcf50633_adc *adc = __to_adc(pcf); in adc_enqueue_request() local
170 struct pcf50633_adc *adc = data; in pcf50633_adc_irq() local
199 struct pcf50633_adc *adc; in pcf50633_adc_probe() local
218 struct pcf50633_adc *adc = platform_get_drvdata(pdev); in pcf50633_adc_remove() local

12345