Lines Matching refs:chdata
89 struct mcp4728_channel_data chdata[MCP4728_N_CHANNELS]; member
129 struct mcp4728_channel_data *ch = &data->chdata[i]; in mcp4728_store_eeprom()
189 struct mcp4728_channel_data *ch = &data->chdata[channel]; in mcp4728_program_channel_cfg()
224 return data->chdata[chan->channel].pd_mode; in mcp4728_get_powerdown_mode()
233 data->chdata[chan->channel].pd_mode = mode; in mcp4728_set_powerdown_mode()
310 int ref_mode = data->chdata[channel].ref_mode; in mcp4728_get_scale()
311 int g_mode = data->chdata[channel].g_mode; in mcp4728_get_scale()
347 data->chdata[channel].ref_mode = MCP4728_VREF_EXTERNAL_VDD; in mcp4728_set_scale()
350 data->chdata[channel].ref_mode = MCP4728_VREF_INTERNAL_2048mV; in mcp4728_set_scale()
351 data->chdata[channel].g_mode = MCP4728_GAIN_X1; in mcp4728_set_scale()
354 data->chdata[channel].ref_mode = MCP4728_VREF_INTERNAL_2048mV; in mcp4728_set_scale()
355 data->chdata[channel].g_mode = MCP4728_GAIN_X2; in mcp4728_set_scale()
370 *val = data->chdata[chan->channel].dac_value; in mcp4728_read_raw()
390 data->chdata[chan->channel].dac_value = val; in mcp4728_write_raw()
512 struct mcp4728_channel_data *ch = &data->chdata[i]; in mcp4728_init_channels_data()