Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/virt/vboxguest/
Dvboxguest_linux.c55 gdev = container_of(filp->private_data, struct vbg_dev, misc_device); in vbg_misc_device_open()
342 gdev->misc_device.minor = MISC_DYNAMIC_MINOR; in vbg_pci_probe()
343 gdev->misc_device.name = DEVICE_NAME; in vbg_pci_probe()
344 gdev->misc_device.fops = &vbg_misc_device_fops; in vbg_pci_probe()
366 ret = misc_register(&gdev->misc_device); in vbg_pci_probe()
397 gdev->misc_device.minor, pci->irq, gdev->io_port, in vbg_pci_probe()
405 misc_deregister(&gdev->misc_device); in vbg_pci_probe()
428 misc_deregister(&gdev->misc_device); in vbg_pci_remove()
Dvboxguest_core.h154 struct miscdevice misc_device; member
/kernel/linux/linux-5.10/drivers/misc/
Dpci_endpoint_test.c788 struct miscdevice *misc_device; in pci_endpoint_test_probe() local
881 misc_device = &test->miscdev; in pci_endpoint_test_probe()
882 misc_device->minor = MISC_DYNAMIC_MINOR; in pci_endpoint_test_probe()
883 misc_device->name = kstrdup(name, GFP_KERNEL); in pci_endpoint_test_probe()
884 if (!misc_device->name) { 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
933 if (sscanf(misc_device->name, DRV_MODULE_NAME ".%d", &id) != 1) in pci_endpoint_test_remove()
[all …]