Lines Matching defs:usb_usbvision
344 struct usb_usbvision { struct
345 struct v4l2_device v4l2_dev;
346 struct v4l2_ctrl_handler hdl;
347 struct video_device vdev; /* Video Device */
348 struct video_device rdev; /* Radio Device */
351 struct i2c_adapter i2c_adap;
352 int registered_i2c;
354 struct urb *ctrl_urb;
355 unsigned char ctrl_urb_buffer[8];
356 int ctrl_urb_busy;
357 struct usb_ctrlrequest ctrl_urb_setup;
360 int have_tuner;
361 int tuner_type;
362 int bridge_type; /* NT1003, NT1004, NT1005 */
363 int radio;
364 int video_inputs; /* # of inputs */
365 unsigned long radio_freq;
366 unsigned long tv_freq;
367 int audio_mute;
368 int audio_channel;
369 int isoc_mode; /* format of video data for the usb isoc-transfer */
370 unsigned int nr; /* Number of the device */
373 struct usb_device *dev;
375 int num_alt; /* Number of alternative settings */
376 unsigned int *alt_max_pkt_size; /* array of max_packet_size */
377 unsigned char iface; /* Video interface number */
378 unsigned char iface_alt; /* Alt settings */
379 unsigned char vin_reg2_preset;
380 struct mutex v4l2_lock;
381 int power; /* is the device powered on? */
382 int user; /* user count for exclusive use */
383 int initialized; /* Had we already sent init sequence? */
384 int dev_model; /* What type of USBVISION device we got? */
385 enum stream_state streaming; /* Are we streaming Isochronous? */
386 int last_error; /* What calamity struck us? */
387 int curwidth; /* width of the frame the device is currently set to*/
388 int curheight; /* height of the frame the device is currently set to*/
389 int stretch_width; /* stretch-factor for frame width (from usb to screen)*/
390 int stretch_height; /* stretch-factor for frame height (from usb to screen)*/
391 char *fbuf; /* Videodev buffer area for mmap*/
392 int max_frame_size; /* Bytes in one video frame */
393 int fbuf_size; /* Videodev buffer size */
394 spinlock_t queue_lock; /* spinlock for protecting mods on inqueue and outqueue */
395 …ueue, outqueue; /* queued frame list and ready to dequeue frame list */
396 wait_queue_head_t wait_frame; /* Processes waiting */
397 wait_queue_head_t wait_stream; /* Processes waiting */
398 struct usbvision_frame *cur_frame; /* pointer to current frame, set by usbvision_find_header */
399 struct usbvision_frame frame[USBVISION_NUMFRAMES]; /* frame buffer */
400 int num_frames; /* number of frames allocated */
401 struct usbvision_sbuf sbuf[USBVISION_NUMSBUF]; /* S buffering */
402 volatile int remove_pending; /* If set then about to exit */
405 unsigned char *scratch;
406 int scratch_read_ptr;
407 int scratch_write_ptr;
408 int scratch_headermarker[USBVISION_NUM_HEADERMARKER];
409 int scratch_headermarker_read_ptr;
410 int scratch_headermarker_write_ptr;
411 enum isoc_state isocstate;
412 struct usbvision_v4l2_format_st palette;
414 struct v4l2_capability vcap; /* Video capabilities */
415 unsigned int ctl_input; /* selected input */
416 v4l2_std_id tvnorm_id; /* selected tv norm */
417 unsigned char video_endp; /* 0x82 for USBVISION devices based */
420 unsigned char *intra_frame_buffer; /* Buffer for reference frame */
421 int block_pos; /* for test only */
422 int request_intra; /* 0 = normal; 1 = intra frame is requested; */
423 int last_isoc_frame_num; /* check for lost isoc frames */
424 int isoc_packet_size; /* need to calculate used_bandwidth */
425 int used_bandwidth; /* used bandwidth 0-100%, need to set compr_level */
449 static inline struct usb_usbvision *to_usbvision(struct v4l2_device *v4l2_dev) in to_usbvision() argument