Lines Matching refs:var_data
94 const struct sc27xx_adc_variant_data *var_data; member
199 calib_graph = data->var_data->bscale_cal; in sc27xx_adc_scale_calibration()
203 calib_graph = data->var_data->sscale_cal; in sc27xx_adc_scale_calibration()
499 if ((data->var_data->set_volref) && (channel == 30 || channel == 31)) { in sc27xx_adc_read()
520 tmp = (scale << data->var_data->scale_shift) & data->var_data->scale_mask; in sc27xx_adc_read()
524 data->var_data->scale_mask, in sc27xx_adc_read()
563 if ((data->var_data->set_volref) && (channel == 30 || channel == 31)) { in sc27xx_adc_read()
588 ratio = data->var_data->get_ratio(channel, scale); in sc27xx_adc_volt_ratio()
767 ret = regmap_update_bits(data->regmap, data->var_data->module_en, in sc27xx_adc_enable()
773 ret = regmap_update_bits(data->regmap, data->var_data->clk_en, in sc27xx_adc_enable()
791 regmap_update_bits(data->regmap, data->var_data->clk_en, in sc27xx_adc_enable()
794 regmap_update_bits(data->regmap, data->var_data->module_en, in sc27xx_adc_enable()
805 regmap_update_bits(data->regmap, data->var_data->clk_en, in sc27xx_adc_disable()
808 regmap_update_bits(data->regmap, data->var_data->module_en, in sc27xx_adc_disable()
918 sc27xx_data->var_data = pdata; in sc27xx_adc_probe()
919 sc27xx_data->var_data->init_scale(sc27xx_data); in sc27xx_adc_probe()