Home
last modified time | relevance | path

Searched refs:v4l2_dev (Results 1 – 200 of 303) sorted by relevance

12

/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-device.c33 int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev) in v4l2_device_register() argument
35 if (v4l2_dev == NULL) in v4l2_device_register()
38 INIT_LIST_HEAD(&v4l2_dev->subdevs); in v4l2_device_register()
39 spin_lock_init(&v4l2_dev->lock); in v4l2_device_register()
40 v4l2_prio_init(&v4l2_dev->prio); in v4l2_device_register()
41 kref_init(&v4l2_dev->ref); in v4l2_device_register()
43 v4l2_dev->dev = dev; in v4l2_device_register()
46 if (WARN_ON(!v4l2_dev->name[0])) in v4l2_device_register()
52 if (!v4l2_dev->name[0]) in v4l2_device_register()
53 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s", in v4l2_device_register()
[all …]
Dv4l2-async.c115 ret = v4l2_device_register_subdev(notifier->v4l2_dev, sd); in v4l2_async_test_notify()
137 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev, in v4l2_async_notifier_register() argument
147 notifier->v4l2_dev = v4l2_dev; in v4l2_async_notifier_register()
161 dev_err(notifier->v4l2_dev ? notifier->v4l2_dev->dev : NULL, in v4l2_async_notifier_register()
202 if (!notifier->v4l2_dev) in v4l2_async_notifier_unregister()
207 dev_err(notifier->v4l2_dev->dev, in v4l2_async_notifier_unregister()
263 notifier->v4l2_dev = NULL; in v4l2_async_notifier_unregister()
Dv4l2-common.c131 struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev_board() argument
138 BUG_ON(!v4l2_dev); in v4l2_i2c_new_subdev_board()
166 if (v4l2_device_register_subdev(v4l2_dev, sd)) in v4l2_i2c_new_subdev_board()
180 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev() argument
192 return v4l2_i2c_new_subdev_board(v4l2_dev, adapter, &info, probe_addrs); in v4l2_i2c_new_subdev()
262 struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_dev, in v4l2_spi_new_subdev() argument
268 BUG_ON(!v4l2_dev); in v4l2_spi_new_subdev()
285 if (v4l2_device_register_subdev(v4l2_dev, sd)) in v4l2_spi_new_subdev()
Dv4l2-dev.c173 struct v4l2_device *v4l2_dev = vdev->v4l2_dev; in v4l2_device_release() local
197 if (v4l2_dev->mdev && in v4l2_device_release()
210 if (v4l2_dev->release == NULL) in v4l2_device_release()
211 v4l2_dev = NULL; in v4l2_device_release()
218 if (v4l2_dev) in v4l2_device_release()
219 v4l2_device_put(v4l2_dev); in v4l2_device_release()
494 video_device[i]->v4l2_dev == vdev->v4l2_dev) { in get_index()
777 if (WARN_ON(!vdev->v4l2_dev)) in __video_register_device()
811 vdev->dev_parent = vdev->v4l2_dev->dev; in __video_register_device()
813 vdev->ctrl_handler = vdev->v4l2_dev->ctrl_handler; in __video_register_device()
[all …]
Dv4l2-subdev.c77 if (sd->v4l2_dev->mdev) { in subdev_open()
116 if (sd->v4l2_dev->mdev) in subdev_close()
579 sd->v4l2_dev = NULL; in v4l2_subdev_init()
/linux-4.4.14/include/media/
Dv4l2-device.h64 void (*release)(struct v4l2_device *v4l2_dev);
67 static inline void v4l2_device_get(struct v4l2_device *v4l2_dev) in v4l2_device_get() argument
69 kref_get(&v4l2_dev->ref); in v4l2_device_get()
72 int v4l2_device_put(struct v4l2_device *v4l2_dev);
77 int __must_check v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
95 int v4l2_device_set_name(struct v4l2_device *v4l2_dev, const char *basename,
101 void v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
104 void v4l2_device_unregister(struct v4l2_device *v4l2_dev);
109 int __must_check v4l2_device_register_subdev(struct v4l2_device *v4l2_dev,
119 v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev);
[all …]
Dv4l2-async.h81 struct v4l2_device *v4l2_dev; member
94 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev,
Dv4l2-common.h102 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev,
108 struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev,
142 struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_dev,
Dsoc_camera.h79 struct v4l2_device v4l2_dev; member
258 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in to_soc_camera_host() local
260 return container_of(v4l2_dev, struct soc_camera_host, v4l2_dev); in to_soc_camera_host()
Dsaa7146.h120 struct v4l2_device v4l2_dev; member
158 static inline struct saa7146_dev *to_saa7146_dev(struct v4l2_device *v4l2_dev) in to_saa7146_dev() argument
160 return container_of(v4l2_dev, struct saa7146_dev, v4l2_dev); in to_saa7146_dev()
Dtea575x.h51 struct v4l2_device *v4l2_dev; member
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-alsa-main.c65 struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev) in to_snd_cx18_card() argument
67 return to_cx18(v4l2_dev)->alsa; in to_snd_cx18_card()
71 struct snd_cx18_card *p_to_snd_cx18_card(struct v4l2_device **v4l2_dev) in p_to_snd_cx18_card() argument
73 return container_of(v4l2_dev, struct snd_cx18_card, v4l2_dev); in p_to_snd_cx18_card()
81 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
82 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
98 static int snd_cx18_card_create(struct v4l2_device *v4l2_dev, in snd_cx18_card_create() argument
106 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
117 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
135 static int snd_cx18_init(struct v4l2_device *v4l2_dev) in snd_cx18_init() argument
[all …]
Dcx18-alsa.h25 struct v4l2_device *v4l2_dev; member
41 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_lock()
47 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock()
58 v4l2_dev->name , ## args); \
68 printk(KERN_ERR "%s-alsa: " fmt, v4l2_dev->name , ## args)
71 printk(KERN_WARNING "%s-alsa: " fmt, v4l2_dev->name , ## args)
74 printk(KERN_INFO "%s-alsa: " fmt, v4l2_dev->name , ## args)
Dcx18-alsa-pcm.c153 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_open() local
154 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_open()
200 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_close() local
201 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_close()
330 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_create() local
331 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_create()
Dcx18-i2c.c121 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
125 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
129 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
144 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, adap, type, hw_addrs[idx], in cx18_i2c_register()
157 spin_lock(&cx->v4l2_dev.lock); in cx18_find_hw()
158 v4l2_device_for_each_subdev(sd, &cx->v4l2_dev) { in cx18_find_hw()
164 spin_unlock(&cx->v4l2_dev.lock); in cx18_find_hw()
250 i2c_set_adapdata(&cx->i2c_adap[i], &cx->v4l2_dev); in init_cx18_i2c()
Dcx18-alsa-mixer.c88 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_mixer_tv_vol_get()
108 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_mixer_tv_vol_put()
163 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_mixer_create() local
Dcx18-driver.h176 v4l2_info(&cx->v4l2_dev, " " type ": " fmt , ## args); \
190 v4l2_info(&cx->v4l2_dev, " " type ": " fmt , ## args); \
202 #define CX18_ERR(fmt, args...) v4l2_err(&cx->v4l2_dev, fmt , ## args)
203 #define CX18_WARN(fmt, args...) v4l2_warn(&cx->v4l2_dev, fmt , ## args)
204 #define CX18_INFO(fmt, args...) v4l2_info(&cx->v4l2_dev, fmt , ## args)
579 struct v4l2_device v4l2_dev; member
678 static inline struct cx18 *to_cx18(struct v4l2_device *v4l2_dev) in to_cx18() argument
680 return container_of(v4l2_dev, struct cx18, v4l2_dev); in to_cx18()
712 __v4l2_device_call_subdevs_p(&(cx)->v4l2_dev, __sd, \
724 __v4l2_device_call_subdevs_until_err_p(&(cx)->v4l2_dev, \
Dcx18-streams.c326 s->video_dev.v4l2_dev = NULL; in cx18_prep_dev()
371 cx->v4l2_dev.name, s->name); in cx18_prep_dev()
374 s->video_dev.v4l2_dev = &cx->v4l2_dev; in cx18_prep_dev()
426 if (s->video_dev.v4l2_dev == NULL) in cx18_reg_dev()
434 if (s_mpg->video_dev.v4l2_dev) in cx18_reg_dev()
445 s->video_dev.v4l2_dev = NULL; in cx18_reg_dev()
541 if (vdev->v4l2_dev == NULL) in cx18_streams_cleanup()
1034 if (s->video_dev.v4l2_dev && (s->handle != CX18_INVALID_TASK_HANDLE)) in cx18_find_handle()
Dcx18-driver.c704 cx->v4l2_dev.name); in cx18_create_in_workq()
757 cx->v4l2_dev.ctrl_handler = &cx->cxhdl.hdl; in cx18_init_struct1()
927 retval = v4l2_device_register(&pci_dev->dev, &cx->v4l2_dev); in cx18_probe()
934 snprintf(cx->v4l2_dev.name, sizeof(cx->v4l2_dev.name), "cx18-%d", in cx18_probe()
1041 IRQF_SHARED, cx->v4l2_dev.name, (void *)cx); in cx18_probe()
1153 v4l2_device_unregister(&cx->v4l2_dev); in cx18_probe()
1275 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in cx18_remove() local
1276 struct cx18 *cx = to_cx18(v4l2_dev); in cx18_remove()
1322 v4l2_device_unregister(v4l2_dev); in cx18_remove()
Dcx18-streams.h36 return s->video_dev.v4l2_dev || in cx18_stream_enabled()
Dcx18-gpio.c317 snprintf(sd->name, sizeof(sd->name), "%s %s", cx->v4l2_dev.name, str); in cx18_gpio_register()
319 return v4l2_device_register_subdev(&cx->v4l2_dev, sd); in cx18_gpio_register()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-alsa-main.c70 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) in to_snd_ivtv_card() argument
72 return to_ivtv(v4l2_dev)->alsa; in to_snd_ivtv_card()
76 struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev) in p_to_snd_ivtv_card() argument
78 return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev); in p_to_snd_ivtv_card()
86 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
87 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
103 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument
111 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
122 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
140 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init() argument
[all …]
Divtv-alsa.h26 struct v4l2_device *v4l2_dev; member
42 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_lock()
48 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_unlock()
59 v4l2_dev->name , ## args); \
69 pr_err("%s-alsa: " fmt, v4l2_dev->name , ## args)
72 pr_warn("%s-alsa: " fmt, v4l2_dev->name , ## args)
75 pr_info("%s-alsa: " fmt, v4l2_dev->name , ## args)
Divtv-alsa-pcm.c154 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_open() local
155 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_pcm_capture_open()
207 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_close() local
208 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_pcm_capture_close()
337 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_create() local
338 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_pcm_create()
Divtv-streams.c200 s->vdev.v4l2_dev = NULL; in ivtv_prep_dev()
222 itv->v4l2_dev.name, s->name); in ivtv_prep_dev()
225 s->vdev.v4l2_dev = &itv->v4l2_dev; in ivtv_prep_dev()
230 s->vdev.ctrl_handler = itv->v4l2_dev.ctrl_handler; in ivtv_prep_dev()
262 if (itv->streams[type].vdev.v4l2_dev == NULL) in ivtv_streams_setup()
284 if (s->vdev.v4l2_dev == NULL) in ivtv_reg_dev()
292 if (s_mpg->vdev.v4l2_dev) in ivtv_reg_dev()
353 if (vdev->v4l2_dev == NULL) in ivtv_streams_cleanup()
358 itv->streams[type].vdev.v4l2_dev = NULL; in ivtv_streams_cleanup()
482 if (s->vdev.v4l2_dev == NULL) in ivtv_start_v4l2_encode_stream()
[all …]
Divtv-i2c.c273 sd = v4l2_i2c_new_subdev(&itv->v4l2_dev, adap, type, 0, in ivtv_i2c_register()
277 sd = v4l2_i2c_new_subdev(&itv->v4l2_dev, adap, type, 0, in ivtv_i2c_register()
281 sd = v4l2_i2c_new_subdev(&itv->v4l2_dev, adap, type, 0, in ivtv_i2c_register()
297 sd = v4l2_i2c_new_subdev(&itv->v4l2_dev, in ivtv_i2c_register()
308 sd = v4l2_i2c_new_subdev_board(&itv->v4l2_dev, adap, in ivtv_i2c_register()
311 sd = v4l2_i2c_new_subdev(&itv->v4l2_dev, in ivtv_i2c_register()
324 spin_lock(&itv->v4l2_dev.lock); in ivtv_find_hw()
325 v4l2_device_for_each_subdev(sd, &itv->v4l2_dev) { in ivtv_find_hw()
331 spin_unlock(&itv->v4l2_dev.lock); in ivtv_find_hw()
602 struct v4l2_device *v4l2_dev = i2c_get_adapdata(i2c_adap); in ivtv_xfer() local
[all …]
Divtv-alsa-mixer.c88 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_mixer_tv_vol_get()
108 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_mixer_tv_vol_put()
163 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_mixer_create() local
Divtv-driver.h144 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
160 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \
174 #define IVTV_ERR(fmt, args...) v4l2_err(&itv->v4l2_dev, fmt , ## args)
175 #define IVTV_WARN(fmt, args...) v4l2_warn(&itv->v4l2_dev, fmt , ## args)
176 #define IVTV_INFO(fmt, args...) v4l2_info(&itv->v4l2_dev, fmt , ## args)
632 struct v4l2_device v4l2_dev; member
758 static inline struct ivtv *to_ivtv(struct v4l2_device *v4l2_dev) in to_ivtv() argument
760 return container_of(v4l2_dev, struct ivtv, v4l2_dev); in to_ivtv()
832 __v4l2_device_call_subdevs_p(&(itv)->v4l2_dev, __sd, \
845 __v4l2_device_call_subdevs_until_err_p(&(itv)->v4l2_dev, __sd, \
Divtv-driver.c755 "%s", itv->v4l2_dev.name); in ivtv_init_struct1()
1008 itv->instance = v4l2_device_set_name(&itv->v4l2_dev, "ivtv", in ivtv_probe()
1011 retval = v4l2_device_register(&pdev->dev, &itv->v4l2_dev); in ivtv_probe()
1030 itv->v4l2_dev.ctrl_handler = &itv->cxhdl.hdl; in ivtv_probe()
1226 struct v4l2_ctrl_handler *hdl = itv->v4l2_dev.ctrl_handler; in ivtv_probe()
1264 IRQF_SHARED, itv->v4l2_dev.name, (void *)itv); in ivtv_probe()
1307 v4l2_device_unregister(&itv->v4l2_dev); in ivtv_probe()
1406 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in ivtv_remove() local
1407 struct ivtv *itv = to_ivtv(v4l2_dev); in ivtv_remove()
1468 v4l2_device_unregister(&itv->v4l2_dev); in ivtv_remove()
Divtvfb.c1237 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtvfb_callback_init() local
1238 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); in ivtvfb_callback_init()
1243 itv->v4l2_dev.name); in ivtvfb_callback_init()
1252 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtvfb_callback_cleanup() local
1253 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); in ivtvfb_callback_cleanup()
Divtv-gpio.c357 snprintf(itv->sd_gpio.name, sizeof(itv->sd_gpio.name), "%s-gpio", itv->v4l2_dev.name); in ivtv_gpio_init()
366 return v4l2_device_register_subdev(&itv->v4l2_dev, &itv->sd_gpio); in ivtv_gpio_init()
/linux-4.4.14/drivers/media/radio/
Dradio-maxiradio.c72 struct v4l2_device v4l2_dev; member
78 static inline struct maxiradio *to_maxiradio(struct v4l2_device *v4l2_dev) in to_maxiradio() argument
80 return container_of(v4l2_dev, struct maxiradio, v4l2_dev); in to_maxiradio()
121 struct v4l2_device *v4l2_dev; in maxiradio_probe() local
130 v4l2_dev = &dev->v4l2_dev; in maxiradio_probe()
131 v4l2_device_set_name(v4l2_dev, "maxiradio", &maxiradio_instance); in maxiradio_probe()
133 retval = v4l2_device_register(&pdev->dev, v4l2_dev); in maxiradio_probe()
135 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in maxiradio_probe()
143 dev->tea.v4l2_dev = v4l2_dev; in maxiradio_probe()
152 pci_resource_len(pdev, 0), v4l2_dev->name)) { in maxiradio_probe()
[all …]
Dradio-shark2.c57 #define v4l2_dev_to_shark(d) container_of(d, struct shark_device, v4l2_dev)
63 struct v4l2_device v4l2_dev; member
89 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-write: %*ph\n", in shark_write_reg()
97 v4l2_err(tea->v4l2_dev, "write error: %d\n", res); in shark_write_reg()
117 v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res); in shark_read_reg()
126 v4l2_err(tea->v4l2_dev, "read error: %d\n", res); in shark_read_reg()
133 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-read: %*ph\n", in shark_read_reg()
166 v4l2_err(&shark->v4l2_dev, "set LED %s error: %d\n", in shark_led_work()
217 shark->leds[i].name, shark->v4l2_dev.name); in shark_register_leds()
221 v4l2_err(&shark->v4l2_dev, in shark_register_leds()
[all …]
Dradio-isa.c52 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", isa->v4l2_dev.name); in radio_isa_querycap()
149 v4l2_info(&isa->v4l2_dev, "I/O Port = 0x%03x\n", isa->io); in radio_isa_log_status()
150 v4l2_ctrl_handler_log_status(&isa->hdl, isa->v4l2_dev.name); in radio_isa_log_status()
198 struct v4l2_device *v4l2_dev; in radio_isa_alloc() local
205 v4l2_dev = &isa->v4l2_dev; in radio_isa_alloc()
206 strlcpy(v4l2_dev->name, dev_name(pdev), sizeof(v4l2_dev->name)); in radio_isa_alloc()
217 struct v4l2_device *v4l2_dev = &isa->v4l2_dev; in radio_isa_common_probe() local
220 if (!request_region(isa->io, region_size, v4l2_dev->name)) { in radio_isa_common_probe()
221 v4l2_err(v4l2_dev, "port 0x%x already in use\n", isa->io); in radio_isa_common_probe()
226 res = v4l2_device_register(pdev, v4l2_dev); in radio_isa_common_probe()
[all …]
Dradio-shark.c60 #define v4l2_dev_to_shark(d) container_of(d, struct shark_device, v4l2_dev)
67 struct v4l2_device v4l2_dev; member
105 v4l2_err(&shark->v4l2_dev, "set-freq error: %d\n", res); in shark_write_val()
121 v4l2_err(&shark->v4l2_dev, "request-status error: %d\n", res); in shark_read_val()
130 v4l2_err(&shark->v4l2_dev, "get-status error: %d\n", res); in shark_read_val()
181 v4l2_err(&shark->v4l2_dev, "set LED %s error: %d\n", in shark_led_work()
251 shark->leds[i].name, shark->v4l2_dev.name); in shark_register_leds()
255 v4l2_err(&shark->v4l2_dev, in shark_register_leds()
286 v4l2_warn(&shark->v4l2_dev, in shark_register_leds()
296 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_disconnect() local
[all …]
Ddsbr100.c72 #define v4l2_dev_to_radio(d) container_of(d, struct dsbr100_device, v4l2_dev)
81 struct v4l2_device v4l2_dev; member
279 v4l2_device_disconnect(&radio->v4l2_dev); in usb_dsbr100_disconnect()
281 v4l2_device_put(&radio->v4l2_dev); in usb_dsbr100_disconnect()
314 static void usb_dsbr100_release(struct v4l2_device *v4l2_dev) in usb_dsbr100_release() argument
316 struct dsbr100_device *radio = v4l2_dev_to_radio(v4l2_dev); in usb_dsbr100_release()
319 v4l2_device_unregister(&radio->v4l2_dev); in usb_dsbr100_release()
353 struct v4l2_device *v4l2_dev; in usb_dsbr100_probe() local
368 v4l2_dev = &radio->v4l2_dev; in usb_dsbr100_probe()
369 v4l2_dev->release = usb_dsbr100_release; in usb_dsbr100_probe()
[all …]
Dradio-sf16fmi.c48 struct v4l2_device v4l2_dev; member
276 struct v4l2_device *v4l2_dev = &fmi->v4l2_dev; in fmi_init() local
318 strlcpy(v4l2_dev->name, "sf16fmi", sizeof(v4l2_dev->name)); in fmi_init()
321 res = v4l2_device_register(NULL, v4l2_dev); in fmi_init()
326 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in fmi_init()
333 v4l2_dev->ctrl_handler = hdl; in fmi_init()
336 v4l2_err(v4l2_dev, "Could not register controls\n"); in fmi_init()
338 v4l2_device_unregister(v4l2_dev); in fmi_init()
342 strlcpy(fmi->vdev.name, v4l2_dev->name, sizeof(fmi->vdev.name)); in fmi_init()
343 fmi->vdev.v4l2_dev = v4l2_dev; in fmi_init()
[all …]
Dradio-timb.c38 struct v4l2_device v4l2_dev; member
130 strlcpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name)); in timbradio_probe()
131 err = v4l2_device_register(NULL, &tr->v4l2_dev); in timbradio_probe()
135 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe()
137 tr->sd_tuner = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe()
139 tr->sd_dsp = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe()
146 tr->v4l2_dev.ctrl_handler = tr->sd_dsp->ctrl_handler; in timbradio_probe()
160 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_probe()
172 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_remove()
Dradio-ma901.c89 struct v4l2_device v4l2_dev; member
100 static inline struct ma901radio_device *to_ma901radio_dev(struct v4l2_device *v4l2_dev) in to_ma901radio_dev() argument
102 return container_of(v4l2_dev, struct ma901radio_device, v4l2_dev); in to_ma901radio_dev()
193 v4l2_device_disconnect(&radio->v4l2_dev); in usb_ma901radio_disconnect()
195 v4l2_device_put(&radio->v4l2_dev); in usb_ma901radio_disconnect()
336 static void usb_ma901radio_release(struct v4l2_device *v4l2_dev) in usb_ma901radio_release() argument
338 struct ma901radio_device *radio = to_ma901radio_dev(v4l2_dev); in usb_ma901radio_release()
341 v4l2_device_unregister(&radio->v4l2_dev); in usb_ma901radio_release()
378 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_ma901radio_probe()
405 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_ma901radio_probe()
[all …]
Dradio-keene.c64 struct v4l2_device v4l2_dev; member
77 static inline struct keene_device *to_keene_dev(struct v4l2_device *v4l2_dev) in to_keene_dev() argument
79 return container_of(v4l2_dev, struct keene_device, v4l2_dev); in to_keene_dev()
154 v4l2_device_disconnect(&radio->v4l2_dev); in usb_keene_disconnect()
156 v4l2_device_put(&radio->v4l2_dev); in usb_keene_disconnect()
298 static void usb_keene_video_device_release(struct v4l2_device *v4l2_dev) in usb_keene_video_device_release() argument
300 struct keene_device *radio = to_keene_dev(v4l2_dev); in usb_keene_video_device_release()
359 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_keene_probe()
367 radio->v4l2_dev.ctrl_handler = hdl; in usb_keene_probe()
368 radio->v4l2_dev.release = usb_keene_video_device_release; in usb_keene_probe()
[all …]
Dradio-miropcm20.c62 struct v4l2_device v4l2_dev; member
205 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", dev->v4l2_dev.name); in vidioc_querycap()
389 dev->v4l2_dev.name); in pcm20_open()
391 v4l2_err(&dev->v4l2_dev, "kernel_thread() failed\n"); in pcm20_open()
436 struct v4l2_device *v4l2_dev = &dev->v4l2_dev; in pcm20_init() local
442 v4l2_err(v4l2_dev, in pcm20_init()
446 strlcpy(v4l2_dev->name, "radio-miropcm20", sizeof(v4l2_dev->name)); in pcm20_init()
449 res = v4l2_device_register(NULL, v4l2_dev); in pcm20_init()
451 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in pcm20_init()
471 v4l2_dev->ctrl_handler = hdl; in pcm20_init()
[all …]
Dradio-raremono.c120 struct v4l2_device v4l2_dev; member
128 static inline struct raremono_device *to_raremono_dev(struct v4l2_device *v4l2_dev) in to_raremono_dev() argument
130 return container_of(v4l2_dev, struct raremono_device, v4l2_dev); in to_raremono_dev()
162 dev_warn(radio->v4l2_dev.dev, "%s failed (%d)\n", __func__, ret); in raremono_cmd_main()
183 v4l2_device_disconnect(&radio->v4l2_dev); in usb_raremono_disconnect()
185 v4l2_device_put(&radio->v4l2_dev); in usb_raremono_disconnect()
240 dev_warn(radio->v4l2_dev.dev, "%s failed (%d)\n", __func__, ret); in vidioc_g_tuner()
345 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_raremono_probe()
353 strlcpy(radio->vdev.name, radio->v4l2_dev.name, in usb_raremono_probe()
355 radio->vdev.v4l2_dev = &radio->v4l2_dev; in usb_raremono_probe()
[all …]
Dradio-mr800.c133 struct v4l2_device v4l2_dev; member
143 static inline struct amradio_device *to_amradio_dev(struct v4l2_device *v4l2_dev) in to_amradio_dev() argument
145 return container_of(v4l2_dev, struct amradio_device, v4l2_dev); in to_amradio_dev()
262 v4l2_device_disconnect(&radio->v4l2_dev); in usb_amradio_disconnect()
264 v4l2_device_put(&radio->v4l2_dev); in usb_amradio_disconnect()
502 static void usb_amradio_release(struct v4l2_device *v4l2_dev) in usb_amradio_release() argument
504 struct amradio_device *radio = to_amradio_dev(v4l2_dev); in usb_amradio_release()
508 v4l2_device_unregister(&radio->v4l2_dev); in usb_amradio_release()
536 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_amradio_probe()
552 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_amradio_probe()
[all …]
Dradio-cadet.c65 struct v4l2_device v4l2_dev; member
599 struct v4l2_device *v4l2_dev = &dev->v4l2_dev; in cadet_init() local
603 strlcpy(v4l2_dev->name, "cadet", sizeof(v4l2_dev->name)); in cadet_init()
618 v4l2_err(v4l2_dev, "you must set an I/O address with io=0x330, 0x332, 0x334,\n"); in cadet_init()
619 v4l2_err(v4l2_dev, "0x336, 0x338, 0x33a, 0x33c or 0x33e\n"); in cadet_init()
626 res = v4l2_device_register(NULL, v4l2_dev); in cadet_init()
629 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in cadet_init()
637 v4l2_dev->ctrl_handler = hdl; in cadet_init()
640 v4l2_err(v4l2_dev, "Could not register controls\n"); in cadet_init()
647 strlcpy(dev->vdev.name, v4l2_dev->name, sizeof(dev->vdev.name)); in cadet_init()
[all …]
Dradio-sf16fmr2.c32 struct v4l2_device v4l2_dev; member
216 strlcpy(fmr2->v4l2_dev.name, "radio-sf16fmr2", in fmr2_probe()
217 sizeof(fmr2->v4l2_dev.name)), in fmr2_probe()
220 if (!request_region(fmr2->io, 2, fmr2->v4l2_dev.name)) { in fmr2_probe()
226 err = v4l2_device_register(pdev, &fmr2->v4l2_dev); in fmr2_probe()
228 v4l2_err(&fmr2->v4l2_dev, "Could not register v4l2_device\n"); in fmr2_probe()
232 fmr2->tea.v4l2_dev = &fmr2->v4l2_dev; in fmr2_probe()
291 v4l2_device_unregister(&fmr2->v4l2_dev); in fmr2_remove()
Dradio-tea5764.c144 struct v4l2_device v4l2_dev; member
433 struct v4l2_device *v4l2_dev; in tea5764_i2c_probe() local
443 v4l2_dev = &radio->v4l2_dev; in tea5764_i2c_probe()
444 ret = v4l2_device_register(&client->dev, v4l2_dev); in tea5764_i2c_probe()
446 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in tea5764_i2c_probe()
454 v4l2_dev->ctrl_handler = hdl; in tea5764_i2c_probe()
457 v4l2_err(v4l2_dev, "Could not register controls\n"); in tea5764_i2c_probe()
480 radio->vdev.v4l2_dev = v4l2_dev; in tea5764_i2c_probe()
498 v4l2_device_unregister(v4l2_dev); in tea5764_i2c_probe()
513 v4l2_device_unregister(&radio->v4l2_dev); in tea5764_i2c_remove()
Dradio-zoltrix.c109 struct v4l2_device *v4l2_dev = &isa->v4l2_dev; in zoltrix_s_frequency() local
115 v4l2_warn(v4l2_dev, "cannot set a frequency of 0.\n"); in zoltrix_s_frequency()
Dradio-tea5777.c273 strlcpy(v->driver, tea->v4l2_dev->name, sizeof(v->driver)); in vidioc_querycap()
560 v4l2_err(tea->v4l2_dev, "can't set initial freq (%d)\n", res); in radio_tea5777_init()
567 strlcpy(tea->vd.name, tea->v4l2_dev->name, sizeof(tea->vd.name)); in radio_tea5777_init()
569 tea->vd.v4l2_dev = tea->v4l2_dev; in radio_tea5777_init()
580 v4l2_err(tea->v4l2_dev, "can't initialize controls\n"); in radio_tea5777_init()
588 v4l2_err(tea->v4l2_dev, "can't register video device!\n"); in radio_tea5777_init()
Dtea575x.c239 strlcpy(v->driver, tea->v4l2_dev->name, sizeof(v->driver)); in vidioc_querycap()
543 strlcpy(tea->vd.name, tea->v4l2_dev->name, sizeof(tea->vd.name)); in snd_tea575x_init()
545 tea->vd.v4l2_dev = tea->v4l2_dev; in snd_tea575x_init()
560 v4l2_err(tea->v4l2_dev, "can't initialize controls\n"); in snd_tea575x_init()
578 v4l2_err(tea->v4l2_dev, "can't register video device!\n"); in snd_tea575x_init()
Dradio-tea5777.h65 struct v4l2_device *v4l2_dev; member
Dradio-isa.h38 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/platform/davinci/
Dvpfe_capture.c317 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid buf_type\n"); in vpfe_get_ccdc_image_format()
321 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid frm_fmt\n"); in vpfe_get_ccdc_image_format()
338 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_ccdc_image_format()
403 v4l2_err(&vpfe_dev->v4l2_dev, "standard not supported\n"); in vpfe_config_image_format()
430 ret = v4l2_device_call_until_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format()
434 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format()
473 v4l2_err(&vpfe_dev->v4l2_dev, "ccdc device not registered\n"); in vpfe_initialize_device()
479 v4l2_err(&vpfe_dev->v4l2_dev, "Couldn't lock ccdc module\n"); in vpfe_initialize_device()
506 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_open\n"); in vpfe_open()
509 v4l2_err(&vpfe_dev->v4l2_dev, "No decoder registered\n"); in vpfe_open()
[all …]
Dvpbe_display.c65 v4l2_err(&vpbe_dev->v4l2_dev, in venc_is_second_field()
210 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_prepare()
219 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_buffer_prepare()
241 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_buffer_setup\n"); in vpbe_buffer_queue_setup()
272 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_queue()
402 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params()
416 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params()
528 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_calculate_scale_factor()
545 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_adj_position()
665 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_display_s_crop()
[all …]
Dvpbe.c637 ret = v4l2_device_register(dev, &vpbe_dev->v4l2_dev); in vpbe_initialize()
643 v4l2_info(&vpbe_dev->v4l2_dev, "vpbe v4l2 device registered\n"); in vpbe_initialize()
652 vpbe_dev->venc = venc_sub_dev_init(&vpbe_dev->v4l2_dev, in vpbe_initialize()
656 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_initialize()
667 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_initialize()
683 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_initialize()
701 &vpbe_dev->v4l2_dev, i2c_adap, in vpbe_initialize()
704 v4l2_info(&vpbe_dev->v4l2_dev, in vpbe_initialize()
708 v4l2_err(&vpbe_dev->v4l2_dev, "encoder %s" in vpbe_initialize()
715 v4l2_warn(&vpbe_dev->v4l2_dev, "non-i2c encoders" in vpbe_initialize()
[all …]
Dvpif_display.c34 #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg)
36 v4l2_dbg(level, debug, &vpif_obj.v4l2_dev, fmt, ## arg)
713 ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, video, in vpif_s_std()
720 ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, video, in vpif_s_std()
1050 v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status); in vpif_log_status()
1218 vdev->v4l2_dev = &vpif_obj.v4l2_dev; in vpif_probe_complete()
1267 err = v4l2_device_register(vpif_dev, &vpif_obj.v4l2_dev); in vpif_probe()
1301 v4l2_i2c_new_subdev_board(&vpif_obj.v4l2_dev, in vpif_probe()
1321 err = v4l2_async_notifier_register(&vpif_obj.v4l2_dev, in vpif_probe()
1335 v4l2_device_unregister(&vpif_obj.v4l2_dev); in vpif_probe()
[all …]
Dvpif_capture.c37 #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg)
39 v4l2_dbg(level, debug, &vpif_obj.v4l2_dev, fmt, ## arg)
1246 v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status); in vpif_log_status()
1397 vdev->v4l2_dev = &vpif_obj.v4l2_dev; in vpif_probe_complete()
1408 v4l2_info(&vpif_obj.v4l2_dev, "VPIF capture driver initialized\n"); in vpif_probe_complete()
1421 v4l2_device_unregister(&vpif_obj.v4l2_dev); in vpif_probe_complete()
1455 err = v4l2_device_register(vpif_dev, &vpif_obj.v4l2_dev); in vpif_probe()
1489 v4l2_i2c_new_subdev_board(&vpif_obj.v4l2_dev, in vpif_probe()
1500 v4l2_info(&vpif_obj.v4l2_dev, in vpif_probe()
1510 err = v4l2_async_notifier_register(&vpif_obj.v4l2_dev, in vpif_probe()
[all …]
Dvpif_capture.h115 struct v4l2_device v4l2_dev; member
Dvpif_display.h120 struct v4l2_device v4l2_dev; member
Dvpbe_venc.c608 struct v4l2_subdev *venc_sub_dev_init(struct v4l2_device *v4l2_dev, in venc_sub_dev_init() argument
622 if (v4l2_device_register_subdev(v4l2_dev, &venc->sd) < 0) { in venc_sub_dev_init()
623 v4l2_err(v4l2_dev, in venc_sub_dev_init()
628 v4l2_err(v4l2_dev, in venc_sub_dev_init()
/linux-4.4.14/drivers/media/usb/hdpvr/
Dhdpvr-core.c132 v4l2_err(&dev->v4l2_dev, in device_authorization()
138 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in device_authorization()
146 v4l2_info(&dev->v4l2_dev, "firmware version 0x%x dated %s\n", in device_authorization()
168 v4l2_info(&dev->v4l2_dev, "untested firmware, the driver might" in device_authorization()
178 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, "challenge: %8ph\n", in device_authorization()
183 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %8ph\n", in device_authorization()
194 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in device_authorization()
224 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
235 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
244 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
[all …]
Dhdpvr-video.c35 v4l2_dbg(MSG_BUFFER, hdpvr_debug, &dev->v4l2_dev, \
145 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_alloc_buffers()
152 v4l2_err(&dev->v4l2_dev, "cannot allocate buffer\n"); in hdpvr_alloc_buffers()
159 v4l2_err(&dev->v4l2_dev, "cannot allocate urb\n"); in hdpvr_alloc_buffers()
167 v4l2_err(&dev->v4l2_dev, in hdpvr_alloc_buffers()
206 v4l2_err(&dev->v4l2_dev, in hdpvr_submit_buffers()
217 v4l2_err(&dev->v4l2_dev, in hdpvr_submit_buffers()
259 v4l2_err(&dev->v4l2_dev, "couldn't submit buffers\n"); in hdpvr_transmit_buffers()
268 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_transmit_buffers()
272 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_transmit_buffers()
[all …]
Dhdpvr.h75 struct v4l2_device v4l2_dev; member
132 static inline struct hdpvr_device *to_hdpvr_dev(struct v4l2_device *v4l2_dev) in to_hdpvr_dev() argument
134 return container_of(v4l2_dev, struct hdpvr_device, v4l2_dev); in to_hdpvr_dev()
Dhdpvr-control.c41 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_config_call()
63 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in get_video_info()
94 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in get_input_lines_info()
139 v4l2_err(&dev->v4l2_dev, "invalid audio codec %d\n", in hdpvr_set_audio()
Dhdpvr-i2c.c148 v4l2_warn(&dev->v4l2_dev, "refusing 2-phase i2c xfer " in hdpvr_transfer()
155 v4l2_warn(&dev->v4l2_dev, "refusing complex xfer with " in hdpvr_transfer()
169 v4l2_warn(&dev->v4l2_dev, "refusing %d-phase i2c xfer\n", num); in hdpvr_transfer()
/linux-4.4.14/drivers/media/radio/si4713/
Dradio-platform-si4713.c53 struct v4l2_device v4l2_dev; member
91 return &((struct radio_si4713_device *)video_drvdata(file))->v4l2_dev; in get_v4l2_dev()
173 rval = v4l2_device_register(&pdev->dev, &rsdev->v4l2_dev); in radio_si4713_pdriver_probe()
180 rval = v4l2_device_register_subdev(&rsdev->v4l2_dev, sd); in radio_si4713_pdriver_probe()
187 rsdev->radio_dev.v4l2_dev = &rsdev->v4l2_dev; in radio_si4713_pdriver_probe()
202 v4l2_device_unregister(&rsdev->v4l2_dev); in radio_si4713_pdriver_probe()
210 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in radio_si4713_pdriver_remove() local
213 rsdev = container_of(v4l2_dev, struct radio_si4713_device, v4l2_dev); in radio_si4713_pdriver_remove()
215 v4l2_device_unregister(&rsdev->v4l2_dev); in radio_si4713_pdriver_remove()
Dradio-usb-si4713.c64 struct v4l2_device v4l2_dev; member
72 static inline struct si4713_usb_device *to_si4713_dev(struct v4l2_device *v4l2_dev) in to_si4713_dev() argument
74 return container_of(v4l2_dev, struct si4713_usb_device, v4l2_dev); in to_si4713_dev()
143 static void usb_si4713_video_device_release(struct v4l2_device *v4l2_dev) in usb_si4713_video_device_release() argument
145 struct si4713_usb_device *radio = to_si4713_dev(v4l2_dev); in usb_si4713_video_device_release()
149 v4l2_device_unregister(&radio->v4l2_dev); in usb_si4713_video_device_release()
455 usb_set_intfdata(intf, &radio->v4l2_dev); in usb_si4713_probe()
461 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_si4713_probe()
474 sd = v4l2_i2c_new_subdev_board(&radio->v4l2_dev, adapter, in usb_si4713_probe()
484 radio->v4l2_dev.release = usb_si4713_video_device_release; in usb_si4713_probe()
[all …]
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c508 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_release\n"); in vpfe_release()
553 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_mmap\n"); in vpfe_mmap()
565 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_poll\n"); in vpfe_poll()
597 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_querycap\n"); in vpfe_querycap()
628 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_g_fmt\n"); in vpfe_g_fmt()
657 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_enum_fmt\n"); in vpfe_enum_fmt()
662 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid index\n"); in vpfe_enum_fmt()
668 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
675 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
684 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
[all …]
Dvpfe_mc_capture.c164 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_isr\n"); in vpfe_isr()
175 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_vdint1_isr\n"); in vpfe_vdint1_isr()
185 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_imp_dma_isr\n"); in vpfe_imp_dma_isr()
302 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_attach_irq()
310 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_attach_irq()
319 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_attach_irq()
368 v4l2_info(&vpfe_dev->v4l2_dev, in register_i2c_devices()
375 v4l2_i2c_new_subdev_board(&vpfe_dev->v4l2_dev, in register_i2c_devices()
379 v4l2_info(&vpfe_dev->v4l2_dev, in register_i2c_devices()
389 v4l2_info(&vpfe_dev->v4l2_dev, in register_i2c_devices()
[all …]
Ddm365_ipipe.c81 dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_lutdpc_params()
182 dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_otfdpc_params()
241 dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_nf_params()
303 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_gic_params()
498 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_rgb2rgb_params()
639 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_gamma_params()
683 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_get_gamma_params()
742 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_get_3d_lut_params()
762 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_3d_lut_params()
831 struct device *dev = ipipe->subdev.v4l2_dev->dev; in ipipe_set_rgb2yuv_params()
[all …]
Dvpfe_mc_capture.h62 struct v4l2_device v4l2_dev; member
Ddm365_ipipe.h171 struct v4l2_device *v4l2_dev);
Ddm365_resizer.h237 struct v4l2_device *v4l2_dev);
/linux-4.4.14/drivers/media/usb/stk1160/
Dstk1160-core.c122 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_routing, in stk1160_select_input()
161 static void stk1160_release(struct v4l2_device *v4l2_dev) in stk1160_release() argument
163 struct stk1160 *dev = container_of(v4l2_dev, struct stk1160, v4l2_dev); in stk1160_release()
170 v4l2_device_unregister(&dev->v4l2_dev); in stk1160_release()
347 dev->v4l2_dev.release = stk1160_release; in stk1160_probe()
348 dev->v4l2_dev.ctrl_handler = &dev->ctrl_handler; in stk1160_probe()
349 rc = v4l2_device_register(dev->dev, &dev->v4l2_dev); in stk1160_probe()
363 dev->sd_saa7115 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in stk1160_probe()
367 v4l2_device_call_all(&dev->v4l2_dev, 0, core, reset, 0); in stk1160_probe()
368 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_probe()
[all …]
Dstk1160-v4l.c254 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 1); in stk1160_start_streaming()
296 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_stop_hw()
520 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd()
557 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, in vidioc_s_std()
830 dev->vdev.v4l2_dev = &dev->v4l2_dev; in stk1160_video_register()
841 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, in stk1160_video_register()
851 v4l2_info(&dev->v4l2_dev, "V4L2 device registered as %s\n", in stk1160_video_register()
Dstk1160.h119 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/pci/tw68/
Dtw68-core.c231 dev->instance = v4l2_device_set_name(&dev->v4l2_dev, "tw68", in tw68_initdev()
234 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in tw68_initdev()
245 dev->name = dev->v4l2_dev.name; in tw68_initdev()
353 v4l2_device_unregister(&dev->v4l2_dev); in tw68_initdev()
359 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in tw68_finidev() local
361 container_of(v4l2_dev, struct tw68_dev, v4l2_dev); in tw68_finidev()
377 v4l2_device_unregister(&dev->v4l2_dev); in tw68_finidev()
384 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in tw68_suspend() local
385 struct tw68_dev *dev = container_of(v4l2_dev, in tw68_suspend()
386 struct tw68_dev, v4l2_dev); in tw68_suspend()
[all …]
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-core.c208 "platform:%s", dev->v4l2_dev.name); in vidioc_querycap()
472 v4l2_info(&dev->v4l2_dev, "reconnect\n"); in vivid_fop_release()
633 static void vivid_dev_release(struct v4l2_device *v4l2_dev) in vivid_dev_release() argument
635 struct vivid_dev *dev = container_of(v4l2_dev, struct vivid_dev, v4l2_dev); in vivid_dev_release()
638 v4l2_device_unregister(&dev->v4l2_dev); in vivid_dev_release()
675 snprintf(dev->v4l2_dev.name, sizeof(dev->v4l2_dev.name), in vivid_create_instance()
677 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in vivid_create_instance()
682 dev->v4l2_dev.release = vivid_dev_release; in vivid_create_instance()
688 v4l2_info(&dev->v4l2_dev, "using %splanar format API\n", in vivid_create_instance()
764 v4l2_info(&dev->v4l2_dev, "Capture Crop: %c Compose: %c Scaler: %c\n", in vivid_create_instance()
[all …]
Dvivid-kthread-out.c248 "%s-vid-out", dev->v4l2_dev.name); in vivid_start_generating_vid_out()
251 v4l2_err(&dev->v4l2_dev, "kernel_thread() failed\n"); in vivid_start_generating_vid_out()
Dvivid-core.h33 v4l2_dbg(level, vivid_debug, &dev->v4l2_dev, fmt, ## arg)
137 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/staging/most/aim-v4l2/
Dvideo.c45 struct v4l2_device v4l2_dev; member
445 mdev->vdev->v4l2_dev = &mdev->v4l2_dev; in aim_register_videodev()
472 static void aim_v4l2_dev_release(struct v4l2_device *v4l2_dev) in aim_v4l2_dev_release() argument
475 container_of(v4l2_dev, struct most_video_dev, v4l2_dev); in aim_v4l2_dev_release()
477 v4l2_device_unregister(v4l2_dev); in aim_v4l2_dev_release()
516 mdev->v4l2_dev.release = aim_v4l2_dev_release; in aim_probe_channel()
519 strlcpy(mdev->v4l2_dev.name, "most_video_device", in aim_probe_channel()
520 sizeof(mdev->v4l2_dev.name)); in aim_probe_channel()
521 ret = v4l2_device_register(NULL, &mdev->v4l2_dev); in aim_probe_channel()
538 v4l2_device_disconnect(&mdev->v4l2_dev); in aim_probe_channel()
[all …]
/linux-4.4.14/drivers/media/platform/blackfin/
Dbfin_capture.c63 struct v4l2_device v4l2_dev; member
232 v4l2_err(&bcap_dev->v4l2_dev, "buffer too small (%lu < %lu)\n", in bcap_buffer_prepare()
279 v4l2_err(&bcap_dev->v4l2_dev, "stream on failed in subdev\n"); in bcap_start_streaming()
317 v4l2_err(&bcap_dev->v4l2_dev, in bcap_start_streaming()
325 v4l2_err(&bcap_dev->v4l2_dev, in bcap_start_streaming()
370 v4l2_err(&bcap_dev->v4l2_dev, in bcap_stop_streaming()
598 v4l2_err(&bcap_dev->v4l2_dev, "Failed to set input\n"); in bcap_s_input()
748 v4l2_device_call_all(&bcap_dev->v4l2_dev, 0, core, log_status); in bcap_log_status()
837 vfd->v4l2_dev = &bcap_dev->v4l2_dev; in bcap_probe()
840 ret = v4l2_device_register(&pdev->dev, &bcap_dev->v4l2_dev); in bcap_probe()
[all …]
/linux-4.4.14/drivers/media/platform/
Darv.c110 struct v4l2_device v4l2_dev; member
264 v4l2_err(&ar->v4l2_dev, "lost %d -> %d\n", exp_line, l); in wait_for_vertical_sync()
389 v4l2_err(&ar->v4l2_dev, "failed while copy_to_user yuv.\n"); in ar_read()
642 v4l2_info(&ar->v4l2_dev, "Initializing "); in ar_initialize()
736 struct v4l2_device *v4l2_dev; in ar_init() local
741 v4l2_dev = &ar->v4l2_dev; in ar_init()
742 strlcpy(v4l2_dev->name, "arv", sizeof(v4l2_dev->name)); in ar_init()
743 v4l2_info(v4l2_dev, "Colour AR VGA driver %s\n", VERSION); in ar_init()
745 ret = v4l2_device_register(NULL, v4l2_dev); in ar_init()
747 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in ar_init()
[all …]
Dsh_vou.c77 struct v4l2_device v4l2_dev; member
255 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_queue_setup()
272 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_buf_prepare()
276 dev_warn(vou_dev->v4l2_dev.dev, "buffer too small (%lu < %u)\n", in sh_vou_buf_prepare()
305 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_start_streaming()
323 dev_dbg(vou_dev->v4l2_dev.dev, "%s: first buffer status 0x%x\n", in sh_vou_start_streaming()
352 v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_stop_streaming()
384 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_querycap()
404 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_enum_fmt_vid_out()
419 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_g_fmt_vid_out()
[all …]
Dm2m-deinterlace.c41 v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg)
129 struct v4l2_device v4l2_dev; member
250 v4l2_err(&pcdev->v4l2_dev, in deinterlace_issue_dma()
352 v4l2_warn(&pcdev->v4l2_dev, "DMA interleaved prep error\n"); in deinterlace_issue_dma()
363 v4l2_warn(&pcdev->v4l2_dev, in deinterlace_issue_dma()
624 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt()
630 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_s_fmt()
729 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon()
739 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon()
748 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon()
[all …]
Dmx2_emmaprp.c62 v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg)
204 struct v4l2_device v4l2_dev; member
315 v4l2_err(&pcdev->v4l2_dev, in emmaprp_device_run()
530 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_cap()
547 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_out()
571 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt()
921 ret = v4l2_device_register(&pdev->dev, &pcdev->v4l2_dev); in emmaprp_probe()
929 v4l2_err(&pcdev->v4l2_dev, "Failed to allocate video device\n"); in emmaprp_probe()
936 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
941 v4l2_info(&pcdev->v4l2_dev, EMMAPRP_MODULE_NAME in emmaprp_probe()
[all …]
Dvim2m.c71 v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg)
141 struct v4l2_device v4l2_dev; member
219 v4l2_err(&dev->v4l2_dev, in device_process()
226 v4l2_err(&dev->v4l2_dev, "Output buffer is too small\n"); in device_process()
546 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_cap()
568 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_out()
593 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt()
667 v4l2_err(&ctx->dev->v4l2_dev, "Invalid control\n"); in vim2m_s_ctrl()
999 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in vim2m_probe()
1009 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe()
[all …]
Dfsl-viu.c115 struct v4l2_device v4l2_dev; member
1447 snprintf(viu_dev->v4l2_dev.name, in viu_of_probe()
1448 sizeof(viu_dev->v4l2_dev.name), "%s", "VIU"); in viu_of_probe()
1449 ret = v4l2_device_register(viu_dev->dev, &viu_dev->v4l2_dev); in viu_of_probe()
1465 viu_dev->v4l2_dev.ctrl_handler = &viu_dev->hdl; in viu_of_probe()
1466 viu_dev->decoder = v4l2_i2c_new_subdev(&viu_dev->v4l2_dev, ad, in viu_of_probe()
1484 vdev->v4l2_dev = &viu_dev->v4l2_dev; in viu_of_probe()
1540 v4l2_device_unregister(&viu_dev->v4l2_dev); in viu_of_probe()
1548 struct v4l2_device *v4l2_dev = dev_get_drvdata(&op->dev); in viu_of_remove() local
1549 struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); in viu_of_remove()
[all …]
Dtimblogiw.c49 struct v4l2_device v4l2_dev; /* mutual exclusion */ member
638 lw->sd_enc = v4l2_i2c_new_subdev_board(&lw->v4l2_dev, adapt, in timblogiw_open()
820 strlcpy(lw->v4l2_dev.name, DRIVER_NAME, sizeof(lw->v4l2_dev.name)); in timblogiw_probe()
821 err = v4l2_device_register(NULL, &lw->v4l2_dev); in timblogiw_probe()
825 lw->video_dev.v4l2_dev = &lw->v4l2_dev; in timblogiw_probe()
839 v4l2_device_unregister(&lw->v4l2_dev); in timblogiw_probe()
852 v4l2_device_unregister(&lw->v4l2_dev); in timblogiw_remove()
Drcar_jpu.c212 struct v4l2_device v4l2_dev; member
869 v4l2_err(&ctx->jpu->v4l2_dev, "%s queue busy\n", __func__); in jpu_s_fmt()
1662 ret = v4l2_device_register(&pdev->dev, &jpu->v4l2_dev); in jpu_probe()
1671 v4l2_err(&jpu->v4l2_dev, "Failed to init mem2mem device\n"); in jpu_probe()
1678 v4l2_err(&jpu->v4l2_dev, "Failed to init memory allocator\n"); in jpu_probe()
1693 jpu->vfd_encoder.v4l2_dev = &jpu->v4l2_dev; in jpu_probe()
1698 v4l2_err(&jpu->v4l2_dev, "Failed to register video device\n"); in jpu_probe()
1710 jpu->vfd_decoder.v4l2_dev = &jpu->v4l2_dev; in jpu_probe()
1715 v4l2_err(&jpu->v4l2_dev, "Failed to register video device\n"); in jpu_probe()
1722 v4l2_info(&jpu->v4l2_dev, "encoder device registered as /dev/video%d\n", in jpu_probe()
[all …]
Dsh_veu.c109 struct v4l2_device v4l2_dev; member
564 v4l2_err(&veu_file->veu_dev->v4l2_dev, "%s queue busy\n", __func__); in sh_veu_s_fmt()
1156 ret = v4l2_device_register(&pdev->dev, &veu->v4l2_dev); in sh_veu_probe()
1171 vdev->v4l2_dev = &veu->v4l2_dev; in sh_veu_probe()
1185 v4l2_err(&veu->v4l2_dev, "Failed to init mem2mem device: %d\n", ret); in sh_veu_probe()
1205 v4l2_device_unregister(&veu->v4l2_dev); in sh_veu_probe()
1211 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in sh_veu_remove() local
1212 struct sh_veu_dev *veu = container_of(v4l2_dev, in sh_veu_remove()
1213 struct sh_veu_dev, v4l2_dev); in sh_veu_remove()
1219 v4l2_device_unregister(&veu->v4l2_dev); in sh_veu_remove()
Dvia-camera.c58 struct v4l2_device v4l2_dev; member
1375 ret = v4l2_device_register(&pdev->dev, &cam->v4l2_dev); in viacam_probe()
1383 cam->v4l2_dev.ctrl_handler = &cam->ctrl_handler; in viacam_probe()
1408 cam->sensor = v4l2_i2c_new_subdev_board(&cam->v4l2_dev, sensor_adapter, in viacam_probe()
1427 cam->vdev.v4l2_dev = &cam->v4l2_dev; in viacam_probe()
1452 v4l2_device_unregister(&cam->v4l2_dev); in viacam_probe()
1464 v4l2_device_unregister(&cam->v4l2_dev); in viacam_remove()
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-core.c199 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_register_sensor() local
212 v4l2_warn(v4l2_dev, "failed to get I2C adapter %d\n", in camif_register_sensor()
217 sd = v4l2_i2c_new_subdev_board(v4l2_dev, adapter, in camif_register_sensor()
221 v4l2_warn(v4l2_dev, "failed to acquire subdev %s\n", in camif_register_sensor()
227 v4l2_info(v4l2_dev, "registered sensor subdevice %s\n", sd->name); in camif_register_sensor()
311 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_media_dev_register() local
324 strlcpy(v4l2_dev->name, "s3c-camif", sizeof(v4l2_dev->name)); in camif_media_dev_register()
325 v4l2_dev->mdev = md; in camif_media_dev_register()
327 ret = v4l2_device_register(camif->dev, v4l2_dev); in camif_media_dev_register()
333 v4l2_device_unregister(v4l2_dev); in camif_media_dev_register()
[all …]
/linux-4.4.14/Documentation/zh_CN/video4linux/
Dv4l2-framework.txt102 v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
105 为 NULL,就将其指向 v4l2_dev
112 如果 v4l2_dev->name 为空,则它将被设置为从 dev 中衍生出的值(为了
115 v4l2_device_register 前设置 v4l2_dev->name。
124 当一个设备创建了多个 PCI 设备,使得 v4l2_dev 无法与一个特定的父设备
133 v4l2_device_unregister(struct v4l2_device *v4l2_dev);
135 如果 dev->driver_data 域指向 v4l2_dev,将会被重置为 NULL。注销同时
142 v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
155 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
158 if (v4l2_dev == NULL)
[all …]
/linux-4.4.14/drivers/media/usb/au0828/
Dau0828-core.c139 static void au0828_usb_v4l2_release(struct v4l2_device *v4l2_dev) in au0828_usb_v4l2_release() argument
142 container_of(v4l2_dev, struct au0828_dev, v4l2_dev); in au0828_usb_v4l2_release()
145 v4l2_device_unregister(&dev->v4l2_dev); in au0828_usb_v4l2_release()
175 v4l2_device_disconnect(&dev->v4l2_dev); in au0828_usb_disconnect()
176 v4l2_device_put(&dev->v4l2_dev); in au0828_usb_disconnect()
229 dev->v4l2_dev.release = au0828_usb_v4l2_release; in au0828_usb_probe()
232 retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev); in au0828_usb_probe()
249 dev->v4l2_dev.ctrl_handler = &dev->v4l2_ctrl_hdl; in au0828_usb_probe()
Dau0828-cards.c227 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in au0828_card_analog_fe_setup()
236 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in au0828_card_analog_fe_setup()
245 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_type_addr, in au0828_card_analog_fe_setup()
Dau0828-video.c803 v4l2_device_call_all(&dev->v4l2_dev, 0, video, in au0828_start_analog_streaming()
827 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in au0828_stop_streaming()
1014 v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_power, 0); in au0828_v4l2_close()
1048 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->std); in au0828_init_tuner()
1049 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); in au0828_init_tuner()
1227 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, norm); in vidioc_s_std()
1324 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_routing, in au0828_s_input()
1348 v4l2_device_call_all(&dev->v4l2_dev, 0, audio, s_routing, in au0828_s_input()
1426 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in vidioc_g_tuner()
1444 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in vidioc_s_tuner()
[all …]
/linux-4.4.14/drivers/media/platform/coda/
Dcoda-bit.c208 v4l2_err(&ctx->dev->v4l2_dev, "trying to queue empty buffer\n"); in coda_bitstream_try_queue()
214 v4l2_err(&ctx->dev->v4l2_dev, "bitstream buffer overflow\n"); in coda_bitstream_try_queue()
250 v4l2_err(&ctx->dev->v4l2_dev, in coda_fill_bitstream()
508 v4l2_err(&dev->v4l2_dev, "CODA_COMMAND_ENCODE_HEADER timeout\n"); in coda_encode_header()
641 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_setup_iram()
696 v4l2_err(&dev->v4l2_dev, "firmware get command error\n"); in coda_check_firmware()
703 v4l2_info(&dev->v4l2_dev, "Firmware code revision: %d\n", in coda_check_firmware()
718 v4l2_err(&dev->v4l2_dev, in coda_check_firmware()
725 v4l2_info(&dev->v4l2_dev, "Initialized %s.\n", in coda_check_firmware()
729 v4l2_info(&dev->v4l2_dev, "Firmware version: %u.%u.%u\n", in coda_check_firmware()
[all …]
Dcoda-common.c71 v4l2_dbg(2, coda_debug, &dev->v4l2_dev, in coda_write()
81 v4l2_dbg(2, coda_debug, &dev->v4l2_dev, in coda_read()
578 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in coda_s_fmt()
608 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_s_fmt()
1000 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
1006 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
1017 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
1024 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
1033 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
1041 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
[all …]
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dmedia-dev.c351 v4l2_info(&fmd->v4l2_dev, "Remote device at %s not found\n", in fimc_md_parse_port_node()
369 v4l2_err(&fmd->v4l2_dev, "Wrong port id (%u) at node %s\n", in fimc_md_parse_port_node()
488 ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd); in register_fimc_lite_entity()
492 v4l2_err(&fmd->v4l2_dev, "Failed to register FIMC.LITE%d\n", in register_fimc_lite_entity()
515 ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd); in register_fimc_entity()
522 v4l2_err(&fmd->v4l2_dev, "Failed to register FIMC.%d (%d)\n", in register_fimc_entity()
544 ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd); in register_csis_entity()
548 v4l2_err(&fmd->v4l2_dev, in register_csis_entity()
566 ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd); in register_fimc_is_entity()
568 v4l2_err(&fmd->v4l2_dev, in register_fimc_is_entity()
[all …]
Dfimc-isp-video.h19 struct v4l2_device *v4l2_dev,
32 struct v4l2_device *v4l2_dev, in fimc_isp_video_device_register() argument
Dfimc-m2m.c717 struct v4l2_device *v4l2_dev) in fimc_register_m2m_device() argument
722 fimc->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
727 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
738 v4l2_err(v4l2_dev, "failed to initialize v4l2-m2m device\n"); in fimc_register_m2m_device()
750 v4l2_info(v4l2_dev, "Registered %s as /dev/%s\n", in fimc_register_m2m_device()
Dfimc-core.h435 struct v4l2_device *v4l2_dev; member
610 v4l2_err(ctx->fimc_dev->v4l2_dev, in ctx_get_frame()
644 struct v4l2_device *v4l2_dev);
Dfimc-isp-video.c572 struct v4l2_device *v4l2_dev, in fimc_isp_video_device_register() argument
617 vdev->v4l2_dev = v4l2_dev; in fimc_isp_video_device_register()
635 v4l2_info(v4l2_dev, "Registered %s as /dev/%s\n", in fimc_isp_video_device_register()
Dfimc-lite.h149 struct v4l2_device *v4l2_dev; member
Dmedia-dev.h134 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-driver.c136 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_get_sd_nr()
149 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_notify()
400 cobalt->v4l2_dev.name, (void *)cobalt)) { in cobalt_setup_pci()
534 s[i].sd = v4l2_i2c_new_subdev_board(&cobalt->v4l2_dev, in cobalt_subdevs_init()
627 s->sd = v4l2_i2c_new_subdev_board(&cobalt->v4l2_dev, in cobalt_subdevs_hsma_init()
655 s->sd = v4l2_i2c_new_subdev_board(&cobalt->v4l2_dev, in cobalt_subdevs_hsma_init()
700 retval = v4l2_device_register(&pci_dev->dev, &cobalt->v4l2_dev); in cobalt_probe()
708 snprintf(cobalt->v4l2_dev.name, sizeof(cobalt->v4l2_dev.name), in cobalt_probe()
710 cobalt->v4l2_dev.notify = cobalt_notify; in cobalt_probe()
714 create_singlethread_workqueue(cobalt->v4l2_dev.name); in cobalt_probe()
[all …]
Dcobalt-driver.h169 #define cobalt_err(fmt, arg...) v4l2_err(&cobalt->v4l2_dev, fmt, ## arg)
170 #define cobalt_warn(fmt, arg...) v4l2_warn(&cobalt->v4l2_dev, fmt, ## arg)
171 #define cobalt_info(fmt, arg...) v4l2_info(&cobalt->v4l2_dev, fmt, ## arg)
173 v4l2_dbg(level, cobalt_debug, &cobalt->v4l2_dev, fmt, ## arg)
264 struct v4l2_device v4l2_dev; member
304 static inline struct cobalt *to_cobalt(struct v4l2_device *v4l2_dev) in to_cobalt() argument
306 return container_of(v4l2_dev, struct cobalt, v4l2_dev); in to_cobalt()
/linux-4.4.14/drivers/media/pci/sta2x11/
Dsta2x11_vip.c129 struct v4l2_device v4l2_dev; member
307 v4l2_err(&vip->v4l2_dev, "buffer too small (%lu < %lu)\n", in buffer_prepare()
610 v4l2_warn(&vip->v4l2_dev, "Invalid format, only UYVY supported\n"); in vidioc_try_fmt_vid_cap()
673 v4l2_err(&vip->v4l2_dev, "device busy\n"); in vidioc_s_fmt_vid_cap()
697 v4l2_err(&vip->v4l2_dev, "unknown field format\n"); in vidioc_s_fmt_vid_cap()
861 v4l2_err(&vip->v4l2_dev, "Cannot configure coherent mask"); in sta2x11_vip_init_buffer()
881 v4l2_err(&vip->v4l2_dev, "Can't allocate buffer context"); in sta2x11_vip_init_buffer()
899 vip->v4l2_dev.ctrl_handler = &vip->ctrl_hdl; in sta2x11_vip_init_controls()
1052 ret = v4l2_device_register(&pdev->dev, &vip->v4l2_dev); in sta2x11_vip_init_one()
1092 vip->video_dev.v4l2_dev = &vip->v4l2_dev; in sta2x11_vip_init_one()
[all …]
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-video.c194 struct v4l2_device *v4l2_dev = &dev->v4l2->v4l2_dev; in em28xx_wake_i2c() local
196 v4l2_device_call_all(v4l2_dev, 0, core, reset, 0); in em28xx_wake_i2c()
197 v4l2_device_call_all(v4l2_dev, 0, video, s_routing, in em28xx_wake_i2c()
199 v4l2_device_call_all(v4l2_dev, 0, video, s_stream, 0); in em28xx_wake_i2c()
974 v4l2_device_call_all(&v4l2->v4l2_dev, in em28xx_start_analog_streaming()
1117 struct v4l2_device *v4l2_dev = &dev->v4l2->v4l2_dev; in video_mux() local
1126 v4l2_device_call_all(v4l2_dev, 0, video, s_routing, in video_mux()
1131 v4l2_device_call_all(v4l2_dev, 0, audio, in video_mux()
1135 v4l2_device_call_all(v4l2_dev, 0, audio, s_routing, in video_mux()
1141 v4l2_device_call_all(v4l2_dev, 0, audio, s_routing, in video_mux()
[all …]
Dem28xx-camera.c364 v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, in em28xx_init_camera()
423 v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, in em28xx_init_camera()
/linux-4.4.14/drivers/media/usb/go7007/
Dgo7007-driver.c47 v4l2_err(&go->v4l2_dev, "timeout waiting for read interrupt\n"); in go7007_read_interrupt()
206 struct v4l2_device *v4l2_dev = &go->v4l2_dev; in init_i2c_module() local
215 sd = v4l2_i2c_new_subdev_board(v4l2_dev, adapter, &info, NULL); in init_i2c_module()
233 static void go7007_remove(struct v4l2_device *v4l2_dev) in go7007_remove() argument
235 struct go7007 *go = container_of(v4l2_dev, struct go7007, v4l2_dev); in go7007_remove()
237 v4l2_device_unregister(v4l2_dev); in go7007_remove()
264 go->v4l2_dev.release = go7007_remove; in go7007_register_encoder()
265 ret = v4l2_device_register(go->dev, &go->v4l2_dev); in go7007_register_encoder()
303 v4l2_device_call_all(&go->v4l2_dev, 0, tuner, in go7007_register_encoder()
365 v4l2_err(&go->v4l2_dev, "error transferring firmware\n"); in go7007_start_encoder()
[all …]
Dgo7007-v4l2.c263 call_all(&go->v4l2_dev, pad, set_fmt, NULL, &format); in set_capture_size()
446 call_all(&go->v4l2_dev, video, s_stream, 1); in go7007_start_streaming()
467 call_all(&go->v4l2_dev, video, s_stream, 0); in go7007_stop_streaming()
606 call_all(&go->v4l2_dev, video, s_std, go->std); in go7007_s_std()
627 return call_all(&go->v4l2_dev, video, querystd, std); in vidioc_querystd()
747 return call_all(&go->v4l2_dev, tuner, g_tuner, t); in vidioc_g_tuner()
758 return call_all(&go->v4l2_dev, tuner, s_tuner, t); in vidioc_s_tuner()
769 return call_all(&go->v4l2_dev, tuner, g_frequency, f); in vidioc_g_frequency()
780 return call_all(&go->v4l2_dev, tuner, s_frequency, f); in vidioc_s_frequency()
788 return call_all(&go->v4l2_dev, core, log_status); in vidioc_log_status()
[all …]
Dgo7007-priv.h172 struct v4l2_device v4l2_dev; member
261 static inline struct go7007 *to_go7007(struct v4l2_device *v4l2_dev) in to_go7007() argument
263 return container_of(v4l2_dev, struct go7007, v4l2_dev); in to_go7007()
Dsnd-go7007.c280 v4l2_device_get(&go->v4l2_dev); in go7007_snd_init()
293 v4l2_device_put(&go->v4l2_dev); in go7007_snd_remove()
/linux-4.4.14/drivers/media/platform/omap/
Domap_vout.c305 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "%s Offset:%x\n", in omap_vout_calculate_offset()
408 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omapvid_setup_overlay()
424 v4l2_warn(&vout->vid_dev->v4l2_dev, "setup_overlay failed\n"); in omapvid_setup_overlay()
489 v4l2_warn(&vout->vid_dev->v4l2_dev, "apply_changes failed\n"); in omapvid_init()
693 v4l2_err(&vout->vid_dev->v4l2_dev, in omap_vout_buffer_setup()
791 dma_addr = dma_map_single(vout->vid_dev->v4l2_dev.dev, (void *) addr, in omap_vout_buffer_prepare()
793 if (dma_mapping_error(vout->vid_dev->v4l2_dev.dev, dma_addr)) in omap_vout_buffer_prepare()
794 v4l2_err(&vout->vid_dev->v4l2_dev, "dma_map_single failed\n"); in omap_vout_buffer_prepare()
854 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omap_vout_vm_open()
863 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omap_vout_vm_close()
[all …]
Domap_vout_vrfb.c97 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in omap_vout_setup_vrfb_bufs() local
99 container_of(v4l2_dev, struct omap2video_device, v4l2_dev); in omap_vout_setup_vrfb_bufs()
Domap_voutdef.h102 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/radio/si470x/
Dradio-si470x-usb.c499 static void si470x_usb_release(struct v4l2_device *v4l2_dev) in si470x_usb_release() argument
502 container_of(v4l2_dev, struct si470x_device, v4l2_dev); in si470x_usb_release()
506 v4l2_device_unregister(&radio->v4l2_dev); in si470x_usb_release()
635 radio->v4l2_dev.release = si470x_usb_release; in si470x_usb_driver_probe()
660 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in si470x_usb_driver_probe()
679 radio->videodev.v4l2_dev = &radio->v4l2_dev; in si470x_usb_driver_probe()
765 v4l2_device_unregister(&radio->v4l2_dev); in si470x_usb_driver_probe()
832 v4l2_device_disconnect(&radio->v4l2_dev); in si470x_usb_driver_disconnect()
836 v4l2_device_put(&radio->v4l2_dev); in si470x_usb_driver_disconnect()
Dradio-si470x.h147 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/platform/s5p-g2d/
Dg2d.c229 v4l2_err(&dev->v4l2_dev, "g2d_setup_ctrls failed\n"); in g2d_setup_ctrls()
276 v4l2_info(&dev->v4l2_dev, "instance opened\n"); in g2d_open()
289 v4l2_info(&dev->v4l2_dev, "instance closed\n"); in g2d_release()
384 v4l2_err(&dev->v4l2_dev, "queue (%d) bust\n", f->type); in vidioc_s_fmt()
453 v4l2_err(&dev->v4l2_dev, in vidioc_try_crop()
690 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in g2d_probe()
695 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in g2d_probe()
701 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
704 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in g2d_probe()
710 v4l2_info(&dev->v4l2_dev, "device registered as /dev/video%d\n", in g2d_probe()
[all …]
Dg2d.h22 struct v4l2_device v4l2_dev; member
/linux-4.4.14/Documentation/video4linux/
Dv4l2-pci-skeleton.c66 struct v4l2_device v4l2_dev; member
590 v4l2_print_dv_timings(skel->v4l2_dev.name, "query_dv_timings:", in skeleton_query_dv_timings()
800 ret = v4l2_device_register(&pdev->dev, &skel->v4l2_dev); in skeleton_probe()
821 skel->v4l2_dev.ctrl_handler = hdl; in skeleton_probe()
883 vdev->v4l2_dev = &skel->v4l2_dev; in skeleton_probe()
899 v4l2_device_unregister(&skel->v4l2_dev); in skeleton_probe()
907 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in skeleton_remove() local
908 struct skeleton *skel = container_of(v4l2_dev, struct skeleton, v4l2_dev); in skeleton_remove()
913 v4l2_device_unregister(&skel->v4l2_dev); in skeleton_remove()
Dv4l2-framework.txt91 v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
94 field is NULL, it will be linked to v4l2_dev.
103 If v4l2_dev->name is empty then it will be set to a value derived from dev
106 you *must* setup v4l2_dev->name before calling v4l2_device_register.
116 it impossible to associate v4l2_dev with a particular parent.
125 v4l2_device_unregister(struct v4l2_device *v4l2_dev);
127 If the dev->driver_data field points to v4l2_dev, it will be reset to NULL.
135 v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
150 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
153 if (v4l2_dev == NULL)
[all …]
/linux-4.4.14/drivers/media/usb/usbtv/
Dusbtv-video.c662 static void usbtv_release(struct v4l2_device *v4l2_dev) in usbtv_release() argument
664 struct usbtv *usbtv = container_of(v4l2_dev, struct usbtv, v4l2_dev); in usbtv_release()
666 v4l2_device_unregister(&usbtv->v4l2_dev); in usbtv_release()
698 usbtv->v4l2_dev.release = usbtv_release; in usbtv_video_init()
699 ret = v4l2_device_register(usbtv->dev, &usbtv->v4l2_dev); in usbtv_video_init()
707 usbtv->vdev.v4l2_dev = &usbtv->v4l2_dev; in usbtv_video_init()
724 v4l2_device_unregister(&usbtv->v4l2_dev); in usbtv_video_init()
738 v4l2_device_disconnect(&usbtv->v4l2_dev); in usbtv_video_free()
743 v4l2_device_put(&usbtv->v4l2_dev); in usbtv_video_free()
Dusbtv-core.c92 v4l2_device_get(&usbtv->v4l2_dev); in usbtv_probe()
125 v4l2_device_put(&usbtv->v4l2_dev); in usbtv_disconnect()
Dusbtv.h75 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/pci/meye/
Dmeye.c1620 struct v4l2_device *v4l2_dev = &meye.v4l2_dev; in meye_probe() local
1629 ret = v4l2_device_register(&pcidev->dev, v4l2_dev); in meye_probe()
1631 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in meye_probe()
1639 v4l2_err(v4l2_dev, "grab buffer allocation failed\n"); in meye_probe()
1646 v4l2_err(v4l2_dev, "fifo allocation failed\n"); in meye_probe()
1652 v4l2_err(v4l2_dev, "fifo allocation failed\n"); in meye_probe()
1657 meye.vdev.v4l2_dev = &meye.v4l2_dev; in meye_probe()
1661 v4l2_err(v4l2_dev, "meye: unable to power on the camera\n"); in meye_probe()
1662 v4l2_err(v4l2_dev, "meye: did you enable the camera in " in meye_probe()
1668 v4l2_err(v4l2_dev, "meye: pci_enable_device failed\n"); in meye_probe()
[all …]
/linux-4.4.14/drivers/media/usb/usbvision/
Dusbvision.h360 struct v4l2_device v4l2_dev; member
466 static inline struct usb_usbvision *to_usbvision(struct v4l2_device *v4l2_dev) in to_usbvision() argument
468 return container_of(v4l2_dev, struct usb_usbvision, v4l2_dev); in to_usbvision()
472 v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args)
Dusbvision-i2c.c199 i2c_set_adapdata(&usbvision->i2c_adap, &usbvision->v4l2_dev); in usbvision_i2c_register()
227 v4l2_i2c_new_subdev(&usbvision->v4l2_dev, in usbvision_i2c_register()
237 sd = v4l2_i2c_new_subdev(&usbvision->v4l2_dev, in usbvision_i2c_register()
244 sd = v4l2_i2c_new_subdev(&usbvision->v4l2_dev, in usbvision_i2c_register()
Dusbvision-video.c1266 vdev->v4l2_dev = &usbvision->v4l2_dev; in usbvision_vdev_init()
1348 if (v4l2_device_register(&intf->dev, &usbvision->v4l2_dev)) in usbvision_alloc()
1353 usbvision->v4l2_dev.ctrl_handler = &usbvision->hdl; in usbvision_alloc()
1366 v4l2_device_unregister(&usbvision->v4l2_dev); in usbvision_alloc()
1392 v4l2_device_unregister(&usbvision->v4l2_dev); in usbvision_release()
1594 v4l2_device_disconnect(&usbvision->v4l2_dev); in usbvision_disconnect()
/linux-4.4.14/drivers/media/platform/marvell-ccic/
Dcafe-driver.c146 struct mcam_camera *m = container_of(dev, struct mcam_camera, v4l2_dev); in to_cam()
565 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_remove() local
566 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_remove()
583 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_suspend() local
584 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_suspend()
598 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_resume() local
599 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_resume()
Dmcam-core.c1794 ret = v4l2_device_register(cam->dev, &cam->v4l2_dev); in mccic_register()
1811 cam->v4l2_dev.ctrl_handler = &cam->ctrl_handler; in mccic_register()
1819 cam->sensor = v4l2_i2c_new_subdev_board(&cam->v4l2_dev, in mccic_register()
1836 cam->vdev.v4l2_dev = &cam->v4l2_dev; in mccic_register()
1860 v4l2_device_unregister(&cam->v4l2_dev); in mccic_register()
1882 v4l2_device_unregister(&cam->v4l2_dev); in mccic_shutdown()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-core.c819 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
892 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in saa7134_initdev()
1031 v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in saa7134_initdev()
1042 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, in saa7134_initdev()
1127 v4l2_device_unregister(&dev->v4l2_dev); in saa7134_initdev()
1135 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in saa7134_finidev() local
1136 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev); in saa7134_finidev()
1192 v4l2_device_unregister(&dev->v4l2_dev); in saa7134_finidev()
1227 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in saa7134_suspend() local
1228 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev); in saa7134_suspend()
[all …]
Dsaa7134-empress.c264 dev->empress_dev->v4l2_dev = &dev->v4l2_dev; in empress_init()
/linux-4.4.14/drivers/media/pci/zoran/
Dzoran.h273 struct v4l2_device v4l2_dev; member
392 static inline struct zoran *to_zoran(struct v4l2_device *v4l2_dev) in to_zoran() argument
394 return container_of(v4l2_dev, struct zoran, v4l2_dev); in to_zoran()
Dzoran_card.c715 i2c_set_adapdata(&zr->i2c_adapter, &zr->v4l2_dev); in zoran_register_i2c()
1053 zr->video_dev->v4l2_dev = &zr->v4l2_dev; in zr36057_init()
1086 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in zoran_remove() local
1087 struct zoran *zr = to_zoran(v4l2_dev); in zoran_remove()
1121 v4l2_device_unregister(&zr->v4l2_dev); in zoran_remove()
1179 struct zoran *zr = to_zoran(sd->v4l2_dev); in zoran_subdev_notify()
1218 zr->v4l2_dev.notify = zoran_subdev_notify; in zoran_probe()
1219 if (v4l2_device_register(&pdev->dev, &zr->v4l2_dev)) in zoran_probe()
1226 zr->v4l2_dev.ctrl_handler = &zr->hdl; in zoran_probe()
1343 zr->decoder = v4l2_i2c_new_subdev(&zr->v4l2_dev, in zoran_probe()
[all …]
/linux-4.4.14/drivers/media/usb/pwc/
Dpwc-if.c564 struct pwc_device *pdev = container_of(v, struct pwc_device, v4l2_dev); in pwc_video_release()
567 v4l2_device_unregister(&pdev->v4l2_dev); in pwc_video_release()
1076 pdev->v4l2_dev.release = pwc_video_release; in usb_pwc_probe()
1077 rc = v4l2_device_register(&intf->dev, &pdev->v4l2_dev); in usb_pwc_probe()
1083 pdev->v4l2_dev.ctrl_handler = &pdev->ctrl_handler; in usb_pwc_probe()
1084 pdev->vdev.v4l2_dev = &pdev->v4l2_dev; in usb_pwc_probe()
1125 v4l2_device_unregister(&pdev->v4l2_dev); in usb_pwc_probe()
1138 struct pwc_device *pdev = container_of(v, struct pwc_device, v4l2_dev); in usb_pwc_disconnect()
1147 v4l2_device_disconnect(&pdev->v4l2_dev); in usb_pwc_disconnect()
1157 v4l2_device_put(&pdev->v4l2_dev); in usb_pwc_disconnect()
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss.h88 struct v4l2_device v4l2_dev; member
125 container_of(dev, struct iss_device, v4l2_dev)
157 struct v4l2_device *v4l2_dev);
Diss.c1123 v4l2_device_unregister(&iss->v4l2_dev); in iss_unregister_entities()
1161 subdev = v4l2_i2c_new_subdev_board(&iss->v4l2_dev, adapter, in iss_register_subdev_group()
1194 iss->v4l2_dev.mdev = &iss->media_dev; in iss_register_entities()
1195 ret = v4l2_device_register(iss->dev, &iss->v4l2_dev); in iss_register_entities()
1203 ret = omap4iss_csi2_register_entities(&iss->csi2a, &iss->v4l2_dev); in iss_register_entities()
1207 ret = omap4iss_csi2_register_entities(&iss->csi2b, &iss->v4l2_dev); in iss_register_entities()
1211 ret = omap4iss_ipipeif_register_entities(&iss->ipipeif, &iss->v4l2_dev); in iss_register_entities()
1215 ret = omap4iss_ipipe_register_entities(&iss->ipipe, &iss->v4l2_dev); in iss_register_entities()
1219 ret = omap4iss_resizer_register_entities(&iss->resizer, &iss->v4l2_dev); in iss_register_entities()
1268 ret = v4l2_device_register_subdev_nodes(&iss->v4l2_dev); in iss_register_entities()
/linux-4.4.14/drivers/media/usb/gspca/
Dgspca.h29 v4l2_dbg(level, gspca_debug, &gspca_dev->v4l2_dev, fmt, ##__VA_ARGS__)
32 v4l2_err(&gspca_dev->v4l2_dev, fmt, ##__VA_ARGS__)
148 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-ir.c74 struct cx23885_dev *dev = to_cx23885(sd->v4l2_dev); in cx23885_ir_rx_v4l2_dev_notify()
99 struct cx23885_dev *dev = to_cx23885(sd->v4l2_dev); in cx23885_ir_tx_v4l2_dev_notify()
Dcx23885.h354 struct v4l2_device v4l2_dev; member
447 static inline struct cx23885_dev *to_cx23885(struct v4l2_device *v4l2_dev) in to_cx23885() argument
449 return container_of(v4l2_dev, struct cx23885_dev, v4l2_dev); in to_cx23885()
453 v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args)
459 v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args)
Dcx23885-core.c813 spin_lock(&dev->v4l2_dev.lock); in cx23885_find_hw()
814 v4l2_device_for_each_subdev(sd, &dev->v4l2_dev) { in cx23885_find_hw()
820 spin_unlock(&dev->v4l2_dev.lock); in cx23885_find_hw()
1823 dev = to_cx23885(sd->v4l2_dev); in cx23885_v4l2_dev_notify()
1842 dev->v4l2_dev.notify = cx23885_v4l2_dev_notify; in cx23885_v4l2_dev_notify_init()
1958 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in cx23885_initdev()
1968 dev->v4l2_dev.ctrl_handler = hdl; in cx23885_initdev()
2039 v4l2_device_unregister(&dev->v4l2_dev); in cx23885_initdev()
2047 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in cx23885_finidev() local
2048 struct cx23885_dev *dev = to_cx23885(v4l2_dev); in cx23885_finidev()
[all …]
Dcx23885-ioctl.c36 strlcpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name)); in cx23885_g_chip_info()
/linux-4.4.14/drivers/media/usb/msi2500/
Dmsi2500.c124 struct v4l2_device v4l2_dev; member
584 container_of(v, struct msi2500_dev, v4l2_dev); in msi2500_disconnect()
592 v4l2_device_disconnect(&dev->v4l2_dev); in msi2500_disconnect()
598 v4l2_device_put(&dev->v4l2_dev); in msi2500_disconnect()
1159 struct msi2500_dev *dev = container_of(v, struct msi2500_dev, v4l2_dev); in msi2500_video_release()
1162 v4l2_device_unregister(&dev->v4l2_dev); in msi2500_video_release()
1242 dev->v4l2_dev.release = msi2500_video_release; in msi2500_probe()
1243 ret = v4l2_device_register(&intf->dev, &dev->v4l2_dev); in msi2500_probe()
1268 sd = v4l2_spi_new_subdev(&dev->v4l2_dev, master, &board_info); in msi2500_probe()
1287 dev->v4l2_dev.ctrl_handler = &dev->hdl; in msi2500_probe()
[all …]
/linux-4.4.14/drivers/media/radio/wl128x/
Dfmdrv_v4l2.c538 strlcpy(fmdev->v4l2_dev.name, FM_DRV_NAME, sizeof(fmdev->v4l2_dev.name)); in fm_v4l2_init_video_device()
539 ret = v4l2_device_register(NULL, &fmdev->v4l2_dev); in fm_v4l2_init_video_device()
552 gradio_dev.v4l2_dev = &fmdev->v4l2_dev; in fm_v4l2_init_video_device()
614 v4l2_device_unregister(&fmdev->v4l2_dev); in fm_v4l2_deinit_video_device()
/linux-4.4.14/drivers/media/usb/airspy/
Dairspy.c115 struct v4l2_device v4l2_dev; member
473 struct airspy *s = container_of(v, struct airspy, v4l2_dev); in airspy_disconnect()
481 v4l2_device_disconnect(&s->v4l2_dev); in airspy_disconnect()
486 v4l2_device_put(&s->v4l2_dev); in airspy_disconnect()
873 struct airspy *s = container_of(v, struct airspy, v4l2_dev); in airspy_video_release()
876 v4l2_device_unregister(&s->v4l2_dev); in airspy_video_release()
1039 s->v4l2_dev.release = airspy_video_release; in airspy_probe()
1040 ret = v4l2_device_register(&intf->dev, &s->v4l2_dev); in airspy_probe()
1068 s->v4l2_dev.ctrl_handler = &s->hdl; in airspy_probe()
1069 s->vdev.v4l2_dev = &s->v4l2_dev; in airspy_probe()
[all …]
/linux-4.4.14/drivers/media/pci/dt3155/
Ddt3155.c525 err = v4l2_device_register(&pdev->dev, &pd->v4l2_dev); in dt3155_probe()
529 pd->vdev.v4l2_dev = &pd->v4l2_dev; in dt3155_probe()
595 v4l2_device_unregister(&pd->v4l2_dev); in dt3155_probe()
601 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in dt3155_remove() local
602 struct dt3155_priv *pd = container_of(v4l2_dev, struct dt3155_priv, in dt3155_remove()
603 v4l2_dev); in dt3155_remove()
608 v4l2_device_unregister(&pd->v4l2_dev); in dt3155_remove()
Ddt3155.h180 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/platform/omap3isp/
Disp.h176 struct v4l2_device v4l2_dev; member
235 container_of(dev, struct isp_device, v4l2_dev)
271 struct v4l2_device *v4l2_dev);
Disp.c1793 v4l2_device_unregister(&isp->v4l2_dev); in isp_unregister_entities()
1884 isp->v4l2_dev.mdev = &isp->media_dev; in isp_register_entities()
1885 ret = v4l2_device_register(isp->dev, &isp->v4l2_dev); in isp_register_entities()
1893 ret = omap3isp_ccp2_register_entities(&isp->isp_ccp2, &isp->v4l2_dev); in isp_register_entities()
1897 ret = omap3isp_csi2_register_entities(&isp->isp_csi2a, &isp->v4l2_dev); in isp_register_entities()
1901 ret = omap3isp_ccdc_register_entities(&isp->isp_ccdc, &isp->v4l2_dev); in isp_register_entities()
1906 &isp->v4l2_dev); in isp_register_entities()
1910 ret = omap3isp_resizer_register_entities(&isp->isp_res, &isp->v4l2_dev); in isp_register_entities()
1914 ret = omap3isp_stat_register_entities(&isp->isp_aewb, &isp->v4l2_dev); in isp_register_entities()
1918 ret = omap3isp_stat_register_entities(&isp->isp_af, &isp->v4l2_dev); in isp_register_entities()
[all …]
/linux-4.4.14/drivers/media/platform/soc_camera/
Dsoc_camera.c1197 icd->parent = ici->v4l2_dev.dev; in scan_add_host()
1403 subdev = v4l2_i2c_new_subdev_board(&ici->v4l2_dev, adap, in soc_camera_i2c_init()
1542 dev_err(ici->v4l2_dev.dev, "No I2C data source found!\n"); in scan_async_group()
1547 sasc = devm_kzalloc(ici->v4l2_dev.dev, sizeof(*sasc), GFP_KERNEL); in scan_async_group()
1573 icd->parent = ici->v4l2_dev.dev; in scan_async_group()
1584 ret = v4l2_async_notifier_register(&ici->v4l2_dev, &sasc->notifier); in scan_async_group()
1595 devm_kfree(ici->v4l2_dev.dev, sasc); in scan_async_group()
1596 dev_err(ici->v4l2_dev.dev, "group probe failed: %d\n", ret); in scan_async_group()
1638 info = devm_kzalloc(ici->v4l2_dev.dev, sizeof(struct soc_of_info), in soc_of_bind()
1672 icd->parent = ici->v4l2_dev.dev; in soc_of_bind()
[all …]
Dpxa_camera.c280 dma_free_coherent(ici->v4l2_dev.dev, in free_buffer()
336 struct device *dev = pcdev->soc_host.v4l2_dev.dev; in pxa_init_dma_channel()
430 struct device *dev = pcdev->soc_host.v4l2_dev.dev; in pxa_videobuf_prepare()
555 dev_dbg(pcdev->soc_host.v4l2_dev.dev, in pxa_dma_start_channels()
568 dev_dbg(pcdev->soc_host.v4l2_dev.dev, in pxa_dma_stop_channels()
605 dev_dbg(pcdev->soc_host.v4l2_dev.dev, "%s\n", __func__); in pxa_camera_start_capture()
622 dev_dbg(pcdev->soc_host.v4l2_dev.dev, "%s\n", __func__); in pxa_camera_stop_capture()
688 dev_dbg(pcdev->soc_host.v4l2_dev.dev, "%s dequeud buffer (vb=0x%p)\n", in pxa_camera_wakeup()
725 dev_dbg(pcdev->soc_host.v4l2_dev.dev, in pxa_camera_check_link_miss()
735 struct device *dev = pcdev->soc_host.v4l2_dev.dev; in pxa_camera_dma_irq()
[all …]
Dsoc_scale_crop.c101 struct device *dev = sd->v4l2_dev->dev; in soc_camera_client_s_crop()
228 ret = v4l2_device_call_until_err(sd->v4l2_dev, in client_set_fmt()
268 ret = v4l2_device_call_until_err(sd->v4l2_dev, in client_set_fmt()
Dsh_mobile_ceu_camera.c196 dev_warn(pcdev->ici.v4l2_dev.dev, "soft reset time out\n"); in sh_mobile_ceu_soft_reset()
559 v4l2_device_for_each_subdev(sd, &pcdev->ici.v4l2_dev) in find_csi2()
625 pm_runtime_get_sync(ici->v4l2_dev.dev); in sh_mobile_ceu_clock_start()
652 pm_runtime_put(ici->v4l2_dev.dev); in sh_mobile_ceu_clock_stop()
777 dev_err(pcdev->ici.v4l2_dev.dev, in capture_restore()
1124 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_get_formats()
1299 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_set_crop()
1551 ret = v4l2_device_call_until_err(sd->v4l2_dev, soc_camera_grp_id(icd), in sh_mobile_ceu_try_fmt()
1576 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_try_fmt()
1846 pcdev->ici.v4l2_dev.dev = &pdev->dev; in sh_mobile_ceu_probe()
[all …]
Datmel-isi.c401 pm_runtime_get_sync(ici->v4l2_dev.dev); in start_streaming()
407 pm_runtime_put(ici->v4l2_dev.dev); in start_streaming()
465 pm_runtime_put(ici->v4l2_dev.dev); in stop_streaming()
853 pm_runtime_get_sync(ici->v4l2_dev.dev); in isi_camera_set_bus_param()
858 pm_runtime_put(ici->v4l2_dev.dev); in isi_camera_set_bus_param()
1023 soc_host->v4l2_dev.dev = &pdev->dev; in atmel_isi_probe()
Drcar_vin.c959 pm_runtime_get_sync(ici->v4l2_dev.dev); in rcar_vin_add_device()
993 pm_runtime_put(ici->v4l2_dev.dev); in rcar_vin_remove_device()
1164 dev_err(priv->ici.v4l2_dev.dev, in capture_restore()
1396 ret = v4l2_device_call_until_err(sd->v4l2_dev, in rcar_vin_get_formats()
1747 ret = v4l2_device_call_until_err(sd->v4l2_dev, soc_camera_grp_id(icd), in rcar_vin_try_fmt()
1772 ret = v4l2_device_call_until_err(sd->v4l2_dev, in rcar_vin_try_fmt()
1941 priv->ici.v4l2_dev.dev = &pdev->dev; in rcar_vin_probe()
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821.h239 struct v4l2_device v4l2_dev; member
308 static inline struct cx25821_dev *get_cx25821(struct v4l2_device *v4l2_dev) in get_cx25821() argument
310 return container_of(v4l2_dev, struct cx25821_dev, v4l2_dev); in get_cx25821()
Dcx25821-alsa.c791 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in cx25821_alsa_exit_callback() local
792 struct cx25821_dev *cxdev = get_cx25821(v4l2_dev); in cx25821_alsa_exit_callback()
810 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in cx25821_alsa_init_callback() local
811 struct cx25821_dev *cxdev = get_cx25821(v4l2_dev); in cx25821_alsa_init_callback()
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-i2c.c236 struct v4l2_device *v4l2_dev = i2c_get_adapdata(i2c_adap); in bttv_i2c_xfer() local
237 struct bttv *btv = to_bttv(v4l2_dev); in bttv_i2c_xfer()
381 i2c_set_adapdata(&btv->c.i2c_adap, &btv->c.v4l2_dev); in init_bttv_i2c()
393 do_i2c_scan(btv->c.v4l2_dev.name, &btv->i2c_client); in init_bttv_i2c()
Dbttv.h205 struct v4l2_device v4l2_dev; member
366 v4l2_device_call_all(&btv->c.v4l2_dev, 0, o, f, ##args)
369 v4l2_device_call_until_err(&btv->c.v4l2_dev, 0, o, f, ##args)
Dbttvp.h510 static inline struct bttv *to_bttv(struct v4l2_device *v4l2_dev) in to_bttv() argument
512 return container_of(v4l2_dev, struct bttv, c.v4l2_dev); in to_bttv()
Dbttv-driver.c1905 v4l2_ctrl_handler_log_status(vdev->ctrl_handler, btv->c.v4l2_dev.name); in bttv_log_status()
3422 btv->c.v4l2_dev.name, risc->cpu, (unsigned long)risc->dma); in bttv_risc_disasm()
3425 btv->c.v4l2_dev.name, in bttv_risc_disasm()
3430 btv->c.v4l2_dev.name, in bttv_risc_disasm()
3926 vfd->v4l2_dev = &btv->c.v4l2_dev; in vdev_init()
4030 snprintf(btv->c.v4l2_dev.name, sizeof(btv->c.v4l2_dev.name), in bttv_probe()
4064 btv->c.v4l2_dev.name)) { in bttv_probe()
4073 result = v4l2_device_register(&dev->dev, &btv->c.v4l2_dev); in bttv_probe()
4080 btv->c.v4l2_dev.ctrl_handler = hdl; in bttv_probe()
4104 IRQF_SHARED, btv->c.v4l2_dev.name, (void *)btv); in bttv_probe()
[all …]
/linux-4.4.14/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c1163 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in s5p_mfc_probe()
1171 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in s5p_mfc_probe()
1179 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1185 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in s5p_mfc_probe()
1189 v4l2_info(&dev->v4l2_dev, in s5p_mfc_probe()
1196 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in s5p_mfc_probe()
1204 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1210 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in s5p_mfc_probe()
1214 v4l2_info(&dev->v4l2_dev, in s5p_mfc_probe()
1243 v4l2_device_unregister(&dev->v4l2_dev); in s5p_mfc_probe()
[all …]
/linux-4.4.14/drivers/media/i2c/
Dbt819.c255 if (sd->v4l2_dev == NULL || sd->v4l2_dev->notify == NULL) in bt819_s_std()
307 if (sd->v4l2_dev == NULL || sd->v4l2_dev->notify == NULL) in bt819_s_routing()
/linux-4.4.14/drivers/media/usb/zr364xx/
Dzr364xx.c175 struct v4l2_device v4l2_dev; member
1211 static void zr364xx_release(struct v4l2_device *v4l2_dev) in zr364xx_release() argument
1214 container_of(v4l2_dev, struct zr364xx_camera, v4l2_dev); in zr364xx_release()
1217 v4l2_device_unregister(&cam->v4l2_dev); in zr364xx_release()
1432 cam->v4l2_dev.release = zr364xx_release; in zr364xx_probe()
1433 err = v4l2_device_register(&intf->dev, &cam->v4l2_dev); in zr364xx_probe()
1453 cam->vdev.v4l2_dev = &cam->v4l2_dev; in zr364xx_probe()
1557 v4l2_device_unregister(&cam->v4l2_dev); in zr364xx_probe()
1571 v4l2_device_disconnect(&cam->v4l2_dev); in zr364xx_disconnect()
1579 v4l2_device_put(&cam->v4l2_dev); in zr364xx_disconnect()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88.h364 struct v4l2_device v4l2_dev; member
420 static inline struct cx88_core *to_core(struct v4l2_device *v4l2_dev) in to_core() argument
422 return container_of(v4l2_dev, struct cx88_core, v4l2_dev); in to_core()
430 v4l2_device_call_all(&core->v4l2_dev, grpid, o, f, ##args); \
Dcx88-i2c.c150 i2c_set_adapdata(&core->i2c_adap, &core->v4l2_dev); in cx88_i2c_init()
/linux-4.4.14/drivers/media/pci/saa7146/
Dmxb.c182 v4l2_device_call_until_err(&dev->v4l2_dev, 0, o, f, ##args)
255 mxb->saa7111a = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe()
257 mxb->tea6420_1 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe()
259 mxb->tea6420_2 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe()
261 mxb->tea6415c = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe()
263 mxb->tda9840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe()
265 mxb->tuner = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe()
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-vipp.h37 struct v4l2_device v4l2_dev; member
Dxilinx-vipp.c310 ret = v4l2_device_register_subdev_nodes(&xdev->v4l2_dev); in xvip_graph_notify_complete()
551 ret = v4l2_async_notifier_register(&xdev->v4l2_dev, &xdev->notifier); in xvip_graph_init()
572 v4l2_device_unregister(&xdev->v4l2_dev); in xvip_composite_v4l2_cleanup()
592 xdev->v4l2_dev.mdev = &xdev->media_dev; in xvip_composite_v4l2_init()
593 ret = v4l2_device_register(xdev->dev, &xdev->v4l2_dev); in xvip_composite_v4l2_init()
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-cards.c907 v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in tm6000_config_tuner()
927 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_type_addr, &tun_setup); in tm6000_config_tuner()
957 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_config, in tm6000_config_tuner()
974 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_config, in tm6000_config_tuner()
1021 return v4l2_device_register(&dev->udev->dev, &dev->v4l2_dev); in fill_board_specific_data()
1123 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->norm); in tm6000_init_dev()
1130 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); in tm6000_init_dev()
1133 v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in tm6000_init_dev()
1389 v4l2_device_unregister(&dev->v4l2_dev); in tm6000_usb_disconnect()
Dtm6000-video.c1071 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->norm); in vidioc_s_std()
1216 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in vidioc_g_tuner()
1240 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in vidioc_s_tuner()
1258 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_frequency, f); in vidioc_g_frequency()
1275 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, f); in vidioc_s_frequency()
1296 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in radio_g_tuner()
1309 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in radio_s_tuner()
1395 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_radio); in __tm6000_open()
1617 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_video.c56 ret = v4l2_device_register_subdev(&mdev->v4l2_dev, sd); in find_and_register_subdev()
70 struct v4l2_device *v4l2_dev = &mdev->v4l2_dev; in mxr_acquire_video() local
75 strlcpy(v4l2_dev->name, dev_name(mdev->dev), sizeof(v4l2_dev->name)); in mxr_acquire_video()
77 ret = v4l2_device_register(dev, v4l2_dev); in mxr_acquire_video()
140 v4l2_device_unregister(v4l2_dev); in mxr_acquire_video()
155 v4l2_device_unregister(&mdev->v4l2_dev); in mxr_release_video()
1102 layer->vfd.v4l2_dev = &mdev->v4l2_dev; in mxr_base_layer_create()
Dhdmi_drv.c84 struct v4l2_device v4l2_dev; member
945 strlcpy(hdmi_dev->v4l2_dev.name, dev_name(dev), in hdmi_probe()
946 sizeof(hdmi_dev->v4l2_dev.name)); in hdmi_probe()
948 ret = v4l2_device_register(NULL, &hdmi_dev->v4l2_dev); in hdmi_probe()
968 hdmi_dev->phy_sd = v4l2_i2c_new_subdev_board(&hdmi_dev->v4l2_dev, in hdmi_probe()
988 &hdmi_dev->v4l2_dev, adapter, in hdmi_probe()
1023 v4l2_device_unregister(&hdmi_dev->v4l2_dev); in hdmi_probe()
1041 v4l2_device_unregister(&hdmi_dev->v4l2_dev); in hdmi_remove()
Dmixer.h247 struct v4l2_device v4l2_dev; member
274 return container_of(vdev, struct mxr_device, v4l2_dev); in to_mdev()
/linux-4.4.14/include/media/davinci/
Dvpbe_venc.h47 struct v4l2_subdev *venc_sub_dev_init(struct v4l2_device *v4l2_dev,
Dvpfe_capture.h111 struct v4l2_device v4l2_dev; member
Dvpbe.h164 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c124 struct v4l2_device v4l2_dev; member
718 struct hackrf_dev *dev = container_of(v, struct hackrf_dev, v4l2_dev); in hackrf_disconnect()
726 v4l2_device_disconnect(&dev->v4l2_dev); in hackrf_disconnect()
732 v4l2_device_put(&dev->v4l2_dev); in hackrf_disconnect()
1276 struct hackrf_dev *dev = container_of(v, struct hackrf_dev, v4l2_dev); in hackrf_video_release()
1282 v4l2_device_unregister(&dev->v4l2_dev); in hackrf_video_release()
1488 dev->v4l2_dev.release = hackrf_video_release; in hackrf_probe()
1489 ret = v4l2_device_register(&intf->dev, &dev->v4l2_dev); in hackrf_probe()
1499 dev->rx_vdev.v4l2_dev = &dev->v4l2_dev; in hackrf_probe()
1517 dev->tx_vdev.v4l2_dev = &dev->v4l2_dev; in hackrf_probe()
[all …]
/linux-4.4.14/drivers/media/usb/s2255/
Ds2255drv.c262 struct v4l2_device v4l2_dev; member
283 static inline struct s2255_dev *to_s2255_dev(struct v4l2_device *v4l2_dev) in to_s2255_dev() argument
285 return container_of(v4l2_dev, struct s2255_dev, v4l2_dev); in to_s2255_dev()
369 v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ## arg)
565 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_got_frame()
1021 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_set_mode()
1070 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_cmd_status()
1538 v4l2_device_unregister(&dev->v4l2_dev); in s2255_destroy()
1583 struct s2255_dev *dev = to_s2255_dev(vdev->v4l2_dev); in s2255_video_device_release()
1627 ret = v4l2_device_register(&dev->interface->dev, &dev->v4l2_dev); in s2255_probe_v4l()
[all …]
/linux-4.4.14/drivers/media/platform/am437x/
Dam437x-vpfe.c51 v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ##arg)
53 v4l2_info(&dev->v4l2_dev, fmt, ##arg)
55 v4l2_err(&dev->v4l2_dev, fmt, ##arg)
1413 "platform:%s", vpfe->v4l2_dev.name); in vpfe_querycap()
1445 ret = v4l2_device_call_until_err(&vpfe->v4l2_dev, in __vpfe_get_format()
1795 vpfe->v4l2_dev.ctrl_handler = sdinfo->sd->ctrl_handler; in vpfe_set_input()
1834 return v4l2_device_call_until_err(&vpfe->v4l2_dev, sdinfo->grp_id, in vpfe_querystd()
1857 ret = v4l2_device_call_until_err(&vpfe->v4l2_dev, sdinfo->grp_id, in vpfe_s_std()
2296 struct vpfe_device *vpfe = container_of(notifier->v4l2_dev, in vpfe_async_bound()
2297 struct vpfe_device, v4l2_dev); in vpfe_async_bound()
[all …]
Dam437x-vpfe.h232 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/common/saa7146/
Dsaa7146_i2c.c386 struct v4l2_device *v4l2_dev = i2c_get_adapdata(adapter); in saa7146_i2c_xfer() local
387 struct saa7146_dev *dev = to_saa7146_dev(v4l2_dev); in saa7146_i2c_xfer()
414 i2c_set_adapdata(i2c_adapter, &dev->v4l2_dev); in saa7146_i2c_adapter_prepare()
Dsaa7146_fops.c475 err = v4l2_device_register(&dev->pci->dev, &dev->v4l2_dev); in saa7146_vv_init()
495 dev->v4l2_dev.ctrl_handler = hdl; in saa7146_vv_init()
579 v4l2_device_unregister(&dev->v4l2_dev); in saa7146_vv_release()
605 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device()
Dsaa7146_core.c477 pci_set_drvdata(pci, &dev->v4l2_dev); in saa7146_init_one()
509 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in saa7146_remove_one() local
510 struct saa7146_dev *dev = to_saa7146_dev(v4l2_dev); in saa7146_remove_one()
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-core.c161 v4l2_device_unregister(&solo_dev->v4l2_dev); in free_solo_dev()
473 ret = v4l2_device_register(&pdev->dev, &solo_dev->v4l2_dev); in solo_pci_probe()
642 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in solo_pci_remove() local
643 struct solo_dev *solo_dev = container_of(v4l2_dev, struct solo_dev, v4l2_dev); in solo_pci_remove()
/linux-4.4.14/drivers/media/platform/ti-vpe/
Dvpe.c85 dev_dbg((vpedev)->v4l2_dev.dev, fmt, ##arg)
87 dev_err((vpedev)->v4l2_dev.dev, fmt, ##arg)
352 struct v4l2_device v4l2_dev; member
528 struct device *dev = ctx->dev->v4l2_dev.dev; in realloc_mv_buffers()
1211 dev_warn(ctx->dev->v4l2_dev.dev, in dei_error()
1217 dev_warn(ctx->dev->v4l2_dev.dev, in ds1_uv_error()
1267 dev_warn(dev->v4l2_dev.dev, "Unexpected interrupt: " in vpe_irq()
2155 vfd->v4l2_dev = &dev->v4l2_dev; in vpe_fw_cb()
2166 v4l2_device_unregister(&dev->v4l2_dev); in vpe_fw_cb()
2173 dev_info(dev->v4l2_dev.dev, "Device registered as /dev/video%d\n", in vpe_fw_cb()
[all …]
/linux-4.4.14/drivers/media/platform/s5p-jpeg/
Djpeg-core.c1478 v4l2_err(&ctx->jpeg->v4l2_dev, in s5p_jpeg_try_fmt_vid_cap()
1535 v4l2_err(&ctx->jpeg->v4l2_dev, in s5p_jpeg_try_fmt_vid_out()
1590 v4l2_err(&ct->jpeg->v4l2_dev, "%s queue busy\n", __func__); in s5p_jpeg_s_fmt()
2828 ret = v4l2_device_register(&pdev->dev, &jpeg->v4l2_dev); in s5p_jpeg_probe()
2837 v4l2_err(&jpeg->v4l2_dev, "Failed to init mem2mem device\n"); in s5p_jpeg_probe()
2844 v4l2_err(&jpeg->v4l2_dev, "Failed to init memory allocator\n"); in s5p_jpeg_probe()
2852 v4l2_err(&jpeg->v4l2_dev, "Failed to allocate video device\n"); in s5p_jpeg_probe()
2863 jpeg->vfd_encoder->v4l2_dev = &jpeg->v4l2_dev; in s5p_jpeg_probe()
2868 v4l2_err(&jpeg->v4l2_dev, "Failed to register video device\n"); in s5p_jpeg_probe()
2874 v4l2_info(&jpeg->v4l2_dev, in s5p_jpeg_probe()
[all …]
Djpeg-core.h123 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_drv.c128 v4l2_device_unregister(&vsp1->v4l2_dev); in vsp1_destroy_entities()
135 struct v4l2_device *vdev = &vsp1->v4l2_dev; in vsp1_create_entities()
274 ret = v4l2_device_register_subdev(&vsp1->v4l2_dev, in vsp1_create_entities()
280 ret = v4l2_device_register_subdev_nodes(&vsp1->v4l2_dev); in vsp1_create_entities()
Dvsp1.h75 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/dvb-frontends/
Drtl2832_sdr.c124 struct v4l2_device v4l2_dev; member
1355 container_of(v, struct rtl2832_sdr_dev, v4l2_dev); in rtl2832_sdr_video_release()
1361 v4l2_device_unregister(&dev->v4l2_dev); in rtl2832_sdr_video_release()
1484 dev->v4l2_dev.release = rtl2832_sdr_video_release; in rtl2832_sdr_probe()
1485 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in rtl2832_sdr_probe()
1491 dev->v4l2_dev.ctrl_handler = &dev->hdl; in rtl2832_sdr_probe()
1492 dev->vdev.v4l2_dev = &dev->v4l2_dev; in rtl2832_sdr_probe()
1510 v4l2_device_unregister(&dev->v4l2_dev); in rtl2832_sdr_probe()
1531 v4l2_device_disconnect(&dev->v4l2_dev); in rtl2832_sdr_remove()
1535 v4l2_device_put(&dev->v4l2_dev); in rtl2832_sdr_remove()
/linux-4.4.14/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.c1684 v4l2_device_call_all(&hdw->v4l2_dev, 0, video, s_stream, enablefl); in pvr2_decoder_enable()
1685 v4l2_device_call_all(&hdw->v4l2_dev, 0, audio, s_stream, enablefl); in pvr2_decoder_enable()
1990 v4l2_device_call_all(&hdw->v4l2_dev, hdw->decoder_client_id, in pvr2_hdw_cx25840_vbi_hack()
2050 sd = v4l2_i2c_new_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, in pvr2_hdw_load_subdev()
2057 sd = v4l2_i2c_new_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, in pvr2_hdw_load_subdev()
2175 v4l2_device_call_all(&hdw->v4l2_dev, 0, core, load_fw); in pvr2_hdw_setup_low()
2600 if (v4l2_device_register(&intf->dev, &hdw->v4l2_dev) != 0) { in pvr2_hdw_create()
2699 v4l2_device_disconnect(&hdw->v4l2_dev); in pvr2_hdw_remove_usb_stuff()
2707 vdev->v4l2_dev = &hdw->v4l2_dev; in pvr2_hdw_set_v4l2_dev()
2733 v4l2_device_unregister(&hdw->v4l2_dev); in pvr2_hdw_destroy()
[all …]
/linux-4.4.14/drivers/usb/gadget/function/
Df_uvc.c423 uvc->vdev.v4l2_dev = &uvc->v4l2_dev; in uvc_register_video()
717 if (v4l2_device_register(&cdev->gadget->dev, &uvc->v4l2_dev)) { in uvc_function_bind()
737 v4l2_device_unregister(&uvc->v4l2_dev); in uvc_function_bind()
864 v4l2_device_unregister(&uvc->v4l2_dev); in uvc_unbind()
Duvc.h147 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/platform/sti/bdisp/
Dbdisp.h187 struct v4l2_device v4l2_dev; member
/linux-4.4.14/drivers/media/usb/cpia2/
Dcpia2_v4l.c1090 void cpia2_camera_release(struct v4l2_device *v4l2_dev) in cpia2_camera_release() argument
1093 container_of(v4l2_dev, struct camera_data, v4l2_dev); in cpia2_camera_release()
1096 v4l2_device_unregister(&cam->v4l2_dev); in cpia2_camera_release()
1171 cam->vdev.v4l2_dev = &cam->v4l2_dev; in cpia2_register_camera()
Dcpia2.h369 struct v4l2_device v4l2_dev; member
426 void cpia2_camera_release(struct v4l2_device *v4l2_dev);
/linux-4.4.14/drivers/media/usb/stkwebcam/
Dstk-webcam.h95 struct v4l2_device v4l2_dev; member

12