/linux-6.12.1/drivers/platform/x86/dell/ |
D | dell-smo8800.c | 25 struct miscdevice miscdev; /* for /dev/freefall */ member 52 struct smo8800_device, miscdev); in smo8800_misc_read() 81 struct smo8800_device, miscdev); in smo8800_misc_open() 93 struct smo8800_device, miscdev); in smo8800_misc_release() 118 smo8800->miscdev.minor = MISC_DYNAMIC_MINOR; in smo8800_probe() 119 smo8800->miscdev.name = "freefall"; in smo8800_probe() 120 smo8800->miscdev.fops = &smo8800_misc_fops; in smo8800_probe() 124 err = misc_register(&smo8800->miscdev); in smo8800_probe() 153 misc_deregister(&smo8800->miscdev); in smo8800_probe() 162 misc_deregister(&smo8800->miscdev); in smo8800_remove()
|
/linux-6.12.1/drivers/soc/aspeed/ |
D | aspeed-lpc-ctrl.c | 32 struct miscdevice miscdev; member 46 miscdev); in file_aspeed_lpc_ctrl() 318 lpc_ctrl->miscdev.minor = MISC_DYNAMIC_MINOR; in aspeed_lpc_ctrl_probe() 319 lpc_ctrl->miscdev.name = DEVICE_NAME; in aspeed_lpc_ctrl_probe() 320 lpc_ctrl->miscdev.fops = &aspeed_lpc_ctrl_fops; in aspeed_lpc_ctrl_probe() 321 lpc_ctrl->miscdev.parent = dev; in aspeed_lpc_ctrl_probe() 322 rc = misc_register(&lpc_ctrl->miscdev); in aspeed_lpc_ctrl_probe() 339 misc_deregister(&lpc_ctrl->miscdev); in aspeed_lpc_ctrl_remove()
|
D | aspeed-lpc-snoop.c | 63 struct miscdevice miscdev; member 77 miscdev); in snoop_file_to_chan() 200 lpc_snoop->chan[channel].miscdev.minor = MISC_DYNAMIC_MINOR; in aspeed_lpc_enable_snoop() 201 lpc_snoop->chan[channel].miscdev.name = in aspeed_lpc_enable_snoop() 203 lpc_snoop->chan[channel].miscdev.fops = &snoop_fops; in aspeed_lpc_enable_snoop() 204 lpc_snoop->chan[channel].miscdev.parent = dev; in aspeed_lpc_enable_snoop() 205 rc = misc_register(&lpc_snoop->chan[channel].miscdev); in aspeed_lpc_enable_snoop() 256 misc_deregister(&lpc_snoop->chan[channel].miscdev); in aspeed_lpc_disable_snoop()
|
D | aspeed-p2a-ctrl.c | 56 struct miscdevice miscdev; member 374 misc_ctrl->miscdev.minor = MISC_DYNAMIC_MINOR; in aspeed_p2a_ctrl_probe() 375 misc_ctrl->miscdev.name = DEVICE_NAME; in aspeed_p2a_ctrl_probe() 376 misc_ctrl->miscdev.fops = &aspeed_p2a_ctrl_fops; in aspeed_p2a_ctrl_probe() 377 misc_ctrl->miscdev.parent = dev; in aspeed_p2a_ctrl_probe() 379 rc = misc_register(&misc_ctrl->miscdev); in aspeed_p2a_ctrl_probe() 390 misc_deregister(&p2a_ctrl->miscdev); in aspeed_p2a_ctrl_remove()
|
/linux-6.12.1/drivers/char/ipmi/ |
D | ipmb_dev_int.c | 58 struct miscdevice miscdev; member 71 return container_of(file->private_data, struct ipmb_dev, miscdev); in to_ipmb_dev() 319 ipmb_dev->miscdev.minor = MISC_DYNAMIC_MINOR; in ipmb_probe() 321 ipmb_dev->miscdev.name = devm_kasprintf(&client->dev, GFP_KERNEL, in ipmb_probe() 324 ipmb_dev->miscdev.fops = &ipmb_fops; in ipmb_probe() 325 ipmb_dev->miscdev.parent = &client->dev; in ipmb_probe() 326 ret = misc_register(&ipmb_dev->miscdev); in ipmb_probe() 337 misc_deregister(&ipmb_dev->miscdev); in ipmb_probe() 349 misc_deregister(&ipmb_dev->miscdev); in ipmb_remove()
|
D | bt-bmc.c | 59 struct miscdevice miscdev; member 146 return container_of(file->private_data, struct bt_bmc, miscdev); in file_bt_bmc() 429 bt_bmc->miscdev.minor = MISC_DYNAMIC_MINOR; in bt_bmc_probe() 430 bt_bmc->miscdev.name = DEVICE_NAME; in bt_bmc_probe() 431 bt_bmc->miscdev.fops = &bt_bmc_fops; in bt_bmc_probe() 432 bt_bmc->miscdev.parent = dev; in bt_bmc_probe() 433 rc = misc_register(&bt_bmc->miscdev); in bt_bmc_probe() 466 misc_deregister(&bt_bmc->miscdev); in bt_bmc_remove()
|
D | kcs_bmc_cdev_ipmi.c | 91 struct miscdevice miscdev; member 295 return container_of(filp->private_data, struct kcs_bmc_ipmi, miscdev); in to_kcs_bmc() 492 priv->miscdev.minor = MISC_DYNAMIC_MINOR; in kcs_bmc_ipmi_add_device() 493 priv->miscdev.name = devm_kasprintf(kcs_bmc->dev, GFP_KERNEL, "%s%u", DEVICE_NAME, in kcs_bmc_ipmi_add_device() 495 if (!priv->data_in || !priv->data_out || !priv->kbuffer || !priv->miscdev.name) in kcs_bmc_ipmi_add_device() 498 priv->miscdev.fops = &kcs_bmc_ipmi_fops; in kcs_bmc_ipmi_add_device() 500 rc = misc_register(&priv->miscdev); in kcs_bmc_ipmi_add_device() 532 misc_deregister(&priv->miscdev); in kcs_bmc_ipmi_remove_device()
|
D | ssif_bmc.c | 79 struct miscdevice miscdev; member 109 return container_of(file->private_data, struct ssif_bmc_ctx, miscdev); in to_ssif_bmc() 820 ssif_bmc->miscdev.minor = MISC_DYNAMIC_MINOR; in ssif_bmc_probe() 821 ssif_bmc->miscdev.name = DEVICE_NAME; in ssif_bmc_probe() 822 ssif_bmc->miscdev.fops = &ssif_bmc_fops; in ssif_bmc_probe() 823 ssif_bmc->miscdev.parent = &client->dev; in ssif_bmc_probe() 824 ret = misc_register(&ssif_bmc->miscdev); in ssif_bmc_probe() 835 misc_deregister(&ssif_bmc->miscdev); in ssif_bmc_probe() 845 misc_deregister(&ssif_bmc->miscdev); in ssif_bmc_remove()
|
/linux-6.12.1/drivers/acpi/ |
D | pfr_telemetry.c | 64 struct miscdevice miscdev; member 76 return container_of(file->private_data, struct pfrt_log_device, miscdev); in to_pfrt_log_dev() 354 misc_deregister(&pfrt_log_dev->miscdev); in acpi_pfrt_log_remove() 391 pfrt_log_dev->miscdev.minor = MISC_DYNAMIC_MINOR; in acpi_pfrt_log_probe() 392 pfrt_log_dev->miscdev.name = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfrt_log_probe() 395 if (!pfrt_log_dev->miscdev.name) in acpi_pfrt_log_probe() 398 pfrt_log_dev->miscdev.nodename = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfrt_log_probe() 401 if (!pfrt_log_dev->miscdev.nodename) in acpi_pfrt_log_probe() 404 pfrt_log_dev->miscdev.fops = &acpi_pfrt_log_fops; in acpi_pfrt_log_probe() 405 pfrt_log_dev->miscdev.parent = &pdev->dev; in acpi_pfrt_log_probe() [all …]
|
D | pfr_update.c | 84 struct miscdevice miscdev; member 116 return container_of(file->private_data, struct pfru_device, miscdev); in to_pfru_dev() 496 misc_deregister(&pfru_dev->miscdev); in acpi_pfru_remove() 533 pfru_dev->miscdev.minor = MISC_DYNAMIC_MINOR; in acpi_pfru_probe() 534 pfru_dev->miscdev.name = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfru_probe() 536 if (!pfru_dev->miscdev.name) in acpi_pfru_probe() 539 pfru_dev->miscdev.nodename = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfru_probe() 541 if (!pfru_dev->miscdev.nodename) in acpi_pfru_probe() 544 pfru_dev->miscdev.fops = &acpi_pfru_fops; in acpi_pfru_probe() 545 pfru_dev->miscdev.parent = &pdev->dev; in acpi_pfru_probe() [all …]
|
/linux-6.12.1/drivers/misc/ |
D | tps6594-pfsm.c | 35 #define TPS6594_FILE_TO_PFSM(f) container_of((f)->private_data, struct tps6594_pfsm, miscdev) 45 struct miscdevice miscdev; member 281 pfsm->miscdev.minor = MISC_DYNAMIC_MINOR; in tps6594_pfsm_probe() 282 pfsm->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "pfsm-%ld-0x%02x", in tps6594_pfsm_probe() 284 pfsm->miscdev.fops = &tps6594_pfsm_fops; in tps6594_pfsm_probe() 285 pfsm->miscdev.parent = dev->parent; in tps6594_pfsm_probe() 302 return misc_register(&pfsm->miscdev); in tps6594_pfsm_probe() 309 misc_deregister(&pfsm->miscdev); in tps6594_pfsm_remove()
|
D | mrvl_cn10k_dpi.c | 175 struct miscdevice miscdev; member 560 dpi = container_of(fptr->private_data, struct dpipf, miscdev); in dpi_dev_ioctl() 627 dpi->miscdev.minor = MISC_DYNAMIC_MINOR; in dpi_probe() 628 dpi->miscdev.name = KBUILD_MODNAME; in dpi_probe() 629 dpi->miscdev.fops = &dpi_device_fops; in dpi_probe() 630 dpi->miscdev.parent = dev; in dpi_probe() 632 ret = misc_register(&dpi->miscdev); in dpi_probe() 651 misc_deregister(&dpi->miscdev); in dpi_remove()
|
D | xilinx_sdfec.c | 214 struct miscdevice miscdev; member 942 xsdfec = container_of(fptr->private_data, struct xsdfec_dev, miscdev); in xsdfec_dev_ioctl() 1006 xsdfec = container_of(file->private_data, struct xsdfec_dev, miscdev); in xsdfec_poll() 1405 xsdfec->miscdev.minor = MISC_DYNAMIC_MINOR; in xsdfec_probe() 1406 xsdfec->miscdev.name = xsdfec->dev_name; in xsdfec_probe() 1407 xsdfec->miscdev.fops = &xsdfec_fops; in xsdfec_probe() 1408 xsdfec->miscdev.parent = dev; in xsdfec_probe() 1409 err = misc_register(&xsdfec->miscdev); in xsdfec_probe() 1428 misc_deregister(&xsdfec->miscdev); in xsdfec_remove()
|
D | pci_endpoint_test.c | 94 miscdev) 123 struct miscdevice miscdev; member 909 misc_device = &test->miscdev; in pci_endpoint_test_probe() 960 struct miscdevice *misc_device = &test->miscdev; in pci_endpoint_test_remove() 970 misc_deregister(&test->miscdev); in pci_endpoint_test_remove()
|
/linux-6.12.1/drivers/platform/goldfish/ |
D | goldfish_pipe.c | 215 struct miscdevice miscdev; member 679 struct miscdevice *miscdev = file->private_data; in to_goldfish_pipe_dev() local 681 return container_of(miscdev, struct goldfish_pipe_dev, miscdev); in to_goldfish_pipe_dev() 789 static void init_miscdevice(struct miscdevice *miscdev) in init_miscdevice() argument 791 memset(miscdev, 0, sizeof(*miscdev)); in init_miscdevice() 793 miscdev->minor = MISC_DYNAMIC_MINOR; in init_miscdevice() 794 miscdev->name = "goldfish_pipe"; in init_miscdevice() 795 miscdev->fops = &goldfish_pipe_fops; in init_miscdevice() 820 init_miscdevice(&dev->miscdev); in goldfish_pipe_device_init() 821 err = misc_register(&dev->miscdev); in goldfish_pipe_device_init() [all …]
|
/linux-6.12.1/drivers/misc/bcm-vk/ |
D | bcm_vk_msg.c | 312 vk->ctx[idx].miscdev = NULL; in bcm_vk_free_ctx() 350 vk = container_of(ctx->miscdev, struct bcm_vk, miscdev); in bcm_vk_drain_all_pend() 942 vk->ctx[i].miscdev = NULL; in bcm_vk_data_init() 974 struct miscdevice *miscdev = (struct miscdevice *)p_file->private_data; in bcm_vk_open() local 975 struct bcm_vk *vk = container_of(miscdev, struct bcm_vk, miscdev); in bcm_vk_open() 993 ctx->miscdev = miscdev; in bcm_vk_open() 1008 struct bcm_vk *vk = container_of(ctx->miscdev, struct bcm_vk, in bcm_vk_read() 1009 miscdev); in bcm_vk_read() 1078 struct bcm_vk *vk = container_of(ctx->miscdev, struct bcm_vk, in bcm_vk_write() 1079 miscdev); in bcm_vk_write() [all …]
|
/linux-6.12.1/drivers/hwtracing/coresight/ |
D | ultrasoc-smb.c | 99 struct smb_drv_data, miscdev); in smb_open() 119 struct smb_drv_data, miscdev); in smb_read() 153 struct smb_drv_data, miscdev); in smb_release() 491 drvdata->miscdev.name = desc.name; in smb_register_sink() 492 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in smb_register_sink() 493 drvdata->miscdev.fops = &smb_fops; in smb_register_sink() 494 ret = misc_register(&drvdata->miscdev); in smb_register_sink() 505 misc_deregister(&drvdata->miscdev); in smb_unregister_sink()
|
D | coresight-etb10.c | 86 struct miscdevice miscdev; member 604 struct etb_drvdata, miscdev); in etb_open() 618 struct etb_drvdata, miscdev); in etb_read() 643 struct etb_drvdata, miscdev); in etb_release() 779 drvdata->miscdev.name = desc.name; in etb_probe() 780 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in etb_probe() 781 drvdata->miscdev.fops = &etb_fops; in etb_probe() 782 ret = misc_register(&drvdata->miscdev); in etb_probe() 803 misc_deregister(&drvdata->miscdev); in etb_remove()
|
D | coresight-tmc-core.c | 155 struct tmc_drvdata, miscdev); in tmc_open() 187 struct tmc_drvdata, miscdev); in tmc_read() 208 struct tmc_drvdata, miscdev); in tmc_release() 567 drvdata->miscdev.name = desc.name; in __tmc_probe() 568 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in __tmc_probe() 569 drvdata->miscdev.fops = &tmc_fops; in __tmc_probe() 570 ret = misc_register(&drvdata->miscdev); in __tmc_probe() 625 misc_deregister(&drvdata->miscdev); in __tmc_remove()
|
D | ultrasoc-smb.h | 117 struct miscdevice miscdev; member
|
/linux-6.12.1/drivers/staging/axis-fifo/ |
D | axis-fifo.c | 139 struct miscdevice miscdev; member 678 struct axis_fifo, miscdev); in axis_fifo_open() 885 fifo->miscdev.fops = &fops; in axis_fifo_probe() 886 fifo->miscdev.minor = MISC_DYNAMIC_MINOR; in axis_fifo_probe() 887 fifo->miscdev.name = device_name; in axis_fifo_probe() 888 fifo->miscdev.groups = axis_fifo_attrs_groups; in axis_fifo_probe() 889 fifo->miscdev.parent = dev; in axis_fifo_probe() 890 rc = misc_register(&fifo->miscdev); in axis_fifo_probe() 906 misc_deregister(&fifo->miscdev); in axis_fifo_remove()
|
/linux-6.12.1/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 576 struct lis3lv02d, miscdev); in lis3lv02d_misc_open() 591 struct lis3lv02d, miscdev); in lis3lv02d_misc_release() 603 struct lis3lv02d, miscdev); in lis3lv02d_misc_read() 654 struct lis3lv02d, miscdev); in lis3lv02d_misc_poll() 665 struct lis3lv02d, miscdev); in lis3lv02d_misc_fasync() 757 misc_deregister(&lis3->miscdev); in lis3lv02d_joystick_disable() 1252 lis3->miscdev.minor = MISC_DYNAMIC_MINOR; in lis3lv02d_init_device() 1253 lis3->miscdev.name = "freefall"; in lis3lv02d_init_device() 1254 lis3->miscdev.fops = &lis3lv02d_misc_fops; in lis3lv02d_init_device() 1256 if (misc_register(&lis3->miscdev)) in lis3lv02d_init_device()
|
/linux-6.12.1/fs/ecryptfs/ |
D | Makefile | 11 ecryptfs-$(CONFIG_ECRYPT_FS_MESSAGING) += messaging.o miscdev.o
|
/linux-6.12.1/drivers/nfc/ |
D | virtual_ncidev.c | 205 static struct miscdevice miscdev = { variable 212 module_misc_device(miscdev);
|
/linux-6.12.1/drivers/android/ |
D | binderfs.c | 174 device->miscdev.name = name; in binderfs_binder_device_create() 175 device->miscdev.minor = minor; in binderfs_binder_device_create() 271 ida_free(&binderfs_minors, device->miscdev.minor); in binderfs_evict_inode() 444 device->miscdev.minor = minor; in binderfs_binder_ctl_create()
|