Lines Matching refs:retval

165 	int retval = 0;  in cmd_adc_ch_id()  local
178 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_id()
179 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_id()
181 return retval; in cmd_adc_ch_id()
188 int retval = 0; in cmd_adc_ch_diff() local
205 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_diff()
206 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_diff()
208 return retval; in cmd_adc_ch_diff()
216 int retval = 0; in cmd_adc_ch_neg() local
229 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_neg()
230 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_neg()
232 return retval; in cmd_adc_ch_neg()
243 int retval = 0; in cmd_adc_ch_pos() local
256 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_pos()
257 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ch_pos()
259 return retval; in cmd_adc_ch_pos()
271 int retval = -EINVAL; in cmd_adc_gain() local
283 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_gain()
284 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_gain()
286 return retval; in cmd_adc_gain()
294 int retval; in cmd_adc_acq() local
320 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_acq()
321 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_acq()
323 return retval; in cmd_adc_acq()
329 int retval; in cmd_adc_reso() local
342 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_reso()
344 return retval; in cmd_adc_reso()
353 int retval = -EINVAL; in cmd_adc_ref() local
366 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ref()
367 LOG_DBG("Channel setup returned %i", retval); in cmd_adc_ref()
369 return retval; in cmd_adc_ref()
379 int retval; in cmd_adc_read() local
394 retval = adc_read(adc->dev, &sequence); in cmd_adc_read()
395 if (retval >= 0) { in cmd_adc_read()
399 return retval; in cmd_adc_read()