Lines Matching refs:sd
86 struct sd { struct
192 struct sd *sd = (struct sd *) gspca_dev; in sensor_write1() local
197 if (sd->cam_type == CAM_TYPE_CIF) { in sensor_write1()
199 confirm_reg = sd->sensor_type ? 0x13 : 0x11; in sensor_write1()
355 struct sd *sd = (struct sd *) gspca_dev; in sd_config() local
362 sd->do_lcd_stop = 0; in sd_config()
386 sd->cam_type = CAM_TYPE_CIF; in sd_config()
411 sd->sensor_type = 0; in sd_config()
414 sd->sensor_type = 1; in sd_config()
422 sd->sensor_type); in sd_config()
424 sd->cam_type = CAM_TYPE_VGA; in sd_config()
445 sd->sensor_type = 1; in sd_config()
446 sd->do_lcd_stop = 0; in sd_config()
447 sd->adj_colors = 0; in sd_config()
449 sd->sensor_type = 2; in sd_config()
460 sd->adj_colors = 1; in sd_config()
462 sd->do_lcd_stop = 1; in sd_config()
465 sd->sensor_type = 0; in sd_config()
479 sd->sensor_type); in sd_config()
485 sd->sensor_type = !!force_sensor_type; in sd_config()
487 sd->sensor_type); in sd_config()
501 struct sd *sd = (struct sd *) gspca_dev; in start_cif_cam() local
521 if (sd->sensor_type) in start_cif_cam()
533 data[8] = 0x1a + sd->sensor_type; /* reg 7, V start */ in start_cif_cam()
542 data[8] = 0x06 - sd->sensor_type; /* reg 7, V start */ in start_cif_cam()
549 if (!sd->sensor_type) { in start_cif_cam()
603 struct sd *sd = (struct sd *) gspca_dev; in start_vga_cam() local
612 if (!sd->sensor_type) { in start_vga_cam()
616 if (sd->sensor_type == 2) { in start_vga_cam()
634 if (sd->sensor_type == 2) { in start_vga_cam()
638 if (sd->do_lcd_stop) in start_vga_cam()
650 if (sd->do_lcd_stop) in start_vga_cam()
659 if (!sd->sensor_type) { in start_vga_cam()
670 } else if (sd->sensor_type == 1) { in start_vga_cam()
696 if (sd->adj_colors) in start_vga_cam()
756 struct sd *sd = (struct sd *) gspca_dev; in sd_start() local
759 sd->sof_read = 0; in sd_start()
773 if (sd->cam_type == CAM_TYPE_CIF) { in sd_start()
786 struct sd *sd = (struct sd *) gspca_dev; in sd_stopN() local
791 if (sd->do_lcd_stop) in sd_stopN()
797 struct sd *sd = (struct sd *) gspca_dev; in setbrightness() local
803 if (sd->cam_type == CAM_TYPE_VGA) { in setbrightness()
816 if (sd->do_lcd_stop) in setbrightness()
824 struct sd *sd = (struct sd *) gspca_dev; in setexposure() local
828 if (sd->cam_type == CAM_TYPE_CIF && sd->sensor_type == 1) { in setexposure()
834 } else if (sd->sensor_type == 2) { in setexposure()
855 if (sd->cam_type == CAM_TYPE_VGA && clockdiv < 4) in setexposure()
876 struct sd *sd = (struct sd *) gspca_dev; in setgain() local
879 if (sd->cam_type == CAM_TYPE_CIF && sd->sensor_type == 1) in setgain()
881 else if (sd->cam_type == CAM_TYPE_VGA && sd->sensor_type == 2) in setgain()
899 struct sd *sd = (struct sd *)gspca_dev; in sd_s_ctrl() local
914 setexposure(gspca_dev, sd->exposure->val, in sd_s_ctrl()
915 sd->min_clockdiv ? sd->min_clockdiv->val : 0); in sd_s_ctrl()
930 struct sd *sd = (struct sd *)gspca_dev; in sd_init_controls() local
954 if (sd->cam_type == CAM_TYPE_CIF) { in sd_init_controls()
956 if (sd->sensor_type == 0) in sd_init_controls()
962 if (sd->sensor_type == 0) in sd_init_controls()
964 else if (sd->sensor_type == 2) in sd_init_controls()
966 else if (sd->do_lcd_stop) in sd_init_controls()
1004 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1008 sd->min_clockdiv = v4l2_ctrl_new_custom(hdl, &clockdiv, NULL); in sd_init_controls()
1015 v4l2_ctrl_cluster(2, &sd->exposure); in sd_init_controls()
1026 struct sd *sd = (struct sd *) gspca_dev; in sd_pkt_scan() local
1029 sof = pac_find_sof(gspca_dev, &sd->sof_read, data, len); in sd_pkt_scan()
1075 return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), in sd_probe()