Lines Matching refs:s5k3e2fx_ctrl
291 struct s5k3e2fx_ctrl {
314 static struct s5k3e2fx_ctrl *s5k3e2fx_ctrl;
602 num_lperf = num_lperf * s5k3e2fx_ctrl->fps_divider / 0x0400;
614 rc = s5k3e2fx_test(s5k3e2fx_ctrl->set_test);
689 s5k3e2fx_ctrl->fps_divider = 1 * 0x0400;
709 s5k3e2fx_ctrl = kzalloc(sizeof(struct s5k3e2fx_ctrl), GFP_KERNEL);
710 if (!s5k3e2fx_ctrl) {
716 s5k3e2fx_ctrl->fps_divider = 1 * 0x00000400;
717 s5k3e2fx_ctrl->pict_fps_divider = 1 * 0x00000400;
718 s5k3e2fx_ctrl->set_test = S_TEST_OFF;
719 s5k3e2fx_ctrl->prev_res = S_QTR_SIZE;
720 s5k3e2fx_ctrl->pict_res = S_FULL_SIZE;
723 s5k3e2fx_ctrl->sensordata = data;
736 if (s5k3e2fx_ctrl->prev_res == S_QTR_SIZE)
759 kfree(s5k3e2fx_ctrl);
778 gpio_direction_output(s5k3e2fx_ctrl->sensordata->sensor_reset,
780 gpio_free(s5k3e2fx_ctrl->sensordata->sensor_reset);
782 kfree(s5k3e2fx_ctrl);
783 s5k3e2fx_ctrl = NULL;
838 if (s5k3e2fx_ctrl->pict_res == S_QTR_SIZE)
853 s5k3e2fx_ctrl->fps_divider = fps->fps_div;
859 s5k3e2fx_ctrl->fps_divider / 0x400) & 0xFF00) >> 8);
867 s5k3e2fx_ctrl->fps_divider / 0x400) & 0xFF00));
889 if (s5k3e2fx_ctrl->sensormode == SENSOR_PREVIEW_MODE) {
891 s5k3e2fx_ctrl->my_reg_gain = gain;
892 s5k3e2fx_ctrl->my_reg_line_count = (uint16_t)line;
913 line = (line * s5k3e2fx_ctrl->fps_divider);
991 s5k3e2fx_ctrl->prev_res = res;
992 s5k3e2fx_ctrl->curr_res = res;
993 s5k3e2fx_ctrl->sensormode = mode;
996 s5k3e2fx_write_exp_gain(s5k3e2fx_ctrl->my_reg_gain,
997 s5k3e2fx_ctrl->my_reg_line_count);
1010 s5k3e2fx_ctrl->curr_res = s5k3e2fx_ctrl->pict_res;
1011 s5k3e2fx_ctrl->sensormode = mode;
1024 s5k3e2fx_ctrl->curr_res = s5k3e2fx_ctrl->pict_res;
1025 s5k3e2fx_ctrl->sensormode = mode;
1069 s5k3e2fx_ctrl->curr_lens_pos = 0;
1096 pos_offset = init_code + s5k3e2fx_ctrl->curr_lens_pos;
1128 s5k3e2fx_ctrl->curr_lens_pos = pos_offset - init_code;