Lines Matching defs:usb_usbvision

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