/kernel/linux/linux-5.10/drivers/media/mc/ |
D | mc-devnode.c | 51 struct media_devnode *devnode = to_media_devnode(cd); in media_devnode_release() local 55 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_release() 59 if (devnode->release) in media_devnode_release() 60 devnode->release(devnode); in media_devnode_release() 62 kfree(devnode); in media_devnode_release() 73 struct media_devnode *devnode = media_devnode_data(filp); in media_read() local 75 if (!devnode->fops->read) in media_read() 77 if (!media_devnode_is_registered(devnode)) in media_read() 79 return devnode->fops->read(filp, buf, sz, off); in media_read() 85 struct media_devnode *devnode = media_devnode_data(filp); in media_write() local [all …]
|
D | mc-device.c | 295 struct media_intf_devnode *devnode; in media_device_get_topology() local 297 devnode = intf_to_devnode(intf); in media_device_get_topology() 299 kintf.devnode.major = devnode->major; in media_device_get_topology() 300 kintf.devnode.minor = devnode->minor; in media_device_get_topology() 441 struct media_devnode *devnode = media_devnode_data(filp); in media_device_ioctl() local 442 struct media_device *dev = devnode->media_dev; in media_device_ioctl() 525 struct media_devnode *devnode = media_devnode_data(filp); in media_device_compat_ioctl() local 526 struct media_device *dev = devnode->media_dev; in media_device_compat_ioctl() 562 struct media_devnode *devnode = to_media_devnode(cd); in show_model() local 563 struct media_device *mdev = devnode->media_dev; in show_model() [all …]
|
D | mc-entity.c | 132 struct media_intf_devnode *devnode = intf_to_devnode(intf); in dev_dbg_obj() local 138 devnode->major, devnode->minor); in dev_dbg_obj() 943 struct media_intf_devnode *devnode; in media_devnode_create() local 945 devnode = kzalloc(sizeof(*devnode), GFP_KERNEL); in media_devnode_create() 946 if (!devnode) in media_devnode_create() 949 devnode->major = major; in media_devnode_create() 950 devnode->minor = minor; in media_devnode_create() 952 media_interface_init(mdev, &devnode->intf, MEDIA_GRAPH_INTF_DEVNODE, in media_devnode_create() 955 return devnode; in media_devnode_create() 959 void media_devnode_remove(struct media_intf_devnode *devnode) in media_devnode_remove() argument [all …]
|
D | Makefile | 3 mc-objs := mc-device.o mc-devnode.o mc-entity.o \
|
/kernel/linux/linux-5.10/drivers/media/cec/core/ |
D | cec-core.c | 42 int cec_get_device(struct cec_devnode *devnode) in cec_get_device() argument 51 mutex_lock(&devnode->lock); in cec_get_device() 56 if (!devnode->registered) { in cec_get_device() 57 mutex_unlock(&devnode->lock); in cec_get_device() 61 get_device(&devnode->dev); in cec_get_device() 62 mutex_unlock(&devnode->lock); in cec_get_device() 66 void cec_put_device(struct cec_devnode *devnode) in cec_put_device() argument 68 put_device(&devnode->dev); in cec_put_device() 74 struct cec_devnode *devnode = to_cec_devnode(cd); in cec_devnode_release() local 78 clear_bit(devnode->minor, cec_devnode_nums); in cec_devnode_release() [all …]
|
D | cec-api.c | 29 return &fh->adap->devnode; in cec_devnode_data() 80 strscpy(caps.driver, adap->devnode.dev.parent->driver->name, in cec_adap_g_caps() 555 struct cec_devnode *devnode = in cec_open() local 557 struct cec_adapter *adap = to_cec_adapter(devnode); in cec_open() 583 err = cec_get_device(devnode); in cec_open() 589 mutex_lock(&devnode->lock); in cec_open() 590 if (list_empty(&devnode->fhs) && in cec_open() 595 mutex_unlock(&devnode->lock); in cec_open() 627 list_add(&fh->list, &devnode->fhs); in cec_open() 628 mutex_unlock(&devnode->lock); in cec_open() [all …]
|
D | cec-priv.h | 21 #define to_cec_adapter(node) container_of(node, struct cec_adapter, devnode) 30 int cec_get_device(struct cec_devnode *devnode); 31 void cec_put_device(struct cec_devnode *devnode);
|
D | cec-adap.c | 164 mutex_lock(&adap->devnode.lock); in cec_queue_event() 165 list_for_each_entry(fh, &adap->devnode.fhs, list) in cec_queue_event() 167 mutex_unlock(&adap->devnode.lock); in cec_queue_event() 181 mutex_lock(&adap->devnode.lock); in cec_queue_pin_cec_event() 182 list_for_each_entry(fh, &adap->devnode.fhs, list) in cec_queue_pin_cec_event() 185 mutex_unlock(&adap->devnode.lock); in cec_queue_pin_cec_event() 198 mutex_lock(&adap->devnode.lock); in cec_queue_pin_hpd_event() 199 list_for_each_entry(fh, &adap->devnode.fhs, list) in cec_queue_pin_hpd_event() 201 mutex_unlock(&adap->devnode.lock); in cec_queue_pin_hpd_event() 214 mutex_lock(&adap->devnode.lock); in cec_queue_pin_5v_event() [all …]
|
/kernel/linux/linux-5.10/include/media/ |
D | media-devnode.h | 91 void (*release)(struct media_devnode *devnode); 115 struct media_devnode *devnode, 129 void media_devnode_unregister_prepare(struct media_devnode *devnode); 140 void media_devnode_unregister(struct media_devnode *devnode); 160 static inline int media_devnode_is_registered(struct media_devnode *devnode) in media_devnode_is_registered() argument 162 if (!devnode) in media_devnode_is_registered() 165 return test_bit(MEDIA_FLAG_REGISTERED, &devnode->flags); in media_devnode_is_registered()
|
D | cec.h | 204 struct cec_devnode devnode; member 281 return adap && adap->devnode.registered; in cec_is_registered()
|
D | media-device.h | 147 struct media_devnode *devnode; member
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | isa-bridge.c | 276 struct device_node *devnode) in isa_bridge_find_late() argument 281 isa_bridge_devnode = of_node_get(devnode); in isa_bridge_find_late() 285 pci_process_ISA_OF_ranges(devnode, hose->io_base_phys); in isa_bridge_find_late() 291 devnode, pci_name(pdev)); in isa_bridge_find_late() 325 struct device_node *devnode = pci_device_to_OF_node(pdev); in isa_bridge_notify() local 330 if (isa_bridge_devnode && isa_bridge_devnode == devnode && in isa_bridge_notify() 340 if (!isa_bridge_devnode && of_node_is_type(devnode, "isa")) in isa_bridge_notify() 341 isa_bridge_find_late(pdev, devnode); in isa_bridge_notify() 347 (devnode && devnode == isa_bridge_devnode)) in isa_bridge_notify()
|
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-device.c | 179 sd->devnode = NULL; in v4l2_subdev_release() 203 if (sd->devnode) in __v4l2_device_register_subdev_nodes() 227 sd->devnode = vdev; in __v4l2_device_register_subdev_nodes() 251 if (!sd->devnode) in __v4l2_device_register_subdev_nodes() 253 video_unregister_device(sd->devnode); in __v4l2_device_register_subdev_nodes() 287 if (sd->devnode) in v4l2_device_unregister_subdev() 288 video_unregister_device(sd->devnode); in v4l2_device_unregister_subdev()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | ocmem.c | 191 struct device_node *devnode; in of_get_ocmem() local 194 devnode = of_parse_phandle(dev->of_node, "sram", 0); in of_get_ocmem() 195 if (!devnode || !devnode->parent) { in of_get_ocmem() 200 pdev = of_find_device_by_node(devnode->parent); in of_get_ocmem() 202 dev_err(dev, "Cannot find device node %s\n", devnode->name); in of_get_ocmem()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/ |
D | spu_manage.c | 30 return spu->devnode; in spu_devnode() 121 struct device_node *node = spu->devnode; in spu_map_device_old() 192 struct device_node *np = spu->devnode; in spu_map_resource() 211 struct device_node *np = spu->devnode; in spu_map_device() 289 spu->devnode = of_node_get(spe); in of_create_spu() 345 of_node_put(spu->devnode); in of_destroy_spu()
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
D | file.c | 70 if (!drv || !drv->devnode) in usb_devnode() 72 return drv->devnode(dev, mode); in usb_devnode() 99 usb_class->class->devnode = usb_devnode; in init_usb_class()
|
/kernel/linux/linux-5.10/sound/usb/ |
D | media.c | 125 if (mdev && media_devnode_is_registered(mdev->devnode)) { in snd_media_stream_delete() 242 if (media_devnode_is_registered(mdev->devnode)) { in snd_media_mixer_delete() 249 if (media_devnode_is_registered(mdev->devnode)) in snd_media_mixer_delete() 287 if (!media_devnode_is_registered(mdev->devnode)) { in snd_media_device_create()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | device.c | 155 class->devnode = hfi1_devnode; in dev_init() 168 user_class->devnode = hfi1_user_devnode; in dev_init()
|
/kernel/linux/linux-5.10/tools/testing/selftests/media_tests/ |
D | regression_test.txt | 21 Start media_device_test to regression test media devnode dynamic alloc 24 seconds. The idea is when device file goes away, media devnode and cdev
|
/kernel/linux/linux-5.10/fs/pstore/ |
D | pmsg.c | 71 pmsg_class->devnode = pmsg_devnode; in pstore_register_pmsg()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | cpuid.c | 163 cpuid_class->devnode = cpuid_devnode; in cpuid_init()
|
/kernel/linux/linux-5.10/include/linux/device/ |
D | class.h | 63 char *(*devnode)(struct device *dev, umode_t *mode); member
|
/kernel/linux/linux-5.10/drivers/char/ |
D | misc.c | 280 misc_class->devnode = misc_devnode; in misc_init()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | media.h | 166 struct media_v2_intf_devnode devnode; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | media.h | 166 struct media_v2_intf_devnode devnode; member
|