Lines Matching refs:gspca_dev

33 	struct gspca_dev gspca_dev;	/* !! must be the first item */
46 static void reg_w(struct gspca_dev *gspca_dev,
49 struct usb_device *dev = gspca_dev->dev;
52 if (gspca_dev->usb_err < 0)
64 gspca_dev->usb_err = ret;
69 static int sd_config(struct gspca_dev *gspca_dev,
72 gspca_dev->cam.cam_mode = vga_mode;
73 gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode);
74 gspca_dev->cam.no_urb_create = 1;
79 static int sd_init(struct gspca_dev *gspca_dev)
85 static int sd_start(struct gspca_dev *gspca_dev)
102 gspca_dev->urb[n] = urb;
103 urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev,
112 urb->dev = gspca_dev->dev;
113 urb->context = gspca_dev;
115 urb->pipe = usb_rcvisocpipe(gspca_dev->dev,
128 return gspca_dev->usb_err;
131 static void sd_stopN(struct gspca_dev *gspca_dev)
135 reg_w(gspca_dev, 0x003c, 0x0003);
136 reg_w(gspca_dev, 0x003c, 0x0004);
137 reg_w(gspca_dev, 0x003c, 0x0005);
138 reg_w(gspca_dev, 0x003c, 0x0006);
139 reg_w(gspca_dev, 0x003c, 0x0007);
141 intf = usb_ifnum_to_if(gspca_dev->dev, gspca_dev->iface);
142 usb_set_interface(gspca_dev->dev, gspca_dev->iface,
146 static void sd_pkt_scan(struct gspca_dev *gspca_dev,
156 struct gspca_dev *gspca_dev = (struct gspca_dev *) urb->context;
162 if (!gspca_dev->streaming)
168 if (gspca_dev->frozen)
176 if (urb == gspca_dev->urb[0] || urb == gspca_dev->urb[2])
180 if (urb == gspca_dev->urb[1])
181 urb0 = gspca_dev->urb[0];
183 urb0 = gspca_dev->urb[2];
192 gspca_dev->last_packet_type = DISCARD_PACKET;
201 gspca_dev->last_packet_type = DISCARD_PACKET;
226 gspca_frame_add(gspca_dev, LAST_PACKET,
228 gspca_frame_add(gspca_dev, FIRST_PACKET,
231 gspca_frame_add(gspca_dev, INTER_PACKET,
234 gspca_dev->last_packet_type = DISCARD_PACKET;
239 gspca_frame_add(gspca_dev, INTER_PACKET,