Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-device.c33 int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev) in v4l2_device_register() argument
35 if (v4l2_dev == NULL) in v4l2_device_register()
38 INIT_LIST_HEAD(&v4l2_dev->subdevs); in v4l2_device_register()
39 spin_lock_init(&v4l2_dev->lock); in v4l2_device_register()
40 v4l2_prio_init(&v4l2_dev->prio); in v4l2_device_register()
41 kref_init(&v4l2_dev->ref); in v4l2_device_register()
43 v4l2_dev->dev = dev; in v4l2_device_register()
46 if (WARN_ON(!v4l2_dev->name[0])) in v4l2_device_register()
52 if (!v4l2_dev->name[0]) in v4l2_device_register()
53 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s", in v4l2_device_register()
[all …]
Dv4l2-async.c147 return notifier->v4l2_dev; in v4l2_async_notifier_find_v4l2_dev()
189 if (!notifier->v4l2_dev) in v4l2_async_notifier_try_complete()
203 struct v4l2_device *v4l2_dev, in v4l2_async_match_notify() argument
210 ret = v4l2_device_register_subdev(v4l2_dev, sd); in v4l2_async_match_notify()
249 struct v4l2_device *v4l2_dev = in v4l2_async_notifier_try_all_subdevs() local
253 if (!v4l2_dev) in v4l2_async_notifier_try_all_subdevs()
265 ret = v4l2_async_match_notify(notifier, v4l2_dev, sd, asd); in v4l2_async_notifier_try_all_subdevs()
375 notifier->v4l2_dev ? notifier->v4l2_dev->dev : NULL; in __v4l2_async_notifier_register()
441 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev, in v4l2_async_notifier_register() argument
446 if (WARN_ON(!v4l2_dev || notifier->sd)) in v4l2_async_notifier_register()
[all …]
/Linux-v4.19/include/media/
Dv4l2-device.h70 void (*release)(struct v4l2_device *v4l2_dev);
81 static inline void v4l2_device_get(struct v4l2_device *v4l2_dev) in v4l2_device_get() argument
83 kref_get(&v4l2_dev->ref); in v4l2_device_get()
94 int v4l2_device_put(struct v4l2_device *v4l2_dev);
109 struct v4l2_device *v4l2_dev);
138 int v4l2_device_set_name(struct v4l2_device *v4l2_dev, const char *basename,
152 void v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
160 void v4l2_device_unregister(struct v4l2_device *v4l2_dev);
173 int __must_check v4l2_device_register_subdev(struct v4l2_device *v4l2_dev,
196 v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev);
[all …]
/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-alsa-main.c59 struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev) in to_snd_cx18_card() argument
61 return to_cx18(v4l2_dev)->alsa; in to_snd_cx18_card()
65 struct snd_cx18_card *p_to_snd_cx18_card(struct v4l2_device **v4l2_dev) in p_to_snd_cx18_card() argument
67 return container_of(v4l2_dev, struct snd_cx18_card, v4l2_dev); in p_to_snd_cx18_card()
75 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
76 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
92 static int snd_cx18_card_create(struct v4l2_device *v4l2_dev, in snd_cx18_card_create() argument
100 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
111 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names()
129 static int snd_cx18_init(struct v4l2_device *v4l2_dev) in snd_cx18_init() argument
[all …]
Dcx18-alsa.h20 struct v4l2_device *v4l2_dev; member
36 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_lock()
42 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock()
53 v4l2_dev->name , ## args); \
63 printk(KERN_ERR "%s-alsa: " fmt, v4l2_dev->name , ## args)
66 printk(KERN_WARNING "%s-alsa: " fmt, v4l2_dev->name , ## args)
69 printk(KERN_INFO "%s-alsa: " fmt, v4l2_dev->name , ## args)
/Linux-v4.19/drivers/media/pci/ivtv/
Divtv-alsa-main.c56 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) in to_snd_ivtv_card() argument
58 return to_ivtv(v4l2_dev)->alsa; in to_snd_ivtv_card()
62 struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev) in p_to_snd_ivtv_card() argument
64 return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev); in p_to_snd_ivtv_card()
72 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
73 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
89 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument
97 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
108 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names()
126 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init() argument
[all …]
Divtv-alsa.h21 struct v4l2_device *v4l2_dev; member
37 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_lock()
43 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_unlock()
54 v4l2_dev->name , ## args); \
64 pr_err("%s-alsa: " fmt, v4l2_dev->name , ## args)
67 pr_warn("%s-alsa: " fmt, v4l2_dev->name , ## args)
70 pr_info("%s-alsa: " fmt, v4l2_dev->name , ## args)
/Linux-v4.19/drivers/media/radio/
Dradio-maxiradio.c72 struct v4l2_device v4l2_dev; member
78 static inline struct maxiradio *to_maxiradio(struct v4l2_device *v4l2_dev) in to_maxiradio() argument
80 return container_of(v4l2_dev, struct maxiradio, v4l2_dev); in to_maxiradio()
121 struct v4l2_device *v4l2_dev; in maxiradio_probe() local
130 v4l2_dev = &dev->v4l2_dev; in maxiradio_probe()
131 v4l2_device_set_name(v4l2_dev, "maxiradio", &maxiradio_instance); in maxiradio_probe()
133 retval = v4l2_device_register(&pdev->dev, v4l2_dev); in maxiradio_probe()
135 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in maxiradio_probe()
143 dev->tea.v4l2_dev = v4l2_dev; in maxiradio_probe()
152 pci_resource_len(pdev, 0), v4l2_dev->name)) { in maxiradio_probe()
[all …]
Dradio-shark2.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 …]
Dradio-isa.c47 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", isa->v4l2_dev.name); in radio_isa_querycap()
144 v4l2_info(&isa->v4l2_dev, "I/O Port = 0x%03x\n", isa->io); in radio_isa_log_status()
145 v4l2_ctrl_handler_log_status(&isa->hdl, isa->v4l2_dev.name); in radio_isa_log_status()
193 struct v4l2_device *v4l2_dev; in radio_isa_alloc() local
200 v4l2_dev = &isa->v4l2_dev; in radio_isa_alloc()
201 strlcpy(v4l2_dev->name, dev_name(pdev), sizeof(v4l2_dev->name)); in radio_isa_alloc()
212 struct v4l2_device *v4l2_dev = &isa->v4l2_dev; in radio_isa_common_probe() local
215 if (!request_region(isa->io, region_size, v4l2_dev->name)) { in radio_isa_common_probe()
216 v4l2_err(v4l2_dev, "port 0x%x already in use\n", isa->io); in radio_isa_common_probe()
221 res = v4l2_device_register(pdev, v4l2_dev); in radio_isa_common_probe()
[all …]
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 …]
Ddsbr100.c68 #define v4l2_dev_to_radio(d) container_of(d, struct dsbr100_device, v4l2_dev)
77 struct v4l2_device v4l2_dev; member
275 v4l2_device_disconnect(&radio->v4l2_dev); in usb_dsbr100_disconnect()
277 v4l2_device_put(&radio->v4l2_dev); in usb_dsbr100_disconnect()
310 static void usb_dsbr100_release(struct v4l2_device *v4l2_dev) in usb_dsbr100_release() argument
312 struct dsbr100_device *radio = v4l2_dev_to_radio(v4l2_dev); in usb_dsbr100_release()
315 v4l2_device_unregister(&radio->v4l2_dev); in usb_dsbr100_release()
349 struct v4l2_device *v4l2_dev; in usb_dsbr100_probe() local
364 v4l2_dev = &radio->v4l2_dev; in usb_dsbr100_probe()
365 v4l2_dev->release = usb_dsbr100_release; in usb_dsbr100_probe()
[all …]
Dradio-sf16fmi.c48 struct v4l2_device v4l2_dev; member
276 struct v4l2_device *v4l2_dev = &fmi->v4l2_dev; in fmi_init() local
318 strlcpy(v4l2_dev->name, "sf16fmi", sizeof(v4l2_dev->name)); in fmi_init()
321 res = v4l2_device_register(NULL, v4l2_dev); in fmi_init()
326 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in fmi_init()
333 v4l2_dev->ctrl_handler = hdl; in fmi_init()
336 v4l2_err(v4l2_dev, "Could not register controls\n"); in fmi_init()
338 v4l2_device_unregister(v4l2_dev); in fmi_init()
342 strlcpy(fmi->vdev.name, v4l2_dev->name, sizeof(fmi->vdev.name)); in fmi_init()
343 fmi->vdev.v4l2_dev = v4l2_dev; in fmi_init()
[all …]
Dradio-timb.c34 struct v4l2_device v4l2_dev; member
126 strlcpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name)); in timbradio_probe()
127 err = v4l2_device_register(NULL, &tr->v4l2_dev); in timbradio_probe()
131 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe()
133 tr->sd_tuner = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe()
135 tr->sd_dsp = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe()
142 tr->v4l2_dev.ctrl_handler = tr->sd_dsp->ctrl_handler; in timbradio_probe()
156 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_probe()
168 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_remove()
Dradio-ma901.c85 struct v4l2_device v4l2_dev; member
96 static inline struct ma901radio_device *to_ma901radio_dev(struct v4l2_device *v4l2_dev) in to_ma901radio_dev() argument
98 return container_of(v4l2_dev, struct ma901radio_device, v4l2_dev); in to_ma901radio_dev()
189 v4l2_device_disconnect(&radio->v4l2_dev); in usb_ma901radio_disconnect()
191 v4l2_device_put(&radio->v4l2_dev); in usb_ma901radio_disconnect()
332 static void usb_ma901radio_release(struct v4l2_device *v4l2_dev) in usb_ma901radio_release() argument
334 struct ma901radio_device *radio = to_ma901radio_dev(v4l2_dev); in usb_ma901radio_release()
337 v4l2_device_unregister(&radio->v4l2_dev); in usb_ma901radio_release()
374 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_ma901radio_probe()
401 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_ma901radio_probe()
[all …]
Dradio-keene.c60 struct v4l2_device v4l2_dev; member
73 static inline struct keene_device *to_keene_dev(struct v4l2_device *v4l2_dev) in to_keene_dev() argument
75 return container_of(v4l2_dev, struct keene_device, v4l2_dev); in to_keene_dev()
150 v4l2_device_disconnect(&radio->v4l2_dev); in usb_keene_disconnect()
152 v4l2_device_put(&radio->v4l2_dev); in usb_keene_disconnect()
294 static void usb_keene_video_device_release(struct v4l2_device *v4l2_dev) in usb_keene_video_device_release() argument
296 struct keene_device *radio = to_keene_dev(v4l2_dev); in usb_keene_video_device_release()
355 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_keene_probe()
363 radio->v4l2_dev.ctrl_handler = hdl; in usb_keene_probe()
364 radio->v4l2_dev.release = usb_keene_video_device_release; in usb_keene_probe()
[all …]
/Linux-v4.19/drivers/media/platform/davinci/
Dvpfe_capture.c294 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_ccdc_image_format()
359 v4l2_err(&vpfe_dev->v4l2_dev, "standard not supported\n"); in vpfe_config_image_format()
386 ret = v4l2_device_call_until_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format()
390 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format()
429 v4l2_err(&vpfe_dev->v4l2_dev, "ccdc device not registered\n"); in vpfe_initialize_device()
435 v4l2_err(&vpfe_dev->v4l2_dev, "Couldn't lock ccdc module\n"); in vpfe_initialize_device()
462 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_open\n"); in vpfe_open()
465 v4l2_err(&vpfe_dev->v4l2_dev, "No decoder registered\n"); in vpfe_open()
535 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "\nStarting vpfe_isr...\n"); in vpfe_isr()
548 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, in vpfe_isr()
[all …]
Dvpbe_display.c67 v4l2_err(&vpbe_dev->v4l2_dev, in venc_is_second_field()
213 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_prepare()
222 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_buffer_prepare()
243 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_buffer_setup\n"); in vpbe_buffer_queue_setup()
273 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_queue()
403 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params()
417 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params()
529 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_calculate_scale_factor()
546 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_adj_position()
666 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_display_s_selection()
[all …]
/Linux-v4.19/drivers/media/usb/hdpvr/
Dhdpvr-core.c130 v4l2_err(&dev->v4l2_dev, in device_authorization()
136 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in device_authorization()
144 v4l2_info(&dev->v4l2_dev, "firmware version 0x%x dated %s\n", in device_authorization()
166 v4l2_info(&dev->v4l2_dev, "untested firmware, the driver might not work.\n"); in device_authorization()
175 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, "challenge: %8ph\n", in device_authorization()
180 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %8ph\n", in device_authorization()
191 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in device_authorization()
221 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
232 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
241 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_device_init()
[all …]
/Linux-v4.19/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c524 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_release\n"); in vpfe_release()
569 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_mmap\n"); in vpfe_mmap()
581 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_poll\n"); in vpfe_poll()
613 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_querycap\n"); in vpfe_querycap()
644 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_g_fmt\n"); in vpfe_g_fmt()
673 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_enum_fmt\n"); in vpfe_enum_fmt()
680 v4l2_err(&vpfe_dev->v4l2_dev, "Invalid index\n"); in vpfe_enum_fmt()
686 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
693 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
702 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_enum_fmt()
[all …]
/Linux-v4.19/drivers/media/radio/si4713/
Dradio-platform-si4713.c49 struct v4l2_device v4l2_dev; member
87 return &((struct radio_si4713_device *)video_drvdata(file))->v4l2_dev; in get_v4l2_dev()
169 rval = v4l2_device_register(&pdev->dev, &rsdev->v4l2_dev); in radio_si4713_pdriver_probe()
176 rval = v4l2_device_register_subdev(&rsdev->v4l2_dev, sd); in radio_si4713_pdriver_probe()
183 rsdev->radio_dev.v4l2_dev = &rsdev->v4l2_dev; in radio_si4713_pdriver_probe()
198 v4l2_device_unregister(&rsdev->v4l2_dev); in radio_si4713_pdriver_probe()
206 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in radio_si4713_pdriver_remove() local
209 rsdev = container_of(v4l2_dev, struct radio_si4713_device, v4l2_dev); in radio_si4713_pdriver_remove()
211 v4l2_device_unregister(&rsdev->v4l2_dev); in radio_si4713_pdriver_remove()
/Linux-v4.19/drivers/staging/most/video/
Dvideo.c39 struct v4l2_device v4l2_dev; member
88 v4l2_err(&mdev->v4l2_dev, "too many clients\n"); in comp_vdev_open()
101 v4l2_err(&mdev->v4l2_dev, "most_start_channel() failed\n"); in comp_vdev_open()
180 v4l2_err(&mdev->v4l2_dev, "read: copy_to_user failed\n"); in comp_vdev_read()
424 mdev->vdev->v4l2_dev = &mdev->v4l2_dev; in comp_register_videodev()
427 mdev->v4l2_dev.name); in comp_register_videodev()
433 v4l2_err(&mdev->v4l2_dev, "video_register_device failed (%d)\n", in comp_register_videodev()
446 static void comp_v4l2_dev_release(struct v4l2_device *v4l2_dev) in comp_v4l2_dev_release() argument
449 container_of(v4l2_dev, struct most_video_dev, v4l2_dev); in comp_v4l2_dev_release()
451 v4l2_device_unregister(v4l2_dev); in comp_v4l2_dev_release()
[all …]
/Linux-v4.19/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.c238 v4l2_err(&dev->v4l2_dev, in queue_setup()
245 v4l2_err(&dev->v4l2_dev, in queue_setup()
264 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p\n", in queue_setup()
276 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p, vb %p\n", in buffer_init()
289 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p, vb %p\n", in buffer_prepare()
297 v4l2_err(&dev->v4l2_dev, in buffer_prepare()
312 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p, vb %p\n", in buffer_cleanup()
332 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, in buffer_cb()
375 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, in buffer_cb()
390 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, in buffer_cb()
[all …]
/Linux-v4.19/drivers/staging/media/imx/
Dimx-media-dev.c138 v4l2_err(&imxmd->v4l2_dev, in imx_media_get_ipu()
145 v4l2_err(&imxmd->v4l2_dev, "invalid IPU id %d!\n", ipu_id); in imx_media_get_ipu()
171 v4l2_info(&imxmd->v4l2_dev, "subdev %s bound\n", sd->name); in imx_media_subdev_bound()
246 v4l2_warn(&imxmd->v4l2_dev, "%s:%u has no vdev list!\n", in imx_media_add_vdev_to_pad()
304 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_alloc_pad_vdev_lists()
361 ret = v4l2_device_register_subdev_nodes(&imxmd->v4l2_dev); in imx_media_probe_complete()
440 imxmd = dev_get_drvdata(sd->v4l2_dev->dev); in imx_media_link_notify()
507 imxmd->v4l2_dev.mdev = &imxmd->md; in imx_media_probe()
508 strlcpy(imxmd->v4l2_dev.name, "imx-media", in imx_media_probe()
509 sizeof(imxmd->v4l2_dev.name)); in imx_media_probe()
[all …]
/Linux-v4.19/drivers/media/usb/stk1160/
Dstk1160-core.c121 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_routing, in stk1160_select_input()
160 static void stk1160_release(struct v4l2_device *v4l2_dev) in stk1160_release() argument
162 struct stk1160 *dev = container_of(v4l2_dev, struct stk1160, v4l2_dev); in stk1160_release()
169 v4l2_device_unregister(&dev->v4l2_dev); in stk1160_release()
349 dev->v4l2_dev.release = stk1160_release; in stk1160_probe()
350 dev->v4l2_dev.ctrl_handler = &dev->ctrl_handler; in stk1160_probe()
351 rc = v4l2_device_register(dev->dev, &dev->v4l2_dev); in stk1160_probe()
365 dev->sd_saa7115 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in stk1160_probe()
369 v4l2_device_call_all(&dev->v4l2_dev, 0, core, reset, 0); in stk1160_probe()
370 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_probe()
[all …]

12345678910>>...15