Searched refs:misc_device (Results 1 – 4 of 4) sorted by relevance
55 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()
154 struct miscdevice misc_device; member
767 struct miscdevice *misc_device; in pci_endpoint_test_probe() local860 misc_device = &test->miscdev; in pci_endpoint_test_probe()861 misc_device->minor = MISC_DYNAMIC_MINOR; in pci_endpoint_test_probe()862 misc_device->name = kstrdup(name, GFP_KERNEL); in pci_endpoint_test_probe()863 if (!misc_device->name) { in pci_endpoint_test_probe()867 misc_device->parent = &pdev->dev; in pci_endpoint_test_probe()868 misc_device->fops = &pci_endpoint_test_fops; in pci_endpoint_test_probe()870 err = misc_register(misc_device); in pci_endpoint_test_probe()879 kfree(misc_device->name); in pci_endpoint_test_probe()911 struct miscdevice *misc_device = &test->miscdev; in pci_endpoint_test_remove() local[all …]
1288 struct miscdevice *misc_device; in bcm_vk_probe() local1413 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 …]