Home
last modified time | relevance | path

Searched refs:v4l2_dev (Results 1 – 25 of 158) sorted by relevance

1234567

/linux/drivers/media/pci/cx18/
H A Dcx18-alsa-main.c49 struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev) in to_snd_cx18_card() argument
51 return to_cx18(v4l2_dev)->alsa; in to_snd_cx18_card()
59 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
60 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
76 static int snd_cx18_card_create(struct v4l2_device *v4l2_dev, in snd_cx18_card_create() argument
84 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
95 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
113 static int snd_cx18_init(struct v4l2_device *v4l2_dev) in snd_cx18_init() argument
115 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_init()
137 ret = snd_cx18_card_create(v4l2_dev, sc, &cxsc); in snd_cx18_init()
[all …]
H A Dcx18-alsa.h11 struct v4l2_device *v4l2_dev; member
27 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_lock()
33 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock()
44 v4l2_dev->name , ## args); \
54 printk(KERN_ERR "%s-alsa: " fmt, v4l2_dev->name , ## args)
57 printk(KERN_WARNING "%s-alsa: " fmt, v4l2_dev->name , ## args)
60 printk(KERN_INFO "%s-alsa: " fmt, v4l2_dev->name , ## args)
H A Dcx18-alsa-pcm.c138 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_open() local
139 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_open()
185 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_close() local
186 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_close()
244 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_create() local
245 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_create()
/linux/drivers/media/pci/ivtv/
H A Divtv-alsa-main.c46 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) in to_snd_ivtv_card() argument
48 return to_ivtv(v4l2_dev)->alsa; in to_snd_ivtv_card()
56 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
57 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
73 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument
81 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
92 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
110 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init() argument
112 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_init()
136 ret = snd_ivtv_card_create(v4l2_dev, sc, &itvsc); in snd_ivtv_init()
[all …]
H A Divtv-alsa.h12 struct v4l2_device *v4l2_dev; member
28 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_lock()
34 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_unlock()
45 v4l2_dev->name , ## args); \
55 pr_err("%s-alsa: " fmt, v4l2_dev->name , ## args)
58 pr_warn("%s-alsa: " fmt, v4l2_dev->name , ## args)
61 pr_info("%s-alsa: " fmt, v4l2_dev->name , ## args)
/linux/drivers/media/radio/
H A Dradio-maxiradio.c73 struct v4l2_device v4l2_dev; member
79 static inline struct maxiradio *to_maxiradio(struct v4l2_device *v4l2_dev) in to_maxiradio() argument
81 return container_of(v4l2_dev, struct maxiradio, v4l2_dev); in to_maxiradio()
122 struct v4l2_device *v4l2_dev; in maxiradio_probe() local
131 v4l2_dev = &dev->v4l2_dev; in maxiradio_probe()
132 v4l2_device_set_name(v4l2_dev, "maxiradio", &maxiradio_instance); in maxiradio_probe()
134 retval = v4l2_device_register(&pdev->dev, v4l2_dev); in maxiradio_probe()
136 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in maxiradio_probe()
144 dev->tea.v4l2_dev = v4l2_dev; in maxiradio_probe()
151 pci_resource_len(pdev, 0), v4l2_dev->name)) { in maxiradio_probe()
[all …]
H A Dradio-shark2.c53 #define v4l2_dev_to_shark(d) container_of(d, struct shark_device, v4l2_dev)
59 struct v4l2_device v4l2_dev; member
85 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-write: %*ph\n", in shark_write_reg()
93 v4l2_err(tea->v4l2_dev, "write error: %d\n", res); in shark_write_reg()
113 v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res); in shark_read_reg()
122 v4l2_err(tea->v4l2_dev, "read error: %d\n", res); in shark_read_reg()
129 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-read: %*ph\n", in shark_read_reg()
162 v4l2_err(&shark->v4l2_dev, "set LED %s error: %d\n", in shark_led_work()
213 shark->leds[i].name, shark->v4l2_dev.name); in shark_register_leds()
217 v4l2_err(&shark->v4l2_dev, in shark_register_leds()
[all …]
H A Dradio-shark.c56 #define v4l2_dev_to_shark(d) container_of(d, struct shark_device, v4l2_dev)
63 struct v4l2_device v4l2_dev; member
101 v4l2_err(&shark->v4l2_dev, "set-freq error: %d\n", res); in shark_write_val()
117 v4l2_err(&shark->v4l2_dev, "request-status error: %d\n", res); in shark_read_val()
126 v4l2_err(&shark->v4l2_dev, "get-status error: %d\n", res); in shark_read_val()
177 v4l2_err(&shark->v4l2_dev, "set LED %s error: %d\n", in shark_led_work()
247 shark->leds[i].name, shark->v4l2_dev.name); in shark_register_leds()
251 v4l2_err(&shark->v4l2_dev, in shark_register_leds()
282 v4l2_warn(&shark->v4l2_dev, in shark_register_leds()
292 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_disconnect() local
[all …]
H A Ddsbr100.c59 #define v4l2_dev_to_radio(d) container_of(d, struct dsbr100_device, v4l2_dev)
68 struct v4l2_device v4l2_dev; member
264 v4l2_device_disconnect(&radio->v4l2_dev); in usb_dsbr100_disconnect()
266 v4l2_device_put(&radio->v4l2_dev); in usb_dsbr100_disconnect()
299 static void usb_dsbr100_release(struct v4l2_device *v4l2_dev) in usb_dsbr100_release() argument
301 struct dsbr100_device *radio = v4l2_dev_to_radio(v4l2_dev); in usb_dsbr100_release()
304 v4l2_device_unregister(&radio->v4l2_dev); in usb_dsbr100_release()
338 struct v4l2_device *v4l2_dev; in usb_dsbr100_probe() local
353 v4l2_dev = &radio->v4l2_dev; in usb_dsbr100_probe()
354 v4l2_dev->release = usb_dsbr100_release; in usb_dsbr100_probe()
[all …]
H A Dradio-sf16fmi.c49 struct v4l2_device v4l2_dev; member
275 struct v4l2_device *v4l2_dev = &fmi->v4l2_dev; in fmi_init() local
317 strscpy(v4l2_dev->name, "sf16fmi", sizeof(v4l2_dev->name)); in fmi_init()
320 res = v4l2_device_register(NULL, v4l2_dev); in fmi_init()
325 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in fmi_init()
332 v4l2_dev->ctrl_handler = hdl; in fmi_init()
335 v4l2_err(v4l2_dev, "Could not register controls\n"); in fmi_init()
337 v4l2_device_unregister(v4l2_dev); in fmi_init()
341 strscpy(fmi->vdev.name, v4l2_dev->name, sizeof(fmi->vdev.name)); in fmi_init()
342 fmi->vdev.v4l2_dev = v4l2_dev; in fmi_init()
[all …]
H A Dradio-ma901.c76 struct v4l2_device v4l2_dev; member
87 static inline struct ma901radio_device *to_ma901radio_dev(struct v4l2_device *v4l2_dev) in to_ma901radio_dev() argument
89 return container_of(v4l2_dev, struct ma901radio_device, v4l2_dev); in to_ma901radio_dev()
180 v4l2_device_disconnect(&radio->v4l2_dev); in usb_ma901radio_disconnect()
182 v4l2_device_put(&radio->v4l2_dev); in usb_ma901radio_disconnect()
321 static void usb_ma901radio_release(struct v4l2_device *v4l2_dev) in usb_ma901radio_release() argument
323 struct ma901radio_device *radio = to_ma901radio_dev(v4l2_dev); in usb_ma901radio_release()
326 v4l2_device_unregister(&radio->v4l2_dev); in usb_ma901radio_release()
363 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_ma901radio_probe()
390 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_ma901radio_probe()
[all …]
H A Dradio-mr800.c120 struct v4l2_device v4l2_dev; member
130 static inline struct amradio_device *to_amradio_dev(struct v4l2_device *v4l2_dev) in to_amradio_dev() argument
132 return container_of(v4l2_dev, struct amradio_device, v4l2_dev); in to_amradio_dev()
249 v4l2_device_disconnect(&radio->v4l2_dev); in usb_amradio_disconnect()
251 v4l2_device_put(&radio->v4l2_dev); in usb_amradio_disconnect()
486 static void usb_amradio_release(struct v4l2_device *v4l2_dev) in usb_amradio_release() argument
488 struct amradio_device *radio = to_amradio_dev(v4l2_dev); in usb_amradio_release()
492 v4l2_device_unregister(&radio->v4l2_dev); in usb_amradio_release()
520 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_amradio_probe()
536 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_amradio_probe()
[all …]
H A Dradio-cadet.c66 struct v4l2_device v4l2_dev; member
592 struct v4l2_device *v4l2_dev = &dev->v4l2_dev; in cadet_init() local
596 strscpy(v4l2_dev->name, "cadet", sizeof(v4l2_dev->name)); in cadet_init()
611 v4l2_err(v4l2_dev, "you must set an I/O address with io=0x330, 0x332, 0x334,\n"); in cadet_init()
612 v4l2_err(v4l2_dev, "0x336, 0x338, 0x33a, 0x33c or 0x33e\n"); in cadet_init()
619 res = v4l2_device_register(NULL, v4l2_dev); in cadet_init()
622 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in cadet_init()
630 v4l2_dev->ctrl_handler = hdl; in cadet_init()
633 v4l2_err(v4l2_dev, "Could not register controls\n"); in cadet_init()
640 strscpy(dev->vdev.name, v4l2_dev->name, sizeof(dev->vdev.name)); in cadet_init()
[all …]
H A Dradio-sf16fmr2.c33 struct v4l2_device v4l2_dev; member
217 strscpy(fmr2->v4l2_dev.name, "radio-sf16fmr2", in fmr2_probe()
218 sizeof(fmr2->v4l2_dev.name)); in fmr2_probe()
221 if (!request_region(fmr2->io, 2, fmr2->v4l2_dev.name)) { in fmr2_probe()
227 err = v4l2_device_register(pdev, &fmr2->v4l2_dev); in fmr2_probe()
229 v4l2_err(&fmr2->v4l2_dev, "Could not register v4l2_device\n"); in fmr2_probe()
233 fmr2->tea.v4l2_dev = &fmr2->v4l2_dev; in fmr2_probe()
292 v4l2_device_unregister(&fmr2->v4l2_dev); in fmr2_remove()
H A Dradio-tea5764.c131 struct v4l2_device v4l2_dev; member
417 struct v4l2_device *v4l2_dev; in tea5764_i2c_probe() local
427 v4l2_dev = &radio->v4l2_dev; in tea5764_i2c_probe()
428 ret = v4l2_device_register(&client->dev, v4l2_dev); in tea5764_i2c_probe()
430 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in tea5764_i2c_probe()
438 v4l2_dev->ctrl_handler = hdl; in tea5764_i2c_probe()
441 v4l2_err(v4l2_dev, "Could not register controls\n"); in tea5764_i2c_probe()
464 radio->vdev.v4l2_dev = v4l2_dev; in tea5764_i2c_probe()
483 v4l2_device_unregister(v4l2_dev); in tea5764_i2c_probe()
498 v4l2_device_unregister(&radio->v4l2_dev); in tea5764_i2c_remove()
/linux/drivers/media/usb/hdpvr/
H A Dhdpvr-core.c126 v4l2_err(&dev->v4l2_dev, in device_authorization()
132 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in device_authorization()
141 v4l2_info(&dev->v4l2_dev, "firmware version 0x%x dated %s\n", in device_authorization()
163 v4l2_info(&dev->v4l2_dev, "untested firmware, the driver might not work.\n"); in device_authorization()
172 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, "challenge: %8ph\n", in device_authorization()
177 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %8ph\n", in device_authorization()
188 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in device_authorization()
218 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
229 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
238 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
[all …]
/linux/drivers/staging/media/tegra-video/
H A Dvideo.c14 static void tegra_v4l2_dev_release(struct v4l2_device *v4l2_dev) in tegra_v4l2_dev_release() argument
18 vid = container_of(v4l2_dev, struct tegra_video_device, v4l2_dev); in tegra_v4l2_dev_release()
23 v4l2_device_unregister(v4l2_dev); in tegra_v4l2_dev_release()
67 vid->v4l2_dev.mdev = &vid->media_dev; in host1x_video_probe()
68 vid->v4l2_dev.release = tegra_v4l2_dev_release; in host1x_video_probe()
69 vid->v4l2_dev.notify = tegra_v4l2_dev_notify; in host1x_video_probe()
70 ret = v4l2_device_register(&dev->dev, &vid->v4l2_dev); in host1x_video_probe()
101 v4l2_device_unregister(&vid->v4l2_dev); in host1x_video_probe()
120 v4l2_device_put(&vid->v4l2_dev); in host1x_video_remove()
/linux/drivers/media/radio/si4713/
H A Dradio-usb-si4713.c52 struct v4l2_device v4l2_dev; member
60 static inline struct si4713_usb_device *to_si4713_dev(struct v4l2_device *v4l2_dev) in to_si4713_dev() argument
62 return container_of(v4l2_dev, struct si4713_usb_device, v4l2_dev); in to_si4713_dev()
128 static void usb_si4713_video_device_release(struct v4l2_device *v4l2_dev) in usb_si4713_video_device_release() argument
130 struct si4713_usb_device *radio = to_si4713_dev(v4l2_dev); in usb_si4713_video_device_release()
134 v4l2_device_unregister(&radio->v4l2_dev); in usb_si4713_video_device_release()
437 usb_set_intfdata(intf, &radio->v4l2_dev); in usb_si4713_probe()
443 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_si4713_probe()
456 sd = v4l2_i2c_new_subdev_board(&radio->v4l2_dev, adapter, in usb_si4713_probe()
466 radio->v4l2_dev.release = usb_si4713_video_device_release; in usb_si4713_probe()
[all …]
/linux/drivers/staging/media/imx/
H A Dimx-media-dev-common.c28 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_create_csi2_links()
37 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_create_csi2_links()
70 v4l2_warn(&imxmd->v4l2_dev, "%s:%u has no vdev list!\n", in imx_media_add_vdev_to_pad()
128 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_alloc_pad_vdev_lists()
182 ret = v4l2_device_register_subdev_nodes(&imxmd->v4l2_dev); in imx_media_probe_complete()
350 imxmd->v4l2_dev.mdev = &imxmd->md; in imx_media_dev_init()
351 imxmd->v4l2_dev.notify = imx_media_notify; in imx_media_dev_init()
352 strscpy(imxmd->v4l2_dev.name, "imx-media", in imx_media_dev_init()
353 sizeof(imxmd->v4l2_dev.name)); in imx_media_dev_init()
359 ret = v4l2_device_register(dev, &imxmd->v4l2_dev); in imx_media_dev_init()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-async.c86 if (notifier->v4l2_dev) in notifier_dev()
87 return notifier->v4l2_dev->dev; in notifier_dev()
250 return notifier->v4l2_dev; in v4l2_async_nf_find_v4l2_dev()
298 if (!notifier->v4l2_dev) { in v4l2_async_nf_try_complete()
342 struct v4l2_device *v4l2_dev, in v4l2_async_match_notify() argument
351 ret = __v4l2_device_register_subdev(v4l2_dev, sd, sd->owner); in v4l2_async_match_notify()
423 struct v4l2_device *v4l2_dev = in v4l2_async_nf_try_all_subdevs() local
427 if (!v4l2_dev) in v4l2_async_nf_try_all_subdevs()
444 ret = v4l2_async_match_notify(notifier, v4l2_dev, sd, asc); in v4l2_async_nf_try_all_subdevs()
569 struct v4l2_device *v4l2_dev) in v4l2_async_nf_init() argument
[all …]
/linux/Documentation/driver-api/media/
H A Dv4l2-device.rst13 (dev, :c:type:`v4l2_dev <v4l2_device>`).
17 :c:type:`v4l2_dev <v4l2_device>` argument.
26 If :c:type:`v4l2_dev <v4l2_device>`\ ->name is empty then it will be set to a
30 :c:type:`v4l2_dev <v4l2_device>`\ ->name before calling
42 :c:type:`v4l2_dev <v4l2_device>` with a particular parent.
52 (:c:type:`v4l2_dev <v4l2_device>`).
54 If the dev->driver_data field points to :c:type:`v4l2_dev <v4l2_device>`,
64 (:c:type:`v4l2_dev <v4l2_device>`).
81 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
84 if (v4l2_dev == NULL)
[all …]
/linux/drivers/media/usb/go7007/
H A Dgo7007-driver.c39 v4l2_err(&go->v4l2_dev, "timeout waiting for read interrupt\n"); in go7007_read_interrupt()
200 struct v4l2_device *v4l2_dev = &go->v4l2_dev; in init_i2c_module() local
209 sd = v4l2_i2c_new_subdev_board(v4l2_dev, adapter, &info, NULL); in init_i2c_module()
227 static void go7007_remove(struct v4l2_device *v4l2_dev) in go7007_remove() argument
229 struct go7007 *go = container_of(v4l2_dev, struct go7007, v4l2_dev); in go7007_remove()
231 v4l2_device_unregister(v4l2_dev); in go7007_remove()
258 go->v4l2_dev.release = go7007_remove; in go7007_register_encoder()
259 ret = v4l2_device_register(go->dev, &go->v4l2_dev); in go7007_register_encoder()
297 v4l2_device_call_all(&go->v4l2_dev, 0, tuner, in go7007_register_encoder()
359 v4l2_err(&go->v4l2_dev, "error transferring firmware\n"); in go7007_start_encoder()
[all …]
/linux/drivers/media/pci/cobalt/
H A Dcobalt-driver.h158 #define cobalt_err(fmt, arg...) v4l2_err(&cobalt->v4l2_dev, fmt, ## arg)
159 #define cobalt_warn(fmt, arg...) v4l2_warn(&cobalt->v4l2_dev, fmt, ## arg)
160 #define cobalt_info(fmt, arg...) v4l2_info(&cobalt->v4l2_dev, fmt, ## arg)
162 v4l2_dbg(level, cobalt_debug, &cobalt->v4l2_dev, fmt, ## arg)
253 struct v4l2_device v4l2_dev; member
292 static inline struct cobalt *to_cobalt(struct v4l2_device *v4l2_dev) in to_cobalt() argument
294 return container_of(v4l2_dev, struct cobalt, v4l2_dev); in to_cobalt()
/linux/include/trace/events/
H A Dpwc.h20 __string(name, pdev->v4l2_dev.name)
47 __string(name, pdev->v4l2_dev.name)
/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi.h33 struct v4l2_device v4l2_dev; member
39 struct v4l2_device *v4l2_dev; member
61 struct v4l2_device *v4l2_dev);

1234567