Lines Matching refs:conv_tbl
213 const struct cpcap_adc_conversion_tbl *conv_tbl; member
667 const struct cpcap_adc_conversion_tbl *conv_tbl = req->conv_tbl; in cpcap_adc_phase() local
688 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() local
755 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()
818 req->conv_tbl = bank_conversion; in cpcap_adc_init_request()