• Home
  • Raw
  • Download

Lines Matching refs:ctrls

57 	struct isc_ctrls *ctrls = &isc->ctrls;  in isc_update_v4l2_ctrls()  local
60 v4l2_ctrl_s_ctrl(isc->r_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_R]); in isc_update_v4l2_ctrls()
61 v4l2_ctrl_s_ctrl(isc->b_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_B]); in isc_update_v4l2_ctrls()
62 v4l2_ctrl_s_ctrl(isc->gr_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_GR]); in isc_update_v4l2_ctrls()
63 v4l2_ctrl_s_ctrl(isc->gb_gain_ctrl, ctrls->gain[ISC_HIS_CFG_MODE_GB]); in isc_update_v4l2_ctrls()
65 v4l2_ctrl_s_ctrl(isc->r_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_R]); in isc_update_v4l2_ctrls()
66 v4l2_ctrl_s_ctrl(isc->b_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_B]); in isc_update_v4l2_ctrls()
67 v4l2_ctrl_s_ctrl(isc->gr_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_GR]); in isc_update_v4l2_ctrls()
68 v4l2_ctrl_s_ctrl(isc->gb_off_ctrl, ctrls->offset[ISC_HIS_CFG_MODE_GB]); in isc_update_v4l2_ctrls()
73 struct isc_ctrls *ctrls = &isc->ctrls; in isc_update_awb_ctrls() local
78 ((ctrls->offset[ISC_HIS_CFG_MODE_R])) | in isc_update_awb_ctrls()
79 ((ctrls->offset[ISC_HIS_CFG_MODE_GR]) << 16)); in isc_update_awb_ctrls()
81 ((ctrls->offset[ISC_HIS_CFG_MODE_B])) | in isc_update_awb_ctrls()
82 ((ctrls->offset[ISC_HIS_CFG_MODE_GB]) << 16)); in isc_update_awb_ctrls()
84 ctrls->gain[ISC_HIS_CFG_MODE_R] | in isc_update_awb_ctrls()
85 (ctrls->gain[ISC_HIS_CFG_MODE_GR] << 16)); in isc_update_awb_ctrls()
87 ctrls->gain[ISC_HIS_CFG_MODE_B] | in isc_update_awb_ctrls()
88 (ctrls->gain[ISC_HIS_CFG_MODE_GB] << 16)); in isc_update_awb_ctrls()
97 isc->ctrls.gain[c] = 1 << 9; in isc_reset_awb_ctrls()
99 isc->ctrls.offset[c] = 0; in isc_reset_awb_ctrls()
503 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_pipeline() local
525 gamma = &isc->gamma_table[ctrls->gamma_index][0]; in isc_set_pipeline()
562 struct isc_ctrls *ctrls = &isc->ctrls; in isc_set_histogram() local
573 ctrls->hist_id = ISC_HIS_CFG_MODE_GR; in isc_set_histogram()
577 ctrls->hist_stat = HIST_ENABLED; in isc_set_histogram()
583 ctrls->hist_stat = HIST_DISABLED; in isc_set_histogram()
617 if (isc->ctrls.awb && in isc_configure()
1295 isc->ctrls.hist_stat = HIST_INIT; in isc_set_fmt()
1583 struct isc_ctrls *ctrls = &isc->ctrls; in isc_hist_count() local
1584 u32 *hist_count = &ctrls->hist_count[ctrls->hist_id]; in isc_hist_count()
1585 u32 *hist_entry = &ctrls->hist_entry[0]; in isc_hist_count()
1611 static void isc_wb_update(struct isc_ctrls *ctrls) in isc_wb_update() argument
1613 u32 *hist_count = &ctrls->hist_count[0]; in isc_wb_update()
1639 offset[c] = ctrls->hist_minmax[c][HIST_MIN_INDEX]; in isc_wb_update()
1649 ctrls->offset[c] = (offset[c] - 1) << 3; in isc_wb_update()
1656 ctrls->offset[c] = -ctrls->offset[c]; in isc_wb_update()
1667 (ctrls->hist_minmax[c][HIST_MAX_INDEX] - in isc_wb_update()
1668 ctrls->hist_minmax[c][HIST_MIN_INDEX] + 1); in isc_wb_update()
1682 ctrls->gain[c] = s_gain[c] * gw_gain[c]; in isc_wb_update()
1683 ctrls->gain[c] >>= 9; in isc_wb_update()
1692 struct isc_ctrls *ctrls = &isc->ctrls; in isc_awb_work() local
1693 u32 hist_id = ctrls->hist_id; in isc_awb_work()
1703 if (ctrls->hist_stat != HIST_ENABLED) in isc_awb_work()
1707 ctrls->hist_minmax[hist_id][HIST_MIN_INDEX] = min; in isc_awb_work()
1708 ctrls->hist_minmax[hist_id][HIST_MAX_INDEX] = max; in isc_awb_work()
1713 isc_wb_update(ctrls); in isc_awb_work()
1717 ctrls->hist_id = hist_id; in isc_awb_work()
1728 if (hist_id == ISC_HIS_CFG_MODE_GR || ctrls->awb == ISC_WB_NONE) { in isc_awb_work()
1743 if (ctrls->awb == ISC_WB_ONETIME) { in isc_awb_work()
1748 ctrls->awb = ISC_WB_NONE; in isc_awb_work()
1755 if (ctrls->awb) in isc_awb_work()
1764 struct isc_device, ctrls.handler); in isc_s_ctrl()
1765 struct isc_ctrls *ctrls = &isc->ctrls; in isc_s_ctrl() local
1772 ctrls->brightness = ctrl->val & ISC_CBC_BRIGHT_MASK; in isc_s_ctrl()
1775 ctrls->contrast = ctrl->val & ISC_CBC_CONTRAST_MASK; in isc_s_ctrl()
1778 ctrls->gamma_index = ctrl->val; in isc_s_ctrl()
1794 struct isc_device, ctrls.handler); in isc_s_awb_ctrl()
1795 struct isc_ctrls *ctrls = &isc->ctrls; in isc_s_awb_ctrl() local
1803 ctrls->awb = ISC_WB_AUTO; in isc_s_awb_ctrl()
1805 ctrls->awb = ISC_WB_NONE; in isc_s_awb_ctrl()
1813 ctrls->gain[ISC_HIS_CFG_MODE_R] = isc->r_gain_ctrl->val; in isc_s_awb_ctrl()
1815 ctrls->gain[ISC_HIS_CFG_MODE_B] = isc->b_gain_ctrl->val; in isc_s_awb_ctrl()
1817 ctrls->gain[ISC_HIS_CFG_MODE_GR] = isc->gr_gain_ctrl->val; in isc_s_awb_ctrl()
1819 ctrls->gain[ISC_HIS_CFG_MODE_GB] = isc->gb_gain_ctrl->val; in isc_s_awb_ctrl()
1822 ctrls->offset[ISC_HIS_CFG_MODE_R] = isc->r_off_ctrl->val; in isc_s_awb_ctrl()
1824 ctrls->offset[ISC_HIS_CFG_MODE_B] = isc->b_off_ctrl->val; in isc_s_awb_ctrl()
1826 ctrls->offset[ISC_HIS_CFG_MODE_GR] = isc->gr_off_ctrl->val; in isc_s_awb_ctrl()
1828 ctrls->offset[ISC_HIS_CFG_MODE_GB] = isc->gb_off_ctrl->val; in isc_s_awb_ctrl()
1848 if (ctrls->awb == ISC_WB_AUTO && in isc_s_awb_ctrl()
1857 if (ctrls->awb == ISC_WB_NONE && in isc_s_awb_ctrl()
1861 ctrls->awb = ISC_WB_ONETIME; in isc_s_awb_ctrl()
1874 struct isc_device, ctrls.handler); in isc_g_volatile_awb_ctrl()
1875 struct isc_ctrls *ctrls = &isc->ctrls; in isc_g_volatile_awb_ctrl() local
1881 ctrls->gain[ISC_HIS_CFG_MODE_R]; in isc_g_volatile_awb_ctrl()
1883 ctrls->gain[ISC_HIS_CFG_MODE_B]; in isc_g_volatile_awb_ctrl()
1885 ctrls->gain[ISC_HIS_CFG_MODE_GR]; in isc_g_volatile_awb_ctrl()
1887 ctrls->gain[ISC_HIS_CFG_MODE_GB]; in isc_g_volatile_awb_ctrl()
1890 ctrls->offset[ISC_HIS_CFG_MODE_R]; in isc_g_volatile_awb_ctrl()
1892 ctrls->offset[ISC_HIS_CFG_MODE_B]; in isc_g_volatile_awb_ctrl()
1894 ctrls->offset[ISC_HIS_CFG_MODE_GR]; in isc_g_volatile_awb_ctrl()
1896 ctrls->offset[ISC_HIS_CFG_MODE_GB]; in isc_g_volatile_awb_ctrl()
1946 struct isc_ctrls *ctrls = &isc->ctrls; in isc_ctrl_init() local
1947 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in isc_ctrl_init()
1950 ctrls->hist_stat = HIST_INIT; in isc_ctrl_init()
1960 ctrls->brightness = 0; in isc_ctrl_init()
2029 v4l2_ctrl_handler_free(&isc->ctrls.handler); in isc_async_unbind()
2190 vdev->ctrl_handler = &isc->ctrls.handler; in isc_async_complete()