Lines Matching refs:ptr
239 struct mux_chip **ptr, *mux_chip;
241 ptr = devres_alloc(devm_mux_chip_release, sizeof(*ptr), GFP_KERNEL);
242 if (!ptr)
247 devres_free(ptr);
251 *ptr = mux_chip;
252 devres_add(dev, ptr);
277 struct mux_chip **ptr;
280 ptr = devres_alloc(devm_mux_chip_reg_release, sizeof(*ptr), GFP_KERNEL);
281 if (!ptr)
286 devres_free(ptr);
290 *ptr = mux_chip;
291 devres_add(dev, ptr);
655 struct mux_control **ptr, *mux;
657 ptr = devres_alloc(devm_mux_control_release, sizeof(*ptr), GFP_KERNEL);
658 if (!ptr)
663 devres_free(ptr);
667 *ptr = mux;
668 devres_add(dev, ptr);
730 struct mux_state **ptr, *mstate;
732 ptr = devres_alloc(devm_mux_state_release, sizeof(*ptr), GFP_KERNEL);
733 if (!ptr)
738 devres_free(ptr);
742 *ptr = mstate;
743 devres_add(dev, ptr);