Lines Matching refs:pga
230 unsigned int pga; member
688 FIELD_PREP(AD4130_CONFIG_PGA_MASK, setup_info->pga); in ad4130_write_slot_setup()
973 unsigned int pga, old_pga; in ad4130_set_channel_pga() local
976 for (pga = 0; pga < AD4130_MAX_PGA; pga++) in ad4130_set_channel_pga()
977 if (val == st->scale_tbls[setup_info->ref_sel][pga][0] && in ad4130_set_channel_pga()
978 val2 == st->scale_tbls[setup_info->ref_sel][pga][1]) in ad4130_set_channel_pga()
981 if (pga == AD4130_MAX_PGA) in ad4130_set_channel_pga()
985 if (pga == setup_info->pga) in ad4130_set_channel_pga()
988 old_pga = setup_info->pga; in ad4130_set_channel_pga()
989 setup_info->pga = pga; in ad4130_set_channel_pga()
993 setup_info->pga = old_pga; in ad4130_set_channel_pga()
1097 *val = st->scale_tbls[setup_info->ref_sel][setup_info->pga][0]; in ad4130_read_raw()
1098 *val2 = st->scale_tbls[setup_info->ref_sel][setup_info->pga][1]; in ad4130_read_raw()