Searched refs:misc_dev (Results 1 – 4 of 4) sorted by relevance
70 struct miscdevice misc_dev; member201 static struct dw_xdata *misc_dev_to_dw(struct miscdevice *misc_dev) in misc_dev_to_dw() argument203 return container_of(misc_dev, struct dw_xdata, misc_dev); in misc_dev_to_dw()209 struct miscdevice *misc_dev = dev_get_drvdata(dev); in write_show() local210 struct dw_xdata *dw = misc_dev_to_dw(misc_dev); in write_show()221 struct miscdevice *misc_dev = dev_get_drvdata(dev); in write_store() local222 struct dw_xdata *dw = misc_dev_to_dw(misc_dev); in write_store()246 struct miscdevice *misc_dev = dev_get_drvdata(dev); in read_show() local247 struct dw_xdata *dw = misc_dev_to_dw(misc_dev); in read_show()258 struct miscdevice *misc_dev = dev_get_drvdata(dev); in read_store() local[all …]
125 struct miscdevice misc_dev; member157 static struct kmod_test_device *misc_dev_to_test_dev(struct miscdevice *misc_dev) in misc_dev_to_test_dev() argument159 return container_of(misc_dev, struct kmod_test_device, misc_dev); in misc_dev_to_test_dev()164 struct miscdevice *misc_dev; in dev_to_test_dev() local166 misc_dev = dev_to_misc_dev(dev); in dev_to_test_dev()168 return misc_dev_to_test_dev(misc_dev); in dev_to_test_dev()1071 struct miscdevice *misc_dev; in alloc_test_dev_kmod() local1090 misc_dev = &test_dev->misc_dev; in alloc_test_dev_kmod()1092 misc_dev->minor = MISC_DYNAMIC_MINOR; in alloc_test_dev_kmod()1093 misc_dev->name = kasprintf(GFP_KERNEL, "test_kmod%d", idx); in alloc_test_dev_kmod()[all …]
91 struct miscdevice misc_dev; member363 return container_of(dev, struct pxa3xx_gcu_priv, misc_dev); in to_pxa3xx_gcu_priv()597 priv->misc_dev.minor = PXA3XX_GCU_MINOR; in pxa3xx_gcu_probe()598 priv->misc_dev.name = DRV_NAME; in pxa3xx_gcu_probe()599 priv->misc_dev.fops = &pxa3xx_gcu_miscdev_fops; in pxa3xx_gcu_probe()632 ret = misc_register(&priv->misc_dev); in pxa3xx_gcu_probe()669 misc_deregister(&priv->misc_dev); in pxa3xx_gcu_probe()684 misc_deregister(&priv->misc_dev); in pxa3xx_gcu_remove()
58 static struct sev_misc_dev *misc_dev; variable2191 misc_deregister(&misc_dev->misc); in sev_exit()2192 kfree(misc_dev); in sev_exit()2193 misc_dev = NULL; in sev_exit()2208 if (!misc_dev) { in sev_misc_init()2211 misc_dev = kzalloc(sizeof(*misc_dev), GFP_KERNEL); in sev_misc_init()2212 if (!misc_dev) in sev_misc_init()2215 misc = &misc_dev->misc; in sev_misc_init()2224 kref_init(&misc_dev->refcount); in sev_misc_init()2226 kref_get(&misc_dev->refcount); in sev_misc_init()[all …]