Lines Matching refs:hwgain
374 unsigned int hwgain; member
844 *val = adc->scale_tbls[adc->hwgain][0]; in mcp3564_read_raw()
845 *val2 = adc->scale_tbls[adc->hwgain][1]; in mcp3564_read_raw()
886 unsigned int hwgain; in mcp3564_write_raw() local
960 for (hwgain = 0; hwgain < MCP3564_MAX_PGA; hwgain++) in mcp3564_write_raw()
961 if (val == adc->scale_tbls[hwgain][0] && in mcp3564_write_raw()
962 val2 == adc->scale_tbls[hwgain][1]) in mcp3564_write_raw()
965 if (hwgain == MCP3564_MAX_PGA) in mcp3564_write_raw()
968 if (hwgain == adc->hwgain) in mcp3564_write_raw()
974 FIELD_PREP(MCP3564_CONFIG2_HARDWARE_GAIN_MASK, hwgain)); in mcp3564_write_raw()
976 adc->hwgain = hwgain; in mcp3564_write_raw()
1314 adc->hwgain = 0x01; in mcp3564_config()