Lines Matching defs:usb_usbvision

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