Lines Matching refs:gspca_dev

86 	struct gspca_dev *gspca_dev =  in pb0100_s_ctrl()  local
87 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in pb0100_s_ctrl()
88 struct sd *sd = (struct sd *)gspca_dev; in pb0100_s_ctrl()
94 err = pb0100_set_autogain(gspca_dev, ctrl->val); in pb0100_s_ctrl()
99 err = pb0100_set_gain(gspca_dev, ctrls->gain->val); in pb0100_s_ctrl()
102 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl()
105 err = pb0100_set_autogain_target(gspca_dev, ctrl->val); in pb0100_s_ctrl()
117 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in pb0100_init_controls()
178 sd->gspca_dev.cam.cam_mode = pb0100_mode; in pb0100_probe()
179 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(pb0100_mode); in pb0100_probe()
189 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in pb0100_start() local
190 struct cam *cam = &sd->gspca_dev.cam; in pb0100_start()
191 u32 mode = cam->cam_mode[sd->gspca_dev.curr_mode].priv; in pb0100_start()
193 intf = usb_ifnum_to_if(sd->gspca_dev.dev, sd->gspca_dev.iface); in pb0100_start()
194 alt = usb_altnum_to_altsetting(intf, sd->gspca_dev.alt); in pb0100_start()
204 max_packet_size = sd->sensor->max_packet_size[sd->gspca_dev.curr_mode]; in pb0100_start()
236 gspca_dbg(gspca_dev, D_STREAM, "Started stream, status: %d\n", err); in pb0100_start()
243 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in pb0100_stop() local
254 gspca_dbg(gspca_dev, D_STREAM, "Halting stream\n"); in pb0100_stop()
330 static int pb0100_set_gain(struct gspca_dev *gspca_dev, __s32 val) in pb0100_set_gain() argument
333 struct sd *sd = (struct sd *) gspca_dev; in pb0100_set_gain()
339 gspca_dbg(gspca_dev, D_CONF, "Set green gain to %d, status: %d\n", in pb0100_set_gain()
343 err = pb0100_set_red_balance(gspca_dev, ctrls->red->val); in pb0100_set_gain()
345 err = pb0100_set_blue_balance(gspca_dev, ctrls->blue->val); in pb0100_set_gain()
350 static int pb0100_set_red_balance(struct gspca_dev *gspca_dev, __s32 val) in pb0100_set_red_balance() argument
353 struct sd *sd = (struct sd *) gspca_dev; in pb0100_set_red_balance()
363 gspca_dbg(gspca_dev, D_CONF, "Set red gain to %d, status: %d\n", in pb0100_set_red_balance()
369 static int pb0100_set_blue_balance(struct gspca_dev *gspca_dev, __s32 val) in pb0100_set_blue_balance() argument
372 struct sd *sd = (struct sd *) gspca_dev; in pb0100_set_blue_balance()
382 gspca_dbg(gspca_dev, D_CONF, "Set blue gain to %d, status: %d\n", in pb0100_set_blue_balance()
388 static int pb0100_set_exposure(struct gspca_dev *gspca_dev, __s32 val) in pb0100_set_exposure() argument
390 struct sd *sd = (struct sd *) gspca_dev; in pb0100_set_exposure()
394 gspca_dbg(gspca_dev, D_CONF, "Set exposure to %d, status: %d\n", in pb0100_set_exposure()
400 static int pb0100_set_autogain(struct gspca_dev *gspca_dev, __s32 val) in pb0100_set_autogain() argument
403 struct sd *sd = (struct sd *) gspca_dev; in pb0100_set_autogain()
415 gspca_dbg(gspca_dev, D_CONF, "Set autogain to %d (natural: %d), status: %d\n", in pb0100_set_autogain()
421 static int pb0100_set_autogain_target(struct gspca_dev *gspca_dev, __s32 val) in pb0100_set_autogain_target() argument
424 struct sd *sd = (struct sd *) gspca_dev; in pb0100_set_autogain_target()
428 totalpixels = gspca_dev->pixfmt.width * gspca_dev->pixfmt.height; in pb0100_set_autogain_target()
437 gspca_dbg(gspca_dev, D_CONF, "Set autogain target to %d, status: %d\n", in pb0100_set_autogain_target()