Lines Matching refs:gspca_dev
150 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in ov9650_probe() local
191 sd->gspca_dev.cam.cam_mode = ov9650_modes; in ov9650_probe()
192 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(ov9650_modes); in ov9650_probe()
219 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in ov9650_init_controls()
221 sd->gspca_dev.vdev.ctrl_handler = hdl; in ov9650_init_controls()
266 struct cam *cam = &sd->gspca_dev.cam; in ov9650_start()
268 int width = cam->cam_mode[sd->gspca_dev.curr_mode].width; in ov9650_start()
269 int height = cam->cam_mode[sd->gspca_dev.curr_mode].height; in ov9650_start()
270 int ver_offs = cam->cam_mode[sd->gspca_dev.curr_mode].priv; in ov9650_start()
272 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in ov9650_start() local
403 static int ov9650_set_exposure(struct gspca_dev *gspca_dev, __s32 val) in ov9650_set_exposure() argument
405 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_exposure()
431 static int ov9650_set_gain(struct gspca_dev *gspca_dev, __s32 val) in ov9650_set_gain() argument
435 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_gain()
459 static int ov9650_set_red_balance(struct gspca_dev *gspca_dev, __s32 val) in ov9650_set_red_balance() argument
463 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_red_balance()
472 static int ov9650_set_blue_balance(struct gspca_dev *gspca_dev, __s32 val) in ov9650_set_blue_balance() argument
476 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_blue_balance()
485 static int ov9650_set_hvflip(struct gspca_dev *gspca_dev) in ov9650_set_hvflip() argument
489 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_hvflip()
504 if (gspca_dev->streaming) in ov9650_set_hvflip()
510 static int ov9650_set_auto_exposure(struct gspca_dev *gspca_dev, in ov9650_set_auto_exposure() argument
515 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_auto_exposure()
529 static int ov9650_set_auto_white_balance(struct gspca_dev *gspca_dev, in ov9650_set_auto_white_balance() argument
534 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_auto_white_balance()
548 static int ov9650_set_auto_gain(struct gspca_dev *gspca_dev, __s32 val) in ov9650_set_auto_gain() argument
552 struct sd *sd = (struct sd *) gspca_dev; in ov9650_set_auto_gain()
567 struct gspca_dev *gspca_dev = in ov9650_s_ctrl() local
568 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in ov9650_s_ctrl()
569 struct sd *sd = (struct sd *) gspca_dev; in ov9650_s_ctrl()
572 if (!gspca_dev->streaming) in ov9650_s_ctrl()
577 err = ov9650_set_auto_white_balance(gspca_dev, ctrl->val); in ov9650_s_ctrl()
580 err = ov9650_set_red_balance(gspca_dev, sd->red_bal->val); in ov9650_s_ctrl()
583 err = ov9650_set_blue_balance(gspca_dev, sd->blue_bal->val); in ov9650_s_ctrl()
586 err = ov9650_set_auto_exposure(gspca_dev, ctrl->val); in ov9650_s_ctrl()
589 err = ov9650_set_exposure(gspca_dev, sd->expo->val); in ov9650_s_ctrl()
592 err = ov9650_set_auto_gain(gspca_dev, ctrl->val); in ov9650_s_ctrl()
595 err = ov9650_set_gain(gspca_dev, sd->gain->val); in ov9650_s_ctrl()
598 err = ov9650_set_hvflip(gspca_dev); in ov9650_s_ctrl()