/Linux-v5.15/drivers/media/v4l2-core/ |
D | v4l2-device.c | 17 int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev) in v4l2_device_register() argument 19 if (v4l2_dev == NULL) in v4l2_device_register() 22 INIT_LIST_HEAD(&v4l2_dev->subdevs); in v4l2_device_register() 23 spin_lock_init(&v4l2_dev->lock); in v4l2_device_register() 24 v4l2_prio_init(&v4l2_dev->prio); in v4l2_device_register() 25 kref_init(&v4l2_dev->ref); in v4l2_device_register() 27 v4l2_dev->dev = dev; in v4l2_device_register() 30 if (WARN_ON(!v4l2_dev->name[0])) in v4l2_device_register() 36 if (!v4l2_dev->name[0]) in v4l2_device_register() 37 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s", in v4l2_device_register() [all …]
|
D | v4l2-async.c | 130 dev = notifier->v4l2_dev ? notifier->v4l2_dev->dev in match_fwnode() 223 return notifier->v4l2_dev; in v4l2_async_notifier_find_v4l2_dev() 265 if (!notifier->v4l2_dev) in v4l2_async_notifier_try_complete() 279 struct v4l2_device *v4l2_dev, in v4l2_async_match_notify() argument 286 ret = v4l2_device_register_subdev(v4l2_dev, sd); in v4l2_async_match_notify() 325 struct v4l2_device *v4l2_dev = in v4l2_async_notifier_try_all_subdevs() local 329 if (!v4l2_dev) in v4l2_async_notifier_try_all_subdevs() 341 ret = v4l2_async_match_notify(notifier, v4l2_dev, sd, asd); in v4l2_async_notifier_try_all_subdevs() 449 notifier->v4l2_dev ? notifier->v4l2_dev->dev : NULL; in v4l2_async_notifier_asd_valid() 523 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev, in v4l2_async_notifier_register() argument [all …]
|
/Linux-v5.15/include/media/ |
D | v4l2-device.h | 58 void (*release)(struct v4l2_device *v4l2_dev); 69 static inline void v4l2_device_get(struct v4l2_device *v4l2_dev) in v4l2_device_get() argument 71 kref_get(&v4l2_dev->ref); in v4l2_device_get() 82 int v4l2_device_put(struct v4l2_device *v4l2_dev); 97 struct v4l2_device *v4l2_dev); 126 int v4l2_device_set_name(struct v4l2_device *v4l2_dev, const char *basename, 140 void v4l2_device_disconnect(struct v4l2_device *v4l2_dev); 148 void v4l2_device_unregister(struct v4l2_device *v4l2_dev); 161 int __must_check v4l2_device_register_subdev(struct v4l2_device *v4l2_dev, 187 __v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev, [all …]
|
/Linux-v5.15/drivers/media/pci/cx18/ |
D | cx18-alsa-main.c | 49 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() 55 struct snd_cx18_card *p_to_snd_cx18_card(struct v4l2_device **v4l2_dev) in p_to_snd_cx18_card() argument 57 return container_of(v4l2_dev, struct snd_cx18_card, v4l2_dev); in p_to_snd_cx18_card() 65 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free() 66 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free() 82 static int snd_cx18_card_create(struct v4l2_device *v4l2_dev, in snd_cx18_card_create() argument 90 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create() 101 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_card_set_names() 119 static int snd_cx18_init(struct v4l2_device *v4l2_dev) in snd_cx18_init() argument [all …]
|
D | cx18-alsa.h | 11 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)
|
/Linux-v5.15/drivers/media/pci/ivtv/ |
D | ivtv-alsa-main.c | 46 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() 52 struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev) in p_to_snd_ivtv_card() argument 54 return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev); in p_to_snd_ivtv_card() 62 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free() 63 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free() 79 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create() argument 87 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create() 98 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_card_set_names() 116 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init() argument [all …]
|
D | ivtv-alsa.h | 12 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-v5.15/drivers/media/radio/ |
D | radio-maxiradio.c | 73 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() 153 pci_resource_len(pdev, 0), v4l2_dev->name)) { in maxiradio_probe() [all …]
|
D | radio-shark2.c | 53 #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 …]
|
D | radio-isa.c | 39 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", isa->v4l2_dev.name); in radio_isa_querycap() 133 v4l2_info(&isa->v4l2_dev, "I/O Port = 0x%03x\n", isa->io); in radio_isa_log_status() 134 v4l2_ctrl_handler_log_status(&isa->hdl, isa->v4l2_dev.name); in radio_isa_log_status() 182 struct v4l2_device *v4l2_dev; in radio_isa_alloc() local 189 v4l2_dev = &isa->v4l2_dev; in radio_isa_alloc() 190 strscpy(v4l2_dev->name, dev_name(pdev), sizeof(v4l2_dev->name)); in radio_isa_alloc() 201 struct v4l2_device *v4l2_dev = &isa->v4l2_dev; in radio_isa_common_probe() local 204 if (!request_region(isa->io, region_size, v4l2_dev->name)) { in radio_isa_common_probe() 205 v4l2_err(v4l2_dev, "port 0x%x already in use\n", isa->io); in radio_isa_common_probe() 210 res = v4l2_device_register(pdev, v4l2_dev); in radio_isa_common_probe() [all …]
|
D | radio-shark.c | 56 #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 …]
|
D | dsbr100.c | 59 #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 …]
|
D | radio-raremono.c | 108 struct v4l2_device v4l2_dev; member 116 static inline struct raremono_device *to_raremono_dev(struct v4l2_device *v4l2_dev) in to_raremono_dev() argument 118 return container_of(v4l2_dev, struct raremono_device, v4l2_dev); in to_raremono_dev() 150 dev_warn(radio->v4l2_dev.dev, "%s failed (%d)\n", __func__, ret); in raremono_cmd_main() 171 v4l2_device_disconnect(&radio->v4l2_dev); in usb_raremono_disconnect() 173 v4l2_device_put(&radio->v4l2_dev); in usb_raremono_disconnect() 226 dev_warn(radio->v4l2_dev.dev, "%s failed (%d)\n", __func__, ret); in vidioc_g_tuner() 272 static void raremono_device_release(struct v4l2_device *v4l2_dev) in raremono_device_release() argument 274 struct raremono_device *radio = to_raremono_dev(v4l2_dev); in raremono_device_release() 342 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_raremono_probe() [all …]
|
D | radio-timb.c | 26 struct v4l2_device v4l2_dev; member 117 strscpy(tr->v4l2_dev.name, DRIVER_NAME, sizeof(tr->v4l2_dev.name)); in timbradio_probe() 118 err = v4l2_device_register(NULL, &tr->v4l2_dev); in timbradio_probe() 122 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe() 124 tr->sd_tuner = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 126 tr->sd_dsp = v4l2_i2c_new_subdev_board(&tr->v4l2_dev, in timbradio_probe() 133 tr->v4l2_dev.ctrl_handler = tr->sd_dsp->ctrl_handler; in timbradio_probe() 147 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_probe() 159 v4l2_device_unregister(&tr->v4l2_dev); in timbradio_remove()
|
D | radio-sf16fmi.c | 49 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 …]
|
D | radio-ma901.c | 76 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 …]
|
D | radio-keene.c | 51 struct v4l2_device v4l2_dev; member 64 static inline struct keene_device *to_keene_dev(struct v4l2_device *v4l2_dev) in to_keene_dev() argument 66 return container_of(v4l2_dev, struct keene_device, v4l2_dev); in to_keene_dev() 141 v4l2_device_disconnect(&radio->v4l2_dev); in usb_keene_disconnect() 143 v4l2_device_put(&radio->v4l2_dev); in usb_keene_disconnect() 283 static void usb_keene_video_device_release(struct v4l2_device *v4l2_dev) in usb_keene_video_device_release() argument 285 struct keene_device *radio = to_keene_dev(v4l2_dev); in usb_keene_video_device_release() 344 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_keene_probe() 352 radio->v4l2_dev.ctrl_handler = hdl; in usb_keene_probe() 353 radio->v4l2_dev.release = usb_keene_video_device_release; in usb_keene_probe() [all …]
|
/Linux-v5.15/drivers/media/platform/davinci/ |
D | vpfe_capture.c | 255 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_ccdc_image_format() 320 v4l2_err(&vpfe_dev->v4l2_dev, "standard not supported\n"); in vpfe_config_image_format() 347 ret = v4l2_device_call_until_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format() 351 v4l2_err(&vpfe_dev->v4l2_dev, in vpfe_config_image_format() 390 v4l2_err(&vpfe_dev->v4l2_dev, "ccdc device not registered\n"); in vpfe_initialize_device() 396 v4l2_err(&vpfe_dev->v4l2_dev, "Couldn't lock ccdc module\n"); in vpfe_initialize_device() 423 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "vpfe_open\n"); in vpfe_open() 426 v4l2_err(&vpfe_dev->v4l2_dev, "No decoder registered\n"); in vpfe_open() 496 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, "\nStarting vpfe_isr...\n"); in vpfe_isr() 509 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, in vpfe_isr() [all …]
|
D | vpbe_display.c | 54 v4l2_err(&vpbe_dev->v4l2_dev, in venc_is_second_field() 200 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_prepare() 209 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_buffer_prepare() 230 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_buffer_setup\n"); in vpbe_buffer_queue_setup() 260 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_buffer_queue() 390 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params() 404 v4l2_err(&vpbe_dev->v4l2_dev, in vpbe_set_osd_display_params() 516 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_calculate_scale_factor() 533 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_disp_adj_position() 651 v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, in vpbe_display_s_selection() [all …]
|
/Linux-v5.15/drivers/media/usb/hdpvr/ |
D | hdpvr-core.c | 126 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-v5.15/drivers/staging/media/tegra-video/ |
D | video.c | 14 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-v5.15/drivers/media/radio/si4713/ |
D | radio-platform-si4713.c | 40 struct v4l2_device v4l2_dev; member 75 return &((struct radio_si4713_device *)video_drvdata(file))->v4l2_dev; in get_v4l2_dev() 157 rval = v4l2_device_register(&pdev->dev, &rsdev->v4l2_dev); in radio_si4713_pdriver_probe() 164 rval = v4l2_device_register_subdev(&rsdev->v4l2_dev, sd); in radio_si4713_pdriver_probe() 171 rsdev->radio_dev.v4l2_dev = &rsdev->v4l2_dev; in radio_si4713_pdriver_probe() 187 v4l2_device_unregister(&rsdev->v4l2_dev); in radio_si4713_pdriver_probe() 195 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in radio_si4713_pdriver_remove() local 198 rsdev = container_of(v4l2_dev, struct radio_si4713_device, v4l2_dev); in radio_si4713_pdriver_remove() 200 v4l2_device_unregister(&rsdev->v4l2_dev); in radio_si4713_pdriver_remove()
|
/Linux-v5.15/drivers/staging/vc04_services/bcm2835-camera/ |
D | bcm2835-camera.c | 218 v4l2_err(&dev->v4l2_dev, in queue_setup() 227 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, in queue_setup() 241 v4l2_err(&dev->v4l2_dev, in queue_setup() 260 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p\n", in queue_setup() 273 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p, vb %p\n", in buffer_init() 286 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p, vb %p\n", in buffer_prepare() 294 v4l2_err(&dev->v4l2_dev, in buffer_prepare() 310 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, "%s: dev:%p, vb %p\n", in buffer_cleanup() 331 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, in buffer_cb() 352 v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, in buffer_cb() [all …]
|
/Linux-v5.15/drivers/staging/most/video/ |
D | video.c | 38 struct v4l2_device v4l2_dev; member 87 v4l2_err(&mdev->v4l2_dev, "too many clients\n"); in comp_vdev_open() 100 v4l2_err(&mdev->v4l2_dev, "most_start_channel() failed\n"); in comp_vdev_open() 179 v4l2_err(&mdev->v4l2_dev, "read: copy_to_user failed\n"); in comp_vdev_read() 419 mdev->vdev->v4l2_dev = &mdev->v4l2_dev; in comp_register_videodev() 422 mdev->v4l2_dev.name); in comp_register_videodev() 428 v4l2_err(&mdev->v4l2_dev, "video_register_device failed (%d)\n", in comp_register_videodev() 441 static void comp_v4l2_dev_release(struct v4l2_device *v4l2_dev) in comp_v4l2_dev_release() argument 444 container_of(v4l2_dev, struct most_video_dev, v4l2_dev); in comp_v4l2_dev_release() 446 v4l2_device_unregister(v4l2_dev); in comp_v4l2_dev_release() [all …]
|
/Linux-v5.15/drivers/media/usb/stk1160/ |
D | stk1160-core.c | 111 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_routing, in stk1160_select_input() 150 static void stk1160_release(struct v4l2_device *v4l2_dev) in stk1160_release() argument 152 struct stk1160 *dev = container_of(v4l2_dev, struct stk1160, v4l2_dev); in stk1160_release() 159 v4l2_device_unregister(&dev->v4l2_dev); in stk1160_release() 339 dev->v4l2_dev.release = stk1160_release; in stk1160_probe() 340 dev->v4l2_dev.ctrl_handler = &dev->ctrl_handler; in stk1160_probe() 341 rc = v4l2_device_register(dev->dev, &dev->v4l2_dev); in stk1160_probe() 355 dev->sd_saa7115 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_adap, in stk1160_probe() 359 v4l2_device_call_all(&dev->v4l2_dev, 0, core, reset, 0); in stk1160_probe() 360 v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_stream, 0); in stk1160_probe() [all …]
|