Lines Matching refs:sd
36 struct sd { struct
160 struct sd *sd = (struct sd *)gspca_dev; in mars_s_ctrl() local
167 sd->illum_bottom->val = 0; in mars_s_ctrl()
168 if (sd->illum_bottom->is_new && sd->illum_bottom->val) in mars_s_ctrl()
169 sd->illum_top->val = 0; in mars_s_ctrl()
186 setilluminators(gspca_dev, sd->illum_top->val, in mars_s_ctrl()
187 sd->illum_bottom->val); in mars_s_ctrl()
205 struct sd *sd = (struct sd *) gspca_dev; in sd_init_controls() local
210 sd->brightness = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
212 sd->saturation = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
214 sd->gamma = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
216 sd->sharpness = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
218 sd->illum_top = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
220 sd->illum_top->flags |= V4L2_CTRL_FLAG_UPDATE; in sd_init_controls()
221 sd->illum_bottom = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
223 sd->illum_bottom->flags |= V4L2_CTRL_FLAG_UPDATE; in sd_init_controls()
228 v4l2_ctrl_cluster(2, &sd->illum_top); in sd_init_controls()
252 struct sd *sd = (struct sd *) gspca_dev; in sd_start() local
257 jpeg_define(sd->jpeg_hdr, gspca_dev->pixfmt.height, in sd_start()
260 jpeg_set_qual(sd->jpeg_hdr, QUALITY); in sd_start()
279 data[7] = v4l2_ctrl_g_ctrl(sd->gamma) * 0x40; /* reg 0x06: gamma */ in sd_start()
311 data[2] = v4l2_ctrl_g_ctrl(sd->saturation) << 3; in sd_start()
312 data[3] = ((v4l2_ctrl_g_ctrl(sd->saturation) >> 2) & 0xf8) | 0x04; in sd_start()
313 data[4] = v4l2_ctrl_g_ctrl(sd->brightness); /* reg 0x61 = brightness */ in sd_start()
320 data[1] = v4l2_ctrl_g_ctrl(sd->sharpness) * 4 + 3; in sd_start()
343 setilluminators(gspca_dev, v4l2_ctrl_g_ctrl(sd->illum_top), in sd_start()
344 v4l2_ctrl_g_ctrl(sd->illum_bottom)); in sd_start()
351 struct sd *sd = (struct sd *) gspca_dev; in sd_stopN() local
353 if (v4l2_ctrl_g_ctrl(sd->illum_top) || in sd_stopN()
354 v4l2_ctrl_g_ctrl(sd->illum_bottom)) { in sd_stopN()
368 struct sd *sd = (struct sd *) gspca_dev; in sd_pkt_scan() local
392 sd->jpeg_hdr, JPEG_HDR_SZ); in sd_pkt_scan()
424 return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), in sd_probe()