Lines Matching refs:is
38 static void __fimc_is_hw_update_param_global_shotmode(struct fimc_is *is) in __fimc_is_hw_update_param_global_shotmode() argument
42 dst = &is->is_p_region->parameter.global.shotmode; in __fimc_is_hw_update_param_global_shotmode()
43 src = &is->config[is->config_index].global.shotmode; in __fimc_is_hw_update_param_global_shotmode()
47 static void __fimc_is_hw_update_param_sensor_framerate(struct fimc_is *is) in __fimc_is_hw_update_param_sensor_framerate() argument
51 dst = &is->is_p_region->parameter.sensor.frame_rate; in __fimc_is_hw_update_param_sensor_framerate()
52 src = &is->config[is->config_index].sensor.frame_rate; in __fimc_is_hw_update_param_sensor_framerate()
56 int __fimc_is_hw_update_param(struct fimc_is *is, u32 offset) in __fimc_is_hw_update_param() argument
58 struct is_param_region *par = &is->is_p_region->parameter; in __fimc_is_hw_update_param()
59 struct chain_config *cfg = &is->config[is->config_index]; in __fimc_is_hw_update_param()
161 unsigned int __get_pending_param_count(struct fimc_is *is) in __get_pending_param_count() argument
163 struct chain_config *config = &is->config[is->config_index]; in __get_pending_param_count()
167 spin_lock_irqsave(&is->slock, flags); in __get_pending_param_count()
170 spin_unlock_irqrestore(&is->slock, flags); in __get_pending_param_count()
175 int __is_hw_update_params(struct fimc_is *is) in __is_hw_update_params() argument
180 id = is->config_index; in __is_hw_update_params()
181 p_index = &is->config[id].p_region_index[0]; in __is_hw_update_params()
184 __fimc_is_hw_update_param_global_shotmode(is); in __is_hw_update_params()
187 __fimc_is_hw_update_param_sensor_framerate(is); in __is_hw_update_params()
191 ret = __fimc_is_hw_update_param(is, i); in __is_hw_update_params()
196 ret = __fimc_is_hw_update_param(is, i); in __is_hw_update_params()
201 ret = __fimc_is_hw_update_param(is, i); in __is_hw_update_params()
207 void __is_get_frame_size(struct fimc_is *is, struct v4l2_mbus_framefmt *mf) in __is_get_frame_size() argument
211 isp = &is->config[is->config_index].isp; in __is_get_frame_size()
216 void __is_set_frame_size(struct fimc_is *is, struct v4l2_mbus_framefmt *mf) in __is_set_frame_size() argument
218 unsigned int index = is->config_index; in __is_set_frame_size()
223 isp = &is->config[index].isp; in __is_set_frame_size()
224 drc = &is->config[index].drc; in __is_set_frame_size()
225 fd = &is->config[index].fd; in __is_set_frame_size()
242 &is->config[index].p_region_index[0])) in __is_set_frame_size()
246 fimc_is_set_param_bit(is, PARAM_ISP_OTF_INPUT); in __is_set_frame_size()
247 fimc_is_set_param_bit(is, PARAM_ISP_OTF_OUTPUT); in __is_set_frame_size()
248 fimc_is_set_param_bit(is, PARAM_DRC_OTF_INPUT); in __is_set_frame_size()
249 fimc_is_set_param_bit(is, PARAM_DRC_OTF_OUTPUT); in __is_set_frame_size()
250 fimc_is_set_param_bit(is, PARAM_FD_OTF_INPUT); in __is_set_frame_size()
253 int fimc_is_hw_get_sensor_max_framerate(struct fimc_is *is) in fimc_is_hw_get_sensor_max_framerate() argument
255 switch (is->sensor->drvdata->id) { in fimc_is_hw_get_sensor_max_framerate()
263 void __is_set_sensor(struct fimc_is *is, int fps) in __is_set_sensor() argument
265 unsigned int index = is->config_index; in __is_set_sensor()
269 sensor = &is->config[index].sensor; in __is_set_sensor()
270 isp = &is->config[index].isp; in __is_set_sensor()
274 fimc_is_hw_get_sensor_max_framerate(is); in __is_set_sensor()
283 fimc_is_set_param_bit(is, PARAM_SENSOR_FRAME_RATE); in __is_set_sensor()
284 fimc_is_set_param_bit(is, PARAM_ISP_OTF_INPUT); in __is_set_sensor()
287 static void __maybe_unused __is_set_init_isp_aa(struct fimc_is *is) in __is_set_init_isp_aa() argument
291 isp = &is->config[is->config_index].isp; in __is_set_init_isp_aa()
305 fimc_is_set_param_bit(is, PARAM_ISP_AA); in __is_set_init_isp_aa()
308 void __is_set_isp_flash(struct fimc_is *is, u32 cmd, u32 redeye) in __is_set_isp_flash() argument
310 unsigned int index = is->config_index; in __is_set_isp_flash()
311 struct isp_param *isp = &is->config[index].isp; in __is_set_isp_flash()
317 fimc_is_set_param_bit(is, PARAM_ISP_FLASH); in __is_set_isp_flash()
320 void __is_set_isp_awb(struct fimc_is *is, u32 cmd, u32 val) in __is_set_isp_awb() argument
322 unsigned int index = is->config_index; in __is_set_isp_awb()
325 isp = &is->config[index].isp; in __is_set_isp_awb()
331 fimc_is_set_param_bit(is, PARAM_ISP_AWB); in __is_set_isp_awb()
334 void __is_set_isp_effect(struct fimc_is *is, u32 cmd) in __is_set_isp_effect() argument
336 unsigned int index = is->config_index; in __is_set_isp_effect()
339 isp = &is->config[index].isp; in __is_set_isp_effect()
344 fimc_is_set_param_bit(is, PARAM_ISP_IMAGE_EFFECT); in __is_set_isp_effect()
347 void __is_set_isp_iso(struct fimc_is *is, u32 cmd, u32 val) in __is_set_isp_iso() argument
349 unsigned int index = is->config_index; in __is_set_isp_iso()
352 isp = &is->config[index].isp; in __is_set_isp_iso()
358 fimc_is_set_param_bit(is, PARAM_ISP_ISO); in __is_set_isp_iso()
361 void __is_set_isp_adjust(struct fimc_is *is, u32 cmd, u32 val) in __is_set_isp_adjust() argument
363 unsigned int index = is->config_index; in __is_set_isp_adjust()
367 p_index = &is->config[index].p_region_index[0]; in __is_set_isp_adjust()
368 isp = &is->config[index].isp; in __is_set_isp_adjust()
402 fimc_is_set_param_bit(is, PARAM_ISP_ADJUST); in __is_set_isp_adjust()
408 void __is_set_isp_metering(struct fimc_is *is, u32 id, u32 val) in __is_set_isp_metering() argument
410 unsigned int index = is->config_index; in __is_set_isp_metering()
414 p_index = &is->config[index].p_region_index[0]; in __is_set_isp_metering()
415 isp = &is->config[index].isp; in __is_set_isp_metering()
439 fimc_is_set_param_bit(is, PARAM_ISP_METERING); in __is_set_isp_metering()
443 void __is_set_isp_afc(struct fimc_is *is, u32 cmd, u32 val) in __is_set_isp_afc() argument
445 unsigned int index = is->config_index; in __is_set_isp_afc()
448 isp = &is->config[index].isp; in __is_set_isp_afc()
454 fimc_is_set_param_bit(is, PARAM_ISP_AFC); in __is_set_isp_afc()
457 void __is_set_drc_control(struct fimc_is *is, u32 val) in __is_set_drc_control() argument
459 unsigned int index = is->config_index; in __is_set_drc_control()
462 drc = &is->config[index].drc; in __is_set_drc_control()
466 fimc_is_set_param_bit(is, PARAM_DRC_CONTROL); in __is_set_drc_control()
469 void __is_set_fd_control(struct fimc_is *is, u32 val) in __is_set_fd_control() argument
471 unsigned int index = is->config_index; in __is_set_fd_control()
475 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_control()
476 fd = &is->config[index].fd; in __is_set_fd_control()
481 fimc_is_set_param_bit(is, PARAM_FD_CONTROL); in __is_set_fd_control()
484 void __is_set_fd_config_maxface(struct fimc_is *is, u32 val) in __is_set_fd_config_maxface() argument
486 unsigned int index = is->config_index; in __is_set_fd_config_maxface()
490 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_maxface()
491 fd = &is->config[index].fd; in __is_set_fd_config_maxface()
498 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_maxface()
504 void __is_set_fd_config_rollangle(struct fimc_is *is, u32 val) in __is_set_fd_config_rollangle() argument
506 unsigned int index = is->config_index; in __is_set_fd_config_rollangle()
510 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_rollangle()
511 fd = &is->config[index].fd; in __is_set_fd_config_rollangle()
518 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_rollangle()
524 void __is_set_fd_config_yawangle(struct fimc_is *is, u32 val) in __is_set_fd_config_yawangle() argument
526 unsigned int index = is->config_index; in __is_set_fd_config_yawangle()
530 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_yawangle()
531 fd = &is->config[index].fd; in __is_set_fd_config_yawangle()
538 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_yawangle()
544 void __is_set_fd_config_smilemode(struct fimc_is *is, u32 val) in __is_set_fd_config_smilemode() argument
546 unsigned int index = is->config_index; in __is_set_fd_config_smilemode()
550 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_smilemode()
551 fd = &is->config[index].fd; in __is_set_fd_config_smilemode()
558 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_smilemode()
564 void __is_set_fd_config_blinkmode(struct fimc_is *is, u32 val) in __is_set_fd_config_blinkmode() argument
566 unsigned int index = is->config_index; in __is_set_fd_config_blinkmode()
570 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_blinkmode()
571 fd = &is->config[index].fd; in __is_set_fd_config_blinkmode()
578 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_blinkmode()
584 void __is_set_fd_config_eyedetect(struct fimc_is *is, u32 val) in __is_set_fd_config_eyedetect() argument
586 unsigned int index = is->config_index; in __is_set_fd_config_eyedetect()
590 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_eyedetect()
591 fd = &is->config[index].fd; in __is_set_fd_config_eyedetect()
598 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_eyedetect()
604 void __is_set_fd_config_mouthdetect(struct fimc_is *is, u32 val) in __is_set_fd_config_mouthdetect() argument
606 unsigned int index = is->config_index; in __is_set_fd_config_mouthdetect()
610 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_mouthdetect()
611 fd = &is->config[index].fd; in __is_set_fd_config_mouthdetect()
618 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_mouthdetect()
624 void __is_set_fd_config_orientation(struct fimc_is *is, u32 val) in __is_set_fd_config_orientation() argument
626 unsigned int index = is->config_index; in __is_set_fd_config_orientation()
630 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_orientation()
631 fd = &is->config[index].fd; in __is_set_fd_config_orientation()
638 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_orientation()
644 void __is_set_fd_config_orientation_val(struct fimc_is *is, u32 val) in __is_set_fd_config_orientation_val() argument
646 unsigned int index = is->config_index; in __is_set_fd_config_orientation_val()
650 p_index = &is->config[index].p_region_index[1]; in __is_set_fd_config_orientation_val()
651 fd = &is->config[index].fd; in __is_set_fd_config_orientation_val()
658 fimc_is_set_param_bit(is, PARAM_FD_CONFIG); in __is_set_fd_config_orientation_val()
664 void fimc_is_set_initial_params(struct fimc_is *is) in fimc_is_set_initial_params() argument
673 index = is->config_index; in fimc_is_set_initial_params()
674 global = &is->config[index].global; in fimc_is_set_initial_params()
675 isp = &is->config[index].isp; in fimc_is_set_initial_params()
676 drc = &is->config[index].drc; in fimc_is_set_initial_params()
677 fd = &is->config[index].fd; in fimc_is_set_initial_params()
678 p_index = &is->config[index].p_region_index[0]; in fimc_is_set_initial_params()
682 fimc_is_set_param_bit(is, PARAM_GLOBAL_SHOTMODE); in fimc_is_set_initial_params()
688 fimc_is_set_param_bit(is, PARAM_ISP_CONTROL); in fimc_is_set_initial_params()
694 fimc_is_set_param_bit(is, PARAM_ISP_OTF_INPUT); in fimc_is_set_initial_params()
696 if (is->sensor->test_pattern) in fimc_is_set_initial_params()
716 fimc_is_set_param_bit(is, PARAM_ISP_DMA1_INPUT); in fimc_is_set_initial_params()
728 fimc_is_set_param_bit(is, PARAM_ISP_DMA2_INPUT); in fimc_is_set_initial_params()
732 fimc_is_set_param_bit(is, PARAM_ISP_AA); in fimc_is_set_initial_params()
735 __is_set_isp_flash(is, ISP_FLASH_COMMAND_DISABLE, in fimc_is_set_initial_params()
739 __is_set_isp_awb(is, ISP_AWB_COMMAND_AUTO, 0); in fimc_is_set_initial_params()
742 __is_set_isp_effect(is, ISP_IMAGE_EFFECT_DISABLE); in fimc_is_set_initial_params()
745 __is_set_isp_iso(is, ISP_ISO_COMMAND_AUTO, 0); in fimc_is_set_initial_params()
748 __is_set_isp_adjust(is, ISP_ADJUST_COMMAND_MANUAL_CONTRAST, 0); in fimc_is_set_initial_params()
749 __is_set_isp_adjust(is, in fimc_is_set_initial_params()
751 __is_set_isp_adjust(is, ISP_ADJUST_COMMAND_MANUAL_SHARPNESS, 0); in fimc_is_set_initial_params()
752 __is_set_isp_adjust(is, ISP_ADJUST_COMMAND_MANUAL_EXPOSURE, 0); in fimc_is_set_initial_params()
753 __is_set_isp_adjust(is, in fimc_is_set_initial_params()
755 __is_set_isp_adjust(is, ISP_ADJUST_COMMAND_MANUAL_HUE, 0); in fimc_is_set_initial_params()
759 __is_set_isp_metering(is, 0, ISP_METERING_COMMAND_CENTER); in fimc_is_set_initial_params()
760 __is_set_isp_metering(is, 1, 0); in fimc_is_set_initial_params()
761 __is_set_isp_metering(is, 2, 0); in fimc_is_set_initial_params()
762 __is_set_isp_metering(is, 3, 0); in fimc_is_set_initial_params()
763 __is_set_isp_metering(is, 4, 0); in fimc_is_set_initial_params()
767 __is_set_isp_afc(is, ISP_AFC_COMMAND_AUTO, 0); in fimc_is_set_initial_params()
773 fimc_is_set_param_bit(is, PARAM_ISP_OTF_OUTPUT); in fimc_is_set_initial_params()
793 fimc_is_set_param_bit(is, PARAM_ISP_DMA1_OUTPUT); in fimc_is_set_initial_params()
809 fimc_is_set_param_bit(is, PARAM_ISP_DMA2_OUTPUT); in fimc_is_set_initial_params()
814 if (is->config_index == 0) in fimc_is_set_initial_params()
815 __is_set_sensor(is, 0); in fimc_is_set_initial_params()
820 __is_set_drc_control(is, CONTROL_BYPASS_ENABLE); in fimc_is_set_initial_params()
826 fimc_is_set_param_bit(is, PARAM_DRC_OTF_INPUT); in fimc_is_set_initial_params()
843 fimc_is_set_param_bit(is, PARAM_DRC_DMA_INPUT); in fimc_is_set_initial_params()
849 fimc_is_set_param_bit(is, PARAM_DRC_OTF_OUTPUT); in fimc_is_set_initial_params()
857 __is_set_fd_control(is, CONTROL_COMMAND_STOP); in fimc_is_set_initial_params()
864 fimc_is_set_param_bit(is, PARAM_FD_OTF_INPUT); in fimc_is_set_initial_params()
882 fimc_is_set_param_bit(is, PARAM_FD_DMA_INPUT); in fimc_is_set_initial_params()
884 __is_set_fd_config_maxface(is, 5); in fimc_is_set_initial_params()
885 __is_set_fd_config_rollangle(is, FD_CONFIG_ROLL_ANGLE_FULL); in fimc_is_set_initial_params()
886 __is_set_fd_config_yawangle(is, FD_CONFIG_YAW_ANGLE_45_90); in fimc_is_set_initial_params()
887 __is_set_fd_config_smilemode(is, FD_CONFIG_SMILE_MODE_DISABLE); in fimc_is_set_initial_params()
888 __is_set_fd_config_blinkmode(is, FD_CONFIG_BLINK_MODE_DISABLE); in fimc_is_set_initial_params()
889 __is_set_fd_config_eyedetect(is, FD_CONFIG_EYES_DETECT_ENABLE); in fimc_is_set_initial_params()
890 __is_set_fd_config_mouthdetect(is, FD_CONFIG_MOUTH_DETECT_DISABLE); in fimc_is_set_initial_params()
891 __is_set_fd_config_orientation(is, FD_CONFIG_ORIENTATION_DISABLE); in fimc_is_set_initial_params()
892 __is_set_fd_config_orientation_val(is, 0); in fimc_is_set_initial_params()