Lines Matching refs:gspca_dev

45 	struct gspca_dev *gspca_dev = (struct gspca_dev *)sd;  in stv06xx_write_bridge()  local
46 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_write_bridge()
47 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_write_bridge()
67 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_read_bridge() local
68 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_read_bridge()
69 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_read_bridge()
101 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_write_sensor_finish()
102 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_write_sensor_finish()
116 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_write_sensor_bytes() local
117 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_write_sensor_bytes()
118 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_write_sensor_bytes()
146 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_write_sensor_words() local
147 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_write_sensor_words()
148 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_write_sensor_words()
178 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in stv06xx_read_sensor() local
179 struct usb_device *udev = sd->gspca_dev.dev; in stv06xx_read_sensor()
180 __u8 *buf = sd->gspca_dev.usb_buf; in stv06xx_read_sensor()
251 static int stv06xx_init(struct gspca_dev *gspca_dev) in stv06xx_init() argument
253 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_init()
271 static int stv06xx_init_controls(struct gspca_dev *gspca_dev) in stv06xx_init_controls() argument
273 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_init_controls()
277 gspca_dev->vdev.ctrl_handler = &gspca_dev->ctrl_handler; in stv06xx_init_controls()
282 static int stv06xx_start(struct gspca_dev *gspca_dev) in stv06xx_start() argument
284 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_start()
289 intf = usb_ifnum_to_if(sd->gspca_dev.dev, sd->gspca_dev.iface); in stv06xx_start()
290 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); in stv06xx_start()
318 static int stv06xx_isoc_init(struct gspca_dev *gspca_dev) in stv06xx_isoc_init() argument
321 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_isoc_init()
324 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; in stv06xx_isoc_init()
326 cpu_to_le16(sd->sensor->max_packet_size[gspca_dev->curr_mode]); in stv06xx_isoc_init()
331 static int stv06xx_isoc_nego(struct gspca_dev *gspca_dev) in stv06xx_isoc_nego() argument
335 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_isoc_nego()
337 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; in stv06xx_isoc_nego()
339 min_packet_size = sd->sensor->min_packet_size[gspca_dev->curr_mode]; in stv06xx_isoc_nego()
348 ret = usb_set_interface(gspca_dev->dev, gspca_dev->iface, 1); in stv06xx_isoc_nego()
355 static void stv06xx_stopN(struct gspca_dev *gspca_dev) in stv06xx_stopN() argument
358 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_stopN()
386 static void stv06xx_pkt_scan(struct gspca_dev *gspca_dev, in stv06xx_pkt_scan() argument
390 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_pkt_scan()
417 gspca_dev->last_packet_type = DISCARD_PACKET; in stv06xx_pkt_scan()
440 gspca_frame_add(gspca_dev, INTER_PACKET, in stv06xx_pkt_scan()
451 gspca_frame_add(gspca_dev, FIRST_PACKET, in stv06xx_pkt_scan()
455 sd->to_skip = gspca_dev->pixfmt.width * 4; in stv06xx_pkt_scan()
468 gspca_frame_add(gspca_dev, LAST_PACKET, in stv06xx_pkt_scan()
502 static int sd_int_pkt_scan(struct gspca_dev *gspca_dev, in sd_int_pkt_scan() argument
509 input_report_key(gspca_dev->input_dev, KEY_CAMERA, 1); in sd_int_pkt_scan()
510 input_sync(gspca_dev->input_dev); in sd_int_pkt_scan()
515 input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0); in sd_int_pkt_scan()
516 input_sync(gspca_dev->input_dev); in sd_int_pkt_scan()
524 static int stv06xx_config(struct gspca_dev *gspca_dev,
544 static int stv06xx_config(struct gspca_dev *gspca_dev, in stv06xx_config() argument
547 struct sd *sd = (struct sd *) gspca_dev; in stv06xx_config()
552 gspca_dev->sd_desc = &sd_desc; in stv06xx_config()
611 struct gspca_dev *gspca_dev = usb_get_intfdata(intf); in sd_disconnect() local
612 struct sd *sd = (struct sd *) gspca_dev; in sd_disconnect()