Lines Matching refs:gspca_dev
37 struct gspca_dev gspca_dev; /* !! must be the first item */ member
58 static int command(struct gspca_dev *gspca_dev, in command() argument
66 memcpy(gspca_dev->usb_buf, order_values[order], 12); in command()
67 return usb_control_msg(gspca_dev->dev, in command()
68 usb_sndctrlpipe(gspca_dev->dev, 0), in command()
71 USB_RECIP_INTERFACE, 0, 0, gspca_dev->usb_buf, in command()
86 struct gspca_dev *gspca_dev = &dev->gspca_dev; in dostream() local
87 struct urb *urb = gspca_dev->urb[0]; in dostream()
92 gspca_dbg(gspca_dev, D_STREAM, "dostream started\n"); in dostream()
96 while (gspca_dev->present && gspca_dev->streaming) { in dostream()
98 if (gspca_dev->frozen) in dostream()
103 mutex_lock(&gspca_dev->usb_lock); in dostream()
104 ret = command(gspca_dev, 1); in dostream()
105 mutex_unlock(&gspca_dev->usb_lock); in dostream()
109 if (gspca_dev->frozen) in dostream()
112 if (!gspca_dev->present || !gspca_dev->streaming) in dostream()
117 ret = usb_bulk_msg(gspca_dev->dev, in dostream()
128 if (gspca_dev->frozen) in dostream()
131 if (!gspca_dev->present || !gspca_dev->streaming) in dostream()
143 gspca_frame_add(gspca_dev, LAST_PACKET, in dostream()
149 gspca_frame_add(gspca_dev, in dostream()
150 gspca_dev->last_packet_type in dostream()
163 gspca_dbg(gspca_dev, D_STREAM, "dostream stopped\n"); in dostream()
167 static int sd_config(struct gspca_dev *gspca_dev, in sd_config() argument
170 struct usb_fpix *dev = (struct usb_fpix *) gspca_dev; in sd_config()
171 struct cam *cam = &gspca_dev->cam; in sd_config()
184 static int sd_init(struct gspca_dev *gspca_dev) in sd_init() argument
190 static int sd_start(struct gspca_dev *gspca_dev) in sd_start() argument
192 struct usb_fpix *dev = (struct usb_fpix *) gspca_dev; in sd_start()
196 ret = command(gspca_dev, 0); in sd_start()
204 ret = usb_bulk_msg(gspca_dev->dev, in sd_start()
205 gspca_dev->urb[0]->pipe, in sd_start()
206 gspca_dev->urb[0]->transfer_buffer, in sd_start()
215 ret = command(gspca_dev, 1); in sd_start()
222 usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); in sd_start()
231 static void sd_stop0(struct gspca_dev *gspca_dev) in sd_stop0() argument
233 struct usb_fpix *dev = (struct usb_fpix *) gspca_dev; in sd_stop0()
236 mutex_unlock(&gspca_dev->usb_lock); in sd_stop0()
238 mutex_lock(&gspca_dev->usb_lock); in sd_stop0()