Lines Matching refs:gspca_dev

163 	struct gspca_dev *gspca_dev = (struct gspca_dev *)sd;  in po1030_probe()  local
175 gspca_dbg(gspca_dev, D_PROBE, "Probing for a po1030 sensor\n"); in po1030_probe()
200 sd->gspca_dev.cam.cam_mode = po1030_modes; in po1030_probe()
201 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(po1030_modes); in po1030_probe()
243 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in po1030_init_controls()
245 sd->gspca_dev.vdev.ctrl_handler = hdl; in po1030_init_controls()
286 struct cam *cam = &sd->gspca_dev.cam; in po1030_start()
288 int width = cam->cam_mode[sd->gspca_dev.curr_mode].width; in po1030_start()
289 int height = cam->cam_mode[sd->gspca_dev.curr_mode].height; in po1030_start()
290 int ver_offs = cam->cam_mode[sd->gspca_dev.curr_mode].priv; in po1030_start()
411 static int po1030_set_exposure(struct gspca_dev *gspca_dev, __s32 val) in po1030_set_exposure() argument
413 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_exposure()
417 gspca_dbg(gspca_dev, D_CONF, "Set exposure to %d\n", val & 0xffff); in po1030_set_exposure()
420 gspca_dbg(gspca_dev, D_CONF, "Set exposure to high byte to 0x%x\n", in po1030_set_exposure()
429 gspca_dbg(gspca_dev, D_CONF, "Set exposure to low byte to 0x%x\n", in po1030_set_exposure()
437 static int po1030_set_gain(struct gspca_dev *gspca_dev, __s32 val) in po1030_set_gain() argument
439 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_gain()
444 gspca_dbg(gspca_dev, D_CONF, "Set global gain to %d\n", i2c_data); in po1030_set_gain()
450 static int po1030_set_hvflip(struct gspca_dev *gspca_dev) in po1030_set_hvflip() argument
452 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_hvflip()
456 gspca_dbg(gspca_dev, D_CONF, "Set hvflip %d %d\n", in po1030_set_hvflip()
471 static int po1030_set_red_balance(struct gspca_dev *gspca_dev, __s32 val) in po1030_set_red_balance() argument
473 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_red_balance()
478 gspca_dbg(gspca_dev, D_CONF, "Set red gain to %d\n", i2c_data); in po1030_set_red_balance()
484 static int po1030_set_blue_balance(struct gspca_dev *gspca_dev, __s32 val) in po1030_set_blue_balance() argument
486 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_blue_balance()
491 gspca_dbg(gspca_dev, D_CONF, "Set blue gain to %d\n", i2c_data); in po1030_set_blue_balance()
498 static int po1030_set_green_balance(struct gspca_dev *gspca_dev, __s32 val) in po1030_set_green_balance() argument
500 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_green_balance()
505 gspca_dbg(gspca_dev, D_CONF, "Set green gain to %d\n", i2c_data); in po1030_set_green_balance()
516 static int po1030_set_auto_white_balance(struct gspca_dev *gspca_dev, in po1030_set_auto_white_balance() argument
519 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_auto_white_balance()
527 gspca_dbg(gspca_dev, D_CONF, "Set auto white balance to %d\n", val); in po1030_set_auto_white_balance()
533 static int po1030_set_auto_exposure(struct gspca_dev *gspca_dev, in po1030_set_auto_exposure() argument
536 struct sd *sd = (struct sd *) gspca_dev; in po1030_set_auto_exposure()
544 gspca_dbg(gspca_dev, D_CONF, "Set auto exposure to %d\n", val); in po1030_set_auto_exposure()
557 struct gspca_dev *gspca_dev = in po1030_s_ctrl() local
558 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in po1030_s_ctrl()
559 struct sd *sd = (struct sd *) gspca_dev; in po1030_s_ctrl()
562 if (!gspca_dev->streaming) in po1030_s_ctrl()
567 err = po1030_set_auto_white_balance(gspca_dev, ctrl->val); in po1030_s_ctrl()
570 err = po1030_set_green_balance(gspca_dev, sd->green_bal->val); in po1030_s_ctrl()
573 err = po1030_set_red_balance(gspca_dev, sd->red_bal->val); in po1030_s_ctrl()
576 err = po1030_set_blue_balance(gspca_dev, sd->blue_bal->val); in po1030_s_ctrl()
579 err = po1030_set_auto_exposure(gspca_dev, ctrl->val); in po1030_s_ctrl()
582 err = po1030_set_exposure(gspca_dev, sd->expo->val); in po1030_s_ctrl()
585 err = po1030_set_gain(gspca_dev, ctrl->val); in po1030_s_ctrl()
588 err = po1030_set_hvflip(gspca_dev); in po1030_s_ctrl()