/linux-6.3-rc2/drivers/platform/x86/dell/ |
A 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.3-rc2/drivers/soc/aspeed/ |
A 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()
|
A D | aspeed-lpc-snoop.c | 64 struct miscdevice miscdev; member 78 miscdev); in snoop_file_to_chan() 201 lpc_snoop->chan[channel].miscdev.minor = MISC_DYNAMIC_MINOR; in aspeed_lpc_enable_snoop() 202 lpc_snoop->chan[channel].miscdev.name = in aspeed_lpc_enable_snoop() 204 lpc_snoop->chan[channel].miscdev.fops = &snoop_fops; in aspeed_lpc_enable_snoop() 205 lpc_snoop->chan[channel].miscdev.parent = dev; in aspeed_lpc_enable_snoop() 206 rc = misc_register(&lpc_snoop->chan[channel].miscdev); in aspeed_lpc_enable_snoop() 257 misc_deregister(&lpc_snoop->chan[channel].miscdev); in aspeed_lpc_disable_snoop()
|
A 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.3-rc2/drivers/char/ipmi/ |
A 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()
|
A 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()
|
A 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()
|
A 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() 818 ssif_bmc->miscdev.minor = MISC_DYNAMIC_MINOR; in ssif_bmc_probe() 819 ssif_bmc->miscdev.name = DEVICE_NAME; in ssif_bmc_probe() 820 ssif_bmc->miscdev.fops = &ssif_bmc_fops; in ssif_bmc_probe() 821 ssif_bmc->miscdev.parent = &client->dev; in ssif_bmc_probe() 822 ret = misc_register(&ssif_bmc->miscdev); in ssif_bmc_probe() 833 misc_deregister(&ssif_bmc->miscdev); in ssif_bmc_probe() 843 misc_deregister(&ssif_bmc->miscdev); in ssif_bmc_remove()
|
/linux-6.3-rc2/drivers/acpi/ |
A 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() 393 pfrt_log_dev->miscdev.minor = MISC_DYNAMIC_MINOR; in acpi_pfrt_log_probe() 394 pfrt_log_dev->miscdev.name = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfrt_log_probe() 397 if (!pfrt_log_dev->miscdev.name) in acpi_pfrt_log_probe() 400 pfrt_log_dev->miscdev.nodename = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfrt_log_probe() 403 if (!pfrt_log_dev->miscdev.nodename) in acpi_pfrt_log_probe() 406 pfrt_log_dev->miscdev.fops = &acpi_pfrt_log_fops; in acpi_pfrt_log_probe() 407 pfrt_log_dev->miscdev.parent = &pdev->dev; in acpi_pfrt_log_probe() [all …]
|
A 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() 535 pfru_dev->miscdev.minor = MISC_DYNAMIC_MINOR; in acpi_pfru_probe() 536 pfru_dev->miscdev.name = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfru_probe() 538 if (!pfru_dev->miscdev.name) in acpi_pfru_probe() 541 pfru_dev->miscdev.nodename = devm_kasprintf(&pdev->dev, GFP_KERNEL, in acpi_pfru_probe() 543 if (!pfru_dev->miscdev.nodename) in acpi_pfru_probe() 546 pfru_dev->miscdev.fops = &acpi_pfru_fops; in acpi_pfru_probe() 547 pfru_dev->miscdev.parent = &pdev->dev; in acpi_pfru_probe() [all …]
|
/linux-6.3-rc2/drivers/platform/goldfish/ |
A D | goldfish_pipe.c | 215 struct miscdevice miscdev; member 681 return container_of(miscdev, struct goldfish_pipe_dev, miscdev); in to_goldfish_pipe_dev() 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() 833 misc_deregister(&dev->miscdev); in goldfish_pipe_device_init() 848 misc_deregister(&dev->miscdev); in goldfish_pipe_device_init() [all …]
|
/linux-6.3-rc2/drivers/hwtracing/coresight/ |
A D | coresight-tmc-core.c | 152 struct tmc_drvdata, miscdev); in tmc_open() 184 struct tmc_drvdata, miscdev); in tmc_read() 205 struct tmc_drvdata, miscdev); in tmc_release() 531 drvdata->miscdev.name = desc.name; in tmc_probe() 532 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in tmc_probe() 533 drvdata->miscdev.fops = &tmc_fops; in tmc_probe() 534 ret = misc_register(&drvdata->miscdev); in tmc_probe() 574 misc_deregister(&drvdata->miscdev); in tmc_remove()
|
A D | ultrasoc-smb.c | 99 struct smb_drv_data, miscdev); in smb_open() 127 struct smb_drv_data, miscdev); in smb_read() 168 struct smb_drv_data, miscdev); in smb_release() 523 drvdata->miscdev.name = desc.name; in smb_register_sink() 524 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in smb_register_sink() 525 drvdata->miscdev.fops = &smb_fops; in smb_register_sink() 526 ret = misc_register(&drvdata->miscdev); in smb_register_sink() 537 misc_deregister(&drvdata->miscdev); in smb_unregister_sink()
|
A D | coresight-etb10.c | 87 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() 780 drvdata->miscdev.name = desc.name; in etb_probe() 781 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in etb_probe() 782 drvdata->miscdev.fops = &etb_fops; in etb_probe() 783 ret = misc_register(&drvdata->miscdev); in etb_probe() 804 misc_deregister(&drvdata->miscdev); in etb_remove()
|
A D | ultrasoc-smb.h | 118 struct miscdevice miscdev; member
|
/linux-6.3-rc2/drivers/misc/bcm-vk/ |
A 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() 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() 1254 struct bcm_vk *vk = container_of(ctx->miscdev, struct bcm_vk, miscdev); in bcm_vk_poll() [all …]
|
A D | bcm_vk_msg.h | 89 struct miscdevice *miscdev; member
|
/linux-6.3-rc2/drivers/staging/axis-fifo/ |
A D | axis-fifo.c | 141 struct miscdevice miscdev; member 689 struct axis_fifo, miscdev); in axis_fifo_open() 904 fifo->miscdev.fops = &fops; in axis_fifo_probe() 905 fifo->miscdev.minor = MISC_DYNAMIC_MINOR; in axis_fifo_probe() 906 fifo->miscdev.name = device_name; in axis_fifo_probe() 907 fifo->miscdev.groups = axis_fifo_attrs_groups; in axis_fifo_probe() 908 fifo->miscdev.parent = dev; in axis_fifo_probe() 909 rc = misc_register(&fifo->miscdev); in axis_fifo_probe() 928 misc_deregister(&fifo->miscdev); in axis_fifo_remove()
|
/linux-6.3-rc2/drivers/nfc/ |
A D | virtual_ncidev.c | 196 static struct miscdevice miscdev = { variable 205 return misc_register(&miscdev); in virtual_ncidev_init() 210 misc_deregister(&miscdev); in virtual_ncidev_exit()
|
/linux-6.3-rc2/drivers/misc/lis3lv02d/ |
A 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() 758 misc_deregister(&lis3->miscdev); in lis3lv02d_joystick_disable() 1253 lis3->miscdev.minor = MISC_DYNAMIC_MINOR; in lis3lv02d_init_device() 1254 lis3->miscdev.name = "freefall"; in lis3lv02d_init_device() 1255 lis3->miscdev.fops = &lis3lv02d_misc_fops; in lis3lv02d_init_device() 1257 if (misc_register(&lis3->miscdev)) in lis3lv02d_init_device()
|
/linux-6.3-rc2/drivers/misc/ |
A D | xilinx_sdfec.c | 213 struct miscdevice miscdev; member 951 xsdfec = container_of(fptr->private_data, struct xsdfec_dev, miscdev); in xsdfec_dev_ioctl() 1015 xsdfec = container_of(file->private_data, struct xsdfec_dev, miscdev); in xsdfec_poll() 1418 xsdfec->miscdev.minor = MISC_DYNAMIC_MINOR; in xsdfec_probe() 1419 xsdfec->miscdev.name = xsdfec->dev_name; in xsdfec_probe() 1420 xsdfec->miscdev.fops = &xsdfec_fops; in xsdfec_probe() 1421 xsdfec->miscdev.parent = dev; in xsdfec_probe() 1422 err = misc_register(&xsdfec->miscdev); in xsdfec_probe() 1441 misc_deregister(&xsdfec->miscdev); in xsdfec_remove()
|
A D | pci_endpoint_test.c | 88 miscdev) 117 struct miscdevice miscdev; member 883 misc_device = &test->miscdev; in pci_endpoint_test_probe() 934 struct miscdevice *misc_device = &test->miscdev; in pci_endpoint_test_remove() 941 misc_deregister(&test->miscdev); in pci_endpoint_test_remove()
|
A D | fastrpc.c | 105 #define miscdev_to_fdevice(d) container_of(d, struct fastrpc_device, miscdev) 287 struct miscdevice miscdev; member 2212 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_device_register() 2213 fdev->miscdev.fops = &fastrpc_fops; in fastrpc_device_register() 2214 fdev->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "fastrpc-%s%s", in fastrpc_device_register() 2216 err = misc_register(&fdev->miscdev); in fastrpc_device_register() 2326 misc_deregister(&data->fdevice->miscdev); in fastrpc_rpmsg_probe() 2328 misc_deregister(&data->secure_fdevice->miscdev); in fastrpc_rpmsg_probe() 2358 misc_deregister(&cctx->fdevice->miscdev); in fastrpc_rpmsg_remove() 2361 misc_deregister(&cctx->secure_fdevice->miscdev); in fastrpc_rpmsg_remove()
|
/linux-6.3-rc2/fs/ecryptfs/ |
A D | Makefile | 11 ecryptfs-$(CONFIG_ECRYPT_FS_MESSAGING) += messaging.o miscdev.o
|
/linux-6.3-rc2/drivers/android/ |
A 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()
|