Lines Matching refs:data_idx
166 int count, idx, data_idx = 0; in pbias_regulator_probe() local
203 for (idx = 0; idx < PBIAS_NUM_REGS && data_idx < count; idx++) { in pbias_regulator_probe()
212 drvdata[data_idx].syscon = syscon; in pbias_regulator_probe()
213 drvdata[data_idx].info = info; in pbias_regulator_probe()
214 drvdata[data_idx].desc.name = info->name; in pbias_regulator_probe()
215 drvdata[data_idx].desc.owner = THIS_MODULE; in pbias_regulator_probe()
216 drvdata[data_idx].desc.type = REGULATOR_VOLTAGE; in pbias_regulator_probe()
217 drvdata[data_idx].desc.ops = &pbias_regulator_voltage_ops; in pbias_regulator_probe()
218 drvdata[data_idx].desc.volt_table = info->pbias_volt_table; in pbias_regulator_probe()
219 drvdata[data_idx].desc.n_voltages = info->n_voltages; in pbias_regulator_probe()
220 drvdata[data_idx].desc.enable_time = info->enable_time; in pbias_regulator_probe()
221 drvdata[data_idx].desc.vsel_reg = offset; in pbias_regulator_probe()
222 drvdata[data_idx].desc.vsel_mask = info->vmode; in pbias_regulator_probe()
223 drvdata[data_idx].desc.enable_reg = offset; in pbias_regulator_probe()
224 drvdata[data_idx].desc.enable_mask = info->enable_mask; in pbias_regulator_probe()
225 drvdata[data_idx].desc.enable_val = info->enable; in pbias_regulator_probe()
226 drvdata[data_idx].desc.disable_val = info->disable_val; in pbias_regulator_probe()
229 cfg.driver_data = &drvdata[data_idx]; in pbias_regulator_probe()
232 drvdata[data_idx].dev = devm_regulator_register(&pdev->dev, in pbias_regulator_probe()
233 &drvdata[data_idx].desc, &cfg); in pbias_regulator_probe()
234 if (IS_ERR(drvdata[data_idx].dev)) { in pbias_regulator_probe()
235 ret = PTR_ERR(drvdata[data_idx].dev); in pbias_regulator_probe()
240 data_idx++; in pbias_regulator_probe()