Home
last modified time | relevance | path

Searched refs:devnode (Results 1 – 25 of 90) sorted by relevance

1234

/linux-6.6.21/drivers/media/mc/ !
Dmc-devnode.c51 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 …]
Dmc-device.c295 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 model_show() local
563 struct media_device *mdev = devnode->media_dev; in model_show()
[all …]
Dmc-entity.c129 struct media_intf_devnode *devnode = intf_to_devnode(intf); in dev_dbg_obj() local
135 devnode->major, devnode->minor); in dev_dbg_obj()
1484 struct media_intf_devnode *devnode; in media_devnode_create() local
1486 devnode = kzalloc(sizeof(*devnode), GFP_KERNEL); in media_devnode_create()
1487 if (!devnode) in media_devnode_create()
1490 devnode->major = major; in media_devnode_create()
1491 devnode->minor = minor; in media_devnode_create()
1493 media_interface_init(mdev, &devnode->intf, MEDIA_GRAPH_INTF_DEVNODE, in media_devnode_create()
1496 return devnode; in media_devnode_create()
1500 void media_devnode_remove(struct media_intf_devnode *devnode) in media_devnode_remove() argument
[all …]
DMakefile3 mc-objs := mc-device.o mc-devnode.o mc-entity.o \
/linux-6.6.21/drivers/media/cec/core/ !
Dcec-core.c54 int cec_get_device(struct cec_devnode *devnode) in cec_get_device() argument
63 mutex_lock(&devnode->lock); in cec_get_device()
68 if (!devnode->registered) { in cec_get_device()
69 mutex_unlock(&devnode->lock); in cec_get_device()
73 get_device(&devnode->dev); in cec_get_device()
74 mutex_unlock(&devnode->lock); in cec_get_device()
78 void cec_put_device(struct cec_devnode *devnode) in cec_put_device() argument
80 put_device(&devnode->dev); in cec_put_device()
86 struct cec_devnode *devnode = to_cec_devnode(cd); in cec_devnode_release() local
90 clear_bit(devnode->minor, cec_devnode_nums); in cec_devnode_release()
[all …]
Dcec-priv.h21 ((adap->ops->op && !adap->devnode.unregistered) ? \
26 if (adap->ops->op && !adap->devnode.unregistered) \
31 #define to_cec_adapter(node) container_of(node, struct cec_adapter, devnode)
40 int cec_get_device(struct cec_devnode *devnode);
41 void cec_put_device(struct cec_devnode *devnode);
Dcec-api.c29 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()
599 !adap->devnode.unregistered) { in cec_open()
608 !adap->devnode.unregistered) { in cec_open()
618 mutex_lock(&devnode->lock); in cec_open()
619 mutex_lock(&devnode->lock_fhs); in cec_open()
620 list_add(&fh->list, &devnode->fhs); in cec_open()
[all …]
Dcec-adap.c143 mutex_lock(&adap->devnode.lock_fhs); in cec_queue_event()
144 list_for_each_entry(fh, &adap->devnode.fhs, list) in cec_queue_event()
146 mutex_unlock(&adap->devnode.lock_fhs); in cec_queue_event()
160 mutex_lock(&adap->devnode.lock_fhs); in cec_queue_pin_cec_event()
161 list_for_each_entry(fh, &adap->devnode.fhs, list) { in cec_queue_pin_cec_event()
165 mutex_unlock(&adap->devnode.lock_fhs); in cec_queue_pin_cec_event()
178 mutex_lock(&adap->devnode.lock_fhs); in cec_queue_pin_hpd_event()
179 list_for_each_entry(fh, &adap->devnode.fhs, list) in cec_queue_pin_hpd_event()
181 mutex_unlock(&adap->devnode.lock_fhs); in cec_queue_pin_hpd_event()
194 mutex_lock(&adap->devnode.lock_fhs); in cec_queue_pin_5v_event()
[all …]
Dcec-pin-priv.h16 ((pin && pin->ops->op && !pin->adap->devnode.unregistered) ? \
22 !pin->adap->devnode.unregistered) \
/linux-6.6.21/include/media/ !
Dmedia-devnode.h91 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()
Dcec.h224 struct cec_devnode devnode; member
305 return adap && adap->devnode.registered; in cec_is_registered()
Dmedia-device.h148 struct media_devnode *devnode; member
/linux-6.6.21/arch/powerpc/kernel/ !
Disa-bridge.c185 struct device_node *devnode) in isa_bridge_find_late() argument
190 isa_bridge_devnode = of_node_get(devnode); in isa_bridge_find_late()
194 process_ISA_OF_ranges(devnode, hose->io_base_phys); in isa_bridge_find_late()
200 devnode, pci_name(pdev)); in isa_bridge_find_late()
234 struct device_node *devnode = pci_device_to_OF_node(pdev); in isa_bridge_notify() local
239 if (isa_bridge_devnode && isa_bridge_devnode == devnode && in isa_bridge_notify()
249 if (!isa_bridge_devnode && of_node_is_type(devnode, "isa")) in isa_bridge_notify()
250 isa_bridge_find_late(pdev, devnode); in isa_bridge_notify()
256 (devnode && devnode == isa_bridge_devnode)) in isa_bridge_notify()
/linux-6.6.21/drivers/media/v4l2-core/ !
Dv4l2-device.c179 sd->devnode = NULL; in v4l2_subdev_release()
203 if (sd->devnode) in __v4l2_device_register_subdev_nodes()
221 sd->devnode = vdev; in __v4l2_device_register_subdev_nodes()
225 sd->devnode = NULL; in __v4l2_device_register_subdev_nodes()
252 if (!sd->devnode) in __v4l2_device_register_subdev_nodes()
254 video_unregister_device(sd->devnode); in __v4l2_device_register_subdev_nodes()
288 if (sd->devnode) in v4l2_device_unregister_subdev()
289 video_unregister_device(sd->devnode); in v4l2_device_unregister_subdev()
Dv4l2-async.c902 struct fwnode_handle *devnode, *fwnode = match->fwnode; in print_waiting_match() local
904 devnode = fwnode_graph_is_endpoint(fwnode) ? in print_waiting_match()
909 devnode->dev ? dev_name(devnode->dev) : "nil", in print_waiting_match()
912 fwnode_handle_put(devnode); in print_waiting_match()
/linux-6.6.21/drivers/soc/qcom/ !
Docmem.c188 struct device_node *devnode; in of_get_ocmem() local
191 devnode = of_parse_phandle(dev->of_node, "sram", 0); in of_get_ocmem()
192 if (!devnode || !devnode->parent) { in of_get_ocmem()
194 of_node_put(devnode); in of_get_ocmem()
198 pdev = of_find_device_by_node(devnode->parent); in of_get_ocmem()
200 dev_err(dev, "Cannot find device node %s\n", devnode->name); in of_get_ocmem()
201 of_node_put(devnode); in of_get_ocmem()
204 of_node_put(devnode); in of_get_ocmem()
/linux-6.6.21/drivers/usb/core/ !
Dfile.c64 if (!drv || !drv->devnode) in usb_devnode()
66 return drv->devnode(dev, mode); in usb_devnode()
71 .devnode = usb_devnode,
/linux-6.6.21/arch/powerpc/platforms/cell/ !
Dspu_manage.c32 return spu->devnode; in spu_devnode()
123 struct device_node *node = spu->devnode; in spu_map_device_old()
194 struct device_node *np = spu->devnode; in spu_map_resource()
213 struct device_node *np = spu->devnode; in spu_map_device()
291 spu->devnode = of_node_get(spe); in of_create_spu()
347 of_node_put(spu->devnode); in of_destroy_spu()
/linux-6.6.21/sound/usb/ !
Dmedia.c125 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()
/linux-6.6.21/drivers/infiniband/hw/hfi1/ !
Ddevice.c22 .devnode = hfi1_devnode,
34 .devnode = hfi1_user_devnode,
/linux-6.6.21/tools/testing/selftests/media_tests/ !
Dregression_test.txt21 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
/linux-6.6.21/fs/pstore/ !
Dpmsg.c71 pmsg_class->devnode = pmsg_devnode; in pstore_register_pmsg()
/linux-6.6.21/arch/x86/kernel/ !
Dcpuid.c133 .devnode = cpuid_devnode,
/linux-6.6.21/include/linux/device/ !
Dclass.h59 char *(*devnode)(const struct device *dev, umode_t *mode); member
/linux-6.6.21/drivers/vfio/ !
Ddevice_cdev.c220 device_class->devnode = vfio_device_devnode; in vfio_cdev_init()

1234