Lines Matching refs:CCS_LIM
236 if (CCS_LIM(sensor, SCALER_N_MIN) < 16) in ccs_read_all_limits()
256 fmt_model_type = CCS_LIM(sensor, FRAME_FORMAT_MODEL_TYPE); in ccs_read_frame_fmt()
257 fmt_model_subtype = CCS_LIM(sensor, FRAME_FORMAT_MODEL_SUBTYPE); in ccs_read_frame_fmt()
395 if (!(CCS_LIM(sensor, PHY_CTRL_CAPABILITY) & in ccs_pll_configure()
440 .min_pre_pll_clk_div = CCS_LIM(sensor, MIN_PRE_PLL_CLK_DIV), in ccs_pll_try()
441 .max_pre_pll_clk_div = CCS_LIM(sensor, MAX_PRE_PLL_CLK_DIV), in ccs_pll_try()
442 .min_pll_ip_clk_freq_hz = CCS_LIM(sensor, MIN_PLL_IP_CLK_FREQ_MHZ), in ccs_pll_try()
443 .max_pll_ip_clk_freq_hz = CCS_LIM(sensor, MAX_PLL_IP_CLK_FREQ_MHZ), in ccs_pll_try()
444 .min_pll_multiplier = CCS_LIM(sensor, MIN_PLL_MULTIPLIER), in ccs_pll_try()
445 .max_pll_multiplier = CCS_LIM(sensor, MAX_PLL_MULTIPLIER), in ccs_pll_try()
446 .min_pll_op_clk_freq_hz = CCS_LIM(sensor, MIN_PLL_OP_CLK_FREQ_MHZ), in ccs_pll_try()
447 .max_pll_op_clk_freq_hz = CCS_LIM(sensor, MAX_PLL_OP_CLK_FREQ_MHZ), in ccs_pll_try()
450 .min_pre_pll_clk_div = CCS_LIM(sensor, MIN_OP_PRE_PLL_CLK_DIV), in ccs_pll_try()
451 .max_pre_pll_clk_div = CCS_LIM(sensor, MAX_OP_PRE_PLL_CLK_DIV), in ccs_pll_try()
452 .min_pll_ip_clk_freq_hz = CCS_LIM(sensor, MIN_OP_PLL_IP_CLK_FREQ_MHZ), in ccs_pll_try()
453 .max_pll_ip_clk_freq_hz = CCS_LIM(sensor, MAX_OP_PLL_IP_CLK_FREQ_MHZ), in ccs_pll_try()
454 .min_pll_multiplier = CCS_LIM(sensor, MIN_OP_PLL_MULTIPLIER), in ccs_pll_try()
455 .max_pll_multiplier = CCS_LIM(sensor, MAX_OP_PLL_MULTIPLIER), in ccs_pll_try()
456 .min_pll_op_clk_freq_hz = CCS_LIM(sensor, MIN_OP_PLL_OP_CLK_FREQ_MHZ), in ccs_pll_try()
457 .max_pll_op_clk_freq_hz = CCS_LIM(sensor, MAX_OP_PLL_OP_CLK_FREQ_MHZ), in ccs_pll_try()
460 .min_sys_clk_div = CCS_LIM(sensor, MIN_OP_SYS_CLK_DIV), in ccs_pll_try()
461 .max_sys_clk_div = CCS_LIM(sensor, MAX_OP_SYS_CLK_DIV), in ccs_pll_try()
462 .min_pix_clk_div = CCS_LIM(sensor, MIN_OP_PIX_CLK_DIV), in ccs_pll_try()
463 .max_pix_clk_div = CCS_LIM(sensor, MAX_OP_PIX_CLK_DIV), in ccs_pll_try()
464 .min_sys_clk_freq_hz = CCS_LIM(sensor, MIN_OP_SYS_CLK_FREQ_MHZ), in ccs_pll_try()
465 .max_sys_clk_freq_hz = CCS_LIM(sensor, MAX_OP_SYS_CLK_FREQ_MHZ), in ccs_pll_try()
466 .min_pix_clk_freq_hz = CCS_LIM(sensor, MIN_OP_PIX_CLK_FREQ_MHZ), in ccs_pll_try()
467 .max_pix_clk_freq_hz = CCS_LIM(sensor, MAX_OP_PIX_CLK_FREQ_MHZ), in ccs_pll_try()
470 .min_sys_clk_div = CCS_LIM(sensor, MIN_VT_SYS_CLK_DIV), in ccs_pll_try()
471 .max_sys_clk_div = CCS_LIM(sensor, MAX_VT_SYS_CLK_DIV), in ccs_pll_try()
472 .min_pix_clk_div = CCS_LIM(sensor, MIN_VT_PIX_CLK_DIV), in ccs_pll_try()
473 .max_pix_clk_div = CCS_LIM(sensor, MAX_VT_PIX_CLK_DIV), in ccs_pll_try()
474 .min_sys_clk_freq_hz = CCS_LIM(sensor, MIN_VT_SYS_CLK_FREQ_MHZ), in ccs_pll_try()
475 .max_sys_clk_freq_hz = CCS_LIM(sensor, MAX_VT_SYS_CLK_FREQ_MHZ), in ccs_pll_try()
476 .min_pix_clk_freq_hz = CCS_LIM(sensor, MIN_VT_PIX_CLK_FREQ_MHZ), in ccs_pll_try()
477 .max_pix_clk_freq_hz = CCS_LIM(sensor, MAX_VT_PIX_CLK_FREQ_MHZ), in ccs_pll_try()
479 .min_line_length_pck_bin = CCS_LIM(sensor, MIN_LINE_LENGTH_PCK_BIN), in ccs_pll_try()
480 .min_line_length_pck = CCS_LIM(sensor, MIN_LINE_LENGTH_PCK), in ccs_pll_try()
522 CCS_LIM(sensor, COARSE_INTEGRATION_TIME_MAX_MARGIN); in __ccs_update_exposure_limits()
699 if (CCS_LIM(sensor, DIGITAL_GAIN_CAPABILITY) == in ccs_set_ctrl()
823 switch (CCS_LIM(sensor, ANALOG_GAIN_CAPABILITY)) { in ccs_init_controls()
831 CCS_LIM(sensor, ANALOG_GAIN_M0), }, in ccs_init_controls()
833 CCS_LIM(sensor, ANALOG_GAIN_C0), }, in ccs_init_controls()
835 CCS_LIM(sensor, ANALOG_GAIN_M1), }, in ccs_init_controls()
837 CCS_LIM(sensor, ANALOG_GAIN_C1), }, in ccs_init_controls()
859 CCS_LIM(sensor, ANALOG_GAIN_CODE_MIN), in ccs_init_controls()
860 CCS_LIM(sensor, ANALOG_GAIN_CODE_MAX), in ccs_init_controls()
861 max(CCS_LIM(sensor, ANALOG_GAIN_CODE_STEP), in ccs_init_controls()
863 CCS_LIM(sensor, ANALOG_GAIN_CODE_MIN)); in ccs_init_controls()
876 CCS_LIM(sensor, ANALOG_LINEAR_GAIN_MIN), in ccs_init_controls()
877 CCS_LIM(sensor, ANALOG_LINEAR_GAIN_MAX), in ccs_init_controls()
878 max(CCS_LIM(sensor, in ccs_init_controls()
885 CCS_LIM(sensor, ANALOG_EXPONENTIAL_GAIN_MIN), in ccs_init_controls()
886 CCS_LIM(sensor, ANALOG_EXPONENTIAL_GAIN_MAX), in ccs_init_controls()
887 max(CCS_LIM(sensor, in ccs_init_controls()
911 if (CCS_LIM(sensor, SHADING_CORRECTION_CAPABILITY) & in ccs_init_controls()
927 if (CCS_LIM(sensor, SHADING_CORRECTION_CAPABILITY) & in ccs_init_controls()
944 if (CCS_LIM(sensor, DIGITAL_GAIN_CAPABILITY) == in ccs_init_controls()
946 CCS_LIM(sensor, DIGITAL_GAIN_CAPABILITY) == in ccs_init_controls()
950 CCS_LIM(sensor, DIGITAL_GAIN_MIN), in ccs_init_controls()
951 CCS_LIM(sensor, DIGITAL_GAIN_MAX), in ccs_init_controls()
952 max(CCS_LIM(sensor, DIGITAL_GAIN_STEP_SIZE), in ccs_init_controls()
1069 type = CCS_LIM(sensor, DATA_FORMAT_MODEL_TYPE); in ccs_get_mbus_formats()
1208 min_fll = CCS_LIM(sensor, MIN_FRAME_LENGTH_LINES_BIN); in ccs_update_blanking()
1209 max_fll = CCS_LIM(sensor, MAX_FRAME_LENGTH_LINES_BIN); in ccs_update_blanking()
1210 min_llp = CCS_LIM(sensor, MIN_LINE_LENGTH_PCK_BIN); in ccs_update_blanking()
1211 max_llp = CCS_LIM(sensor, MAX_LINE_LENGTH_PCK_BIN); in ccs_update_blanking()
1212 min_lbp = CCS_LIM(sensor, MIN_LINE_BLANKING_PCK_BIN); in ccs_update_blanking()
1214 min_fll = CCS_LIM(sensor, MIN_FRAME_LENGTH_LINES); in ccs_update_blanking()
1215 max_fll = CCS_LIM(sensor, MAX_FRAME_LENGTH_LINES); in ccs_update_blanking()
1216 min_llp = CCS_LIM(sensor, MIN_LINE_LENGTH_PCK); in ccs_update_blanking()
1217 max_llp = CCS_LIM(sensor, MAX_LINE_LENGTH_PCK); in ccs_update_blanking()
1218 min_lbp = CCS_LIM(sensor, MIN_LINE_BLANKING_PCK); in ccs_update_blanking()
1222 CCS_LIM(sensor, MIN_FRAME_BLANKING_LINES), in ccs_update_blanking()
1292 if (CCS_LIM(sensor, DATA_TRANSFER_IF_CAPABILITY) & in ccs_read_nvm_page()
1529 if (CCS_LIM(sensor, PHY_CTRL_CAPABILITY) & in ccs_update_phy_ctrl()
1532 } else if (CCS_LIM(sensor, PHY_CTRL_CAPABILITY) & in ccs_update_phy_ctrl()
1786 if (CCS_LIM(sensor, DIGITAL_CROP_CAPABILITY) in ccs_start_streaming()
1810 if (CCS_LIM(sensor, SCALING_CAPABILITY) in ccs_start_streaming()
1829 if (CCS_LIM(sensor, FLASH_MODE_CAPABILITY) & in ccs_start_streaming()
1952 if (!(CCS_LIM(sensor, PHY_CTRL_CAPABILITY_2) & in ccs_pre_streamon()
1957 if (!(CCS_LIM(sensor, PHY_CTRL_CAPABILITY_2) & in ccs_pre_streamon()
2100 sensor->scale_m = CCS_LIM(sensor, SCALER_N_MIN); in ccs_propagate()
2218 CCS_LIM(sensor, MIN_X_OUTPUT_SIZE), in ccs_set_format()
2219 CCS_LIM(sensor, MAX_X_OUTPUT_SIZE)); in ccs_set_format()
2222 CCS_LIM(sensor, MIN_Y_OUTPUT_SIZE), in ccs_set_format()
2223 CCS_LIM(sensor, MAX_Y_OUTPUT_SIZE)); in ccs_set_format()
2273 if (w < CCS_LIM(sensor, MIN_X_OUTPUT_SIZE)) in scaling_goodness()
2339 u32 scale_m = CCS_LIM(sensor, SCALER_N_MIN); in ccs_set_compose_scaler()
2352 * CCS_LIM(sensor, SCALER_N_MIN) / sel->r.width; in ccs_set_compose_scaler()
2354 * CCS_LIM(sensor, SCALER_N_MIN) / sel->r.height; in ccs_set_compose_scaler()
2356 * CCS_LIM(sensor, SCALER_N_MIN) in ccs_set_compose_scaler()
2357 / CCS_LIM(sensor, MIN_X_OUTPUT_SIZE); in ccs_set_compose_scaler()
2359 a = clamp(a, CCS_LIM(sensor, SCALER_M_MIN), in ccs_set_compose_scaler()
2360 CCS_LIM(sensor, SCALER_M_MAX)); in ccs_set_compose_scaler()
2361 b = clamp(b, CCS_LIM(sensor, SCALER_M_MIN), in ccs_set_compose_scaler()
2362 CCS_LIM(sensor, SCALER_M_MAX)); in ccs_set_compose_scaler()
2363 max_m = clamp(max_m, CCS_LIM(sensor, SCALER_M_MIN), in ccs_set_compose_scaler()
2364 CCS_LIM(sensor, SCALER_M_MAX)); in ccs_set_compose_scaler()
2390 / try[i] * CCS_LIM(sensor, SCALER_N_MIN), in ccs_set_compose_scaler()
2404 if (CCS_LIM(sensor, SCALING_CAPABILITY) in ccs_set_compose_scaler()
2411 * CCS_LIM(sensor, SCALER_N_MIN), in ccs_set_compose_scaler()
2415 * CCS_LIM(sensor, SCALER_N_MIN), in ccs_set_compose_scaler()
2429 * CCS_LIM(sensor, SCALER_N_MIN)) & ~1; in ccs_set_compose_scaler()
2434 * CCS_LIM(sensor, SCALER_N_MIN)) in ccs_set_compose_scaler()
2487 CCS_LIM(sensor, DIGITAL_CROP_CAPABILITY) in ccs_sel_supported()
2501 if (ssd == sensor->scaler && CCS_LIM(sensor, SCALING_CAPABILITY) in ccs_sel_supported()
2556 r->width = CCS_LIM(ssd->sensor, X_ADDR_MAX) + 1; in ccs_get_native_size()
2557 r->height = CCS_LIM(ssd->sensor, Y_ADDR_MAX) + 1; in ccs_get_native_size()
2621 sel->r.width = max_t(unsigned int, CCS_LIM(sensor, MIN_X_OUTPUT_SIZE), in ccs_set_selection()
2623 sel->r.height = max_t(unsigned int, CCS_LIM(sensor, MIN_Y_OUTPUT_SIZE), in ccs_set_selection()
3380 if (CCS_LIM(sensor, BINNING_CAPABILITY)) { in ccs_probe()
3382 min_t(u8, CCS_LIM(sensor, BINNING_SUB_TYPES), in ccs_probe()
3408 CCS_LIM(sensor, DATA_TRANSFER_IF_CAPABILITY) & in ccs_probe()
3417 if (!CCS_LIM(sensor, MIN_OP_SYS_CLK_DIV) || in ccs_probe()
3418 !CCS_LIM(sensor, MAX_OP_SYS_CLK_DIV) || in ccs_probe()
3419 !CCS_LIM(sensor, MIN_OP_PIX_CLK_DIV) || in ccs_probe()
3420 !CCS_LIM(sensor, MAX_OP_PIX_CLK_DIV)) { in ccs_probe()
3423 } else if (CCS_LIM(sensor, SCALING_CAPABILITY) in ccs_probe()
3425 CCS_LIM(sensor, DIGITAL_CROP_CAPABILITY) in ccs_probe()
3436 sensor->scale_m = CCS_LIM(sensor, SCALER_N_MIN); in ccs_probe()
3441 if (CCS_LIM(sensor, CLOCK_CALCULATION) & in ccs_probe()
3444 if (CCS_LIM(sensor, CLOCK_CALCULATION) & in ccs_probe()
3447 CCS_LIM(sensor, NUM_OF_VT_LANES) + 1; in ccs_probe()
3449 CCS_LIM(sensor, NUM_OF_OP_LANES) + 1; in ccs_probe()
3456 if (CCS_LIM(sensor, CLOCK_TREE_PLL_CAPABILITY) & in ccs_probe()
3459 if (CCS_LIM(sensor, CLOCK_TREE_PLL_CAPABILITY) & in ccs_probe()
3462 if (CCS_LIM(sensor, FIFO_SUPPORT_CAPABILITY) & in ccs_probe()
3465 if (CCS_LIM(sensor, FIFO_SUPPORT_CAPABILITY) & in ccs_probe()
3469 if (CCS_LIM(sensor, CLOCK_TREE_PLL_CAPABILITY) & in ccs_probe()
3471 if (CCS_LIM(sensor, CLOCK_TREE_PLL_CAPABILITY) & in ccs_probe()
3485 if (CCS_LIM(sensor, CLOCK_CALCULATION) & in ccs_probe()
3488 if (CCS_LIM(sensor, CLOCK_CALCULATION) & in ccs_probe()
3492 sensor->pll.op_bits_per_lane = CCS_LIM(sensor, OP_BITS_PER_LANE); in ccs_probe()
3494 sensor->pll.scale_n = CCS_LIM(sensor, SCALER_N_MIN); in ccs_probe()