Lines Matching refs:devres
184 struct regulator_bulk_devres *devres = res; in devm_regulator_bulk_release() local
186 regulator_bulk_free(devres->num_consumers, devres->consumers); in devm_regulator_bulk_release()
207 struct regulator_bulk_devres *devres; in devm_regulator_bulk_get() local
210 devres = devres_alloc(devm_regulator_bulk_release, in devm_regulator_bulk_get()
211 sizeof(*devres), GFP_KERNEL); in devm_regulator_bulk_get()
212 if (!devres) in devm_regulator_bulk_get()
217 devres->consumers = consumers; in devm_regulator_bulk_get()
218 devres->num_consumers = num_consumers; in devm_regulator_bulk_get()
219 devres_add(dev, devres); in devm_regulator_bulk_get()
221 devres_free(devres); in devm_regulator_bulk_get()
293 struct regulator_bulk_devres *devres = res; in devm_regulator_bulk_disable() local
296 for (i = 0; i < devres->num_consumers; i++) in devm_regulator_bulk_disable()
297 regulator_disable(devres->consumers[i].consumer); in devm_regulator_bulk_disable()
318 struct regulator_bulk_devres *devres; in devm_regulator_bulk_get_enable() local
322 devres = devm_kmalloc(dev, sizeof(*devres), GFP_KERNEL); in devm_regulator_bulk_get_enable()
323 if (!devres) in devm_regulator_bulk_get_enable()
326 devres->consumers = devm_kcalloc(dev, num_consumers, sizeof(*consumers), in devm_regulator_bulk_get_enable()
328 consumers = devres->consumers; in devm_regulator_bulk_get_enable()
332 devres->num_consumers = num_consumers; in devm_regulator_bulk_get_enable()
347 ret = devm_add_action(dev, devm_regulator_bulk_disable, devres); in devm_regulator_bulk_get_enable()