Lines Matching refs:retval
163 int retval = 0; in cmd_adc_ch_id() local
176 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_id()
177 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_id()
179 return retval; in cmd_adc_ch_id()
186 int retval = 0; in cmd_adc_ch_diff() local
203 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_diff()
204 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_diff()
206 return retval; in cmd_adc_ch_diff()
214 int retval = 0; in cmd_adc_ch_neg() local
227 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_neg()
228 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_neg()
230 return retval; in cmd_adc_ch_neg()
241 int retval = 0; in cmd_adc_ch_pos() local
254 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_pos()
255 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_pos()
257 return retval; in cmd_adc_ch_pos()
269 int retval = -EINVAL; in cmd_adc_gain() local
281 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_gain()
282 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_gain()
284 return retval; in cmd_adc_gain()
292 int retval; in cmd_adc_acq() local
318 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_acq()
319 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_acq()
321 return retval; in cmd_adc_acq()
327 int retval; in cmd_adc_reso() local
340 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_reso()
342 return retval; in cmd_adc_reso()
351 int retval = -EINVAL; in cmd_adc_ref() local
364 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ref()
365 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ref()
367 return retval; in cmd_adc_ref()
377 int retval; in cmd_adc_read() local
392 retval = adc_read(adc->dev, &sequence); in cmd_adc_read()
393 if (retval >= 0) { in cmd_adc_read()
397 return retval; in cmd_adc_read()