Home
last modified time | relevance | path

Searched refs:pixel_rate (Results 1 – 25 of 68) sorted by relevance

123

/linux/drivers/media/i2c/
H A Dov5647.c92 u64 pixel_rate; member
108 struct v4l2_ctrl *pixel_rate; member
522 .pixel_rate = 87500000,
543 .pixel_rate = 81666700,
564 .pixel_rate = 81666700,
585 .pixel_rate = 55000000,
1013 __v4l2_ctrl_modify_range(sensor->pixel_rate, mode->pixel_rate, in ov5647_set_pad_fmt()
1014 mode->pixel_rate, 1, mode->pixel_rate); in ov5647_set_pad_fmt()
1317 sensor->pixel_rate = v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, in ov5647_init_controls()
1319 sensor->mode->pixel_rate, in ov5647_init_controls()
[all …]
H A Dimx355.c106 struct v4l2_ctrl *pixel_rate; member
1339 u64 pixel_rate; in imx355_set_pad_format() local
1360 pixel_rate = IMX355_LINK_FREQ_DEFAULT * 2 * 4; in imx355_set_pad_format()
1361 do_div(pixel_rate, 10); in imx355_set_pad_format()
1362 __v4l2_ctrl_s_ctrl_int64(imx355->pixel_rate, pixel_rate); in imx355_set_pad_format()
1529 u64 pixel_rate; in imx355_init_controls() local
1548 pixel_rate = IMX355_LINK_FREQ_DEFAULT * 2 * 4; in imx355_init_controls()
1549 do_div(pixel_rate, 10); in imx355_init_controls()
1551 imx355->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx355_ctrl_ops, in imx355_init_controls()
1552 V4L2_CID_PIXEL_RATE, pixel_rate, in imx355_init_controls()
[all …]
H A Dimx319.c120 struct v4l2_ctrl *pixel_rate; member
2041 u64 pixel_rate; in imx319_set_pad_format() local
2062 pixel_rate = IMX319_LINK_FREQ_DEFAULT * 2 * 4; in imx319_set_pad_format()
2063 do_div(pixel_rate, 10); in imx319_set_pad_format()
2064 __v4l2_ctrl_s_ctrl_int64(imx319->pixel_rate, pixel_rate); in imx319_set_pad_format()
2240 u64 pixel_rate; in imx319_init_controls() local
2259 pixel_rate = IMX319_LINK_FREQ_DEFAULT * 2 * 4; in imx319_init_controls()
2260 do_div(pixel_rate, 10); in imx319_init_controls()
2262 imx319->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx319_ctrl_ops, in imx319_init_controls()
2263 V4L2_CID_PIXEL_RATE, pixel_rate, in imx319_init_controls()
[all …]
H A Dov9734.c330 struct v4l2_ctrl *pixel_rate; member
349 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OV9734_DATA_LANES; in to_pixel_rate() local
351 do_div(pixel_rate, OV9734_RGB_DEPTH); in to_pixel_rate()
353 return pixel_rate; in to_pixel_rate()
541 s64 exposure_max, h_blank, pixel_rate; in ov9734_init_controls() local
560 pixel_rate = to_pixel_rate(OV9734_LINK_FREQ_180MHZ_INDEX); in ov9734_init_controls()
561 ov9734->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov9734_ctrl_ops, in ov9734_init_controls()
563 pixel_rate, 1, pixel_rate); in ov9734_init_controls()
704 __v4l2_ctrl_s_ctrl_int64(ov9734->pixel_rate, in ov9734_set_format()
H A Dimx283.c623 static u64 imx283_internal_clock(unsigned int pixel_rate, unsigned int pixels) in imx283_internal_clock() argument
633 const u32 pclk_pre = pixel_rate / HZ_PER_MHZ; in imx283_internal_clock()
642 static u64 imx283_iclk_to_pix(unsigned int pixel_rate, unsigned int cycles) in imx283_iclk_to_pix() argument
652 const u32 pclk_pre = pixel_rate / HZ_PER_MHZ; in imx283_iclk_to_pix()
759 u64 shr, pixel_rate; in imx283_set_ctrl() local
806 pixel_rate = imx283_pixel_rate(imx283, mode); in imx283_set_ctrl()
807 imx283->hmax = imx283_internal_clock(pixel_rate, mode->width + ctrl->val); in imx283_set_ctrl()
931 u64 pixel_rate = imx283_pixel_rate(imx283, mode); in imx283_set_framing_limits() local
935 imx283->hmax = imx283_internal_clock(pixel_rate, mode->default_hmax); in imx283_set_framing_limits()
943 max_hblank = imx283_iclk_to_pix(pixel_rate, IMX283_HMAX_MAX) - mode->width; in imx283_set_framing_limits()
[all …]
H A Dimx258.c657 struct v4l2_ctrl *pixel_rate; member
913 s64 pixel_rate; in imx258_set_pad_format() local
936 pixel_rate = link_freq_to_pixel_rate(link_freq, link_cfg); in imx258_set_pad_format()
937 __v4l2_ctrl_modify_range(imx258->pixel_rate, pixel_rate, in imx258_set_pad_format()
938 pixel_rate, 1, pixel_rate); in imx258_set_pad_format()
1227 s64 pixel_rate; in imx258_init_controls() local
1259 pixel_rate = link_freq_to_pixel_rate(imx258->link_freq_menu_items[0], in imx258_init_controls()
1263 imx258->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx258_ctrl_ops, in imx258_init_controls()
1265 pixel_rate, pixel_rate, in imx258_init_controls()
1266 1, pixel_rate); in imx258_init_controls()
H A Dov2740.c521 struct v4l2_ctrl *pixel_rate; member
551 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OV2740_DATA_LANES; in to_pixel_rate() local
553 do_div(pixel_rate, OV2740_RGB_DEPTH); in to_pixel_rate()
555 return pixel_rate; in to_pixel_rate()
758 s64 exposure_max, h_blank, pixel_rate; in ov2740_init_controls() local
779 pixel_rate = to_pixel_rate(ov2740->supported_modes->link_freq_index); in ov2740_init_controls()
780 ov2740->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov2740_ctrl_ops, in ov2740_init_controls()
782 pixel_rate, 1, pixel_rate); in ov2740_init_controls()
1034 __v4l2_ctrl_s_ctrl_int64(ov2740->pixel_rate, in ov2740_set_format()
H A Dov08d10.c526 struct v4l2_ctrl *pixel_rate; member
638 u64 pixel_rate = link_freq_menu[f_index] * 2 * nlanes; in to_rate() local
640 do_div(pixel_rate, OV08D10_RGB_DEPTH); in to_rate()
642 return pixel_rate; in to_rate()
943 ov08d10->pixel_rate = in ov08d10_init_controls()
1138 s64 pixel_rate; in ov08d10_set_format() local
1153 pixel_rate = to_rate(ov08d10->priv_lane->link_freq_menu, in ov08d10_set_format()
1156 __v4l2_ctrl_s_ctrl_int64(ov08d10->pixel_rate, pixel_rate); in ov08d10_set_format()
H A Dov5640.c391 enum ov5640_pixel_rate_id pixel_rate; member
409 struct v4l2_ctrl *pixel_rate; member
698 .pixel_rate = OV5640_PIXEL_RATE_48M,
743 .pixel_rate = OV5640_PIXEL_RATE_48M,
790 .pixel_rate = OV5640_PIXEL_RATE_48M,
833 .pixel_rate = OV5640_PIXEL_RATE_48M,
880 .pixel_rate = OV5640_PIXEL_RATE_96M,
924 .pixel_rate = OV5640_PIXEL_RATE_96M,
966 .pixel_rate = OV5640_PIXEL_RATE_96M,
1009 .pixel_rate = OV5640_PIXEL_RATE_124M,
[all …]
H A Dov02a10.c251 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OV02A10_DATA_LANES; in to_pixel_rate() local
253 do_div(pixel_rate, OV02A10_BITS_PER_SAMPLE); in to_pixel_rate()
255 return pixel_rate; in to_pixel_rate()
743 s64 pixel_rate; in ov02a10_initialize_controls() local
760 pixel_rate = to_pixel_rate(0); in ov02a10_initialize_controls()
761 v4l2_ctrl_new_std(handler, NULL, V4L2_CID_PIXEL_RATE, 0, pixel_rate, 1, in ov02a10_initialize_controls()
762 pixel_rate); in ov02a10_initialize_controls()
H A Dov9282.c184 struct v4l2_ctrl *pixel_rate; member
551 s64 pixel_rate; in ov9282_update_controls() local
558 pixel_rate = (fmt->format.code == MEDIA_BUS_FMT_Y10_1X10) ? in ov9282_update_controls()
560 ret = __v4l2_ctrl_modify_range(ov9282->pixel_rate, pixel_rate, in ov9282_update_controls()
561 pixel_rate, 1, pixel_rate); in ov9282_update_controls()
1338 ov9282->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov9282_ctrl_ops, in ov9282_init_controls()
H A Dimx415.c533 u64 pixel_rate; member
543 .pixel_rate = 144000000,
553 .pixel_rate = 304615385,
563 .pixel_rate = 297000000,
787 u64 pixel_rate = supported_modes[sensor->cur_mode].pixel_rate; in imx415_ctrls_init() local
847 v4l2_ctrl_new_std(&sensor->ctrls, NULL, V4L2_CID_PIXEL_RATE, pixel_rate, in imx415_ctrls_init()
848 pixel_rate, 1, pixel_rate); in imx415_ctrls_init()
H A Dov13858.c1037 struct v4l2_ctrl *pixel_rate; member
1355 s64 pixel_rate; in ov13858_set_pad_format() local
1376 pixel_rate = link_freq_to_pixel_rate(link_freq); in ov13858_set_pad_format()
1377 __v4l2_ctrl_s_ctrl_int64(ov13858->pixel_rate, pixel_rate); in ov13858_set_pad_format()
1586 ov13858->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov13858_ctrl_ops, in ov13858_init_controls()
H A Dhi847.c2175 struct v4l2_ctrl *pixel_rate; member
2191 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * HI847_DATA_LANES; in to_pixel_rate() local
2193 do_div(pixel_rate, HI847_RGB_DEPTH); in to_pixel_rate()
2195 return pixel_rate; in to_pixel_rate()
2497 hi847->pixel_rate = v4l2_ctrl_new_std in hi847_init_controls()
2663 __v4l2_ctrl_s_ctrl_int64(hi847->pixel_rate, in hi847_set_format()
H A Dimx208.c277 struct v4l2_ctrl *pixel_rate; member
582 s64 pixel_rate; in imx208_set_pad_format() local
598 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx208_set_pad_format()
599 __v4l2_ctrl_s_ctrl_int64(imx208->pixel_rate, pixel_rate); in imx208_set_pad_format()
867 imx208->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops, in imx208_init_controls()
H A Dog01a1b.c436 struct v4l2_ctrl *pixel_rate; member
450 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OG01A1B_DATA_LANES; in to_pixel_rate() local
452 do_div(pixel_rate, OG01A1B_RGB_DEPTH); in to_pixel_rate()
454 return pixel_rate; in to_pixel_rate()
629 og01a1b->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, in og01a1b_init_controls()
785 __v4l2_ctrl_s_ctrl_int64(og01a1b->pixel_rate, in og01a1b_set_format()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_sprite.c239 unsigned int pixel_rate; in vlv_plane_min_cdclk() local
249 pixel_rate = crtc_state->pixel_rate; in vlv_plane_min_cdclk()
253 return DIV_ROUND_UP(pixel_rate * num, den); in vlv_plane_min_cdclk()
555 unsigned int pixel_rate; in ivb_plane_min_cdclk() local
565 pixel_rate = crtc_state->pixel_rate; in ivb_plane_min_cdclk()
569 return DIV_ROUND_UP(pixel_rate * num, den); in ivb_plane_min_cdclk()
575 unsigned int src_w, dst_w, pixel_rate; in ivb_sprite_min_cdclk() local
585 pixel_rate = crtc_state->pixel_rate; in ivb_sprite_min_cdclk()
598 return DIV_ROUND_UP_ULL(mul_u32_u32(pixel_rate, num * src_w), in ivb_sprite_min_cdclk()
638 unsigned int pixel_rate = crtc_state->pixel_rate; in hsw_plane_min_cdclk() local
[all …]
H A Di9xx_wm.c463 static unsigned int intel_wm_method1(unsigned int pixel_rate, in intel_wm_method1() argument
469 ret = mul_u32_u32(pixel_rate, cpp * latency); in intel_wm_method1()
505 static unsigned int intel_wm_method2(unsigned int pixel_rate, in intel_wm_method2() argument
520 ret = (latency * pixel_rate) / (htotal * 10000); in intel_wm_method2()
547 int pixel_rate, in intel_calculate_wm() argument
560 entries = intel_wm_method1(pixel_rate, cpp, in intel_calculate_wm()
650 int pixel_rate = crtc->config->pixel_rate; in pnv_update_wm() local
654 wm = intel_calculate_wm(dev_priv, pixel_rate, in pnv_update_wm()
665 wm = intel_calculate_wm(dev_priv, pixel_rate, in pnv_update_wm()
674 wm = intel_calculate_wm(dev_priv, pixel_rate, in pnv_update_wm()
[all …]
/linux/drivers/staging/media/max96712/
H A Dmax96712.c306 long pixel_rate; in max96712_v4l2_register() local
320 pixel_rate = MAX96712_DPLL_FREQ / priv->mipi.num_data_lanes * 1000000; in max96712_v4l2_register()
322 pixel_rate, pixel_rate, 1, pixel_rate); in max96712_v4l2_register()
/linux/drivers/media/i2c/adv748x/
H A Dadv748x-csi2.c293 if (!tx->pixel_rate) in adv748x_csi2_set_pixelrate()
296 return v4l2_ctrl_s_ctrl_int64(tx->pixel_rate, rate); in adv748x_csi2_set_pixelrate()
318 tx->pixel_rate = v4l2_ctrl_new_std(&tx->ctrl_hdl, in adv748x_csi2_init_controls()
/linux/drivers/gpu/drm/vc4/
H A Dvc4_kms.c930 unsigned long pixel_rate; in vc4_core_clock_atomic_check() local
979 pixel_rate = load_state->hvs_load; in vc4_core_clock_atomic_check()
981 pixel_rate = (pixel_rate * 40) / 100; in vc4_core_clock_atomic_check()
983 pixel_rate = (pixel_rate * 60) / 100; in vc4_core_clock_atomic_check()
986 hvs_new_state->core_clock_rate = max(cob_rate, pixel_rate); in vc4_core_clock_atomic_check()
/linux/drivers/media/platform/sunxi/sun6i-mipi-csi2/
H A Dsun6i_mipi_csi2.c183 unsigned long pixel_rate; in sun6i_mipi_csi2_s_stream() local
210 pixel_rate = (unsigned long)v4l2_ctrl_g_ctrl_int64(ctrl); in sun6i_mipi_csi2_s_stream()
211 if (!pixel_rate) { in sun6i_mipi_csi2_s_stream()
231 phy_mipi_dphy_get_default_config(pixel_rate, format->bpp, lanes_count, in sun6i_mipi_csi2_s_stream()
246 pixel_rate, format->bpp, lanes_count, in sun6i_mipi_csi2_s_stream()
/linux/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
H A Dsun8i_a83t_mipi_csi2.c215 unsigned long pixel_rate; in sun8i_a83t_mipi_csi2_s_stream() local
242 pixel_rate = (unsigned long)v4l2_ctrl_g_ctrl_int64(ctrl); in sun8i_a83t_mipi_csi2_s_stream()
243 if (!pixel_rate) { in sun8i_a83t_mipi_csi2_s_stream()
263 phy_mipi_dphy_get_default_config(pixel_rate, format->bpp, lanes_count, in sun8i_a83t_mipi_csi2_s_stream()
278 pixel_rate, format->bpp, lanes_count, in sun8i_a83t_mipi_csi2_s_stream()
/linux/drivers/media/i2c/et8ek8/
H A Det8ek8_driver.c53 struct v4l2_ctrl *pixel_rate; member
703 sensor->pixel_rate = in et8ek8_init_controls()
726 u32 min, max, pixel_rate; in et8ek8_update_controls() local
739 pixel_rate = ((mode->pixel_clock + (1 << S) - 1) >> S) + mode->width; in et8ek8_update_controls()
740 pixel_rate = mode->window_width * (pixel_rate - 1) / mode->width; in et8ek8_update_controls()
743 __v4l2_ctrl_s_ctrl_int64(sensor->pixel_rate, pixel_rate << S); in et8ek8_update_controls()
/linux/drivers/gpu/drm/msm/dp/
H A Ddp_ctrl.c1703 unsigned long pixel_rate; in dp_ctrl_process_phy_test_request() local
1724 pixel_rate = ctrl->panel->dp_mode.drm_mode.clock; in dp_ctrl_process_phy_test_request()
1725 ret = clk_set_rate(ctrl->pixel_clk, pixel_rate * 1000); in dp_ctrl_process_phy_test_request()
1822 unsigned long pixel_rate; in dp_ctrl_on_link() local
1830 pixel_rate = ctrl->panel->dp_mode.drm_mode.clock; in dp_ctrl_on_link()
1837 if (!pixel_rate) in dp_ctrl_on_link()
1838 pixel_rate = phy_cts_pixel_clk_khz; in dp_ctrl_on_link()
1844 pixel_rate >>= 1; in dp_ctrl_on_link()
1849 pixel_rate); in dp_ctrl_on_link()
1950 unsigned long pixel_rate; in dp_ctrl_on_stream() local
[all …]

123