Home
last modified time | relevance | path

Searched refs:misc_device (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/drivers/platform/chrome/
Dcros_hps_i2c.c25 struct miscdevice misc_device; member
37 struct hps_drvdata, misc_device); in hps_open()
46 struct hps_drvdata, misc_device); in hps_release()
67 hps->misc_device.parent = &client->dev; in hps_i2c_probe()
68 hps->misc_device.minor = MISC_DYNAMIC_MINOR; in hps_i2c_probe()
69 hps->misc_device.name = "cros-hps"; in hps_i2c_probe()
70 hps->misc_device.fops = &hps_fops; in hps_i2c_probe()
87 ret = misc_register(&hps->misc_device); in hps_i2c_probe()
103 misc_deregister(&hps->misc_device); in hps_i2c_remove()
/Linux-v6.6/drivers/virt/vboxguest/
Dvboxguest_linux.c55 gdev = container_of(filp->private_data, struct vbg_dev, misc_device); in vbg_misc_device_open()
349 gdev->misc_device.minor = MISC_DYNAMIC_MINOR; in vbg_pci_probe()
350 gdev->misc_device.name = DEVICE_NAME; in vbg_pci_probe()
351 gdev->misc_device.fops = &vbg_misc_device_fops; in vbg_pci_probe()
373 ret = misc_register(&gdev->misc_device); in vbg_pci_probe()
406 misc_deregister(&gdev->misc_device); in vbg_pci_probe()
427 misc_deregister(&gdev->misc_device); in vbg_pci_remove()
Dvboxguest_core.h154 struct miscdevice misc_device; member
/Linux-v6.6/drivers/misc/
Dpci_endpoint_test.c787 struct miscdevice *misc_device; in pci_endpoint_test_probe() local
880 misc_device = &test->miscdev; in pci_endpoint_test_probe()
881 misc_device->minor = MISC_DYNAMIC_MINOR; in pci_endpoint_test_probe()
882 misc_device->name = kstrdup(name, GFP_KERNEL); in pci_endpoint_test_probe()
883 if (!misc_device->name) { in pci_endpoint_test_probe()
887 misc_device->parent = &pdev->dev; in pci_endpoint_test_probe()
888 misc_device->fops = &pci_endpoint_test_fops; in pci_endpoint_test_probe()
890 err = misc_register(misc_device); in pci_endpoint_test_probe()
899 kfree(misc_device->name); in pci_endpoint_test_probe()
931 struct miscdevice *misc_device = &test->miscdev; in pci_endpoint_test_remove() local
[all …]
/Linux-v6.6/drivers/misc/bcm-vk/
Dbcm_vk_dev.c1288 struct miscdevice *misc_device; in bcm_vk_probe() local
1413 misc_device = &vk->miscdev; in bcm_vk_probe()
1414 misc_device->minor = MISC_DYNAMIC_MINOR; in bcm_vk_probe()
1415 misc_device->name = kstrdup(name, GFP_KERNEL); in bcm_vk_probe()
1416 if (!misc_device->name) { in bcm_vk_probe()
1420 misc_device->fops = &bcm_vk_fops, in bcm_vk_probe()
1422 err = misc_register(misc_device); in bcm_vk_probe()
1496 misc_deregister(misc_device); in bcm_vk_probe()
1499 kfree(misc_device->name); in bcm_vk_probe()
1500 misc_device->name = NULL; in bcm_vk_probe()
[all …]