/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 | 300 struct media_intf_devnode *devnode; in media_device_get_topology() local 302 devnode = intf_to_devnode(intf); in media_device_get_topology() 304 kintf.devnode.major = devnode->major; in media_device_get_topology() 305 kintf.devnode.minor = devnode->minor; in media_device_get_topology() 446 struct media_devnode *devnode = media_devnode_data(filp); in media_device_ioctl() local 447 struct media_device *dev = devnode->media_dev; in media_device_ioctl() 530 struct media_devnode *devnode = media_devnode_data(filp); in media_device_compat_ioctl() local 531 struct media_device *dev = devnode->media_dev; in media_device_compat_ioctl() 567 struct media_devnode *devnode = to_media_devnode(cd); in show_model() local 568 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 \
|
/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-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 …]
|
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);
|
/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()
|
/drivers/soc/qcom/ |
D | ocmem.c | 195 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/ |
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()
|
/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()
|
/drivers/char/ |
D | misc.c | 280 misc_class->devnode = misc_devnode; in misc_init()
|
D | raw.c | 340 raw_class->devnode = raw_devnode; in raw_init()
|
/drivers/s390/char/ |
D | hmcdrv_dev.c | 323 hmcdrv_dev_class->devnode = hmcdrv_dev_name; in hmcdrv_dev_init()
|
/drivers/media/usb/au0828/ |
D | au0828-core.c | 131 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/block/aoe/ |
D | aoechr.c | 300 aoe_class->devnode = aoe_devnode; in aoechr_init()
|
/drivers/staging/media/atomisp/pci/ |
D | atomisp_subdev.c | 375 u16 vdev_pad = atomisp_subdev_source_pad(sd->devnode); in atomisp_subdev_set_selection() 619 u16 vdev_pad = atomisp_subdev_source_pad(sd->devnode); in atomisp_subdev_set_ffmt() 1334 &asd->subdev.devnode->fh_list, list) { in atomisp_subdev_cleanup_pending_events()
|
D | atomisp_fops.c | 785 asd->subdev.devnode = vdev; in atomisp_open() 927 asd->subdev.devnode = vdev; in atomisp_release()
|
D | atomisp_acc.c | 332 v4l2_event_queue(asd->subdev.devnode, &event); in atomisp_acc_done()
|
/drivers/media/cec/usb/rainshadow/ |
D | rainshadow-cec.c | 344 rain->dev = &rain->adap->devnode.dev; in rain_connect()
|
/drivers/dma-buf/ |
D | dma-heap.c | 467 dma_heap_class->devnode = dma_heap_devnode; in dma_heap_init()
|
/drivers/gpu/drm/ |
D | drm_sysfs.c | 91 drm_class->devnode = drm_devnode; in drm_sysfs_init()
|
/drivers/staging/media/sunxi/cedrus/ |
D | cedrus.c | 492 if (media_devnode_is_registered(dev->mdev.devnode)) { in cedrus_remove()
|
/drivers/fsi/ |
D | fsi-core.c | 912 .devnode = cfam_devnode, 928 .devnode = fsi_cdev_devnode,
|