Lines Matching refs:v4l2_dev
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()
248 v4l2_warn(&shark->v4l2_dev, in shark_register_leds()
258 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_disconnect() local
259 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev); in usb_shark_disconnect()
262 v4l2_device_disconnect(&shark->v4l2_dev); in usb_shark_disconnect()
268 v4l2_device_put(&shark->v4l2_dev); in usb_shark_disconnect()
271 static void usb_shark_release(struct v4l2_device *v4l2_dev) in usb_shark_release() argument
273 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev); in usb_shark_release()
275 v4l2_device_unregister(&shark->v4l2_dev); in usb_shark_release()
294 v4l2_device_set_name(&shark->v4l2_dev, DRV_NAME, &shark_instance); in usb_shark_probe()
300 shark->v4l2_dev.release = usb_shark_release; in usb_shark_probe()
301 retval = v4l2_device_register(&intf->dev, &shark->v4l2_dev); in usb_shark_probe()
303 v4l2_err(&shark->v4l2_dev, "couldn't register v4l2_device\n"); in usb_shark_probe()
308 shark->tea.v4l2_dev = &shark->v4l2_dev; in usb_shark_probe()
320 v4l2_err(&shark->v4l2_dev, "couldn't init tea5777\n"); in usb_shark_probe()
327 v4l2_device_unregister(&shark->v4l2_dev); in usb_shark_probe()
346 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_resume() local
347 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev); in usb_shark_resume()