Lines Matching full:sd

65 static int vv6410_probe(struct sd *sd)  in vv6410_probe()  argument
70 err = stv06xx_read_sensor(sd, VV6410_DEVICEH, &data); in vv6410_probe()
79 sd->gspca_dev.cam.cam_mode = vv6410_mode; in vv6410_probe()
80 sd->gspca_dev.cam.nmodes = ARRAY_SIZE(vv6410_mode); in vv6410_probe()
84 static int vv6410_init_controls(struct sd *sd) in vv6410_init_controls() argument
86 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in vv6410_init_controls()
103 static int vv6410_init(struct sd *sd) in vv6410_init() argument
108 stv06xx_write_bridge(sd, stv_bridge_init[i].addr, stv_bridge_init[i].data); in vv6410_init()
110 err = stv06xx_write_sensor_bytes(sd, (u8 *) vv6410_sensor_init, in vv6410_init()
115 static int vv6410_start(struct sd *sd) in vv6410_start() argument
118 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in vv6410_start()
119 struct cam *cam = &sd->gspca_dev.cam; in vv6410_start()
120 u32 priv = cam->cam_mode[sd->gspca_dev.curr_mode].priv; in vv6410_start()
124 stv06xx_write_bridge(sd, STV_Y_CTRL, 0x02); in vv6410_start()
125 stv06xx_write_bridge(sd, STV_X_CTRL, 0x06); in vv6410_start()
127 stv06xx_write_bridge(sd, STV_SCAN_RATE, 0x10); in vv6410_start()
129 stv06xx_write_bridge(sd, STV_Y_CTRL, 0x01); in vv6410_start()
130 stv06xx_write_bridge(sd, STV_X_CTRL, 0x0a); in vv6410_start()
131 stv06xx_write_bridge(sd, STV_SCAN_RATE, 0x00); in vv6410_start()
136 err = stv06xx_write_bridge(sd, STV_LED_CTRL, LED_ON); in vv6410_start()
140 err = stv06xx_write_sensor(sd, VV6410_SETUP0, 0); in vv6410_start()
149 static int vv6410_stop(struct sd *sd) in vv6410_stop() argument
151 struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; in vv6410_stop()
155 err = stv06xx_write_bridge(sd, STV_LED_CTRL, LED_OFF); in vv6410_stop()
159 err = stv06xx_write_sensor(sd, VV6410_SETUP0, VV6410_LOW_POWER_MODE); in vv6410_stop()
168 static int vv6410_dump(struct sd *sd) in vv6410_dump() argument
176 err = stv06xx_read_sensor(sd, i, &data); in vv6410_dump()
186 struct sd *sd = (struct sd *) gspca_dev; in vv6410_set_hflip() local
188 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_hflip()
198 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_hflip()
207 struct sd *sd = (struct sd *) gspca_dev; in vv6410_set_vflip() local
209 err = stv06xx_read_sensor(sd, VV6410_DATAFORMAT, &i2c_data); in vv6410_set_vflip()
219 err = stv06xx_write_sensor(sd, VV6410_DATAFORMAT, i2c_data); in vv6410_set_vflip()
227 struct sd *sd = (struct sd *) gspca_dev; in vv6410_set_analog_gain() local
230 err = stv06xx_write_sensor(sd, VV6410_ANALOGGAIN, 0xf0 | (val & 0xf)); in vv6410_set_analog_gain()
238 struct sd *sd = (struct sd *) gspca_dev; in vv6410_set_exposure() local
249 err = stv06xx_write_sensor(sd, VV6410_FINEH, fine >> 8); in vv6410_set_exposure()
253 err = stv06xx_write_sensor(sd, VV6410_FINEL, fine & 0xff); in vv6410_set_exposure()
257 err = stv06xx_write_sensor(sd, VV6410_COARSEH, coarse >> 8); in vv6410_set_exposure()
261 err = stv06xx_write_sensor(sd, VV6410_COARSEL, coarse & 0xff); in vv6410_set_exposure()