Searched refs:chdata (Results 1 – 2 of 2) sorted by relevance
89 struct mcp4728_channel_data chdata[MCP4728_N_CHANNELS]; member129 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()[all …]
137 u16 chdata; in sx8650_irq() local161 chdata = be16_to_cpu(data[i]); in sx8650_irq()163 if (unlikely(chdata == 0xFFFF)) { in sx8650_irq()166 } else if (unlikely(chdata & 0x8000)) { in sx8650_irq()167 dev_warn(dev, "hibit @ %d [0x%04x]\n", i, chdata); in sx8650_irq()171 ch = chdata >> 12; in sx8650_irq()173 x = chdata & MAX_12BIT; in sx8650_irq()175 y = chdata & MAX_12BIT; in sx8650_irq()178 chdata); in sx8650_irq()