Home
last modified time | relevance | path

Searched refs:misc_dev (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/misc/
Ddw-xdata-pcie.c70 struct miscdevice misc_dev; member
201 static struct dw_xdata *misc_dev_to_dw(struct miscdevice *misc_dev) in misc_dev_to_dw() argument
203 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() local
210 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() local
222 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() local
247 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 …]
/Linux-v6.6/lib/
Dtest_kmod.c121 struct miscdevice misc_dev; member
153 static struct kmod_test_device *misc_dev_to_test_dev(struct miscdevice *misc_dev) in misc_dev_to_test_dev() argument
155 return container_of(misc_dev, struct kmod_test_device, misc_dev); in misc_dev_to_test_dev()
160 struct miscdevice *misc_dev; in dev_to_test_dev() local
162 misc_dev = dev_to_misc_dev(dev); in dev_to_test_dev()
164 return misc_dev_to_test_dev(misc_dev); in dev_to_test_dev()
1067 struct miscdevice *misc_dev; in alloc_test_dev_kmod() local
1086 misc_dev = &test_dev->misc_dev; in alloc_test_dev_kmod()
1088 misc_dev->minor = MISC_DYNAMIC_MINOR; in alloc_test_dev_kmod()
1089 misc_dev->name = kasprintf(GFP_KERNEL, "test_kmod%d", idx); in alloc_test_dev_kmod()
[all …]
/Linux-v6.6/drivers/crypto/ccp/
Dsev-dev.c41 static struct sev_misc_dev *misc_dev; variable
1168 misc_deregister(&misc_dev->misc); in sev_exit()
1169 kfree(misc_dev); in sev_exit()
1170 misc_dev = NULL; in sev_exit()
1185 if (!misc_dev) { in sev_misc_init()
1188 misc_dev = kzalloc(sizeof(*misc_dev), GFP_KERNEL); in sev_misc_init()
1189 if (!misc_dev) in sev_misc_init()
1192 misc = &misc_dev->misc; in sev_misc_init()
1201 kref_init(&misc_dev->refcount); in sev_misc_init()
1203 kref_get(&misc_dev->refcount); in sev_misc_init()
[all …]
/Linux-v6.6/drivers/video/fbdev/
Dpxa3xx-gcu.c91 struct miscdevice misc_dev; member
363 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()