Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/media/mc/
H A 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 …]
H A 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 …]
H A 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()
1535 struct media_intf_devnode *devnode; in media_devnode_create() local
1537 devnode = kzalloc(sizeof(*devnode), GFP_KERNEL); in media_devnode_create()
1538 if (!devnode) in media_devnode_create()
1541 devnode->major = major; in media_devnode_create()
1542 devnode->minor = minor; in media_devnode_create()
1544 media_interface_init(mdev, &devnode->intf, MEDIA_GRAPH_INTF_DEVNODE, in media_devnode_create()
1547 return devnode; in media_devnode_create()
1551 void media_devnode_remove(struct media_intf_devnode *devnode) in media_devnode_remove() argument
[all …]
H A DMakefile3 mc-objs := mc-device.o mc-devnode.o mc-entity.o \
/openbmc/linux/drivers/media/cec/core/
H A 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 …]
H A 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);
H A 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 …]
H A 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 …]
H A Dcec-pin-priv.h16 ((pin && pin->ops->op && !pin->adap->devnode.unregistered) ? \
22 !pin->adap->devnode.unregistered) \
/openbmc/linux/include/media/
H A 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()
H A Dcec.h224 struct cec_devnode devnode; member
306 return adap && adap->devnode.registered; in cec_is_registered()
/openbmc/linux/arch/powerpc/kernel/
H A 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()
/openbmc/linux/drivers/media/v4l2-core/
H A 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()
H A Dv4l2-async.c901 struct fwnode_handle *devnode, *fwnode = match->fwnode; in print_waiting_match() local
903 devnode = fwnode_graph_is_endpoint(fwnode) ? in print_waiting_match()
908 devnode->dev ? dev_name(devnode->dev) : "nil", in print_waiting_match()
911 fwnode_handle_put(devnode); in print_waiting_match()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/multipath-tools/files/
H A Dmultipath.conf.example43 ## of how to blacklist devices by wwid. The 2 devnode lines are the
45 ## of devices, such as all scsi devices, you should use a devnode line.
49 ## devnode lines are not recommended for blacklisting specific devices.
53 # devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
54 # devnode "^hd[a-z]"
H A D0005-RH-add-mpathconf.patch363 + if sed -n '/^blacklist[[:space:]]*{/,/^}/ p' $TMPFILE | grep -q "^[[:space:]]*devnode \"\.\?\*\""…
365 …list[[:space:]]*{/,/^}/ p' $TMPFILE | grep -q "^[[:space:]]*#[[:space:]]*devnode \"\.\?\*\"" ; then
447 + sed -i '/^blacklist[[:space:]]*{/,/^}/ s/^[[:space:]]*devnode \"\.\?\*\"/# devnode ".*"/' $TMPFI…
468 + sed -i '/^blacklist[[:space:]]*{/,/^}/ s/^[[:space:]]*devnode \"\.\?\*\"/# devnode ".*"/' $TMPFI…
473 + devnode ".*"
476 + sed -i '/^blacklist[[:space:]]*{/,/^}/ s/^[[:space:]]*#[[:space:]]*devnode \"\.\?\*\"/ devnode "…
/openbmc/debug-trigger/
H A Dmain.c501 char devnode[PATH_MAX]; in main() local
548 strncpy(devnode, "/dev/", sizeof(devnode)); in main()
549 strncat(devnode, devid, sizeof(devnode) - strlen("/dev/")); in main()
550 devnode[PATH_MAX - 1] = '\0'; in main()
552 if ((sourcefd = open(devnode, O_RDONLY)) == -1) in main()
553 err(EXIT_FAILURE, "Failed to open source %s", devnode); in main()
/openbmc/linux/drivers/soc/qcom/
H A 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()
/openbmc/linux/drivers/usb/core/
H A Dfile.c64 if (!drv || !drv->devnode) in usb_devnode()
66 return drv->devnode(dev, mode); in usb_devnode()
71 .devnode = usb_devnode,
/openbmc/linux/arch/powerpc/platforms/cell/
H A 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()
/openbmc/linux/sound/usb/
H A 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()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Ddevice.c22 .devnode = hfi1_devnode,
34 .devnode = hfi1_user_devnode,
/openbmc/linux/tools/testing/selftests/media_tests/
H A 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
/openbmc/linux/fs/pstore/
H A Dpmsg.c71 pmsg_class->devnode = pmsg_devnode; in pstore_register_pmsg()
/openbmc/linux/arch/x86/kernel/
H A Dcpuid.c133 .devnode = cpuid_devnode,

12345