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