Searched refs:conv_tbl (Results 1 – 1 of 1) sorted by relevance
213 const struct cpcap_adc_conversion_tbl *conv_tbl; member667 const struct cpcap_adc_conversion_tbl *conv_tbl = req->conv_tbl; in cpcap_adc_phase() local688 req->result += conv_tbl[index].cal_offset; in cpcap_adc_phase()689 req->result += conv_tbl[index].align_offset; in cpcap_adc_phase()739 const struct cpcap_adc_conversion_tbl *conv_tbl = req->conv_tbl; in cpcap_adc_convert() local755 if (conv_tbl[index].conv_type == IIO_CHAN_INFO_RAW) in cpcap_adc_convert()768 req->result *= conv_tbl[index].multiplier; in cpcap_adc_convert()769 if (conv_tbl[index].divider == 0) in cpcap_adc_convert()771 req->result /= conv_tbl[index].divider; in cpcap_adc_convert()772 req->result += conv_tbl[index].conv_offset; in cpcap_adc_convert()[all …]