/linux-4.4.14/drivers/media/v4l2-core/ |
D | v4l2-device.c | 33 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 …]
|
D | v4l2-async.c | 115 ret = v4l2_device_register_subdev(notifier->v4l2_dev, sd); in v4l2_async_test_notify() 137 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev, in v4l2_async_notifier_register() argument 147 notifier->v4l2_dev = v4l2_dev; in v4l2_async_notifier_register() 161 dev_err(notifier->v4l2_dev ? notifier->v4l2_dev->dev : NULL, in v4l2_async_notifier_register() 202 if (!notifier->v4l2_dev) in v4l2_async_notifier_unregister() 207 dev_err(notifier->v4l2_dev->dev, in v4l2_async_notifier_unregister() 263 notifier->v4l2_dev = NULL; in v4l2_async_notifier_unregister()
|
D | v4l2-common.c | 131 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()
|
D | v4l2-dev.c | 173 struct v4l2_device *v4l2_dev = vdev->v4l2_dev; in v4l2_device_release() local 197 if (v4l2_dev->mdev && in v4l2_device_release() 210 if (v4l2_dev->release == NULL) in v4l2_device_release() 211 v4l2_dev = NULL; in v4l2_device_release() 218 if (v4l2_dev) in v4l2_device_release() 219 v4l2_device_put(v4l2_dev); in v4l2_device_release() 494 video_device[i]->v4l2_dev == vdev->v4l2_dev) { in get_index() 777 if (WARN_ON(!vdev->v4l2_dev)) in __video_register_device() 811 vdev->dev_parent = vdev->v4l2_dev->dev; in __video_register_device() 813 vdev->ctrl_handler = vdev->v4l2_dev->ctrl_handler; in __video_register_device() [all …]
|
D | v4l2-subdev.c | 77 if (sd->v4l2_dev->mdev) { in subdev_open() 116 if (sd->v4l2_dev->mdev) in subdev_close() 579 sd->v4l2_dev = NULL; in v4l2_subdev_init()
|
/linux-4.4.14/include/media/ |
D | v4l2-device.h | 64 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 …]
|
D | v4l2-async.h | 81 struct v4l2_device *v4l2_dev; member 94 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev,
|
D | v4l2-common.h | 102 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,
|
D | soc_camera.h | 79 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()
|
D | saa7146.h | 120 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()
|
D | tea575x.h | 51 struct v4l2_device *v4l2_dev; member
|
/linux-4.4.14/drivers/media/pci/cx18/ |
D | cx18-alsa-main.c | 65 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 …]
|
D | cx18-alsa.h | 25 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)
|
D | cx18-alsa-pcm.c | 153 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()
|
D | cx18-i2c.c | 121 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()
|
D | cx18-alsa-mixer.c | 88 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
|
D | cx18-driver.h | 176 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, \
|
D | cx18-streams.c | 326 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()
|
D | cx18-driver.c | 704 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()
|
D | cx18-streams.h | 36 return s->video_dev.v4l2_dev || in cx18_stream_enabled()
|
D | cx18-gpio.c | 317 snprintf(sd->name, sizeof(sd->name), "%s %s", cx->v4l2_dev.name, str); in cx18_gpio_register() 319 return v4l2_device_register_subdev(&cx->v4l2_dev, sd); in cx18_gpio_register()
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtv-alsa-main.c | 70 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) in to_snd_ivtv_card() argument 72 return to_ivtv(v4l2_dev)->alsa; in to_snd_ivtv_card() 76 struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev) in p_to_snd_ivtv_card() argument 78 return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev); in p_to_snd_ivtv_card() 86 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free() 87 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free() 103 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument 111 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create() 122 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names() 140 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init() argument [all …]
|
D | ivtv-alsa.h | 26 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)
|
D | ivtv-alsa-pcm.c | 154 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()
|
D | ivtv-streams.c | 200 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 …]
|
D | ivtv-i2c.c | 273 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 …]
|
D | ivtv-alsa-mixer.c | 88 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
|
D | ivtv-driver.h | 144 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \ 160 v4l2_info(&itv->v4l2_dev, " " type ": " fmt , ##args); \ 174 #define IVTV_ERR(fmt, args...) v4l2_err(&itv->v4l2_dev, fmt , ## args) 175 #define IVTV_WARN(fmt, args...) v4l2_warn(&itv->v4l2_dev, fmt , ## args) 176 #define IVTV_INFO(fmt, args...) v4l2_info(&itv->v4l2_dev, fmt , ## args) 632 struct v4l2_device v4l2_dev; member 758 static inline struct ivtv *to_ivtv(struct v4l2_device *v4l2_dev) in to_ivtv() argument 760 return container_of(v4l2_dev, struct ivtv, v4l2_dev); in to_ivtv() 832 __v4l2_device_call_subdevs_p(&(itv)->v4l2_dev, __sd, \ 845 __v4l2_device_call_subdevs_until_err_p(&(itv)->v4l2_dev, __sd, \
|
D | ivtv-driver.c | 755 "%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()
|
D | ivtvfb.c | 1237 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtvfb_callback_init() local 1238 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); in ivtvfb_callback_init() 1243 itv->v4l2_dev.name); in ivtvfb_callback_init() 1252 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtvfb_callback_cleanup() local 1253 struct ivtv *itv = container_of(v4l2_dev, struct ivtv, v4l2_dev); in ivtvfb_callback_cleanup()
|
D | ivtv-gpio.c | 357 snprintf(itv->sd_gpio.name, sizeof(itv->sd_gpio.name), "%s-gpio", itv->v4l2_dev.name); in ivtv_gpio_init() 366 return v4l2_device_register_subdev(&itv->v4l2_dev, &itv->sd_gpio); in ivtv_gpio_init()
|
/linux-4.4.14/drivers/media/radio/ |
D | radio-maxiradio.c | 72 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 …]
|
D | radio-shark2.c | 57 #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 …]
|
D | radio-isa.c | 52 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 …]
|
D | radio-shark.c | 60 #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 …]
|
D | dsbr100.c | 72 #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 …]
|
D | radio-sf16fmi.c | 48 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 …]
|
D | radio-timb.c | 38 struct v4l2_device v4l2_dev; member 130 strlcpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name)); in timbradio_probe() 131 err = v4l2_device_register(NULL, &tr->v4l2_dev); in timbradio_probe() 135 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe() 137 tr->sd_tuner = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 139 tr->sd_dsp = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 146 tr->v4l2_dev.ctrl_handler = tr->sd_dsp->ctrl_handler; in timbradio_probe() 160 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_probe() 172 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_remove()
|
D | radio-ma901.c | 89 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 …]
|
D | radio-keene.c | 64 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 …]
|
D | radio-miropcm20.c | 62 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 …]
|
D | radio-raremono.c | 120 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 …]
|
D | radio-mr800.c | 133 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 …]
|
D | radio-cadet.c | 65 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 …]
|
D | radio-sf16fmr2.c | 32 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()
|
D | radio-tea5764.c | 144 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()
|
D | radio-zoltrix.c | 109 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()
|
D | radio-tea5777.c | 273 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()
|
D | tea575x.c | 239 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()
|
D | radio-tea5777.h | 65 struct v4l2_device *v4l2_dev; member
|
D | radio-isa.h | 38 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/platform/davinci/ |
D | vpfe_capture.c | 317 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid buf_type\n"); in vpfe_get_ccdc_image_format() 321 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid frm_fmt\n"); in vpfe_get_ccdc_image_format() 338 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_ccdc_image_format() 403 v4l2_err(&vpfe_dev->v4l2_dev, "standard not supported\n"); in vpfe_config_image_format() 430 ret = v4l2_device_call_until_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format() 434 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format() 473 v4l2_err(&vpfe_dev->v4l2_dev, "ccdc device not registered\n"); in vpfe_initialize_device() 479 v4l2_err(&vpfe_dev->v4l2_dev, "Couldn't lock ccdc module\n"); in vpfe_initialize_device() 506 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_open\n"); in vpfe_open() 509 v4l2_err(&vpfe_dev->v4l2_dev, "No decoder registered\n"); in vpfe_open() [all …]
|
D | vpbe_display.c | 65 v4l2_err(&vpbe_dev->v4l2_dev, in venc_is_second_field() 210 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_prepare() 219 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_buffer_prepare() 241 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_buffer_setup\n"); in vpbe_buffer_queue_setup() 272 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_queue() 402 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params() 416 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params() 528 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_calculate_scale_factor() 545 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_adj_position() 665 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_display_s_crop() [all …]
|
D | vpbe.c | 637 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 …]
|
D | vpif_display.c | 34 #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg) 36 v4l2_dbg(level, debug, &vpif_obj.v4l2_dev, fmt, ## arg) 713 ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, video, in vpif_s_std() 720 ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, video, in vpif_s_std() 1050 v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status); in vpif_log_status() 1218 vdev->v4l2_dev = &vpif_obj.v4l2_dev; in vpif_probe_complete() 1267 err = v4l2_device_register(vpif_dev, &vpif_obj.v4l2_dev); in vpif_probe() 1301 v4l2_i2c_new_subdev_board(&vpif_obj.v4l2_dev, in vpif_probe() 1321 err = v4l2_async_notifier_register(&vpif_obj.v4l2_dev, in vpif_probe() 1335 v4l2_device_unregister(&vpif_obj.v4l2_dev); in vpif_probe() [all …]
|
D | vpif_capture.c | 37 #define vpif_err(fmt, arg...) v4l2_err(&vpif_obj.v4l2_dev, fmt, ## arg) 39 v4l2_dbg(level, debug, &vpif_obj.v4l2_dev, fmt, ## arg) 1246 v4l2_device_call_all(&vpif_obj.v4l2_dev, 0, core, log_status); in vpif_log_status() 1397 vdev->v4l2_dev = &vpif_obj.v4l2_dev; in vpif_probe_complete() 1408 v4l2_info(&vpif_obj.v4l2_dev, "VPIF capture driver initialized\n"); in vpif_probe_complete() 1421 v4l2_device_unregister(&vpif_obj.v4l2_dev); in vpif_probe_complete() 1455 err = v4l2_device_register(vpif_dev, &vpif_obj.v4l2_dev); in vpif_probe() 1489 v4l2_i2c_new_subdev_board(&vpif_obj.v4l2_dev, in vpif_probe() 1500 v4l2_info(&vpif_obj.v4l2_dev, in vpif_probe() 1510 err = v4l2_async_notifier_register(&vpif_obj.v4l2_dev, in vpif_probe() [all …]
|
D | vpif_capture.h | 115 struct v4l2_device v4l2_dev; member
|
D | vpif_display.h | 120 struct v4l2_device v4l2_dev; member
|
D | vpbe_venc.c | 608 struct v4l2_subdev *venc_sub_dev_init(struct v4l2_device *v4l2_dev, in venc_sub_dev_init() argument 622 if (v4l2_device_register_subdev(v4l2_dev, &venc->sd) < 0) { in venc_sub_dev_init() 623 v4l2_err(v4l2_dev, in venc_sub_dev_init() 628 v4l2_err(v4l2_dev, in venc_sub_dev_init()
|
/linux-4.4.14/drivers/media/usb/hdpvr/ |
D | hdpvr-core.c | 132 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 …]
|
D | hdpvr-video.c | 35 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 …]
|
D | hdpvr.h | 75 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()
|
D | hdpvr-control.c | 41 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()
|
D | hdpvr-i2c.c | 148 v4l2_warn(&dev->v4l2_dev, "refusing 2-phase i2c xfer " in hdpvr_transfer() 155 v4l2_warn(&dev->v4l2_dev, "refusing complex xfer with " in hdpvr_transfer() 169 v4l2_warn(&dev->v4l2_dev, "refusing %d-phase i2c xfer\n", num); in hdpvr_transfer()
|
/linux-4.4.14/drivers/media/radio/si4713/ |
D | radio-platform-si4713.c | 53 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()
|
D | radio-usb-si4713.c | 64 struct v4l2_device v4l2_dev; member 72 static inline struct si4713_usb_device *to_si4713_dev(struct v4l2_device *v4l2_dev) in to_si4713_dev() argument 74 return container_of(v4l2_dev, struct si4713_usb_device, v4l2_dev); in to_si4713_dev() 143 static void usb_si4713_video_device_release(struct v4l2_device *v4l2_dev) in usb_si4713_video_device_release() argument 145 struct si4713_usb_device *radio = to_si4713_dev(v4l2_dev); in usb_si4713_video_device_release() 149 v4l2_device_unregister(&radio->v4l2_dev); in usb_si4713_video_device_release() 455 usb_set_intfdata(intf, &radio->v4l2_dev); in usb_si4713_probe() 461 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_si4713_probe() 474 sd = v4l2_i2c_new_subdev_board(&radio->v4l2_dev, adapter, in usb_si4713_probe() 484 radio->v4l2_dev.release = usb_si4713_video_device_release; in usb_si4713_probe() [all …]
|
/linux-4.4.14/drivers/staging/media/davinci_vpfe/ |
D | vpfe_video.c | 508 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_release\n"); in vpfe_release() 553 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_mmap\n"); in vpfe_mmap() 565 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_poll\n"); in vpfe_poll() 597 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_querycap\n"); in vpfe_querycap() 628 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_g_fmt\n"); in vpfe_g_fmt() 657 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_enum_fmt\n"); in vpfe_enum_fmt() 662 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid index\n"); in vpfe_enum_fmt() 668 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt() 675 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt() 684 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt() [all …]
|
D | vpfe_mc_capture.c | 164 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 …]
|
D | dm365_ipipe.c | 81 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 …]
|
D | vpfe_mc_capture.h | 62 struct v4l2_device v4l2_dev; member
|
D | dm365_ipipe.h | 171 struct v4l2_device *v4l2_dev);
|
D | dm365_resizer.h | 237 struct v4l2_device *v4l2_dev);
|
/linux-4.4.14/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 122 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_routing, in stk1160_select_input() 161 static void stk1160_release(struct v4l2_device *v4l2_dev) in stk1160_release() argument 163 struct stk1160 *dev = container_of(v4l2_dev, struct stk1160, v4l2_dev); in stk1160_release() 170 v4l2_device_unregister(&dev->v4l2_dev); in stk1160_release() 347 dev->v4l2_dev.release = stk1160_release; in stk1160_probe() 348 dev->v4l2_dev.ctrl_handler = &dev->ctrl_handler; in stk1160_probe() 349 rc = v4l2_device_register(dev->dev, &dev->v4l2_dev); in stk1160_probe() 363 dev->sd_saa7115 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in stk1160_probe() 367 v4l2_device_call_all(&dev->v4l2_dev, 0, core, reset, 0); in stk1160_probe() 368 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_probe() [all …]
|
D | stk1160-v4l.c | 254 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 1); in stk1160_start_streaming() 296 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_stop_hw() 520 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd() 557 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, in vidioc_s_std() 830 dev->vdev.v4l2_dev = &dev->v4l2_dev; in stk1160_video_register() 841 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, in stk1160_video_register() 851 v4l2_info(&dev->v4l2_dev, "V4L2 device registered as %s\n", in stk1160_video_register()
|
D | stk1160.h | 119 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/pci/tw68/ |
D | tw68-core.c | 231 dev->instance = v4l2_device_set_name(&dev->v4l2_dev, "tw68", in tw68_initdev() 234 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in tw68_initdev() 245 dev->name = dev->v4l2_dev.name; in tw68_initdev() 353 v4l2_device_unregister(&dev->v4l2_dev); in tw68_initdev() 359 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in tw68_finidev() local 361 container_of(v4l2_dev, struct tw68_dev, v4l2_dev); in tw68_finidev() 377 v4l2_device_unregister(&dev->v4l2_dev); in tw68_finidev() 384 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in tw68_suspend() local 385 struct tw68_dev *dev = container_of(v4l2_dev, in tw68_suspend() 386 struct tw68_dev, v4l2_dev); in tw68_suspend() [all …]
|
/linux-4.4.14/drivers/media/platform/vivid/ |
D | vivid-core.c | 208 "platform:%s", dev->v4l2_dev.name); in vidioc_querycap() 472 v4l2_info(&dev->v4l2_dev, "reconnect\n"); in vivid_fop_release() 633 static void vivid_dev_release(struct v4l2_device *v4l2_dev) in vivid_dev_release() argument 635 struct vivid_dev *dev = container_of(v4l2_dev, struct vivid_dev, v4l2_dev); in vivid_dev_release() 638 v4l2_device_unregister(&dev->v4l2_dev); in vivid_dev_release() 675 snprintf(dev->v4l2_dev.name, sizeof(dev->v4l2_dev.name), in vivid_create_instance() 677 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in vivid_create_instance() 682 dev->v4l2_dev.release = vivid_dev_release; in vivid_create_instance() 688 v4l2_info(&dev->v4l2_dev, "using %splanar format API\n", in vivid_create_instance() 764 v4l2_info(&dev->v4l2_dev, "Capture Crop: %c Compose: %c Scaler: %c\n", in vivid_create_instance() [all …]
|
D | vivid-kthread-out.c | 248 "%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()
|
D | vivid-core.h | 33 v4l2_dbg(level, vivid_debug, &dev->v4l2_dev, fmt, ## arg) 137 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/staging/most/aim-v4l2/ |
D | video.c | 45 struct v4l2_device v4l2_dev; member 445 mdev->vdev->v4l2_dev = &mdev->v4l2_dev; in aim_register_videodev() 472 static void aim_v4l2_dev_release(struct v4l2_device *v4l2_dev) in aim_v4l2_dev_release() argument 475 container_of(v4l2_dev, struct most_video_dev, v4l2_dev); in aim_v4l2_dev_release() 477 v4l2_device_unregister(v4l2_dev); in aim_v4l2_dev_release() 516 mdev->v4l2_dev.release = aim_v4l2_dev_release; in aim_probe_channel() 519 strlcpy(mdev->v4l2_dev.name, "most_video_device", in aim_probe_channel() 520 sizeof(mdev->v4l2_dev.name)); in aim_probe_channel() 521 ret = v4l2_device_register(NULL, &mdev->v4l2_dev); in aim_probe_channel() 538 v4l2_device_disconnect(&mdev->v4l2_dev); in aim_probe_channel() [all …]
|
/linux-4.4.14/drivers/media/platform/blackfin/ |
D | bfin_capture.c | 63 struct v4l2_device v4l2_dev; member 232 v4l2_err(&bcap_dev->v4l2_dev, "buffer too small (%lu < %lu)\n", in bcap_buffer_prepare() 279 v4l2_err(&bcap_dev->v4l2_dev, "stream on failed in subdev\n"); in bcap_start_streaming() 317 v4l2_err(&bcap_dev->v4l2_dev, in bcap_start_streaming() 325 v4l2_err(&bcap_dev->v4l2_dev, in bcap_start_streaming() 370 v4l2_err(&bcap_dev->v4l2_dev, in bcap_stop_streaming() 598 v4l2_err(&bcap_dev->v4l2_dev, "Failed to set input\n"); in bcap_s_input() 748 v4l2_device_call_all(&bcap_dev->v4l2_dev, 0, core, log_status); in bcap_log_status() 837 vfd->v4l2_dev = &bcap_dev->v4l2_dev; in bcap_probe() 840 ret = v4l2_device_register(&pdev->dev, &bcap_dev->v4l2_dev); in bcap_probe() [all …]
|
/linux-4.4.14/drivers/media/platform/ |
D | arv.c | 110 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 …]
|
D | sh_vou.c | 77 struct v4l2_device v4l2_dev; member 255 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_queue_setup() 272 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_buf_prepare() 276 dev_warn(vou_dev->v4l2_dev.dev, "buffer too small (%lu < %u)\n", in sh_vou_buf_prepare() 305 ret = v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_start_streaming() 323 dev_dbg(vou_dev->v4l2_dev.dev, "%s: first buffer status 0x%x\n", in sh_vou_start_streaming() 352 v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_stop_streaming() 384 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_querycap() 404 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_enum_fmt_vid_out() 419 dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__); in sh_vou_g_fmt_vid_out() [all …]
|
D | m2m-deinterlace.c | 41 v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg) 129 struct v4l2_device v4l2_dev; member 250 v4l2_err(&pcdev->v4l2_dev, in deinterlace_issue_dma() 352 v4l2_warn(&pcdev->v4l2_dev, "DMA interleaved prep error\n"); in deinterlace_issue_dma() 363 v4l2_warn(&pcdev->v4l2_dev, in deinterlace_issue_dma() 624 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt() 630 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_s_fmt() 729 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon() 739 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon() 748 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_streamon() [all …]
|
D | mx2_emmaprp.c | 62 v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg) 204 struct v4l2_device v4l2_dev; member 315 v4l2_err(&pcdev->v4l2_dev, in emmaprp_device_run() 530 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_cap() 547 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_out() 571 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt() 921 ret = v4l2_device_register(&pdev->dev, &pcdev->v4l2_dev); in emmaprp_probe() 929 v4l2_err(&pcdev->v4l2_dev, "Failed to allocate video device\n"); in emmaprp_probe() 936 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe() 941 v4l2_info(&pcdev->v4l2_dev, EMMAPRP_MODULE_NAME in emmaprp_probe() [all …]
|
D | vim2m.c | 71 v4l2_dbg(1, debug, &dev->v4l2_dev, "%s: " fmt, __func__, ## arg) 141 struct v4l2_device v4l2_dev; member 219 v4l2_err(&dev->v4l2_dev, in device_process() 226 v4l2_err(&dev->v4l2_dev, "Output buffer is too small\n"); in device_process() 546 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_cap() 568 v4l2_err(&ctx->dev->v4l2_dev, in vidioc_try_fmt_vid_out() 593 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in vidioc_s_fmt() 667 v4l2_err(&ctx->dev->v4l2_dev, "Invalid control\n"); in vim2m_s_ctrl() 999 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in vim2m_probe() 1009 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe() [all …]
|
D | fsl-viu.c | 115 struct v4l2_device v4l2_dev; member 1447 snprintf(viu_dev->v4l2_dev.name, in viu_of_probe() 1448 sizeof(viu_dev->v4l2_dev.name), "%s", "VIU"); in viu_of_probe() 1449 ret = v4l2_device_register(viu_dev->dev, &viu_dev->v4l2_dev); in viu_of_probe() 1465 viu_dev->v4l2_dev.ctrl_handler = &viu_dev->hdl; in viu_of_probe() 1466 viu_dev->decoder = v4l2_i2c_new_subdev(&viu_dev->v4l2_dev, ad, in viu_of_probe() 1484 vdev->v4l2_dev = &viu_dev->v4l2_dev; in viu_of_probe() 1540 v4l2_device_unregister(&viu_dev->v4l2_dev); in viu_of_probe() 1548 struct v4l2_device *v4l2_dev = dev_get_drvdata(&op->dev); in viu_of_remove() local 1549 struct viu_dev *dev = container_of(v4l2_dev, struct viu_dev, v4l2_dev); in viu_of_remove() [all …]
|
D | timblogiw.c | 49 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()
|
D | rcar_jpu.c | 212 struct v4l2_device v4l2_dev; member 869 v4l2_err(&ctx->jpu->v4l2_dev, "%s queue busy\n", __func__); in jpu_s_fmt() 1662 ret = v4l2_device_register(&pdev->dev, &jpu->v4l2_dev); in jpu_probe() 1671 v4l2_err(&jpu->v4l2_dev, "Failed to init mem2mem device\n"); in jpu_probe() 1678 v4l2_err(&jpu->v4l2_dev, "Failed to init memory allocator\n"); in jpu_probe() 1693 jpu->vfd_encoder.v4l2_dev = &jpu->v4l2_dev; in jpu_probe() 1698 v4l2_err(&jpu->v4l2_dev, "Failed to register video device\n"); in jpu_probe() 1710 jpu->vfd_decoder.v4l2_dev = &jpu->v4l2_dev; in jpu_probe() 1715 v4l2_err(&jpu->v4l2_dev, "Failed to register video device\n"); in jpu_probe() 1722 v4l2_info(&jpu->v4l2_dev, "encoder device registered as /dev/video%d\n", in jpu_probe() [all …]
|
D | sh_veu.c | 109 struct v4l2_device v4l2_dev; member 564 v4l2_err(&veu_file->veu_dev->v4l2_dev, "%s queue busy\n", __func__); in sh_veu_s_fmt() 1156 ret = v4l2_device_register(&pdev->dev, &veu->v4l2_dev); in sh_veu_probe() 1171 vdev->v4l2_dev = &veu->v4l2_dev; in sh_veu_probe() 1185 v4l2_err(&veu->v4l2_dev, "Failed to init mem2mem device: %d\n", ret); in sh_veu_probe() 1205 v4l2_device_unregister(&veu->v4l2_dev); in sh_veu_probe() 1211 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in sh_veu_remove() local 1212 struct sh_veu_dev *veu = container_of(v4l2_dev, in sh_veu_remove() 1213 struct sh_veu_dev, v4l2_dev); in sh_veu_remove() 1219 v4l2_device_unregister(&veu->v4l2_dev); in sh_veu_remove()
|
D | via-camera.c | 58 struct v4l2_device v4l2_dev; member 1375 ret = v4l2_device_register(&pdev->dev, &cam->v4l2_dev); in viacam_probe() 1383 cam->v4l2_dev.ctrl_handler = &cam->ctrl_handler; in viacam_probe() 1408 cam->sensor = v4l2_i2c_new_subdev_board(&cam->v4l2_dev, sensor_adapter, in viacam_probe() 1427 cam->vdev.v4l2_dev = &cam->v4l2_dev; in viacam_probe() 1452 v4l2_device_unregister(&cam->v4l2_dev); in viacam_probe() 1464 v4l2_device_unregister(&cam->v4l2_dev); in viacam_remove()
|
/linux-4.4.14/drivers/media/platform/s3c-camif/ |
D | camif-core.c | 199 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_register_sensor() local 212 v4l2_warn(v4l2_dev, "failed to get I2C adapter %d\n", in camif_register_sensor() 217 sd = v4l2_i2c_new_subdev_board(v4l2_dev, adapter, in camif_register_sensor() 221 v4l2_warn(v4l2_dev, "failed to acquire subdev %s\n", in camif_register_sensor() 227 v4l2_info(v4l2_dev, "registered sensor subdevice %s\n", sd->name); in camif_register_sensor() 311 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_media_dev_register() local 324 strlcpy(v4l2_dev->name, "s3c-camif", sizeof(v4l2_dev->name)); in camif_media_dev_register() 325 v4l2_dev->mdev = md; in camif_media_dev_register() 327 ret = v4l2_device_register(camif->dev, v4l2_dev); in camif_media_dev_register() 333 v4l2_device_unregister(v4l2_dev); in camif_media_dev_register() [all …]
|
/linux-4.4.14/Documentation/zh_CN/video4linux/ |
D | v4l2-framework.txt | 102 v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev); 105 为 NULL,就将其指向 v4l2_dev。 112 如果 v4l2_dev->name 为空,则它将被设置为从 dev 中衍生出的值(为了 115 v4l2_device_register 前设置 v4l2_dev->name。 124 当一个设备创建了多个 PCI 设备,使得 v4l2_dev 无法与一个特定的父设备 133 v4l2_device_unregister(struct v4l2_device *v4l2_dev); 135 如果 dev->driver_data 域指向 v4l2_dev,将会被重置为 NULL。注销同时 142 v4l2_device_disconnect(struct v4l2_device *v4l2_dev); 155 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); 158 if (v4l2_dev == NULL) [all …]
|
/linux-4.4.14/drivers/media/usb/au0828/ |
D | au0828-core.c | 139 static void au0828_usb_v4l2_release(struct v4l2_device *v4l2_dev) in au0828_usb_v4l2_release() argument 142 container_of(v4l2_dev, struct au0828_dev, v4l2_dev); in au0828_usb_v4l2_release() 145 v4l2_device_unregister(&dev->v4l2_dev); in au0828_usb_v4l2_release() 175 v4l2_device_disconnect(&dev->v4l2_dev); in au0828_usb_disconnect() 176 v4l2_device_put(&dev->v4l2_dev); in au0828_usb_disconnect() 229 dev->v4l2_dev.release = au0828_usb_v4l2_release; in au0828_usb_probe() 232 retval = v4l2_device_register(&interface->dev, &dev->v4l2_dev); in au0828_usb_probe() 249 dev->v4l2_dev.ctrl_handler = &dev->v4l2_ctrl_hdl; in au0828_usb_probe()
|
D | au0828-cards.c | 227 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in au0828_card_analog_fe_setup() 236 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in au0828_card_analog_fe_setup() 245 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_type_addr, in au0828_card_analog_fe_setup()
|
D | au0828-video.c | 803 v4l2_device_call_all(&dev->v4l2_dev, 0, video, in au0828_start_analog_streaming() 827 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in au0828_stop_streaming() 1014 v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_power, 0); in au0828_v4l2_close() 1048 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->std); in au0828_init_tuner() 1049 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); in au0828_init_tuner() 1227 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, norm); in vidioc_s_std() 1324 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_routing, in au0828_s_input() 1348 v4l2_device_call_all(&dev->v4l2_dev, 0, audio, s_routing, in au0828_s_input() 1426 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in vidioc_g_tuner() 1444 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in vidioc_s_tuner() [all …]
|
/linux-4.4.14/drivers/media/platform/coda/ |
D | coda-bit.c | 208 v4l2_err(&ctx->dev->v4l2_dev, "trying to queue empty buffer\n"); in coda_bitstream_try_queue() 214 v4l2_err(&ctx->dev->v4l2_dev, "bitstream buffer overflow\n"); in coda_bitstream_try_queue() 250 v4l2_err(&ctx->dev->v4l2_dev, in coda_fill_bitstream() 508 v4l2_err(&dev->v4l2_dev, "CODA_COMMAND_ENCODE_HEADER timeout\n"); in coda_encode_header() 641 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_setup_iram() 696 v4l2_err(&dev->v4l2_dev, "firmware get command error\n"); in coda_check_firmware() 703 v4l2_info(&dev->v4l2_dev, "Firmware code revision: %d\n", in coda_check_firmware() 718 v4l2_err(&dev->v4l2_dev, in coda_check_firmware() 725 v4l2_info(&dev->v4l2_dev, "Initialized %s.\n", in coda_check_firmware() 729 v4l2_info(&dev->v4l2_dev, "Firmware version: %u.%u.%u\n", in coda_check_firmware() [all …]
|
D | coda-common.c | 71 v4l2_dbg(2, coda_debug, &dev->v4l2_dev, in coda_write() 81 v4l2_dbg(2, coda_debug, &dev->v4l2_dev, in coda_read() 578 v4l2_err(&ctx->dev->v4l2_dev, "%s queue busy\n", __func__); in coda_s_fmt() 608 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_s_fmt() 1000 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready() 1006 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready() 1017 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready() 1024 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready() 1033 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready() 1041 v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev, in coda_job_ready() [all …]
|
/linux-4.4.14/drivers/media/platform/exynos4-is/ |
D | media-dev.c | 351 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 …]
|
D | fimc-isp-video.h | 19 struct v4l2_device *v4l2_dev, 32 struct v4l2_device *v4l2_dev, in fimc_isp_video_device_register() argument
|
D | fimc-m2m.c | 717 struct v4l2_device *v4l2_dev) in fimc_register_m2m_device() argument 722 fimc->v4l2_dev = v4l2_dev; in fimc_register_m2m_device() 727 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device() 738 v4l2_err(v4l2_dev, "failed to initialize v4l2-m2m device\n"); in fimc_register_m2m_device() 750 v4l2_info(v4l2_dev, "Registered %s as /dev/%s\n", in fimc_register_m2m_device()
|
D | fimc-core.h | 435 struct v4l2_device *v4l2_dev; member 610 v4l2_err(ctx->fimc_dev->v4l2_dev, in ctx_get_frame() 644 struct v4l2_device *v4l2_dev);
|
D | fimc-isp-video.c | 572 struct v4l2_device *v4l2_dev, in fimc_isp_video_device_register() argument 617 vdev->v4l2_dev = v4l2_dev; in fimc_isp_video_device_register() 635 v4l2_info(v4l2_dev, "Registered %s as /dev/%s\n", in fimc_isp_video_device_register()
|
D | fimc-lite.h | 149 struct v4l2_device *v4l2_dev; member
|
D | media-dev.h | 134 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/pci/cobalt/ |
D | cobalt-driver.c | 136 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_get_sd_nr() 149 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_notify() 400 cobalt->v4l2_dev.name, (void *)cobalt)) { in cobalt_setup_pci() 534 s[i].sd = v4l2_i2c_new_subdev_board(&cobalt->v4l2_dev, in cobalt_subdevs_init() 627 s->sd = v4l2_i2c_new_subdev_board(&cobalt->v4l2_dev, in cobalt_subdevs_hsma_init() 655 s->sd = v4l2_i2c_new_subdev_board(&cobalt->v4l2_dev, in cobalt_subdevs_hsma_init() 700 retval = v4l2_device_register(&pci_dev->dev, &cobalt->v4l2_dev); in cobalt_probe() 708 snprintf(cobalt->v4l2_dev.name, sizeof(cobalt->v4l2_dev.name), in cobalt_probe() 710 cobalt->v4l2_dev.notify = cobalt_notify; in cobalt_probe() 714 create_singlethread_workqueue(cobalt->v4l2_dev.name); in cobalt_probe() [all …]
|
D | cobalt-driver.h | 169 #define cobalt_err(fmt, arg...) v4l2_err(&cobalt->v4l2_dev, fmt, ## arg) 170 #define cobalt_warn(fmt, arg...) v4l2_warn(&cobalt->v4l2_dev, fmt, ## arg) 171 #define cobalt_info(fmt, arg...) v4l2_info(&cobalt->v4l2_dev, fmt, ## arg) 173 v4l2_dbg(level, cobalt_debug, &cobalt->v4l2_dev, fmt, ## arg) 264 struct v4l2_device v4l2_dev; member 304 static inline struct cobalt *to_cobalt(struct v4l2_device *v4l2_dev) in to_cobalt() argument 306 return container_of(v4l2_dev, struct cobalt, v4l2_dev); in to_cobalt()
|
/linux-4.4.14/drivers/media/pci/sta2x11/ |
D | sta2x11_vip.c | 129 struct v4l2_device v4l2_dev; member 307 v4l2_err(&vip->v4l2_dev, "buffer too small (%lu < %lu)\n", in buffer_prepare() 610 v4l2_warn(&vip->v4l2_dev, "Invalid format, only UYVY supported\n"); in vidioc_try_fmt_vid_cap() 673 v4l2_err(&vip->v4l2_dev, "device busy\n"); in vidioc_s_fmt_vid_cap() 697 v4l2_err(&vip->v4l2_dev, "unknown field format\n"); in vidioc_s_fmt_vid_cap() 861 v4l2_err(&vip->v4l2_dev, "Cannot configure coherent mask"); in sta2x11_vip_init_buffer() 881 v4l2_err(&vip->v4l2_dev, "Can't allocate buffer context"); in sta2x11_vip_init_buffer() 899 vip->v4l2_dev.ctrl_handler = &vip->ctrl_hdl; in sta2x11_vip_init_controls() 1052 ret = v4l2_device_register(&pdev->dev, &vip->v4l2_dev); in sta2x11_vip_init_one() 1092 vip->video_dev.v4l2_dev = &vip->v4l2_dev; in sta2x11_vip_init_one() [all …]
|
/linux-4.4.14/drivers/media/usb/em28xx/ |
D | em28xx-video.c | 194 struct v4l2_device *v4l2_dev = &dev->v4l2->v4l2_dev; in em28xx_wake_i2c() local 196 v4l2_device_call_all(v4l2_dev, 0, core, reset, 0); in em28xx_wake_i2c() 197 v4l2_device_call_all(v4l2_dev, 0, video, s_routing, in em28xx_wake_i2c() 199 v4l2_device_call_all(v4l2_dev, 0, video, s_stream, 0); in em28xx_wake_i2c() 974 v4l2_device_call_all(&v4l2->v4l2_dev, in em28xx_start_analog_streaming() 1117 struct v4l2_device *v4l2_dev = &dev->v4l2->v4l2_dev; in video_mux() local 1126 v4l2_device_call_all(v4l2_dev, 0, video, s_routing, in video_mux() 1131 v4l2_device_call_all(v4l2_dev, 0, audio, in video_mux() 1135 v4l2_device_call_all(v4l2_dev, 0, audio, s_routing, in video_mux() 1141 v4l2_device_call_all(v4l2_dev, 0, audio, s_routing, in video_mux() [all …]
|
D | em28xx-camera.c | 364 v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, in em28xx_init_camera() 423 v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, in em28xx_init_camera()
|
/linux-4.4.14/drivers/media/usb/go7007/ |
D | go7007-driver.c | 47 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 …]
|
D | go7007-v4l2.c | 263 call_all(&go->v4l2_dev, pad, set_fmt, NULL, &format); in set_capture_size() 446 call_all(&go->v4l2_dev, video, s_stream, 1); in go7007_start_streaming() 467 call_all(&go->v4l2_dev, video, s_stream, 0); in go7007_stop_streaming() 606 call_all(&go->v4l2_dev, video, s_std, go->std); in go7007_s_std() 627 return call_all(&go->v4l2_dev, video, querystd, std); in vidioc_querystd() 747 return call_all(&go->v4l2_dev, tuner, g_tuner, t); in vidioc_g_tuner() 758 return call_all(&go->v4l2_dev, tuner, s_tuner, t); in vidioc_s_tuner() 769 return call_all(&go->v4l2_dev, tuner, g_frequency, f); in vidioc_g_frequency() 780 return call_all(&go->v4l2_dev, tuner, s_frequency, f); in vidioc_s_frequency() 788 return call_all(&go->v4l2_dev, core, log_status); in vidioc_log_status() [all …]
|
D | go7007-priv.h | 172 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()
|
D | snd-go7007.c | 280 v4l2_device_get(&go->v4l2_dev); in go7007_snd_init() 293 v4l2_device_put(&go->v4l2_dev); in go7007_snd_remove()
|
/linux-4.4.14/drivers/media/platform/omap/ |
D | omap_vout.c | 305 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "%s Offset:%x\n", in omap_vout_calculate_offset() 408 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omapvid_setup_overlay() 424 v4l2_warn(&vout->vid_dev->v4l2_dev, "setup_overlay failed\n"); in omapvid_setup_overlay() 489 v4l2_warn(&vout->vid_dev->v4l2_dev, "apply_changes failed\n"); in omapvid_init() 693 v4l2_err(&vout->vid_dev->v4l2_dev, in omap_vout_buffer_setup() 791 dma_addr = dma_map_single(vout->vid_dev->v4l2_dev.dev, (void *) addr, in omap_vout_buffer_prepare() 793 if (dma_mapping_error(vout->vid_dev->v4l2_dev.dev, dma_addr)) in omap_vout_buffer_prepare() 794 v4l2_err(&vout->vid_dev->v4l2_dev, "dma_map_single failed\n"); in omap_vout_buffer_prepare() 854 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omap_vout_vm_open() 863 v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, in omap_vout_vm_close() [all …]
|
D | omap_vout_vrfb.c | 97 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()
|
D | omap_voutdef.h | 102 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/radio/si470x/ |
D | radio-si470x-usb.c | 499 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()
|
D | radio-si470x.h | 147 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 229 v4l2_err(&dev->v4l2_dev, "g2d_setup_ctrls failed\n"); in g2d_setup_ctrls() 276 v4l2_info(&dev->v4l2_dev, "instance opened\n"); in g2d_open() 289 v4l2_info(&dev->v4l2_dev, "instance closed\n"); in g2d_release() 384 v4l2_err(&dev->v4l2_dev, "queue (%d) bust\n", f->type); in vidioc_s_fmt() 453 v4l2_err(&dev->v4l2_dev, in vidioc_try_crop() 690 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in g2d_probe() 695 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in g2d_probe() 701 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe() 704 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in g2d_probe() 710 v4l2_info(&dev->v4l2_dev, "device registered as /dev/video%d\n", in g2d_probe() [all …]
|
D | g2d.h | 22 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/Documentation/video4linux/ |
D | v4l2-pci-skeleton.c | 66 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()
|
D | v4l2-framework.txt | 91 v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev); 94 field is NULL, it will be linked to v4l2_dev. 103 If v4l2_dev->name is empty then it will be set to a value derived from dev 106 you *must* setup v4l2_dev->name before calling v4l2_device_register. 116 it impossible to associate v4l2_dev with a particular parent. 125 v4l2_device_unregister(struct v4l2_device *v4l2_dev); 127 If the dev->driver_data field points to v4l2_dev, it will be reset to NULL. 135 v4l2_device_disconnect(struct v4l2_device *v4l2_dev); 150 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); 153 if (v4l2_dev == NULL) [all …]
|
/linux-4.4.14/drivers/media/usb/usbtv/ |
D | usbtv-video.c | 662 static void usbtv_release(struct v4l2_device *v4l2_dev) in usbtv_release() argument 664 struct usbtv *usbtv = container_of(v4l2_dev, struct usbtv, v4l2_dev); in usbtv_release() 666 v4l2_device_unregister(&usbtv->v4l2_dev); in usbtv_release() 698 usbtv->v4l2_dev.release = usbtv_release; in usbtv_video_init() 699 ret = v4l2_device_register(usbtv->dev, &usbtv->v4l2_dev); in usbtv_video_init() 707 usbtv->vdev.v4l2_dev = &usbtv->v4l2_dev; in usbtv_video_init() 724 v4l2_device_unregister(&usbtv->v4l2_dev); in usbtv_video_init() 738 v4l2_device_disconnect(&usbtv->v4l2_dev); in usbtv_video_free() 743 v4l2_device_put(&usbtv->v4l2_dev); in usbtv_video_free()
|
D | usbtv-core.c | 92 v4l2_device_get(&usbtv->v4l2_dev); in usbtv_probe() 125 v4l2_device_put(&usbtv->v4l2_dev); in usbtv_disconnect()
|
D | usbtv.h | 75 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/pci/meye/ |
D | meye.c | 1620 struct v4l2_device *v4l2_dev = &meye.v4l2_dev; in meye_probe() local 1629 ret = v4l2_device_register(&pcidev->dev, v4l2_dev); in meye_probe() 1631 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in meye_probe() 1639 v4l2_err(v4l2_dev, "grab buffer allocation failed\n"); in meye_probe() 1646 v4l2_err(v4l2_dev, "fifo allocation failed\n"); in meye_probe() 1652 v4l2_err(v4l2_dev, "fifo allocation failed\n"); in meye_probe() 1657 meye.vdev.v4l2_dev = &meye.v4l2_dev; in meye_probe() 1661 v4l2_err(v4l2_dev, "meye: unable to power on the camera\n"); in meye_probe() 1662 v4l2_err(v4l2_dev, "meye: did you enable the camera in " in meye_probe() 1668 v4l2_err(v4l2_dev, "meye: pci_enable_device failed\n"); in meye_probe() [all …]
|
/linux-4.4.14/drivers/media/usb/usbvision/ |
D | usbvision.h | 360 struct v4l2_device v4l2_dev; member 466 static inline struct usb_usbvision *to_usbvision(struct v4l2_device *v4l2_dev) in to_usbvision() argument 468 return container_of(v4l2_dev, struct usb_usbvision, v4l2_dev); in to_usbvision() 472 v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args)
|
D | usbvision-i2c.c | 199 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()
|
D | usbvision-video.c | 1266 vdev->v4l2_dev = &usbvision->v4l2_dev; in usbvision_vdev_init() 1348 if (v4l2_device_register(&intf->dev, &usbvision->v4l2_dev)) in usbvision_alloc() 1353 usbvision->v4l2_dev.ctrl_handler = &usbvision->hdl; in usbvision_alloc() 1366 v4l2_device_unregister(&usbvision->v4l2_dev); in usbvision_alloc() 1392 v4l2_device_unregister(&usbvision->v4l2_dev); in usbvision_release() 1594 v4l2_device_disconnect(&usbvision->v4l2_dev); in usbvision_disconnect()
|
/linux-4.4.14/drivers/media/platform/marvell-ccic/ |
D | cafe-driver.c | 146 struct mcam_camera *m = container_of(dev, struct mcam_camera, v4l2_dev); in to_cam() 565 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_remove() local 566 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_remove() 583 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_suspend() local 584 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_suspend() 598 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in cafe_pci_resume() local 599 struct cafe_camera *cam = to_cam(v4l2_dev); in cafe_pci_resume()
|
D | mcam-core.c | 1794 ret = v4l2_device_register(cam->dev, &cam->v4l2_dev); in mccic_register() 1811 cam->v4l2_dev.ctrl_handler = &cam->ctrl_handler; in mccic_register() 1819 cam->sensor = v4l2_i2c_new_subdev_board(&cam->v4l2_dev, in mccic_register() 1836 cam->vdev.v4l2_dev = &cam->v4l2_dev; in mccic_register() 1860 v4l2_device_unregister(&cam->v4l2_dev); in mccic_register() 1882 v4l2_device_unregister(&cam->v4l2_dev); in mccic_shutdown()
|
/linux-4.4.14/drivers/media/pci/saa7134/ |
D | saa7134-core.c | 819 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init() 892 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in saa7134_initdev() 1031 v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in saa7134_initdev() 1042 sd = v4l2_i2c_new_subdev(&dev->v4l2_dev, in saa7134_initdev() 1127 v4l2_device_unregister(&dev->v4l2_dev); in saa7134_initdev() 1135 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in saa7134_finidev() local 1136 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev); in saa7134_finidev() 1192 v4l2_device_unregister(&dev->v4l2_dev); in saa7134_finidev() 1227 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in saa7134_suspend() local 1228 struct saa7134_dev *dev = container_of(v4l2_dev, struct saa7134_dev, v4l2_dev); in saa7134_suspend() [all …]
|
D | saa7134-empress.c | 264 dev->empress_dev->v4l2_dev = &dev->v4l2_dev; in empress_init()
|
/linux-4.4.14/drivers/media/pci/zoran/ |
D | zoran.h | 273 struct v4l2_device v4l2_dev; member 392 static inline struct zoran *to_zoran(struct v4l2_device *v4l2_dev) in to_zoran() argument 394 return container_of(v4l2_dev, struct zoran, v4l2_dev); in to_zoran()
|
D | zoran_card.c | 715 i2c_set_adapdata(&zr->i2c_adapter, &zr->v4l2_dev); in zoran_register_i2c() 1053 zr->video_dev->v4l2_dev = &zr->v4l2_dev; in zr36057_init() 1086 struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); in zoran_remove() local 1087 struct zoran *zr = to_zoran(v4l2_dev); in zoran_remove() 1121 v4l2_device_unregister(&zr->v4l2_dev); in zoran_remove() 1179 struct zoran *zr = to_zoran(sd->v4l2_dev); in zoran_subdev_notify() 1218 zr->v4l2_dev.notify = zoran_subdev_notify; in zoran_probe() 1219 if (v4l2_device_register(&pdev->dev, &zr->v4l2_dev)) in zoran_probe() 1226 zr->v4l2_dev.ctrl_handler = &zr->hdl; in zoran_probe() 1343 zr->decoder = v4l2_i2c_new_subdev(&zr->v4l2_dev, in zoran_probe() [all …]
|
/linux-4.4.14/drivers/media/usb/pwc/ |
D | pwc-if.c | 564 struct pwc_device *pdev = container_of(v, struct pwc_device, v4l2_dev); in pwc_video_release() 567 v4l2_device_unregister(&pdev->v4l2_dev); in pwc_video_release() 1076 pdev->v4l2_dev.release = pwc_video_release; in usb_pwc_probe() 1077 rc = v4l2_device_register(&intf->dev, &pdev->v4l2_dev); in usb_pwc_probe() 1083 pdev->v4l2_dev.ctrl_handler = &pdev->ctrl_handler; in usb_pwc_probe() 1084 pdev->vdev.v4l2_dev = &pdev->v4l2_dev; in usb_pwc_probe() 1125 v4l2_device_unregister(&pdev->v4l2_dev); in usb_pwc_probe() 1138 struct pwc_device *pdev = container_of(v, struct pwc_device, v4l2_dev); in usb_pwc_disconnect() 1147 v4l2_device_disconnect(&pdev->v4l2_dev); in usb_pwc_disconnect() 1157 v4l2_device_put(&pdev->v4l2_dev); in usb_pwc_disconnect()
|
/linux-4.4.14/drivers/staging/media/omap4iss/ |
D | iss.h | 88 struct v4l2_device v4l2_dev; member 125 container_of(dev, struct iss_device, v4l2_dev) 157 struct v4l2_device *v4l2_dev);
|
D | iss.c | 1123 v4l2_device_unregister(&iss->v4l2_dev); in iss_unregister_entities() 1161 subdev = v4l2_i2c_new_subdev_board(&iss->v4l2_dev, adapter, in iss_register_subdev_group() 1194 iss->v4l2_dev.mdev = &iss->media_dev; in iss_register_entities() 1195 ret = v4l2_device_register(iss->dev, &iss->v4l2_dev); in iss_register_entities() 1203 ret = omap4iss_csi2_register_entities(&iss->csi2a, &iss->v4l2_dev); in iss_register_entities() 1207 ret = omap4iss_csi2_register_entities(&iss->csi2b, &iss->v4l2_dev); in iss_register_entities() 1211 ret = omap4iss_ipipeif_register_entities(&iss->ipipeif, &iss->v4l2_dev); in iss_register_entities() 1215 ret = omap4iss_ipipe_register_entities(&iss->ipipe, &iss->v4l2_dev); in iss_register_entities() 1219 ret = omap4iss_resizer_register_entities(&iss->resizer, &iss->v4l2_dev); in iss_register_entities() 1268 ret = v4l2_device_register_subdev_nodes(&iss->v4l2_dev); in iss_register_entities()
|
/linux-4.4.14/drivers/media/usb/gspca/ |
D | gspca.h | 29 v4l2_dbg(level, gspca_debug, &gspca_dev->v4l2_dev, fmt, ##__VA_ARGS__) 32 v4l2_err(&gspca_dev->v4l2_dev, fmt, ##__VA_ARGS__) 148 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
D | cx23885-ir.c | 74 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()
|
D | cx23885.h | 354 struct v4l2_device v4l2_dev; member 447 static inline struct cx23885_dev *to_cx23885(struct v4l2_device *v4l2_dev) in to_cx23885() argument 449 return container_of(v4l2_dev, struct cx23885_dev, v4l2_dev); in to_cx23885() 453 v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args) 459 v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args)
|
D | cx23885-core.c | 813 spin_lock(&dev->v4l2_dev.lock); in cx23885_find_hw() 814 v4l2_device_for_each_subdev(sd, &dev->v4l2_dev) { in cx23885_find_hw() 820 spin_unlock(&dev->v4l2_dev.lock); in cx23885_find_hw() 1823 dev = to_cx23885(sd->v4l2_dev); in cx23885_v4l2_dev_notify() 1842 dev->v4l2_dev.notify = cx23885_v4l2_dev_notify; in cx23885_v4l2_dev_notify_init() 1958 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); in cx23885_initdev() 1968 dev->v4l2_dev.ctrl_handler = hdl; in cx23885_initdev() 2039 v4l2_device_unregister(&dev->v4l2_dev); in cx23885_initdev() 2047 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); in cx23885_finidev() local 2048 struct cx23885_dev *dev = to_cx23885(v4l2_dev); in cx23885_finidev() [all …]
|
D | cx23885-ioctl.c | 36 strlcpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name)); in cx23885_g_chip_info()
|
/linux-4.4.14/drivers/media/usb/msi2500/ |
D | msi2500.c | 124 struct v4l2_device v4l2_dev; member 584 container_of(v, struct msi2500_dev, v4l2_dev); in msi2500_disconnect() 592 v4l2_device_disconnect(&dev->v4l2_dev); in msi2500_disconnect() 598 v4l2_device_put(&dev->v4l2_dev); in msi2500_disconnect() 1159 struct msi2500_dev *dev = container_of(v, struct msi2500_dev, v4l2_dev); in msi2500_video_release() 1162 v4l2_device_unregister(&dev->v4l2_dev); in msi2500_video_release() 1242 dev->v4l2_dev.release = msi2500_video_release; in msi2500_probe() 1243 ret = v4l2_device_register(&intf->dev, &dev->v4l2_dev); in msi2500_probe() 1268 sd = v4l2_spi_new_subdev(&dev->v4l2_dev, master, &board_info); in msi2500_probe() 1287 dev->v4l2_dev.ctrl_handler = &dev->hdl; in msi2500_probe() [all …]
|
/linux-4.4.14/drivers/media/radio/wl128x/ |
D | fmdrv_v4l2.c | 538 strlcpy(fmdev->v4l2_dev.name, FM_DRV_NAME, sizeof(fmdev->v4l2_dev.name)); in fm_v4l2_init_video_device() 539 ret = v4l2_device_register(NULL, &fmdev->v4l2_dev); in fm_v4l2_init_video_device() 552 gradio_dev.v4l2_dev = &fmdev->v4l2_dev; in fm_v4l2_init_video_device() 614 v4l2_device_unregister(&fmdev->v4l2_dev); in fm_v4l2_deinit_video_device()
|
/linux-4.4.14/drivers/media/usb/airspy/ |
D | airspy.c | 115 struct v4l2_device v4l2_dev; member 473 struct airspy *s = container_of(v, struct airspy, v4l2_dev); in airspy_disconnect() 481 v4l2_device_disconnect(&s->v4l2_dev); in airspy_disconnect() 486 v4l2_device_put(&s->v4l2_dev); in airspy_disconnect() 873 struct airspy *s = container_of(v, struct airspy, v4l2_dev); in airspy_video_release() 876 v4l2_device_unregister(&s->v4l2_dev); in airspy_video_release() 1039 s->v4l2_dev.release = airspy_video_release; in airspy_probe() 1040 ret = v4l2_device_register(&intf->dev, &s->v4l2_dev); in airspy_probe() 1068 s->v4l2_dev.ctrl_handler = &s->hdl; in airspy_probe() 1069 s->vdev.v4l2_dev = &s->v4l2_dev; in airspy_probe() [all …]
|
/linux-4.4.14/drivers/media/pci/dt3155/ |
D | dt3155.c | 525 err = v4l2_device_register(&pdev->dev, &pd->v4l2_dev); in dt3155_probe() 529 pd->vdev.v4l2_dev = &pd->v4l2_dev; in dt3155_probe() 595 v4l2_device_unregister(&pd->v4l2_dev); in dt3155_probe() 601 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in dt3155_remove() local 602 struct dt3155_priv *pd = container_of(v4l2_dev, struct dt3155_priv, in dt3155_remove() 603 v4l2_dev); in dt3155_remove() 608 v4l2_device_unregister(&pd->v4l2_dev); in dt3155_remove()
|
D | dt3155.h | 180 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
D | isp.h | 176 struct v4l2_device v4l2_dev; member 235 container_of(dev, struct isp_device, v4l2_dev) 271 struct v4l2_device *v4l2_dev);
|
D | isp.c | 1793 v4l2_device_unregister(&isp->v4l2_dev); in isp_unregister_entities() 1884 isp->v4l2_dev.mdev = &isp->media_dev; in isp_register_entities() 1885 ret = v4l2_device_register(isp->dev, &isp->v4l2_dev); in isp_register_entities() 1893 ret = omap3isp_ccp2_register_entities(&isp->isp_ccp2, &isp->v4l2_dev); in isp_register_entities() 1897 ret = omap3isp_csi2_register_entities(&isp->isp_csi2a, &isp->v4l2_dev); in isp_register_entities() 1901 ret = omap3isp_ccdc_register_entities(&isp->isp_ccdc, &isp->v4l2_dev); in isp_register_entities() 1906 &isp->v4l2_dev); in isp_register_entities() 1910 ret = omap3isp_resizer_register_entities(&isp->isp_res, &isp->v4l2_dev); in isp_register_entities() 1914 ret = omap3isp_stat_register_entities(&isp->isp_aewb, &isp->v4l2_dev); in isp_register_entities() 1918 ret = omap3isp_stat_register_entities(&isp->isp_af, &isp->v4l2_dev); in isp_register_entities() [all …]
|
/linux-4.4.14/drivers/media/platform/soc_camera/ |
D | soc_camera.c | 1197 icd->parent = ici->v4l2_dev.dev; in scan_add_host() 1403 subdev = v4l2_i2c_new_subdev_board(&ici->v4l2_dev, adap, in soc_camera_i2c_init() 1542 dev_err(ici->v4l2_dev.dev, "No I2C data source found!\n"); in scan_async_group() 1547 sasc = devm_kzalloc(ici->v4l2_dev.dev, sizeof(*sasc), GFP_KERNEL); in scan_async_group() 1573 icd->parent = ici->v4l2_dev.dev; in scan_async_group() 1584 ret = v4l2_async_notifier_register(&ici->v4l2_dev, &sasc->notifier); in scan_async_group() 1595 devm_kfree(ici->v4l2_dev.dev, sasc); in scan_async_group() 1596 dev_err(ici->v4l2_dev.dev, "group probe failed: %d\n", ret); in scan_async_group() 1638 info = devm_kzalloc(ici->v4l2_dev.dev, sizeof(struct soc_of_info), in soc_of_bind() 1672 icd->parent = ici->v4l2_dev.dev; in soc_of_bind() [all …]
|
D | pxa_camera.c | 280 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 …]
|
D | soc_scale_crop.c | 101 struct device *dev = sd->v4l2_dev->dev; in soc_camera_client_s_crop() 228 ret = v4l2_device_call_until_err(sd->v4l2_dev, in client_set_fmt() 268 ret = v4l2_device_call_until_err(sd->v4l2_dev, in client_set_fmt()
|
D | sh_mobile_ceu_camera.c | 196 dev_warn(pcdev->ici.v4l2_dev.dev, "soft reset time out\n"); in sh_mobile_ceu_soft_reset() 559 v4l2_device_for_each_subdev(sd, &pcdev->ici.v4l2_dev) in find_csi2() 625 pm_runtime_get_sync(ici->v4l2_dev.dev); in sh_mobile_ceu_clock_start() 652 pm_runtime_put(ici->v4l2_dev.dev); in sh_mobile_ceu_clock_stop() 777 dev_err(pcdev->ici.v4l2_dev.dev, in capture_restore() 1124 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_get_formats() 1299 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_set_crop() 1551 ret = v4l2_device_call_until_err(sd->v4l2_dev, soc_camera_grp_id(icd), in sh_mobile_ceu_try_fmt() 1576 ret = v4l2_device_call_until_err(sd->v4l2_dev, in sh_mobile_ceu_try_fmt() 1846 pcdev->ici.v4l2_dev.dev = &pdev->dev; in sh_mobile_ceu_probe() [all …]
|
D | atmel-isi.c | 401 pm_runtime_get_sync(ici->v4l2_dev.dev); in start_streaming() 407 pm_runtime_put(ici->v4l2_dev.dev); in start_streaming() 465 pm_runtime_put(ici->v4l2_dev.dev); in stop_streaming() 853 pm_runtime_get_sync(ici->v4l2_dev.dev); in isi_camera_set_bus_param() 858 pm_runtime_put(ici->v4l2_dev.dev); in isi_camera_set_bus_param() 1023 soc_host->v4l2_dev.dev = &pdev->dev; in atmel_isi_probe()
|
D | rcar_vin.c | 959 pm_runtime_get_sync(ici->v4l2_dev.dev); in rcar_vin_add_device() 993 pm_runtime_put(ici->v4l2_dev.dev); in rcar_vin_remove_device() 1164 dev_err(priv->ici.v4l2_dev.dev, in capture_restore() 1396 ret = v4l2_device_call_until_err(sd->v4l2_dev, in rcar_vin_get_formats() 1747 ret = v4l2_device_call_until_err(sd->v4l2_dev, soc_camera_grp_id(icd), in rcar_vin_try_fmt() 1772 ret = v4l2_device_call_until_err(sd->v4l2_dev, in rcar_vin_try_fmt() 1941 priv->ici.v4l2_dev.dev = &pdev->dev; in rcar_vin_probe()
|
/linux-4.4.14/drivers/media/pci/cx25821/ |
D | cx25821.h | 239 struct v4l2_device v4l2_dev; member 308 static inline struct cx25821_dev *get_cx25821(struct v4l2_device *v4l2_dev) in get_cx25821() argument 310 return container_of(v4l2_dev, struct cx25821_dev, v4l2_dev); in get_cx25821()
|
D | cx25821-alsa.c | 791 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in cx25821_alsa_exit_callback() local 792 struct cx25821_dev *cxdev = get_cx25821(v4l2_dev); in cx25821_alsa_exit_callback() 810 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in cx25821_alsa_init_callback() local 811 struct cx25821_dev *cxdev = get_cx25821(v4l2_dev); in cx25821_alsa_init_callback()
|
/linux-4.4.14/drivers/media/pci/bt8xx/ |
D | bttv-i2c.c | 236 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()
|
D | bttv.h | 205 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)
|
D | bttvp.h | 510 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()
|
D | bttv-driver.c | 1905 v4l2_ctrl_handler_log_status(vdev->ctrl_handler, btv->c.v4l2_dev.name); in bttv_log_status() 3422 btv->c.v4l2_dev.name, risc->cpu, (unsigned long)risc->dma); in bttv_risc_disasm() 3425 btv->c.v4l2_dev.name, in bttv_risc_disasm() 3430 btv->c.v4l2_dev.name, in bttv_risc_disasm() 3926 vfd->v4l2_dev = &btv->c.v4l2_dev; in vdev_init() 4030 snprintf(btv->c.v4l2_dev.name, sizeof(btv->c.v4l2_dev.name), in bttv_probe() 4064 btv->c.v4l2_dev.name)) { in bttv_probe() 4073 result = v4l2_device_register(&dev->dev, &btv->c.v4l2_dev); in bttv_probe() 4080 btv->c.v4l2_dev.ctrl_handler = hdl; in bttv_probe() 4104 IRQF_SHARED, btv->c.v4l2_dev.name, (void *)btv); in bttv_probe() [all …]
|
/linux-4.4.14/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc.c | 1163 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in s5p_mfc_probe() 1171 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in s5p_mfc_probe() 1179 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe() 1185 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in s5p_mfc_probe() 1189 v4l2_info(&dev->v4l2_dev, in s5p_mfc_probe() 1196 v4l2_err(&dev->v4l2_dev, "Failed to allocate video device\n"); in s5p_mfc_probe() 1204 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe() 1210 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in s5p_mfc_probe() 1214 v4l2_info(&dev->v4l2_dev, in s5p_mfc_probe() 1243 v4l2_device_unregister(&dev->v4l2_dev); in s5p_mfc_probe() [all …]
|
/linux-4.4.14/drivers/media/i2c/ |
D | bt819.c | 255 if (sd->v4l2_dev == NULL || sd->v4l2_dev->notify == NULL) in bt819_s_std() 307 if (sd->v4l2_dev == NULL || sd->v4l2_dev->notify == NULL) in bt819_s_routing()
|
/linux-4.4.14/drivers/media/usb/zr364xx/ |
D | zr364xx.c | 175 struct v4l2_device v4l2_dev; member 1211 static void zr364xx_release(struct v4l2_device *v4l2_dev) in zr364xx_release() argument 1214 container_of(v4l2_dev, struct zr364xx_camera, v4l2_dev); in zr364xx_release() 1217 v4l2_device_unregister(&cam->v4l2_dev); in zr364xx_release() 1432 cam->v4l2_dev.release = zr364xx_release; in zr364xx_probe() 1433 err = v4l2_device_register(&intf->dev, &cam->v4l2_dev); in zr364xx_probe() 1453 cam->vdev.v4l2_dev = &cam->v4l2_dev; in zr364xx_probe() 1557 v4l2_device_unregister(&cam->v4l2_dev); in zr364xx_probe() 1571 v4l2_device_disconnect(&cam->v4l2_dev); in zr364xx_disconnect() 1579 v4l2_device_put(&cam->v4l2_dev); in zr364xx_disconnect()
|
/linux-4.4.14/drivers/media/pci/cx88/ |
D | cx88.h | 364 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); \
|
D | cx88-i2c.c | 150 i2c_set_adapdata(&core->i2c_adap, &core->v4l2_dev); in cx88_i2c_init()
|
/linux-4.4.14/drivers/media/pci/saa7146/ |
D | mxb.c | 182 v4l2_device_call_until_err(&dev->v4l2_dev, 0, o, f, ##args) 255 mxb->saa7111a = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe() 257 mxb->tea6420_1 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe() 259 mxb->tea6420_2 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe() 261 mxb->tea6415c = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe() 263 mxb->tda9840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe() 265 mxb->tuner = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, in mxb_probe()
|
/linux-4.4.14/drivers/media/platform/xilinx/ |
D | xilinx-vipp.h | 37 struct v4l2_device v4l2_dev; member
|
D | xilinx-vipp.c | 310 ret = v4l2_device_register_subdev_nodes(&xdev->v4l2_dev); in xvip_graph_notify_complete() 551 ret = v4l2_async_notifier_register(&xdev->v4l2_dev, &xdev->notifier); in xvip_graph_init() 572 v4l2_device_unregister(&xdev->v4l2_dev); in xvip_composite_v4l2_cleanup() 592 xdev->v4l2_dev.mdev = &xdev->media_dev; in xvip_composite_v4l2_init() 593 ret = v4l2_device_register(xdev->dev, &xdev->v4l2_dev); in xvip_composite_v4l2_init()
|
/linux-4.4.14/drivers/media/usb/tm6000/ |
D | tm6000-cards.c | 907 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()
|
D | tm6000-video.c | 1071 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->norm); in vidioc_s_std() 1216 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in vidioc_g_tuner() 1240 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in vidioc_s_tuner() 1258 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_frequency, f); in vidioc_g_frequency() 1275 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, f); in vidioc_s_frequency() 1296 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_tuner, t); in radio_g_tuner() 1309 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_tuner, t); in radio_s_tuner() 1395 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_radio); in __tm6000_open() 1617 vfd->v4l2_dev = &dev->v4l2_dev; in vdev_init()
|
/linux-4.4.14/drivers/media/platform/s5p-tv/ |
D | mixer_video.c | 56 ret = v4l2_device_register_subdev(&mdev->v4l2_dev, sd); in find_and_register_subdev() 70 struct v4l2_device *v4l2_dev = &mdev->v4l2_dev; in mxr_acquire_video() local 75 strlcpy(v4l2_dev->name, dev_name(mdev->dev), sizeof(v4l2_dev->name)); in mxr_acquire_video() 77 ret = v4l2_device_register(dev, v4l2_dev); in mxr_acquire_video() 140 v4l2_device_unregister(v4l2_dev); in mxr_acquire_video() 155 v4l2_device_unregister(&mdev->v4l2_dev); in mxr_release_video() 1102 layer->vfd.v4l2_dev = &mdev->v4l2_dev; in mxr_base_layer_create()
|
D | hdmi_drv.c | 84 struct v4l2_device v4l2_dev; member 945 strlcpy(hdmi_dev->v4l2_dev.name, dev_name(dev), in hdmi_probe() 946 sizeof(hdmi_dev->v4l2_dev.name)); in hdmi_probe() 948 ret = v4l2_device_register(NULL, &hdmi_dev->v4l2_dev); in hdmi_probe() 968 hdmi_dev->phy_sd = v4l2_i2c_new_subdev_board(&hdmi_dev->v4l2_dev, in hdmi_probe() 988 &hdmi_dev->v4l2_dev, adapter, in hdmi_probe() 1023 v4l2_device_unregister(&hdmi_dev->v4l2_dev); in hdmi_probe() 1041 v4l2_device_unregister(&hdmi_dev->v4l2_dev); in hdmi_remove()
|
D | mixer.h | 247 struct v4l2_device v4l2_dev; member 274 return container_of(vdev, struct mxr_device, v4l2_dev); in to_mdev()
|
/linux-4.4.14/include/media/davinci/ |
D | vpbe_venc.h | 47 struct v4l2_subdev *venc_sub_dev_init(struct v4l2_device *v4l2_dev,
|
D | vpfe_capture.h | 111 struct v4l2_device v4l2_dev; member
|
D | vpbe.h | 164 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/usb/hackrf/ |
D | hackrf.c | 124 struct v4l2_device v4l2_dev; member 718 struct hackrf_dev *dev = container_of(v, struct hackrf_dev, v4l2_dev); in hackrf_disconnect() 726 v4l2_device_disconnect(&dev->v4l2_dev); in hackrf_disconnect() 732 v4l2_device_put(&dev->v4l2_dev); in hackrf_disconnect() 1276 struct hackrf_dev *dev = container_of(v, struct hackrf_dev, v4l2_dev); in hackrf_video_release() 1282 v4l2_device_unregister(&dev->v4l2_dev); in hackrf_video_release() 1488 dev->v4l2_dev.release = hackrf_video_release; in hackrf_probe() 1489 ret = v4l2_device_register(&intf->dev, &dev->v4l2_dev); in hackrf_probe() 1499 dev->rx_vdev.v4l2_dev = &dev->v4l2_dev; in hackrf_probe() 1517 dev->tx_vdev.v4l2_dev = &dev->v4l2_dev; in hackrf_probe() [all …]
|
/linux-4.4.14/drivers/media/usb/s2255/ |
D | s2255drv.c | 262 struct v4l2_device v4l2_dev; member 283 static inline struct s2255_dev *to_s2255_dev(struct v4l2_device *v4l2_dev) in to_s2255_dev() argument 285 return container_of(v4l2_dev, struct s2255_dev, v4l2_dev); in to_s2255_dev() 369 v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ## arg) 565 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_got_frame() 1021 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_set_mode() 1070 struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); in s2255_cmd_status() 1538 v4l2_device_unregister(&dev->v4l2_dev); in s2255_destroy() 1583 struct s2255_dev *dev = to_s2255_dev(vdev->v4l2_dev); in s2255_video_device_release() 1627 ret = v4l2_device_register(&dev->interface->dev, &dev->v4l2_dev); in s2255_probe_v4l() [all …]
|
/linux-4.4.14/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 51 v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ##arg) 53 v4l2_info(&dev->v4l2_dev, fmt, ##arg) 55 v4l2_err(&dev->v4l2_dev, fmt, ##arg) 1413 "platform:%s", vpfe->v4l2_dev.name); in vpfe_querycap() 1445 ret = v4l2_device_call_until_err(&vpfe->v4l2_dev, in __vpfe_get_format() 1795 vpfe->v4l2_dev.ctrl_handler = sdinfo->sd->ctrl_handler; in vpfe_set_input() 1834 return v4l2_device_call_until_err(&vpfe->v4l2_dev, sdinfo->grp_id, in vpfe_querystd() 1857 ret = v4l2_device_call_until_err(&vpfe->v4l2_dev, sdinfo->grp_id, in vpfe_s_std() 2296 struct vpfe_device *vpfe = container_of(notifier->v4l2_dev, in vpfe_async_bound() 2297 struct vpfe_device, v4l2_dev); in vpfe_async_bound() [all …]
|
D | am437x-vpfe.h | 232 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/common/saa7146/ |
D | saa7146_i2c.c | 386 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()
|
D | saa7146_fops.c | 475 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()
|
D | saa7146_core.c | 477 pci_set_drvdata(pci, &dev->v4l2_dev); in saa7146_init_one() 509 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in saa7146_remove_one() local 510 struct saa7146_dev *dev = to_saa7146_dev(v4l2_dev); in saa7146_remove_one()
|
/linux-4.4.14/drivers/media/pci/solo6x10/ |
D | solo6x10-core.c | 161 v4l2_device_unregister(&solo_dev->v4l2_dev); in free_solo_dev() 473 ret = v4l2_device_register(&pdev->dev, &solo_dev->v4l2_dev); in solo_pci_probe() 642 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in solo_pci_remove() local 643 struct solo_dev *solo_dev = container_of(v4l2_dev, struct solo_dev, v4l2_dev); in solo_pci_remove()
|
/linux-4.4.14/drivers/media/platform/ti-vpe/ |
D | vpe.c | 85 dev_dbg((vpedev)->v4l2_dev.dev, fmt, ##arg) 87 dev_err((vpedev)->v4l2_dev.dev, fmt, ##arg) 352 struct v4l2_device v4l2_dev; member 528 struct device *dev = ctx->dev->v4l2_dev.dev; in realloc_mv_buffers() 1211 dev_warn(ctx->dev->v4l2_dev.dev, in dei_error() 1217 dev_warn(ctx->dev->v4l2_dev.dev, in ds1_uv_error() 1267 dev_warn(dev->v4l2_dev.dev, "Unexpected interrupt: " in vpe_irq() 2155 vfd->v4l2_dev = &dev->v4l2_dev; in vpe_fw_cb() 2166 v4l2_device_unregister(&dev->v4l2_dev); in vpe_fw_cb() 2173 dev_info(dev->v4l2_dev.dev, "Device registered as /dev/video%d\n", in vpe_fw_cb() [all …]
|
/linux-4.4.14/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 1478 v4l2_err(&ctx->jpeg->v4l2_dev, in s5p_jpeg_try_fmt_vid_cap() 1535 v4l2_err(&ctx->jpeg->v4l2_dev, in s5p_jpeg_try_fmt_vid_out() 1590 v4l2_err(&ct->jpeg->v4l2_dev, "%s queue busy\n", __func__); in s5p_jpeg_s_fmt() 2828 ret = v4l2_device_register(&pdev->dev, &jpeg->v4l2_dev); in s5p_jpeg_probe() 2837 v4l2_err(&jpeg->v4l2_dev, "Failed to init mem2mem device\n"); in s5p_jpeg_probe() 2844 v4l2_err(&jpeg->v4l2_dev, "Failed to init memory allocator\n"); in s5p_jpeg_probe() 2852 v4l2_err(&jpeg->v4l2_dev, "Failed to allocate video device\n"); in s5p_jpeg_probe() 2863 jpeg->vfd_encoder->v4l2_dev = &jpeg->v4l2_dev; in s5p_jpeg_probe() 2868 v4l2_err(&jpeg->v4l2_dev, "Failed to register video device\n"); in s5p_jpeg_probe() 2874 v4l2_info(&jpeg->v4l2_dev, in s5p_jpeg_probe() [all …]
|
D | jpeg-core.h | 123 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/platform/vsp1/ |
D | vsp1_drv.c | 128 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()
|
D | vsp1.h | 75 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 124 struct v4l2_device v4l2_dev; member 1355 container_of(v, struct rtl2832_sdr_dev, v4l2_dev); in rtl2832_sdr_video_release() 1361 v4l2_device_unregister(&dev->v4l2_dev); in rtl2832_sdr_video_release() 1484 dev->v4l2_dev.release = rtl2832_sdr_video_release; in rtl2832_sdr_probe() 1485 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in rtl2832_sdr_probe() 1491 dev->v4l2_dev.ctrl_handler = &dev->hdl; in rtl2832_sdr_probe() 1492 dev->vdev.v4l2_dev = &dev->v4l2_dev; in rtl2832_sdr_probe() 1510 v4l2_device_unregister(&dev->v4l2_dev); in rtl2832_sdr_probe() 1531 v4l2_device_disconnect(&dev->v4l2_dev); in rtl2832_sdr_remove() 1535 v4l2_device_put(&dev->v4l2_dev); in rtl2832_sdr_remove()
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.c | 1684 v4l2_device_call_all(&hdw->v4l2_dev, 0, video, s_stream, enablefl); in pvr2_decoder_enable() 1685 v4l2_device_call_all(&hdw->v4l2_dev, 0, audio, s_stream, enablefl); in pvr2_decoder_enable() 1990 v4l2_device_call_all(&hdw->v4l2_dev, hdw->decoder_client_id, in pvr2_hdw_cx25840_vbi_hack() 2050 sd = v4l2_i2c_new_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, in pvr2_hdw_load_subdev() 2057 sd = v4l2_i2c_new_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, in pvr2_hdw_load_subdev() 2175 v4l2_device_call_all(&hdw->v4l2_dev, 0, core, load_fw); in pvr2_hdw_setup_low() 2600 if (v4l2_device_register(&intf->dev, &hdw->v4l2_dev) != 0) { in pvr2_hdw_create() 2699 v4l2_device_disconnect(&hdw->v4l2_dev); in pvr2_hdw_remove_usb_stuff() 2707 vdev->v4l2_dev = &hdw->v4l2_dev; in pvr2_hdw_set_v4l2_dev() 2733 v4l2_device_unregister(&hdw->v4l2_dev); in pvr2_hdw_destroy() [all …]
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | f_uvc.c | 423 uvc->vdev.v4l2_dev = &uvc->v4l2_dev; in uvc_register_video() 717 if (v4l2_device_register(&cdev->gadget->dev, &uvc->v4l2_dev)) { in uvc_function_bind() 737 v4l2_device_unregister(&uvc->v4l2_dev); in uvc_function_bind() 864 v4l2_device_unregister(&uvc->v4l2_dev); in uvc_unbind()
|
D | uvc.h | 147 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp.h | 187 struct v4l2_device v4l2_dev; member
|
/linux-4.4.14/drivers/media/usb/cpia2/ |
D | cpia2_v4l.c | 1090 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()
|
D | cpia2.h | 369 struct v4l2_device v4l2_dev; member 426 void cpia2_camera_release(struct v4l2_device *v4l2_dev);
|
/linux-4.4.14/drivers/media/usb/stkwebcam/ |
D | stk-webcam.h | 95 struct v4l2_device v4l2_dev; member
|