Lines Matching defs:gspca_dev
146 struct gspca_dev { struct
147 struct video_device vdev; /* !! must be the first item */
148 struct module *module; /* subdriver handling the device */
149 struct v4l2_device v4l2_dev;
150 struct usb_device *dev;
151 struct file *capt_file; /* file doing video capture */
154 struct input_dev *input_dev;
155 char phys[64]; /* physical device path */
158 struct cam cam; /* device information */
159 const struct sd_desc *sd_desc; /* subdriver description */
160 struct v4l2_ctrl_handler ctrl_handler;
164 struct {
172 __u8 *usb_buf; /* buffer for USB exchanges */
173 struct urb *urb[MAX_NURBS];
175 struct urb *int_urb;
178 __u8 *frbuf; /* buffer for nframes */
179 struct gspca_frame frame[GSPCA_MAX_FRAMES];
180 u8 *image; /* image beeing filled */
181 __u32 frsz; /* frame size */
182 u32 image_len; /* current length of image */
183 atomic_t fr_q; /* next frame to queue */
184 atomic_t fr_i; /* frame being filled */
185 signed char fr_queue[GSPCA_MAX_FRAMES]; /* frame queue */
186 char nframes; /* number of frames */
187 u8 fr_o; /* next frame to dequeue */
188 __u8 last_packet_type;
189 __s8 empty_packet; /* if (-1) don't check empty packets */
190 __u8 streaming; /* protected by both mutexes (*) */
192 __u8 curr_mode; /* current camera mode */
193 struct v4l2_pix_format pixfmt; /* current mode parameters */
217 int gspca_dev_probe(struct usb_interface *intf, argument
228 void gspca_frame_add(struct gspca_dev *gspca_dev, argument