Lines Matching refs:dev
66 struct device_node *np = reboot->dev->of_node; in reboot_mode_register()
76 info = devm_kzalloc(reboot->dev, sizeof(*info), GFP_KERNEL); in reboot_mode_register()
83 dev_err(reboot->dev, "reboot mode %s without magic number\n", in reboot_mode_register()
85 devm_kfree(reboot->dev, info); in reboot_mode_register()
96 dev_err(reboot->dev, "invalid mode name(%s): too short!\n", in reboot_mode_register()
134 static void devm_reboot_mode_release(struct device *dev, void *res) in devm_reboot_mode_release() argument
146 int devm_reboot_mode_register(struct device *dev, in devm_reboot_mode_register() argument
163 devres_add(dev, dr); in devm_reboot_mode_register()
169 static int devm_reboot_mode_match(struct device *dev, void *res, void *data) in devm_reboot_mode_match() argument
184 void devm_reboot_mode_unregister(struct device *dev, in devm_reboot_mode_unregister() argument
187 WARN_ON(devres_release(dev, in devm_reboot_mode_unregister()