Home
last modified time | relevance | path

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

123

/linux-4.19.296/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 …]
Dv4l2-common.c131 struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev_board() argument
138 BUG_ON(!v4l2_dev); in v4l2_i2c_new_subdev_board()
166 if (v4l2_device_register_subdev(v4l2_dev, sd)) in v4l2_i2c_new_subdev_board()
180 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev() argument
192 return v4l2_i2c_new_subdev_board(v4l2_dev, adapter, &info, probe_addrs); in v4l2_i2c_new_subdev()
262 struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_dev, in v4l2_spi_new_subdev() argument
268 BUG_ON(!v4l2_dev); in v4l2_spi_new_subdev()
285 if (v4l2_device_register_subdev(v4l2_dev, sd)) in v4l2_spi_new_subdev()
Dv4l2-dev.c181 struct v4l2_device *v4l2_dev = vdev->v4l2_dev; in v4l2_device_release() local
205 if (v4l2_dev->mdev && vdev->vfl_dir != VFL_DIR_M2M) { in v4l2_device_release()
221 if (v4l2_dev->release == NULL) in v4l2_device_release()
222 v4l2_dev = NULL; in v4l2_device_release()
229 if (v4l2_dev) in v4l2_device_release()
230 v4l2_device_put(v4l2_dev); in v4l2_device_release()
499 video_devices[i]->v4l2_dev == vdev->v4l2_dev) { in get_index()
745 if (!vdev->v4l2_dev->mdev || vdev->vfl_dir == VFL_DIR_M2M) in video_register_media_controller()
791 ret = media_device_register_entity(vdev->v4l2_dev->mdev, in video_register_media_controller()
800 vdev->intf_devnode = media_devnode_create(vdev->v4l2_dev->mdev, in video_register_media_controller()
[all …]
/linux-4.19.296/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 …]
Dv4l2-async.h139 struct v4l2_device *v4l2_dev; member
153 int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev,
/linux-4.19.296/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-raremono.c108 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()
228 dev_warn(radio->v4l2_dev.dev, "%s failed (%d)\n", __func__, ret); in vidioc_g_tuner()
274 static void raremono_device_release(struct v4l2_device *v4l2_dev) in raremono_device_release() argument
276 struct raremono_device *radio = to_raremono_dev(v4l2_dev); in raremono_device_release()
344 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_raremono_probe()
[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-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-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 …]
Dradio-miropcm20.c62 struct v4l2_device v4l2_dev; member
205 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", dev->v4l2_dev.name); in vidioc_querycap()
389 dev->v4l2_dev.name); in pcm20_open()
391 v4l2_err(&dev->v4l2_dev, "kernel_thread() failed\n"); in pcm20_open()
436 struct v4l2_device *v4l2_dev = &dev->v4l2_dev; in pcm20_init() local
442 v4l2_err(v4l2_dev, in pcm20_init()
446 strlcpy(v4l2_dev->name, "radio-miropcm20", sizeof(v4l2_dev->name)); in pcm20_init()
449 res = v4l2_device_register(NULL, v4l2_dev); in pcm20_init()
451 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in pcm20_init()
471 v4l2_dev->ctrl_handler = hdl; in pcm20_init()
[all …]
Dradio-mr800.c129 struct v4l2_device v4l2_dev; member
139 static inline struct amradio_device *to_amradio_dev(struct v4l2_device *v4l2_dev) in to_amradio_dev() argument
141 return container_of(v4l2_dev, struct amradio_device, v4l2_dev); in to_amradio_dev()
258 v4l2_device_disconnect(&radio->v4l2_dev); in usb_amradio_disconnect()
260 v4l2_device_put(&radio->v4l2_dev); in usb_amradio_disconnect()
498 static void usb_amradio_release(struct v4l2_device *v4l2_dev) in usb_amradio_release() argument
500 struct amradio_device *radio = to_amradio_dev(v4l2_dev); in usb_amradio_release()
504 v4l2_device_unregister(&radio->v4l2_dev); in usb_amradio_release()
532 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_amradio_probe()
548 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_amradio_probe()
[all …]
Dradio-cadet.c65 struct v4l2_device v4l2_dev; member
594 struct v4l2_device *v4l2_dev = &dev->v4l2_dev; in cadet_init() local
598 strlcpy(v4l2_dev->name, "cadet", sizeof(v4l2_dev->name)); in cadet_init()
613 v4l2_err(v4l2_dev, "you must set an I/O address with io=0x330, 0x332, 0x334,\n"); in cadet_init()
614 v4l2_err(v4l2_dev, "0x336, 0x338, 0x33a, 0x33c or 0x33e\n"); in cadet_init()
621 res = v4l2_device_register(NULL, v4l2_dev); in cadet_init()
624 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in cadet_init()
632 v4l2_dev->ctrl_handler = hdl; in cadet_init()
635 v4l2_err(v4l2_dev, "Could not register controls\n"); in cadet_init()
642 strlcpy(dev->vdev.name, v4l2_dev->name, sizeof(dev->vdev.name)); in cadet_init()
[all …]
Dradio-sf16fmr2.c32 struct v4l2_device v4l2_dev; member
216 strlcpy(fmr2->v4l2_dev.name, "radio-sf16fmr2", in fmr2_probe()
217 sizeof(fmr2->v4l2_dev.name)), in fmr2_probe()
220 if (!request_region(fmr2->io, 2, fmr2->v4l2_dev.name)) { in fmr2_probe()
226 err = v4l2_device_register(pdev, &fmr2->v4l2_dev); in fmr2_probe()
228 v4l2_err(&fmr2->v4l2_dev, "Could not register v4l2_device\n"); in fmr2_probe()
232 fmr2->tea.v4l2_dev = &fmr2->v4l2_dev; in fmr2_probe()
291 v4l2_device_unregister(&fmr2->v4l2_dev); in fmr2_remove()
Dradio-tea5764.c140 struct v4l2_device v4l2_dev; member
429 struct v4l2_device *v4l2_dev; in tea5764_i2c_probe() local
439 v4l2_dev = &radio->v4l2_dev; in tea5764_i2c_probe()
440 ret = v4l2_device_register(&client->dev, v4l2_dev); in tea5764_i2c_probe()
442 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in tea5764_i2c_probe()
450 v4l2_dev->ctrl_handler = hdl; in tea5764_i2c_probe()
453 v4l2_err(v4l2_dev, "Could not register controls\n"); in tea5764_i2c_probe()
476 radio->vdev.v4l2_dev = v4l2_dev; in tea5764_i2c_probe()
494 v4l2_device_unregister(v4l2_dev); in tea5764_i2c_probe()
509 v4l2_device_unregister(&radio->v4l2_dev); in tea5764_i2c_remove()
/linux-4.19.296/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()
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()
131 static void usb_si4713_video_device_release(struct v4l2_device *v4l2_dev) in usb_si4713_video_device_release() argument
133 struct si4713_usb_device *radio = to_si4713_dev(v4l2_dev); in usb_si4713_video_device_release()
137 v4l2_device_unregister(&radio->v4l2_dev); in usb_si4713_video_device_release()
440 usb_set_intfdata(intf, &radio->v4l2_dev); in usb_si4713_probe()
446 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_si4713_probe()
459 sd = v4l2_i2c_new_subdev_board(&radio->v4l2_dev, adapter, in usb_si4713_probe()
469 radio->v4l2_dev.release = usb_si4713_video_device_release; in usb_si4713_probe()
[all …]
/linux-4.19.296/drivers/media/radio/si470x/ !
Dradio-si470x-usb.c495 static void si470x_usb_release(struct v4l2_device *v4l2_dev) in si470x_usb_release() argument
498 container_of(v4l2_dev, struct si470x_device, v4l2_dev); in si470x_usb_release()
502 v4l2_device_unregister(&radio->v4l2_dev); in si470x_usb_release()
636 radio->v4l2_dev.release = si470x_usb_release; in si470x_usb_driver_probe()
661 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in si470x_usb_driver_probe()
680 radio->videodev.v4l2_dev = &radio->v4l2_dev; in si470x_usb_driver_probe()
769 v4l2_device_unregister(&radio->v4l2_dev); in si470x_usb_driver_probe()
836 v4l2_device_disconnect(&radio->v4l2_dev); in si470x_usb_driver_disconnect()
841 v4l2_device_put(&radio->v4l2_dev); in si470x_usb_driver_disconnect()
/linux-4.19.296/drivers/media/radio/wl128x/ !
Dfmdrv_v4l2.c534 strlcpy(fmdev->v4l2_dev.name, FM_DRV_NAME, sizeof(fmdev->v4l2_dev.name)); in fm_v4l2_init_video_device()
535 ret = v4l2_device_register(NULL, &fmdev->v4l2_dev); in fm_v4l2_init_video_device()
548 gradio_dev.v4l2_dev = &fmdev->v4l2_dev; in fm_v4l2_init_video_device()
552 v4l2_device_unregister(&fmdev->v4l2_dev); in fm_v4l2_init_video_device()
567 v4l2_device_unregister(&fmdev->v4l2_dev); in fm_v4l2_init_video_device()
613 v4l2_device_unregister(&fmdev->v4l2_dev); in fm_v4l2_deinit_video_device()

123