Home
last modified time | relevance | path

Searched refs:miscdev (Results 1 – 25 of 30) sorted by relevance

12

/drivers/platform/x86/dell/
Ddell-smo8800.c25 struct miscdevice miscdev; /* for /dev/freefall */ member
52 struct smo8800_device, miscdev); in smo8800_misc_read()
84 struct smo8800_device, miscdev); in smo8800_misc_open()
96 struct smo8800_device, miscdev); in smo8800_misc_release()
121 smo8800->miscdev.minor = MISC_DYNAMIC_MINOR; in smo8800_probe()
122 smo8800->miscdev.name = "freefall"; in smo8800_probe()
123 smo8800->miscdev.fops = &smo8800_misc_fops; in smo8800_probe()
127 err = misc_register(&smo8800->miscdev); in smo8800_probe()
156 misc_deregister(&smo8800->miscdev); in smo8800_probe()
165 misc_deregister(&smo8800->miscdev); in smo8800_remove()
/drivers/nfc/
Dvirtual_ncidev.c32 static struct miscdevice miscdev; variable
205 miscdev.minor = MISC_DYNAMIC_MINOR; in virtual_ncidev_init()
206 miscdev.name = "virtual_nci"; in virtual_ncidev_init()
207 miscdev.fops = &virtual_ncidev_fops; in virtual_ncidev_init()
208 miscdev.mode = S_IALLUGO; in virtual_ncidev_init()
210 return misc_register(&miscdev); in virtual_ncidev_init()
215 misc_deregister(&miscdev); in virtual_ncidev_exit()
/drivers/soc/aspeed/
Daspeed-lpc-ctrl.c32 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()
Daspeed-lpc-snoop.c64 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()
Daspeed-p2a-ctrl.c56 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()
/drivers/char/ipmi/
Dipmb_dev_int.c58 struct miscdevice miscdev; member
71 return container_of(file->private_data, struct ipmb_dev, miscdev); in to_ipmb_dev()
320 ipmb_dev->miscdev.minor = MISC_DYNAMIC_MINOR; in ipmb_probe()
322 ipmb_dev->miscdev.name = devm_kasprintf(&client->dev, GFP_KERNEL, in ipmb_probe()
325 ipmb_dev->miscdev.fops = &ipmb_fops; in ipmb_probe()
326 ipmb_dev->miscdev.parent = &client->dev; in ipmb_probe()
327 ret = misc_register(&ipmb_dev->miscdev); in ipmb_probe()
338 misc_deregister(&ipmb_dev->miscdev); in ipmb_probe()
350 misc_deregister(&ipmb_dev->miscdev); in ipmb_remove()
Dbt-bmc.c61 struct miscdevice miscdev; member
164 return container_of(file->private_data, struct bt_bmc, miscdev); in file_bt_bmc()
465 bt_bmc->miscdev.minor = MISC_DYNAMIC_MINOR; in bt_bmc_probe()
466 bt_bmc->miscdev.name = DEVICE_NAME; in bt_bmc_probe()
467 bt_bmc->miscdev.fops = &bt_bmc_fops; in bt_bmc_probe()
468 bt_bmc->miscdev.parent = dev; in bt_bmc_probe()
469 rc = misc_register(&bt_bmc->miscdev); in bt_bmc_probe()
502 misc_deregister(&bt_bmc->miscdev); in bt_bmc_remove()
Dkcs_bmc_cdev_ipmi.c91 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()
/drivers/platform/goldfish/
Dgoldfish_pipe.c215 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 …]
/drivers/md/
Ddm-user.c130 struct miscdevice miscdev; member
223 t->miscdev.name); in process_delayed_work()
278 static inline struct target *target_from_miscdev(struct miscdevice *miscdev) in target_from_miscdev() argument
280 return container_of(miscdev, struct target, miscdev); in target_from_miscdev()
787 t = container_of(file->private_data, struct target, miscdev); in dev_open()
1066 t->miscdev.minor = MISC_DYNAMIC_MINOR; in user_ctr()
1067 t->miscdev.fops = &file_operations; in user_ctr()
1068 t->miscdev.name = kasprintf(GFP_KERNEL, "dm-user/%s", argv[2]); in user_ctr()
1069 if (t->miscdev.name == NULL) { in user_ctr()
1090 r = misc_register(&t->miscdev); in user_ctr()
[all …]
/drivers/staging/media/tegra-vde/
Dvde.c143 struct device *dev = vde->miscdev.parent; in tegra_vde_wait_bsev()
305 struct device *dev = vde->miscdev.parent; in tegra_vde_setup_hw_context()
500 struct device *dev = vde->miscdev.parent; in tegra_vde_attach_dmabuf()
695 struct device *dev = vde->miscdev.parent; in tegra_vde_ioctl_decode_h264()
874 struct miscdevice *miscdev = filp->private_data; in tegra_vde_unlocked_ioctl() local
875 struct tegra_vde *vde = container_of(miscdev, struct tegra_vde, in tegra_vde_unlocked_ioctl()
876 miscdev); in tegra_vde_unlocked_ioctl()
883 dev_err(miscdev->parent, "Invalid IOCTL command %u\n", cmd); in tegra_vde_unlocked_ioctl()
890 struct miscdevice *miscdev = filp->private_data; in tegra_vde_release_file() local
891 struct tegra_vde *vde = container_of(miscdev, struct tegra_vde, in tegra_vde_release_file()
[all …]
Dvde.h40 struct miscdevice miscdev; member
Diommu.c63 struct device *dev = vde->miscdev.parent; in tegra_vde_iommu_init()
/drivers/misc/bcm-vk/
Dbcm_vk_msg.c312 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()
943 vk->ctx[i].miscdev = NULL; in bcm_vk_data_init()
975 struct miscdevice *miscdev = (struct miscdevice *)p_file->private_data; in bcm_vk_open() local
976 struct bcm_vk *vk = container_of(miscdev, struct bcm_vk, miscdev); in bcm_vk_open()
994 ctx->miscdev = miscdev; in bcm_vk_open()
1009 struct bcm_vk *vk = container_of(ctx->miscdev, struct bcm_vk, in bcm_vk_read()
1010 miscdev); in bcm_vk_read()
1081 struct bcm_vk *vk = container_of(ctx->miscdev, struct bcm_vk, in bcm_vk_write()
1082 miscdev); in bcm_vk_write()
[all …]
Dbcm_vk_msg.h89 struct miscdevice *miscdev; member
Dbcm_vk_dev.c1207 struct bcm_vk *vk = container_of(ctx->miscdev, struct bcm_vk, miscdev); in bcm_vk_mmap()
1231 struct bcm_vk *vk = container_of(ctx->miscdev, struct bcm_vk, miscdev); in bcm_vk_ioctl()
1413 misc_device = &vk->miscdev; in bcm_vk_probe()
1548 struct miscdevice *misc_device = &vk->miscdev; in bcm_vk_remove()
/drivers/hwtracing/coresight/
Dcoresight-tmc-core.c150 struct tmc_drvdata, miscdev); in tmc_open()
182 struct tmc_drvdata, miscdev); in tmc_read()
203 struct tmc_drvdata, miscdev); in tmc_release()
549 drvdata->miscdev.name = desc.name; in tmc_probe()
550 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in tmc_probe()
551 drvdata->miscdev.fops = &tmc_fops; in tmc_probe()
552 ret = misc_register(&drvdata->miscdev); in tmc_probe()
592 misc_deregister(&drvdata->miscdev); in tmc_remove()
Dcoresight-etb10.c87 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()
792 drvdata->miscdev.name = desc.name; in etb_probe()
793 drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; in etb_probe()
794 drvdata->miscdev.fops = &etb_fops; in etb_probe()
795 ret = misc_register(&drvdata->miscdev); in etb_probe()
816 misc_deregister(&drvdata->miscdev); in etb_remove()
/drivers/misc/lis3lv02d/
Dlis3lv02d.c576 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()
1254 lis3->miscdev.minor = MISC_DYNAMIC_MINOR; in lis3lv02d_init_device()
1255 lis3->miscdev.name = "freefall"; in lis3lv02d_init_device()
1256 lis3->miscdev.fops = &lis3lv02d_misc_fops; in lis3lv02d_init_device()
1258 if (misc_register(&lis3->miscdev)) in lis3lv02d_init_device()
Dlis3lv02d.h295 struct miscdevice miscdev; member
/drivers/misc/
Dxilinx_sdfec.c213 struct miscdevice miscdev; member
950 xsdfec = container_of(fptr->private_data, struct xsdfec_dev, miscdev); in xsdfec_dev_ioctl()
1014 xsdfec = container_of(file->private_data, struct xsdfec_dev, miscdev); in xsdfec_poll()
1417 xsdfec->miscdev.minor = MISC_DYNAMIC_MINOR; in xsdfec_probe()
1418 xsdfec->miscdev.name = xsdfec->dev_name; in xsdfec_probe()
1419 xsdfec->miscdev.fops = &xsdfec_fops; in xsdfec_probe()
1420 xsdfec->miscdev.parent = dev; in xsdfec_probe()
1421 err = misc_register(&xsdfec->miscdev); in xsdfec_probe()
1440 misc_deregister(&xsdfec->miscdev); in xsdfec_remove()
Dpci_endpoint_test.c89 miscdev)
118 struct miscdevice miscdev; member
888 misc_device = &test->miscdev; in pci_endpoint_test_probe()
939 struct miscdevice *misc_device = &test->miscdev; in pci_endpoint_test_remove()
949 misc_deregister(&test->miscdev); in pci_endpoint_test_remove()
Dfastrpc.c81 #define miscdev_to_cctx(d) container_of(d, struct fastrpc_channel_ctx, miscdev)
215 struct miscdevice miscdev; member
1652 data->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_rpmsg_probe()
1653 data->miscdev.name = devm_kasprintf(rdev, GFP_KERNEL, "fastrpc-%s", in fastrpc_rpmsg_probe()
1655 data->miscdev.fops = &fastrpc_fops; in fastrpc_rpmsg_probe()
1656 err = misc_register(&data->miscdev); in fastrpc_rpmsg_probe()
1700 misc_deregister(&cctx->miscdev); in fastrpc_rpmsg_remove()
/drivers/android/
Dbinderfs.c173 device->miscdev.name = name; in binderfs_binder_device_create()
174 device->miscdev.minor = minor; in binderfs_binder_device_create()
270 ida_free(&binderfs_minors, device->miscdev.minor); in binderfs_evict_inode()
455 device->miscdev.minor = minor; in binderfs_binder_ctl_create()
Dbinder_internal.h36 struct miscdevice miscdev; member

12