Lines Matching refs:devres
109 struct clk_bulk_devres *devres = res; in devm_clk_bulk_release() local
111 clk_bulk_put(devres->num_clks, devres->clks); in devm_clk_bulk_release()
117 struct clk_bulk_devres *devres; in __devm_clk_bulk_get() local
120 devres = devres_alloc(devm_clk_bulk_release, in __devm_clk_bulk_get()
121 sizeof(*devres), GFP_KERNEL); in __devm_clk_bulk_get()
122 if (!devres) in __devm_clk_bulk_get()
130 devres->clks = clks; in __devm_clk_bulk_get()
131 devres->num_clks = num_clks; in __devm_clk_bulk_get()
132 devres_add(dev, devres); in __devm_clk_bulk_get()
134 devres_free(devres); in __devm_clk_bulk_get()
156 struct clk_bulk_devres *devres = res; in devm_clk_bulk_release_all() local
158 clk_bulk_put_all(devres->num_clks, devres->clks); in devm_clk_bulk_release_all()
164 struct clk_bulk_devres *devres; in devm_clk_bulk_get_all() local
167 devres = devres_alloc(devm_clk_bulk_release_all, in devm_clk_bulk_get_all()
168 sizeof(*devres), GFP_KERNEL); in devm_clk_bulk_get_all()
169 if (!devres) in devm_clk_bulk_get_all()
172 ret = clk_bulk_get_all(dev, &devres->clks); in devm_clk_bulk_get_all()
174 *clks = devres->clks; in devm_clk_bulk_get_all()
175 devres->num_clks = ret; in devm_clk_bulk_get_all()
176 devres_add(dev, devres); in devm_clk_bulk_get_all()
178 devres_free(devres); in devm_clk_bulk_get_all()