Home
last modified time | relevance | path

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

123

/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()
1422 struct media_intf_devnode *devnode; in media_devnode_create() local
1424 devnode = kzalloc(sizeof(*devnode), GFP_KERNEL); in media_devnode_create()
1425 if (!devnode) in media_devnode_create()
1428 devnode->major = major; in media_devnode_create()
1429 devnode->minor = minor; in media_devnode_create()
1431 media_interface_init(mdev, &devnode->intf, MEDIA_GRAPH_INTF_DEVNODE, in media_devnode_create()
1434 return devnode; in media_devnode_create()
1438 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 \
/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-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-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-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) \
/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.c858 struct fwnode_handle *devnode, *fwnode = asd->match.fwnode; in print_waiting_subdev() local
860 devnode = fwnode_graph_is_endpoint(fwnode) ? in print_waiting_subdev()
865 devnode->dev ? dev_name(devnode->dev) : "nil", in print_waiting_subdev()
868 fwnode_handle_put(devnode); in print_waiting_subdev()
/drivers/soc/qcom/
Docmem.c195 struct device_node *devnode; in of_get_ocmem() local
198 devnode = of_parse_phandle(dev->of_node, "sram", 0); in of_get_ocmem()
199 if (!devnode || !devnode->parent) { in of_get_ocmem()
201 of_node_put(devnode); in of_get_ocmem()
205 pdev = of_find_device_by_node(devnode->parent); in of_get_ocmem()
207 dev_err(dev, "Cannot find device node %s\n", devnode->name); in of_get_ocmem()
208 of_node_put(devnode); in of_get_ocmem()
211 of_node_put(devnode); in of_get_ocmem()
/drivers/usb/core/
Dfile.c70 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()
/drivers/infiniband/hw/hfi1/
Ddevice.c112 class->devnode = hfi1_devnode; in dev_init()
125 user_class->devnode = hfi1_user_devnode; in dev_init()
/drivers/char/
Dmisc.c282 misc_class->devnode = misc_devnode; in misc_init()
/drivers/media/usb/au0828/
Dau0828-core.c131 if (!mdev || !media_devnode_is_registered(mdev->devnode)) in au0828_unregister_media_device()
569 if (!media_devnode_is_registered(dev->media_dev->devnode)) { in au0828_media_device_register()
/drivers/s390/char/
Dhmcdrv_dev.c323 hmcdrv_dev_class->devnode = hmcdrv_dev_name; in hmcdrv_dev_init()
/drivers/block/aoe/
Daoechr.c298 aoe_class->devnode = aoe_devnode; in aoechr_init()
/drivers/cxl/core/
Dmemdev.c161 .devnode = cxl_memdev_devnode,
/drivers/media/cec/usb/rainshadow/
Drainshadow-cec.c344 rain->dev = &rain->adap->devnode.dev; in rain_connect()
/drivers/dma-buf/
Ddma-heap.c460 dma_heap_class->devnode = dma_heap_devnode; in dma_heap_init()
/drivers/gpu/drm/
Ddrm_sysfs.c125 drm_class->devnode = drm_devnode; in drm_sysfs_init()
/drivers/staging/media/atomisp/pci/
Datomisp_fops.c672 asd->subdev.devnode = vdev; in atomisp_open()
785 asd->subdev.devnode = vdev; in atomisp_release()
/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec_drv.c497 if (media_devnode_is_registered(dev->mdev_dec.devnode)) { in mtk_vcodec_dec_remove()
/drivers/fsi/
Dfsi-core.c914 .devnode = cfam_devnode,
930 .devnode = fsi_cdev_devnode,

123