Home
last modified time | relevance | path

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

12

/linux-4.1.27/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.c108 ret = v4l2_device_register_subdev(notifier->v4l2_dev, sd); in v4l2_async_test_notify()
130 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev, in v4l2_async_notifier_register() argument
140 notifier->v4l2_dev = v4l2_dev; in v4l2_async_notifier_register()
154 dev_err(notifier->v4l2_dev ? notifier->v4l2_dev->dev : NULL, in v4l2_async_notifier_register()
195 if (!notifier->v4l2_dev) in v4l2_async_notifier_unregister()
200 dev_err(notifier->v4l2_dev->dev, in v4l2_async_notifier_unregister()
256 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()
767 if (WARN_ON(!vdev->v4l2_dev)) in __video_register_device()
801 vdev->dev_parent = vdev->v4l2_dev->dev; in __video_register_device()
803 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.1.27/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.h79 struct v4l2_device *v4l2_dev; member
92 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.1.27/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.1.27/drivers/media/pci/ivtv/
Divtv-alsa-main.c65 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) in to_snd_ivtv_card() argument
67 return to_ivtv(v4l2_dev)->alsa; in to_snd_ivtv_card()
71 struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev) in p_to_snd_ivtv_card() argument
73 return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev); in p_to_snd_ivtv_card()
81 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
82 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
98 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument
106 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
117 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
135 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, \
844 __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.c1247 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtvfb_callback_init() local
1248 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); in ivtvfb_callback_init()
1253 itv->v4l2_dev.name); in ivtvfb_callback_init()
1262 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtvfb_callback_cleanup() local
1263 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); in ivtvfb_callback_cleanup()
Divtv-gpio.c364 snprintf(itv->sd_gpio.name, sizeof(itv->sd_gpio.name), "%s-gpio", itv->v4l2_dev.name); in ivtv_gpio_init()
373 return v4l2_device_register_subdev(&itv->v4l2_dev, &itv->sd_gpio); in ivtv_gpio_init()
/linux-4.1.27/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()
144 tr->v4l2_dev.ctrl_handler = tr->sd_dsp->ctrl_handler; in timbradio_probe()
158 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_probe()
170 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.1.27/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()
400 v4l2_err(&vpfe_dev->v4l2_dev, "standard not supported\n"); in vpfe_config_image_format()
427 ret = v4l2_device_call_until_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format()
431 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format()
470 v4l2_err(&vpfe_dev->v4l2_dev, "ccdc device not registered\n"); in vpfe_initialize_device()
476 v4l2_err(&vpfe_dev->v4l2_dev, "Couldn't lock ccdc module\n"); in vpfe_initialize_device()
503 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_open\n"); in vpfe_open()
506 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()
215 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_prepare()
224 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_buffer_prepare()
245 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_buffer_setup\n"); in vpbe_buffer_queue_setup()
275 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_queue()
401 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params()
415 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params()
527 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_calculate_scale_factor()
544 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_adj_position()
664 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)
707 ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, video, in vpif_s_std()
714 ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, video, in vpif_s_std()
1044 v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status); in vpif_log_status()
1212 vdev->v4l2_dev = &vpif_obj.v4l2_dev; in vpif_probe_complete()
1261 err = v4l2_device_register(vpif_dev, &vpif_obj.v4l2_dev); in vpif_probe()
1295 v4l2_i2c_new_subdev_board(&vpif_obj.v4l2_dev, in vpif_probe()
1315 err = v4l2_async_notifier_register(&vpif_obj.v4l2_dev, in vpif_probe()
1329 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)
1241 v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status); in vpif_log_status()
1392 vdev->v4l2_dev = &vpif_obj.v4l2_dev; in vpif_probe_complete()
1403 v4l2_info(&vpif_obj.v4l2_dev, "VPIF capture driver initialized\n"); in vpif_probe_complete()
1416 v4l2_device_unregister(&vpif_obj.v4l2_dev); in vpif_probe_complete()
1450 err = v4l2_device_register(vpif_dev, &vpif_obj.v4l2_dev); in vpif_probe()
1484 v4l2_i2c_new_subdev_board(&vpif_obj.v4l2_dev, in vpif_probe()
1495 v4l2_info(&vpif_obj.v4l2_dev, in vpif_probe()
1505 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.1.27/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.1.27/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.1.27/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c511 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_release\n"); in vpfe_release()
556 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_mmap\n"); in vpfe_mmap()
568 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_poll\n"); in vpfe_poll()
600 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_querycap\n"); in vpfe_querycap()
631 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_g_fmt\n"); in vpfe_g_fmt()
660 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_enum_fmt\n"); in vpfe_enum_fmt()
665 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid index\n"); in vpfe_enum_fmt()
671 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
678 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
687 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.1.27/drivers/media/platform/
Dsh_vou.c64 struct v4l2_device v4l2_dev; member
257 dev_dbg(vou_dev->v4l2_dev.dev, "%s(): count=%d, size=%d\n", __func__, in sh_vou_buf_setup()
274 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_buf_prepare()
304 dev_dbg(vou_dev->v4l2_dev.dev, in sh_vou_buf_prepare()
320 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_buf_queue()
331 dev_dbg(vou_dev->v4l2_dev.dev, "%s: first buffer status 0x%x\n", in sh_vou_buf_queue()
342 dev_dbg(vou_dev->v4l2_dev.dev, "%s: second buffer status 0x%x\n", in sh_vou_buf_queue()
361 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_buf_release()
396 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_querycap()
413 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_enum_fmt_vid_out()
[all …]
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 …]
Dm2m-deinterlace.c41 v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg)
129 struct v4l2_device v4l2_dev; member
249 v4l2_err(&pcdev->v4l2_dev, in deinterlace_issue_dma()
351 v4l2_warn(&pcdev->v4l2_dev, "DMA interleaved prep error\n"); in deinterlace_issue_dma()
362 v4l2_warn(&pcdev->v4l2_dev, in deinterlace_issue_dma()
623 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt()
629 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_s_fmt()
728 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon()
738 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon()
747 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()
920 ret = v4l2_device_register(&pdev->dev, &pcdev->v4l2_dev); in emmaprp_probe()
928 v4l2_err(&pcdev->v4l2_dev, "Failed to allocate video device\n"); in emmaprp_probe()
935 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
940 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)
144 struct v4l2_device v4l2_dev; member
222 v4l2_err(&dev->v4l2_dev, in device_process()
228 v4l2_err(&dev->v4l2_dev, "Output buffer is too small\n"); in device_process()
550 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_cap()
572 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_out()
597 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt()
671 v4l2_err(&ctx->dev->v4l2_dev, "Invalid control\n"); in vim2m_s_ctrl()
992 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in vim2m_probe()
1002 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe()
[all …]
Dfsl-viu.c158 struct v4l2_device v4l2_dev; member
1537 snprintf(viu_dev->v4l2_dev.name, in viu_of_probe()
1538 sizeof(viu_dev->v4l2_dev.name), "%s", "VIU"); in viu_of_probe()
1539 ret = v4l2_device_register(viu_dev->dev, &viu_dev->v4l2_dev); in viu_of_probe()
1546 viu_dev->decoder = v4l2_i2c_new_subdev(&viu_dev->v4l2_dev, ad, in viu_of_probe()
1564 vdev->v4l2_dev = &viu_dev->v4l2_dev; in viu_of_probe()
1619 v4l2_device_unregister(&viu_dev->v4l2_dev); in viu_of_probe()
1627 struct v4l2_device *v4l2_dev = dev_get_drvdata(&op->dev); in viu_of_remove() local
1628 struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); in viu_of_remove()
1629 struct v4l2_subdev *sdev = list_entry(v4l2_dev->subdevs.next, 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()
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()
1146 ret = v4l2_device_register(&pdev->dev, &veu->v4l2_dev); in sh_veu_probe()
1161 vdev->v4l2_dev = &veu->v4l2_dev; in sh_veu_probe()
1175 v4l2_err(&veu->v4l2_dev, "Failed to init mem2mem device: %d\n", ret); in sh_veu_probe()
1195 v4l2_device_unregister(&veu->v4l2_dev); in sh_veu_probe()
1201 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in sh_veu_remove() local
1202 struct sh_veu_dev *veu = container_of(v4l2_dev, in sh_veu_remove()
1203 struct sh_veu_dev, v4l2_dev); in sh_veu_remove()
1209 v4l2_device_unregister(&veu->v4l2_dev); in sh_veu_remove()
Dvia-camera.c58 struct v4l2_device v4l2_dev; member
1370 ret = v4l2_device_register(&pdev->dev, &cam->v4l2_dev); in viacam_probe()
1378 cam->v4l2_dev.ctrl_handler = &cam->ctrl_handler; in viacam_probe()
1403 cam->sensor = v4l2_i2c_new_subdev_board(&cam->v4l2_dev, sensor_adapter, in viacam_probe()
1422 cam->vdev.v4l2_dev = &cam->v4l2_dev; in viacam_probe()
1447 v4l2_device_unregister(&cam->v4l2_dev); in viacam_probe()
1459 v4l2_device_unregister(&cam->v4l2_dev); in viacam_remove()
/linux-4.1.27/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()
370 v4l2_device_call_all(&dev->v4l2_dev, 0, core, reset, 0); in stk1160_probe()
371 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_probe()
[all …]
Dstk1160-v4l.c195 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 1); in stk1160_start_streaming()
235 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_stop_hw()
366 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd()
410 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, in vidioc_s_std()
681 dev->vdev.v4l2_dev = &dev->v4l2_dev; in stk1160_video_register()
692 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, in stk1160_video_register()
702 v4l2_info(&dev->v4l2_dev, "V4L2 device registered as %s\n", in stk1160_video_register()
Dstk1160.h120 struct v4l2_device v4l2_dev; member
/linux-4.1.27/drivers/media/pci/tw68/
Dtw68-core.c230 dev->instance = v4l2_device_set_name(&dev->v4l2_dev, "tw68", in tw68_initdev()
233 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in tw68_initdev()
244 dev->name = dev->v4l2_dev.name; in tw68_initdev()
352 v4l2_device_unregister(&dev->v4l2_dev); in tw68_initdev()
358 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in tw68_finidev() local
360 container_of(v4l2_dev, struct tw68_dev, v4l2_dev); in tw68_finidev()
376 v4l2_device_unregister(&dev->v4l2_dev); in tw68_finidev()
383 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in tw68_suspend() local
384 struct tw68_dev *dev = container_of(v4l2_dev, in tw68_suspend()
385 struct tw68_dev, v4l2_dev); in tw68_suspend()
[all …]
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-core.c208 "platform:%s", dev->v4l2_dev.name); in vidioc_querycap()
461 v4l2_info(&dev->v4l2_dev, "reconnect\n"); in vivid_fop_release()
622 static void vivid_dev_release(struct v4l2_device *v4l2_dev) in vivid_dev_release() argument
624 struct vivid_dev *dev = container_of(v4l2_dev, struct vivid_dev, v4l2_dev); in vivid_dev_release()
627 v4l2_device_unregister(&dev->v4l2_dev); in vivid_dev_release()
664 snprintf(dev->v4l2_dev.name, sizeof(dev->v4l2_dev.name), in vivid_create_instance()
666 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in vivid_create_instance()
671 dev->v4l2_dev.release = vivid_dev_release; in vivid_create_instance()
677 v4l2_info(&dev->v4l2_dev, "using %splanar format API\n", in vivid_create_instance()
753 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
Dvivid-sdr-cap.c253 "%s-sdr-cap", dev->v4l2_dev.name); in sdr_cap_start_streaming()
256 v4l2_err(&dev->v4l2_dev, "kernel_thread() failed\n"); in sdr_cap_start_streaming()
/linux-4.1.27/drivers/media/platform/blackfin/
Dbfin_capture.c63 struct v4l2_device v4l2_dev; member
225 v4l2_err(&bcap_dev->v4l2_dev, "buffer too small (%lu < %lu)\n", in bcap_buffer_prepare()
270 v4l2_err(&bcap_dev->v4l2_dev, "stream on failed in subdev\n"); in bcap_start_streaming()
308 v4l2_err(&bcap_dev->v4l2_dev, in bcap_start_streaming()
316 v4l2_err(&bcap_dev->v4l2_dev, in bcap_start_streaming()
360 v4l2_err(&bcap_dev->v4l2_dev, in bcap_stop_streaming()
584 v4l2_err(&bcap_dev->v4l2_dev, "Failed to set input\n"); in bcap_s_input()
729 v4l2_device_call_all(&bcap_dev->v4l2_dev, 0, core, log_status); in bcap_log_status()
818 vfd->v4l2_dev = &bcap_dev->v4l2_dev; in bcap_probe()
821 ret = v4l2_device_register(&pdev->dev, &bcap_dev->v4l2_dev); in bcap_probe()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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()
227 dev->v4l2_dev.release = au0828_usb_v4l2_release; in au0828_usb_probe()
230 retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev); in au0828_usb_probe()
247 dev->v4l2_dev.ctrl_handler = &dev->v4l2_ctrl_hdl; in au0828_usb_probe()
Dau0828-cards.c229 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in au0828_card_analog_fe_setup()
238 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in au0828_card_analog_fe_setup()
247 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_type_addr, in au0828_card_analog_fe_setup()
Dau0828-video.c798 v4l2_device_call_all(&dev->v4l2_dev, 0, video, in au0828_start_analog_streaming()
822 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in au0828_stop_streaming()
1008 v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_power, 0); in au0828_v4l2_close()
1042 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->std); in au0828_init_tuner()
1043 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); in au0828_init_tuner()
1221 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, norm); in vidioc_s_std()
1318 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_routing, in au0828_s_input()
1342 v4l2_device_call_all(&dev->v4l2_dev, 0, audio, s_routing, in au0828_s_input()
1420 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in vidioc_g_tuner()
1438 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in vidioc_s_tuner()
[all …]
/linux-4.1.27/drivers/media/platform/coda/
Dcoda-bit.c207 v4l2_err(&ctx->dev->v4l2_dev, "trying to queue empty buffer\n"); in coda_bitstream_try_queue()
213 v4l2_err(&ctx->dev->v4l2_dev, "bitstream buffer overflow\n"); in coda_bitstream_try_queue()
245 v4l2_err(&ctx->dev->v4l2_dev, in coda_fill_bitstream()
476 v4l2_err(&dev->v4l2_dev, "CODA_COMMAND_ENCODE_HEADER timeout\n"); in coda_encode_header()
609 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_setup_iram()
664 v4l2_err(&dev->v4l2_dev, "firmware get command error\n"); in coda_check_firmware()
671 v4l2_info(&dev->v4l2_dev, "Firmware code revision: %d\n", in coda_check_firmware()
686 v4l2_err(&dev->v4l2_dev, in coda_check_firmware()
693 v4l2_info(&dev->v4l2_dev, "Initialized %s.\n", in coda_check_firmware()
697 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()
634 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in coda_s_fmt()
648 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_s_fmt()
965 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
971 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
983 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
999 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
1008 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
1016 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready()
[all …]
/linux-4.1.27/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.c716 struct v4l2_device *v4l2_dev) in fimc_register_m2m_device() argument
721 fimc->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
726 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
737 v4l2_err(v4l2_dev, "failed to initialize v4l2-m2m device\n"); in fimc_register_m2m_device()
749 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.c570 struct v4l2_device *v4l2_dev, in fimc_isp_video_device_register() argument
615 vdev->v4l2_dev = v4l2_dev; in fimc_isp_video_device_register()
633 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.1.27/drivers/media/pci/sta2x11/
Dsta2x11_vip.c129 struct v4l2_device v4l2_dev; member
305 v4l2_err(&vip->v4l2_dev, "buffer too small (%lu < %lu)\n", in buffer_prepare()
606 v4l2_warn(&vip->v4l2_dev, "Invalid format, only UYVY supported\n"); in vidioc_try_fmt_vid_cap()
669 v4l2_err(&vip->v4l2_dev, "device busy\n"); in vidioc_s_fmt_vid_cap()
693 v4l2_err(&vip->v4l2_dev, "unknown field format\n"); in vidioc_s_fmt_vid_cap()
857 v4l2_err(&vip->v4l2_dev, "Cannot configure coherent mask"); in sta2x11_vip_init_buffer()
876 v4l2_err(&vip->v4l2_dev, "Can't allocate buffer context"); in sta2x11_vip_init_buffer()
894 vip->v4l2_dev.ctrl_handler = &vip->ctrl_hdl; in sta2x11_vip_init_controls()
1047 ret = v4l2_device_register(&pdev->dev, &vip->v4l2_dev); in sta2x11_vip_init_one()
1087 vip->video_dev.v4l2_dev = &vip->v4l2_dev; in sta2x11_vip_init_one()
[all …]
/linux-4.1.27/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()
972 v4l2_device_call_all(&v4l2->v4l2_dev, in em28xx_start_analog_streaming()
1111 struct v4l2_device *v4l2_dev = &dev->v4l2->v4l2_dev; in video_mux() local
1120 v4l2_device_call_all(v4l2_dev, 0, video, s_routing, in video_mux()
1125 v4l2_device_call_all(v4l2_dev, 0, audio, in video_mux()
1129 v4l2_device_call_all(v4l2_dev, 0, audio, s_routing, in video_mux()
1135 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()
421 v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, in em28xx_init_camera()
/linux-4.1.27/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.c261 call_all(&go->v4l2_dev, video, s_mbus_fmt, &mbus_fmt); in set_capture_size()
442 call_all(&go->v4l2_dev, video, s_stream, 1); in go7007_start_streaming()
463 call_all(&go->v4l2_dev, video, s_stream, 0); in go7007_stop_streaming()
602 call_all(&go->v4l2_dev, video, s_std, go->std); in go7007_s_std()
623 return call_all(&go->v4l2_dev, video, querystd, std); in vidioc_querystd()
743 return call_all(&go->v4l2_dev, tuner, g_tuner, t); in vidioc_g_tuner()
754 return call_all(&go->v4l2_dev, tuner, s_tuner, t); in vidioc_s_tuner()
765 return call_all(&go->v4l2_dev, tuner, g_frequency, f); in vidioc_g_frequency()
776 return call_all(&go->v4l2_dev, tuner, s_frequency, f); in vidioc_s_frequency()
784 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.1.27/drivers/media/platform/omap/
Domap_vout.c317 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "%s Offset:%x\n", in omap_vout_calculate_offset()
420 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omapvid_setup_overlay()
436 v4l2_warn(&vout->vid_dev->v4l2_dev, "setup_overlay failed\n"); in omapvid_setup_overlay()
505 v4l2_warn(&vout->vid_dev->v4l2_dev, "apply_changes failed\n"); in omapvid_init()
709 v4l2_err(&vout->vid_dev->v4l2_dev, in omap_vout_buffer_setup()
803 dma_addr = dma_map_single(vout->vid_dev->v4l2_dev.dev, (void *) addr, in omap_vout_buffer_prepare()
805 if (dma_mapping_error(vout->vid_dev->v4l2_dev.dev, dma_addr)) in omap_vout_buffer_prepare()
806 v4l2_err(&vout->vid_dev->v4l2_dev, "dma_map_single failed\n"); in omap_vout_buffer_prepare()
865 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omap_vout_vm_open()
874 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.1.27/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.1.27/drivers/media/usb/usbtv/
Dusbtv-video.c656 static void usbtv_release(struct v4l2_device *v4l2_dev) in usbtv_release() argument
658 struct usbtv *usbtv = container_of(v4l2_dev, struct usbtv, v4l2_dev); in usbtv_release()
660 v4l2_device_unregister(&usbtv->v4l2_dev); in usbtv_release()
692 usbtv->v4l2_dev.release = usbtv_release; in usbtv_video_init()
693 ret = v4l2_device_register(usbtv->dev, &usbtv->v4l2_dev); in usbtv_video_init()
701 usbtv->vdev.v4l2_dev = &usbtv->v4l2_dev; in usbtv_video_init()
718 v4l2_device_unregister(&usbtv->v4l2_dev); in usbtv_video_init()
732 v4l2_device_disconnect(&usbtv->v4l2_dev); in usbtv_video_free()
737 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.h74 struct v4l2_device v4l2_dev; member
/linux-4.1.27/Documentation/video4linux/
Dv4l2-pci-skeleton.c65 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.1.27/drivers/media/platform/s5p-g2d/
Dg2d.c228 v4l2_err(&dev->v4l2_dev, "g2d_setup_ctrls failed\n"); in g2d_setup_ctrls()
275 v4l2_info(&dev->v4l2_dev, "instance opened\n"); in g2d_open()
288 v4l2_info(&dev->v4l2_dev, "instance closed\n"); in g2d_release()
383 v4l2_err(&dev->v4l2_dev, "queue (%d) bust\n", f->type); in vidioc_s_fmt()
452 v4l2_err(&dev->v4l2_dev, in vidioc_try_crop()
689 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in g2d_probe()
694 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in g2d_probe()
700 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
703 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in g2d_probe()
709 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.1.27/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 …]
Dmeye.h293 struct v4l2_device v4l2_dev; /* Main v4l2_device struct */ member
/linux-4.1.27/drivers/media/platform/marvell-ccic/
Dcafe-driver.c146 struct mcam_camera *m = container_of(dev, struct mcam_camera, v4l2_dev); in to_cam()
560 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_remove() local
561 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_remove()
578 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_suspend() local
579 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_suspend()
593 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_resume() local
594 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_resume()
Dmcam-core.c1918 ret = v4l2_device_register(cam->dev, &cam->v4l2_dev); in mccic_register()
1936 cam->sensor = v4l2_i2c_new_subdev_board(&cam->v4l2_dev, in mccic_register()
1952 cam->v4l2_dev.ctrl_handler = &cam->ctrl_handler; in mccic_register()
1956 cam->vdev.v4l2_dev = &cam->v4l2_dev; in mccic_register()
1976 v4l2_device_unregister(&cam->v4l2_dev); in mccic_register()
1998 v4l2_device_unregister(&cam->v4l2_dev); in mccic_shutdown()
/linux-4.1.27/drivers/media/pci/saa7134/
Dsaa7134-core.c816 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
889 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in saa7134_initdev()
1028 v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in saa7134_initdev()
1039 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, in saa7134_initdev()
1124 v4l2_device_unregister(&dev->v4l2_dev); in saa7134_initdev()
1132 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in saa7134_finidev() local
1133 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev); in saa7134_finidev()
1189 v4l2_device_unregister(&dev->v4l2_dev); in saa7134_finidev()
1224 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in saa7134_suspend() local
1225 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev); in saa7134_suspend()
[all …]
Dsaa7134-empress.c263 dev->empress_dev->v4l2_dev = &dev->v4l2_dev; in empress_init()
Dsaa7134.h537 struct v4l2_device v4l2_dev; member
693 v4l2_device_call_all(&(dev)->v4l2_dev, 0, o, f , ##args); \
702 _rc = v4l2_device_call_until_err(&(dev)->v4l2_dev, \
/linux-4.1.27/drivers/media/pci/zoran/
Dzoran.h270 struct v4l2_device v4l2_dev; member
389 static inline struct zoran *to_zoran(struct v4l2_device *v4l2_dev) in to_zoran() argument
391 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()
1085 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in zoran_remove() local
1086 struct zoran *zr = to_zoran(v4l2_dev); in zoran_remove()
1119 v4l2_device_unregister(&zr->v4l2_dev); in zoran_remove()
1177 struct zoran *zr = to_zoran(sd->v4l2_dev); in zoran_subdev_notify()
1216 zr->v4l2_dev.notify = zoran_subdev_notify; in zoran_probe()
1217 if (v4l2_device_register(&pdev->dev, &zr->v4l2_dev)) in zoran_probe()
1339 zr->decoder = v4l2_i2c_new_subdev(&zr->v4l2_dev, in zoran_probe()
1344 zr->encoder = v4l2_i2c_new_subdev(&zr->v4l2_dev, in zoran_probe()
[all …]
/linux-4.1.27/drivers/media/usb/usbvision/
Dusbvision.h359 struct v4l2_device v4l2_dev; member
465 static inline struct usb_usbvision *to_usbvision(struct v4l2_device *v4l2_dev) in to_usbvision() argument
467 return container_of(v4l2_dev, struct usb_usbvision, v4l2_dev); in to_usbvision()
471 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()
/linux-4.1.27/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()
1067 pdev->v4l2_dev.release = pwc_video_release; in usb_pwc_probe()
1068 rc = v4l2_device_register(&intf->dev, &pdev->v4l2_dev); in usb_pwc_probe()
1074 pdev->v4l2_dev.ctrl_handler = &pdev->ctrl_handler; in usb_pwc_probe()
1075 pdev->vdev.v4l2_dev = &pdev->v4l2_dev; in usb_pwc_probe()
1116 v4l2_device_unregister(&pdev->v4l2_dev); in usb_pwc_probe()
1129 struct pwc_device *pdev = container_of(v, struct pwc_device, v4l2_dev); in usb_pwc_disconnect()
1138 v4l2_device_disconnect(&pdev->v4l2_dev); in usb_pwc_disconnect()
1148 v4l2_device_put(&pdev->v4l2_dev); in usb_pwc_disconnect()
/linux-4.1.27/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.1.27/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
Dsonixb.c466 dev_err(gspca_dev->v4l2_dev.dev, in reg_r()
493 dev_err(gspca_dev->v4l2_dev.dev, in reg_w()
515 dev_err(gspca_dev->v4l2_dev.dev, in i2c_w()
523 dev_err(gspca_dev->v4l2_dev.dev, "i2c write timeout\n"); in i2c_w()
/linux-4.1.27/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.h353 struct v4l2_device v4l2_dev; member
446 static inline struct cx23885_dev *to_cx23885(struct v4l2_device *v4l2_dev) in to_cx23885() argument
448 return container_of(v4l2_dev, struct cx23885_dev, v4l2_dev); in to_cx23885()
452 v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args)
458 v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args)
Dcx23885-core.c812 spin_lock(&dev->v4l2_dev.lock); in cx23885_find_hw()
813 v4l2_device_for_each_subdev(sd, &dev->v4l2_dev) { in cx23885_find_hw()
819 spin_unlock(&dev->v4l2_dev.lock); in cx23885_find_hw()
1821 dev = to_cx23885(sd->v4l2_dev); in cx23885_v4l2_dev_notify()
1840 dev->v4l2_dev.notify = cx23885_v4l2_dev_notify; in cx23885_v4l2_dev_notify_init()
1956 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in cx23885_initdev()
1966 dev->v4l2_dev.ctrl_handler = hdl; in cx23885_initdev()
2037 v4l2_device_unregister(&dev->v4l2_dev); in cx23885_initdev()
2045 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in cx23885_finidev() local
2046 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.1.27/drivers/media/usb/msi2500/
Dmsi2500.c125 struct v4l2_device v4l2_dev; member
582 container_of(v, struct msi2500_state, v4l2_dev); in msi2500_disconnect()
590 v4l2_device_disconnect(&s->v4l2_dev); in msi2500_disconnect()
596 v4l2_device_put(&s->v4l2_dev); in msi2500_disconnect()
1135 container_of(v, struct msi2500_state, v4l2_dev); in msi2500_video_release()
1138 v4l2_device_unregister(&s->v4l2_dev); in msi2500_video_release()
1218 s->v4l2_dev.release = msi2500_video_release; in msi2500_probe()
1219 ret = v4l2_device_register(&intf->dev, &s->v4l2_dev); in msi2500_probe()
1244 sd = v4l2_spi_new_subdev(&s->v4l2_dev, master, &board_info); in msi2500_probe()
1263 s->v4l2_dev.ctrl_handler = &s->hdl; in msi2500_probe()
[all …]
/linux-4.1.27/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()
Dfmdrv.h206 struct v4l2_device v4l2_dev; /* V4L2 top level struct */ member
/linux-4.1.27/drivers/media/usb/airspy/
Dairspy.c113 struct v4l2_device v4l2_dev; member
471 struct airspy *s = container_of(v, struct airspy, v4l2_dev); in airspy_disconnect()
479 v4l2_device_disconnect(&s->v4l2_dev); in airspy_disconnect()
484 v4l2_device_put(&s->v4l2_dev); in airspy_disconnect()
869 struct airspy *s = container_of(v, struct airspy, v4l2_dev); in airspy_video_release()
872 v4l2_device_unregister(&s->v4l2_dev); in airspy_video_release()
1038 s->v4l2_dev.release = airspy_video_release; in airspy_probe()
1039 ret = v4l2_device_register(&intf->dev, &s->v4l2_dev); in airspy_probe()
1067 s->v4l2_dev.ctrl_handler = &s->hdl; in airspy_probe()
1068 s->vdev.v4l2_dev = &s->v4l2_dev; in airspy_probe()
[all …]
/linux-4.1.27/drivers/media/usb/hackrf/
Dhackrf.c101 struct v4l2_device v4l2_dev; member
449 struct hackrf_dev *dev = container_of(v, struct hackrf_dev, v4l2_dev); in hackrf_disconnect()
457 v4l2_device_disconnect(&dev->v4l2_dev); in hackrf_disconnect()
462 v4l2_device_put(&dev->v4l2_dev); in hackrf_disconnect()
881 struct hackrf_dev *dev = container_of(v, struct hackrf_dev, v4l2_dev); in hackrf_video_release()
884 v4l2_device_unregister(&dev->v4l2_dev); in hackrf_video_release()
1072 dev->v4l2_dev.release = hackrf_video_release; in hackrf_probe()
1073 ret = v4l2_device_register(&intf->dev, &dev->v4l2_dev); in hackrf_probe()
1099 dev->v4l2_dev.ctrl_handler = &dev->hdl; in hackrf_probe()
1100 dev->vdev.v4l2_dev = &dev->v4l2_dev; in hackrf_probe()
[all …]
/linux-4.1.27/drivers/media/platform/omap3isp/
Disp.h180 struct v4l2_device v4l2_dev; member
240 container_of(dev, struct isp_device, v4l2_dev)
276 struct v4l2_device *v4l2_dev);
Disp.c1795 v4l2_device_unregister(&isp->v4l2_dev); in isp_unregister_entities()
1829 sd = v4l2_i2c_new_subdev_board(&isp->v4l2_dev, adapter, in isp_register_subdev()
1929 isp->v4l2_dev.mdev = &isp->media_dev; in isp_register_entities()
1930 ret = v4l2_device_register(isp->dev, &isp->v4l2_dev); in isp_register_entities()
1938 ret = omap3isp_ccp2_register_entities(&isp->isp_ccp2, &isp->v4l2_dev); in isp_register_entities()
1942 ret = omap3isp_csi2_register_entities(&isp->isp_csi2a, &isp->v4l2_dev); in isp_register_entities()
1946 ret = omap3isp_ccdc_register_entities(&isp->isp_ccdc, &isp->v4l2_dev); in isp_register_entities()
1951 &isp->v4l2_dev); in isp_register_entities()
1955 ret = omap3isp_resizer_register_entities(&isp->isp_res, &isp->v4l2_dev); in isp_register_entities()
1959 ret = omap3isp_stat_register_entities(&isp->isp_aewb, &isp->v4l2_dev); in isp_register_entities()
[all …]
/linux-4.1.27/drivers/media/platform/soc_camera/
Dsoc_camera.c1182 icd->parent = ici->v4l2_dev.dev; in scan_add_host()
1385 subdev = v4l2_i2c_new_subdev_board(&ici->v4l2_dev, adap, in soc_camera_i2c_init()
1524 dev_err(ici->v4l2_dev.dev, "No I2C data source found!\n"); in scan_async_group()
1529 sasc = devm_kzalloc(ici->v4l2_dev.dev, sizeof(*sasc), GFP_KERNEL); in scan_async_group()
1555 icd->parent = ici->v4l2_dev.dev; in scan_async_group()
1566 ret = v4l2_async_notifier_register(&ici->v4l2_dev, &sasc->notifier); in scan_async_group()
1577 devm_kfree(ici->v4l2_dev.dev, sasc); in scan_async_group()
1578 dev_err(ici->v4l2_dev.dev, "group probe failed: %d\n", ret); in scan_async_group()
1620 info = devm_kzalloc(ici->v4l2_dev.dev, sizeof(struct soc_of_info), in soc_of_bind()
1654 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()
227 ret = v4l2_device_call_until_err(sd->v4l2_dev, in client_s_fmt()
267 ret = v4l2_device_call_until_err(sd->v4l2_dev, in client_s_fmt()
Dsh_mobile_ceu_camera.c196 dev_warn(pcdev->ici.v4l2_dev.dev, "soft reset time out\n"); in sh_mobile_ceu_soft_reset()
548 v4l2_device_for_each_subdev(sd, &pcdev->ici.v4l2_dev) in find_csi2()
614 pm_runtime_get_sync(ici->v4l2_dev.dev); in sh_mobile_ceu_clock_start()
641 pm_runtime_put(ici->v4l2_dev.dev); in sh_mobile_ceu_clock_stop()
766 dev_err(pcdev->ici.v4l2_dev.dev, in capture_restore()
1107 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_get_formats()
1279 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_set_crop()
1527 ret = v4l2_device_call_until_err(sd->v4l2_dev, soc_camera_grp_id(icd), in sh_mobile_ceu_try_fmt()
1552 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_try_fmt()
1819 pcdev->ici.v4l2_dev.dev = &pdev->dev; in sh_mobile_ceu_probe()
[all …]
Drcar_vin.c945 pm_runtime_get_sync(ici->v4l2_dev.dev); in rcar_vin_add_device()
979 pm_runtime_put(ici->v4l2_dev.dev); in rcar_vin_remove_device()
1150 dev_err(priv->ici.v4l2_dev.dev, in capture_restore()
1376 ret = v4l2_device_call_until_err(sd->v4l2_dev, in rcar_vin_get_formats()
1715 ret = v4l2_device_call_until_err(sd->v4l2_dev, soc_camera_grp_id(icd), in rcar_vin_try_fmt()
1740 ret = v4l2_device_call_until_err(sd->v4l2_dev, in rcar_vin_try_fmt()
1910 priv->ici.v4l2_dev.dev = &pdev->dev; in rcar_vin_probe()
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821.h238 struct v4l2_device v4l2_dev; member
307 static inline struct cx25821_dev *get_cx25821(struct v4l2_device *v4l2_dev) in get_cx25821() argument
309 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.1.27/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()
3421 btv->c.v4l2_dev.name, risc->cpu, (unsigned long)risc->dma); in bttv_risc_disasm()
3424 btv->c.v4l2_dev.name, in bttv_risc_disasm()
3429 btv->c.v4l2_dev.name, in bttv_risc_disasm()
3928 vfd->v4l2_dev = &btv->c.v4l2_dev; in vdev_init()
4032 snprintf(btv->c.v4l2_dev.name, sizeof(btv->c.v4l2_dev.name), in bttv_probe()
4066 btv->c.v4l2_dev.name)) { in bttv_probe()
4075 result = v4l2_device_register(&dev->dev, &btv->c.v4l2_dev); in bttv_probe()
4082 btv->c.v4l2_dev.ctrl_handler = hdl; in bttv_probe()
4106 IRQF_SHARED, btv->c.v4l2_dev.name, (void *)btv); in bttv_probe()
[all …]
/linux-4.1.27/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c1156 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in s5p_mfc_probe()
1164 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in s5p_mfc_probe()
1172 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1178 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in s5p_mfc_probe()
1182 v4l2_info(&dev->v4l2_dev, in s5p_mfc_probe()
1189 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in s5p_mfc_probe()
1197 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1203 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in s5p_mfc_probe()
1207 v4l2_info(&dev->v4l2_dev, in s5p_mfc_probe()
1236 v4l2_device_unregister(&dev->v4l2_dev); in s5p_mfc_probe()
[all …]
/linux-4.1.27/drivers/media/usb/zr364xx/
Dzr364xx.c175 struct v4l2_device v4l2_dev; member
1212 static void zr364xx_release(struct v4l2_device *v4l2_dev) in zr364xx_release() argument
1215 container_of(v4l2_dev, struct zr364xx_camera, v4l2_dev); in zr364xx_release()
1218 v4l2_device_unregister(&cam->v4l2_dev); in zr364xx_release()
1433 cam->v4l2_dev.release = zr364xx_release; in zr364xx_probe()
1434 err = v4l2_device_register(&intf->dev, &cam->v4l2_dev); in zr364xx_probe()
1454 cam->vdev.v4l2_dev = &cam->v4l2_dev; in zr364xx_probe()
1558 v4l2_device_unregister(&cam->v4l2_dev); in zr364xx_probe()
1572 v4l2_device_disconnect(&cam->v4l2_dev); in zr364xx_disconnect()
1580 v4l2_device_put(&cam->v4l2_dev); in zr364xx_disconnect()
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88.h365 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()
Dcx88-cards.c3699 strcpy(core->v4l2_dev.name, core->name); in cx88_core_create()
3700 if (v4l2_device_register(NULL, &core->v4l2_dev)) { in cx88_core_create()
3706 v4l2_device_unregister(&core->v4l2_dev); in cx88_core_create()
3713 v4l2_device_unregister(&core->v4l2_dev); in cx88_core_create()
3721 v4l2_device_unregister(&core->v4l2_dev); in cx88_core_create()
3737 v4l2_device_unregister(&core->v4l2_dev); in cx88_core_create()
3797 v4l2_i2c_new_subdev(&core->v4l2_dev, &core->i2c_adap, in cx88_core_create()
3800 v4l2_i2c_new_subdev(&core->v4l2_dev, in cx88_core_create()
3804 v4l2_i2c_new_subdev(&core->v4l2_dev, in cx88_core_create()
3808 v4l2_i2c_new_subdev(&core->v4l2_dev, &core->i2c_adap, in cx88_core_create()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.c1072 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->norm); in vidioc_s_std()
1217 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in vidioc_g_tuner()
1241 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in vidioc_s_tuner()
1259 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_frequency, f); in vidioc_g_frequency()
1276 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, f); in vidioc_s_frequency()
1297 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in radio_g_tuner()
1310 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in radio_s_tuner()
1396 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_radio); in __tm6000_open()
1618 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
/linux-4.1.27/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()
1099 layer->vfd.v4l2_dev = &mdev->v4l2_dev; in mxr_base_layer_create()
Dhdmi_drv.c84 struct v4l2_device v4l2_dev; member
939 strlcpy(hdmi_dev->v4l2_dev.name, dev_name(dev), in hdmi_probe()
940 sizeof(hdmi_dev->v4l2_dev.name)); in hdmi_probe()
942 ret = v4l2_device_register(NULL, &hdmi_dev->v4l2_dev); in hdmi_probe()
962 hdmi_dev->phy_sd = v4l2_i2c_new_subdev_board(&hdmi_dev->v4l2_dev, in hdmi_probe()
982 &hdmi_dev->v4l2_dev, adapter, in hdmi_probe()
1017 v4l2_device_unregister(&hdmi_dev->v4l2_dev); in hdmi_probe()
1035 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.1.27/drivers/media/platform/s5p-jpeg/
Djpeg-core.c1223 v4l2_err(&ctx->jpeg->v4l2_dev, in s5p_jpeg_try_fmt_vid_cap()
1281 v4l2_err(&ctx->jpeg->v4l2_dev, in s5p_jpeg_try_fmt_vid_out()
1336 v4l2_err(&ct->jpeg->v4l2_dev, "%s queue busy\n", __func__); in s5p_jpeg_s_fmt()
2506 ret = v4l2_device_register(&pdev->dev, &jpeg->v4l2_dev); in s5p_jpeg_probe()
2515 v4l2_err(&jpeg->v4l2_dev, "Failed to init mem2mem device\n"); in s5p_jpeg_probe()
2522 v4l2_err(&jpeg->v4l2_dev, "Failed to init memory allocator\n"); in s5p_jpeg_probe()
2530 v4l2_err(&jpeg->v4l2_dev, "Failed to allocate video device\n"); in s5p_jpeg_probe()
2541 jpeg->vfd_encoder->v4l2_dev = &jpeg->v4l2_dev; in s5p_jpeg_probe()
2546 v4l2_err(&jpeg->v4l2_dev, "Failed to register video device\n"); in s5p_jpeg_probe()
2551 v4l2_info(&jpeg->v4l2_dev, in s5p_jpeg_probe()
[all …]
Djpeg-core.h116 struct v4l2_device v4l2_dev; member
/linux-4.1.27/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)
1411 "platform:%s", vpfe->v4l2_dev.name); in vpfe_querycap()
1443 ret = v4l2_device_call_until_err(&vpfe->v4l2_dev, in __vpfe_get_format()
1492 ret = v4l2_device_call_until_err(&vpfe->v4l2_dev, in __vpfe_set_format()
1809 vpfe->v4l2_dev.ctrl_handler = sdinfo->sd->ctrl_handler; in vpfe_set_input()
1848 return v4l2_device_call_until_err(&vpfe->v4l2_dev, sdinfo->grp_id, in vpfe_querystd()
1871 ret = v4l2_device_call_until_err(&vpfe->v4l2_dev, sdinfo->grp_id, in vpfe_s_std()
2305 struct vpfe_device *vpfe = container_of(notifier->v4l2_dev, in vpfe_async_bound()
[all …]
Dam437x-vpfe.h231 struct v4l2_device v4l2_dev; member
/linux-4.1.27/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.1.27/drivers/media/usb/s2255/
Ds2255drv.c261 struct v4l2_device v4l2_dev; member
282 static inline struct s2255_dev *to_s2255_dev(struct v4l2_device *v4l2_dev) in to_s2255_dev() argument
284 return container_of(v4l2_dev, struct s2255_dev, v4l2_dev); in to_s2255_dev()
368 v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ## arg)
564 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_got_frame()
1018 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_set_mode()
1067 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_cmd_status()
1535 v4l2_device_unregister(&dev->v4l2_dev); in s2255_destroy()
1580 struct s2255_dev *dev = to_s2255_dev(vdev->v4l2_dev); in s2255_video_device_release()
1624 ret = v4l2_device_register(&dev->interface->dev, &dev->v4l2_dev); in s2255_probe_v4l()
[all …]
/linux-4.1.27/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.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-core.c174 v4l2_device_unregister(&solo_dev->v4l2_dev); in free_solo_dev()
487 ret = v4l2_device_register(&pdev->dev, &solo_dev->v4l2_dev); in solo_pci_probe()
656 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in solo_pci_remove() local
657 struct solo_dev *solo_dev = container_of(v4l2_dev, struct solo_dev, v4l2_dev); in solo_pci_remove()
/linux-4.1.27/drivers/media/dvb-frontends/
Drtl2832_sdr.c118 struct v4l2_device v4l2_dev; member
1287 container_of(v, struct rtl2832_sdr_dev, v4l2_dev); in rtl2832_sdr_video_release()
1293 v4l2_device_unregister(&dev->v4l2_dev); in rtl2832_sdr_video_release()
1409 dev->v4l2_dev.release = rtl2832_sdr_video_release; in rtl2832_sdr_probe()
1410 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in rtl2832_sdr_probe()
1416 dev->v4l2_dev.ctrl_handler = &dev->hdl; in rtl2832_sdr_probe()
1417 dev->vdev.v4l2_dev = &dev->v4l2_dev; in rtl2832_sdr_probe()
1435 v4l2_device_unregister(&dev->v4l2_dev); in rtl2832_sdr_probe()
1456 v4l2_device_disconnect(&dev->v4l2_dev); in rtl2832_sdr_remove()
1460 v4l2_device_put(&dev->v4l2_dev); in rtl2832_sdr_remove()
/linux-4.1.27/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()
1210 dev_warn(ctx->dev->v4l2_dev.dev, in dei_error()
1216 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.1.27/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.1.27/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()
2697 v4l2_device_disconnect(&hdw->v4l2_dev); in pvr2_hdw_remove_usb_stuff()
2705 vdev->v4l2_dev = &hdw->v4l2_dev; in pvr2_hdw_set_v4l2_dev()
2731 v4l2_device_unregister(&hdw->v4l2_dev); in pvr2_hdw_destroy()
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Df_uvc.c440 uvc->vdev.v4l2_dev = &uvc->v4l2_dev; in uvc_register_video()
742 if (v4l2_device_register(&cdev->gadget->dev, &uvc->v4l2_dev)) { in uvc_function_bind()
762 v4l2_device_unregister(&uvc->v4l2_dev); in uvc_function_bind()
894 v4l2_device_unregister(&uvc->v4l2_dev); in uvc_unbind()
Duvc.h148 struct v4l2_device v4l2_dev; member
/linux-4.1.27/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.1.27/drivers/media/usb/stkwebcam/
Dstk-webcam.h95 struct v4l2_device v4l2_dev; member
Dstk-webcam.c1263 dev->vdev.v4l2_dev = &dev->v4l2_dev; in stk_register_video_device()
1294 err = v4l2_device_register(&interface->dev, &dev->v4l2_dev); in stk_camera_probe()
1313 dev->v4l2_dev.ctrl_handler = hdl; in stk_camera_probe()
1376 v4l2_device_unregister(&dev->v4l2_dev); in stk_camera_probe()
1395 v4l2_device_unregister(&dev->v4l2_dev); in stk_camera_disconnect()
/linux-4.1.27/drivers/media/usb/cx231xx/
Dcx231xx-cards.c1065 dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, in cx231xx_card_setup()
1079 dev->sd_tuner = v4l2_i2c_new_subdev(&dev->v4l2_dev, in cx231xx_card_setup()
1164 v4l2_device_unregister(&dev->v4l2_dev); in cx231xx_release_resources()
1632 dev->v4l2_dev.mdev = dev->media_dev; in cx231xx_usb_probe()
1634 retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev); in cx231xx_usb_probe()
1711 v4l2_device_unregister(&dev->v4l2_dev); in cx231xx_usb_probe()
/linux-4.1.27/drivers/media/i2c/soc_camera/
Dimx074.c161 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code); in imx074_try_fmt()
181 dev_dbg(sd->v4l2_dev->dev, "%s(%u)\n", __func__, mf->code); in imx074_s_fmt()

12