Lines Matching refs:struct

102 	v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
133 v4l2_device_unregister(struct v4l2_device *v4l2_dev);
142 v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
153 static int callback(struct device *dev, void *p)
155 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
166 struct device_driver *drv;
185 static int drv_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
199 void v4l2_device_get(struct v4l2_device *v4l2_dev);
203 int v4l2_device_put(struct v4l2_device *v4l2_dev);
249 struct v4l2_subdev_core_ops {
250 int (*log_status)(struct v4l2_subdev *sd);
251 int (*init)(struct v4l2_subdev *sd, u32 val);
255 struct v4l2_subdev_tuner_ops {
259 struct v4l2_subdev_audio_ops {
263 struct v4l2_subdev_video_ops {
267 struct v4l2_subdev_pad_ops {
271 struct v4l2_subdev_ops {
272 const struct v4l2_subdev_core_ops *core;
273 const struct v4l2_subdev_tuner_ops *tuner;
274 const struct v4l2_subdev_audio_ops *audio;
275 const struct v4l2_subdev_video_ops *video;
276 const struct v4l2_subdev_pad_ops *video;
295 struct media_pad *pads = &my_sd->pads;
444 struct chipname_state {
445 struct v4l2_subdev sd;
459 static inline struct chipname_state *to_state(struct v4l2_subdev *sd)
461 return container_of(sd, struct chipname_state, sd);
467 struct i2c_client *client = v4l2_get_subdevdata(sd);
472 struct v4l2_subdev *sd = i2c_get_clientdata(client);
486 struct v4l2_subdev *sd = v4l2_i2c_new_subdev(v4l2_dev, adapter,
515 struct v4l2_subdev *sd = v4l2_i2c_new_subdev_cfg(v4l2_dev, adapter,
533 struct video_device *vdev = video_device_alloc();
542 struct video_device *vdev = &my_vdev->vdev;
565 就要设置一个指向 struct mutex_lock 结构体的指针,这个锁将
591 void v4l2_disable_ioctl(struct video_device *vdev, unsigned int cmd);
602 struct media_pad *pad = &my_vdev->pad;
619 void v4l2_disable_ioctl_locking(struct video_device *vdev, unsigned int cmd);
739 void *video_get_drvdata(struct video_device *vdev);
740 void video_set_drvdata(struct video_device *vdev, void *data);
747 struct video_device *video_devdata(struct file *file);
754 void *video_drvdata(struct file *file);
759 struct v4l2_device *v4l2_dev = vdev->v4l2_dev;
765 const char *video_device_node_name(struct video_device *vdev);
804 struct my_fh {
806 struct v4l2_fh fh;
811 int my_open(struct file *file)
813 struct my_fh *my_fh;
814 struct video_device *vfd;
832 int my_release(struct file *file)
834 struct v4l2_fh *fh = file->private_data;
835 struct my_fh *my_fh = container_of(fh, struct my_fh, fh);
846 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev)
851 void v4l2_fh_add(struct v4l2_fh *fh)
856 void v4l2_fh_del(struct v4l2_fh *fh)
861 void v4l2_fh_exit(struct v4l2_fh *fh)
868 int v4l2_fh_open(struct file *filp)
873 int v4l2_fh_release(struct file *filp)
886 int v4l2_fh_is_singular(struct v4l2_fh *fh)
890 int v4l2_fh_is_singular_file(struct file *filp)
930 void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev)
935 int v4l2_event_subscribe(struct v4l2_fh *fh,
936 struct v4l2_event_subscription *sub, unsigned elems,
937 const struct v4l2_subscribed_event_ops *ops)
953 int v4l2_event_unsubscribe(struct v4l2_fh *fh,
954 struct v4l2_event_subscription *sub)
962 int v4l2_event_pending(struct v4l2_fh *fh)