/Linux-v6.6/drivers/media/i2c/ |
D | ov5647.c | 92 u64 pixel_rate; member 108 struct v4l2_ctrl *pixel_rate; member 523 .pixel_rate = 87500000, 544 .pixel_rate = 81666700, 565 .pixel_rate = 81666700, 586 .pixel_rate = 55000000, 1019 __v4l2_ctrl_modify_range(sensor->pixel_rate, mode->pixel_rate, in ov5647_set_pad_fmt() 1020 mode->pixel_rate, 1, mode->pixel_rate); in ov5647_set_pad_fmt() 1323 sensor->pixel_rate = v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, in ov5647_init_controls() 1325 sensor->mode->pixel_rate, in ov5647_init_controls() [all …]
|
D | imx319.c | 121 struct v4l2_ctrl *pixel_rate; member 2043 u64 pixel_rate; in imx319_set_pad_format() local 2064 pixel_rate = imx319->link_def_freq * 2 * 4; in imx319_set_pad_format() 2065 do_div(pixel_rate, 10); in imx319_set_pad_format() 2066 __v4l2_ctrl_s_ctrl_int64(imx319->pixel_rate, pixel_rate); in imx319_set_pad_format() 2279 u64 pixel_rate; in imx319_init_controls() local 2298 pixel_rate = imx319->link_def_freq * 2 * 4; in imx319_init_controls() 2299 do_div(pixel_rate, 10); in imx319_init_controls() 2301 imx319->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx319_ctrl_ops, in imx319_init_controls() 2302 V4L2_CID_PIXEL_RATE, pixel_rate, in imx319_init_controls() [all …]
|
D | imx355.c | 107 struct v4l2_ctrl *pixel_rate; member 1342 u64 pixel_rate; in imx355_set_pad_format() local 1363 pixel_rate = imx355->link_def_freq * 2 * 4; in imx355_set_pad_format() 1364 do_div(pixel_rate, 10); in imx355_set_pad_format() 1365 __v4l2_ctrl_s_ctrl_int64(imx355->pixel_rate, pixel_rate); in imx355_set_pad_format() 1568 u64 pixel_rate; in imx355_init_controls() local 1587 pixel_rate = imx355->link_def_freq * 2 * 4; in imx355_init_controls() 1588 do_div(pixel_rate, 10); in imx355_init_controls() 1590 imx355->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx355_ctrl_ops, in imx355_init_controls() 1591 V4L2_CID_PIXEL_RATE, pixel_rate, in imx355_init_controls() [all …]
|
D | ov9734.c | 330 struct v4l2_ctrl *pixel_rate; member 352 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OV9734_DATA_LANES; in to_pixel_rate() local 354 do_div(pixel_rate, OV9734_RGB_DEPTH); in to_pixel_rate() 356 return pixel_rate; in to_pixel_rate() 544 s64 exposure_max, h_blank, pixel_rate; in ov9734_init_controls() local 563 pixel_rate = to_pixel_rate(OV9734_LINK_FREQ_180MHZ_INDEX); in ov9734_init_controls() 564 ov9734->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov9734_ctrl_ops, in ov9734_init_controls() 566 pixel_rate, 1, pixel_rate); in ov9734_init_controls() 749 __v4l2_ctrl_s_ctrl_int64(ov9734->pixel_rate, in ov9734_set_format()
|
D | ov2740.c | 331 struct v4l2_ctrl *pixel_rate; member 359 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OV2740_DATA_LANES; in to_pixel_rate() local 361 do_div(pixel_rate, OV2740_RGB_DEPTH); in to_pixel_rate() 363 return pixel_rate; in to_pixel_rate() 575 s64 exposure_max, h_blank, pixel_rate; in ov2740_init_controls() local 596 pixel_rate = to_pixel_rate(OV2740_LINK_FREQ_360MHZ_INDEX); in ov2740_init_controls() 597 ov2740->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov2740_ctrl_ops, in ov2740_init_controls() 599 pixel_rate, 1, pixel_rate); in ov2740_init_controls() 880 __v4l2_ctrl_s_ctrl_int64(ov2740->pixel_rate, in ov2740_set_format()
|
D | ov5640.c | 391 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 …]
|
D | ov08d10.c | 526 struct v4l2_ctrl *pixel_rate; member 641 u64 pixel_rate = link_freq_menu[f_index] * 2 * nlanes; in to_rate() local 643 do_div(pixel_rate, OV08D10_RGB_DEPTH); in to_rate() 645 return pixel_rate; in to_rate() 946 ov08d10->pixel_rate = in ov08d10_init_controls() 1185 s64 pixel_rate; in ov08d10_set_format() local 1200 pixel_rate = to_rate(ov08d10->priv_lane->link_freq_menu, in ov08d10_set_format() 1203 __v4l2_ctrl_s_ctrl_int64(ov08d10->pixel_rate, pixel_rate); in ov08d10_set_format()
|
D | imx415.c | 288 u64 pixel_rate; member 298 .pixel_rate = 144000000, 308 .pixel_rate = 304615385, 318 .pixel_rate = 297000000, 585 u64 pixel_rate = supported_modes[sensor->cur_mode].pixel_rate; in imx415_ctrls_init() local 645 v4l2_ctrl_new_std(&sensor->ctrls, NULL, V4L2_CID_PIXEL_RATE, pixel_rate, in imx415_ctrls_init() 646 pixel_rate, 1, pixel_rate); in imx415_ctrls_init()
|
D | ov02a10.c | 251 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() 742 s64 pixel_rate; in ov02a10_initialize_controls() local 759 pixel_rate = to_pixel_rate(0); in ov02a10_initialize_controls() 760 v4l2_ctrl_new_std(handler, NULL, V4L2_CID_PIXEL_RATE, 0, pixel_rate, 1, in ov02a10_initialize_controls() 761 pixel_rate); in ov02a10_initialize_controls()
|
D | og01a1b.c | 427 struct v4l2_ctrl *pixel_rate; member 444 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * OG01A1B_DATA_LANES; in to_pixel_rate() local 446 do_div(pixel_rate, OG01A1B_RGB_DEPTH); in to_pixel_rate() 448 return pixel_rate; in to_pixel_rate() 623 og01a1b->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &og01a1b_ctrl_ops, in og01a1b_init_controls() 823 __v4l2_ctrl_s_ctrl_int64(og01a1b->pixel_rate, in og01a1b_set_format()
|
D | ov9282.c | 185 struct v4l2_ctrl *pixel_rate; member 553 s64 pixel_rate; in ov9282_update_controls() local 560 pixel_rate = (fmt->format.code == MEDIA_BUS_FMT_Y10_1X10) ? in ov9282_update_controls() 562 ret = __v4l2_ctrl_modify_range(ov9282->pixel_rate, pixel_rate, in ov9282_update_controls() 563 pixel_rate, 1, pixel_rate); in ov9282_update_controls() 1344 ov9282->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov9282_ctrl_ops, in ov9282_init_controls()
|
D | hi556.c | 569 struct v4l2_ctrl *pixel_rate; member 589 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * HI556_DATA_LANES; in to_pixel_rate() local 591 do_div(pixel_rate, HI556_RGB_DEPTH); in to_pixel_rate() 593 return pixel_rate; in to_pixel_rate() 791 hi556->pixel_rate = v4l2_ctrl_new_std in hi556_init_controls() 1065 __v4l2_ctrl_s_ctrl_int64(hi556->pixel_rate, in hi556_set_format()
|
D | imx258.c | 611 struct v4l2_ctrl *pixel_rate; member 901 s64 pixel_rate; in imx258_set_pad_format() local 921 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx258_set_pad_format() 922 __v4l2_ctrl_s_ctrl_int64(imx258->pixel_rate, pixel_rate); in imx258_set_pad_format() 1192 imx258->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx258_ctrl_ops, in imx258_init_controls()
|
D | hi847.c | 2175 struct v4l2_ctrl *pixel_rate; member 2194 u64 pixel_rate = link_freq_menu_items[f_index] * 2 * HI847_DATA_LANES; in to_pixel_rate() local 2196 do_div(pixel_rate, HI847_RGB_DEPTH); in to_pixel_rate() 2198 return pixel_rate; in to_pixel_rate() 2500 hi847->pixel_rate = v4l2_ctrl_new_std in hi847_init_controls() 2711 __v4l2_ctrl_s_ctrl_int64(hi847->pixel_rate, in hi847_set_format()
|
D | imx208.c | 277 struct v4l2_ctrl *pixel_rate; member 586 s64 pixel_rate; in imx208_set_pad_format() local 602 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx208_set_pad_format() 603 __v4l2_ctrl_s_ctrl_int64(imx208->pixel_rate, pixel_rate); in imx208_set_pad_format() 910 imx208->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops, in imx208_init_controls()
|
D | ov13858.c | 1037 struct v4l2_ctrl *pixel_rate; member 1360 s64 pixel_rate; in ov13858_set_pad_format() local 1381 pixel_rate = link_freq_to_pixel_rate(link_freq); in ov13858_set_pad_format() 1382 __v4l2_ctrl_s_ctrl_int64(ov13858->pixel_rate, pixel_rate); in ov13858_set_pad_format() 1627 ov13858->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov13858_ctrl_ops, in ov13858_init_controls()
|
/Linux-v6.6/drivers/gpu/drm/i915/display/ |
D | intel_sprite.c | 233 unsigned int pixel_rate; in vlv_plane_min_cdclk() local 243 pixel_rate = crtc_state->pixel_rate; in vlv_plane_min_cdclk() 247 return DIV_ROUND_UP(pixel_rate * num, den); in vlv_plane_min_cdclk() 532 unsigned int pixel_rate; in ivb_plane_min_cdclk() local 542 pixel_rate = crtc_state->pixel_rate; in ivb_plane_min_cdclk() 546 return DIV_ROUND_UP(pixel_rate * num, den); in ivb_plane_min_cdclk() 552 unsigned int src_w, dst_w, pixel_rate; in ivb_sprite_min_cdclk() local 562 pixel_rate = crtc_state->pixel_rate; in ivb_sprite_min_cdclk() 575 return DIV_ROUND_UP_ULL(mul_u32_u32(pixel_rate, num * src_w), in ivb_sprite_min_cdclk() 615 unsigned int pixel_rate = crtc_state->pixel_rate; in hsw_plane_min_cdclk() local [all …]
|
D | i9xx_wm.c | 463 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() 545 static unsigned int intel_calculate_wm(int pixel_rate, in intel_calculate_wm() argument 558 entries = intel_wm_method1(pixel_rate, cpp, in intel_calculate_wm() 652 int pixel_rate = crtc->config->pixel_rate; in pnv_update_wm() local 656 wm = intel_calculate_wm(pixel_rate, &pnv_display_wm, in pnv_update_wm() 666 wm = intel_calculate_wm(pixel_rate, &pnv_cursor_wm, in pnv_update_wm() 673 wm = intel_calculate_wm(pixel_rate, &pnv_display_hplloff_wm, in pnv_update_wm() [all …]
|
/Linux-v6.6/drivers/staging/media/max96712/ |
D | max96712.c | 293 long pixel_rate; in max96712_v4l2_register() local 306 pixel_rate = MAX96712_DPLL_FREQ / priv->mipi.num_data_lanes * 1000000; in max96712_v4l2_register() 308 pixel_rate, pixel_rate, 1, pixel_rate); in max96712_v4l2_register()
|
/Linux-v6.6/drivers/media/i2c/adv748x/ |
D | adv748x-csi2.c | 253 if (!tx->pixel_rate) in adv748x_csi2_set_pixelrate() 256 return v4l2_ctrl_s_ctrl_int64(tx->pixel_rate, rate); in adv748x_csi2_set_pixelrate() 278 tx->pixel_rate = v4l2_ctrl_new_std(&tx->ctrl_hdl, in adv748x_csi2_init_controls()
|
/Linux-v6.6/drivers/gpu/drm/vc4/ |
D | vc4_kms.c | 930 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-v6.6/drivers/media/platform/sunxi/sun6i-mipi-csi2/ |
D | sun6i_mipi_csi2.c | 183 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-v6.6/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/ |
D | sun8i_a83t_mipi_csi2.c | 215 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-v6.6/drivers/media/i2c/et8ek8/ |
D | et8ek8_driver.c | 53 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-v6.6/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dce_calcs.c | 270 data->pixel_rate[0] = data->pixel_rate[4]; in calculate_bandwidth() 271 data->pixel_rate[1] = data->pixel_rate[4]; in calculate_bandwidth() 273 data->pixel_rate[2] = data->pixel_rate[5]; in calculate_bandwidth() 274 data->pixel_rate[3] = data->pixel_rate[5]; in calculate_bandwidth() 401 data->pixel_rate[maximum_number_of_surfaces - 2] = data->pixel_rate[5]; in calculate_bandwidth() 402 data->pixel_rate[maximum_number_of_surfaces - 1] = data->pixel_rate[5]; in calculate_bandwidth() 855 …source_width_rounded_up_to_chunks[i]), (bw_div(data->h_total[i], data->pixel_rate[i]))), bw_int_to… in calculate_bandwidth() 1194 …i] = bw_div(bw_div(data->source_width_rounded_up_to_chunks[i], data->hsr[i]), data->pixel_rate[i]); in calculate_bandwidth() 1260 …pixel_rate[i]), data->scaler_limits_factor), bw_int_to_fixed(2))))), (bw_mul(data->dmif_burst_time… in calculate_bandwidth() 1300 …sor_dcp_buffer_lines, bw_int_to_fixed(1))), data->h_total[i]), data->vsr[i]), data->pixel_rate[i]); in calculate_bandwidth() [all …]
|