Searched refs:misc_dev (Results 1 – 2 of 2) sorted by relevance
32 static struct sev_misc_dev *misc_dev; variable885 struct sev_misc_dev *misc_dev = container_of(ref, struct sev_misc_dev, refcount); in sev_exit() local887 misc_deregister(&misc_dev->misc); in sev_exit()902 if (!misc_dev) { in sev_misc_init()905 misc_dev = devm_kzalloc(dev, sizeof(*misc_dev), GFP_KERNEL); in sev_misc_init()906 if (!misc_dev) in sev_misc_init()909 misc = &misc_dev->misc; in sev_misc_init()918 kref_init(&misc_dev->refcount); in sev_misc_init()920 kref_get(&misc_dev->refcount); in sev_misc_init()924 psp->sev_misc = misc_dev; in sev_misc_init()[all …]
92 struct miscdevice misc_dev; member364 return container_of(dev, struct pxa3xx_gcu_priv, misc_dev); in to_pxa3xx_gcu_priv()598 priv->misc_dev.minor = MISCDEV_MINOR, in pxa3xx_gcu_probe()599 priv->misc_dev.name = DRV_NAME, in pxa3xx_gcu_probe()600 priv->misc_dev.fops = &pxa3xx_gcu_miscdev_fops; in pxa3xx_gcu_probe()638 ret = misc_register(&priv->misc_dev); in pxa3xx_gcu_probe()675 misc_deregister(&priv->misc_dev); in pxa3xx_gcu_probe()689 misc_deregister(&priv->misc_dev); in pxa3xx_gcu_remove()