Home
last modified time | relevance | path

Searched refs:link_freq (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.1.9/drivers/media/platform/qcom/camss/
Dcamss-csiphy-2ph-1-0.c73 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
82 if (link_freq <= 0) in csiphy_settle_cnt_calc()
85 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
99 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
106 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
Dcamss-csiphy.c130 s64 link_freq; in csiphy_set_clock_rates() local
138 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_set_clock_rates()
139 if (link_freq < 0) in csiphy_set_clock_rates()
140 link_freq = 0; in csiphy_set_clock_rates()
146 u64 min_rate = link_freq / 4; in csiphy_set_clock_rates()
245 s64 link_freq; in csiphy_stream_on() local
252 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_stream_on()
254 if (link_freq < 0) { in csiphy_stream_on()
275 csiphy->ops->lanes_enable(csiphy, cfg, link_freq, lane_mask); in csiphy_stream_on()
Dcamss-csiphy-3ph-1-0.c331 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
339 if (link_freq <= 0) in csiphy_settle_cnt_calc()
342 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
467 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
476 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
Dcamss-csid.c91 s64 link_freq; in csid_set_clock_rates() local
97 link_freq = camss_get_link_freq(&csid->subdev.entity, fmt->bpp, in csid_set_clock_rates()
99 if (link_freq < 0) in csid_set_clock_rates()
100 link_freq = 0; in csid_set_clock_rates()
109 u64 min_rate = link_freq / 4; in csid_set_clock_rates()
Dcamss-csiphy.h60 s64 link_freq, u8 lane_mask);
/linux-6.1.9/drivers/media/i2c/
Dov5645.c84 u32 link_freq; member
103 struct v4l2_ctrl *link_freq; member
512 static const s64 link_freq[] = { variable
524 .link_freq = 0 /* an index in link_freq[] */
532 .link_freq = 1 /* an index in link_freq[] */
540 .link_freq = 1 /* an index in link_freq[] */
939 ret = v4l2_ctrl_s_ctrl(ov5645->link_freq, in ov5645_set_format()
940 new_mode->link_freq); in ov5645_set_format()
1162 ov5645->link_freq = v4l2_ctrl_new_int_menu(&ov5645->ctrls, in ov5645_probe()
1165 ARRAY_SIZE(link_freq) - 1, in ov5645_probe()
[all …]
Dimx258.c609 struct v4l2_ctrl *link_freq; member
901 s64 link_freq; in imx258_set_pad_format() local
917 __v4l2_ctrl_s_ctrl(imx258->link_freq, mode->link_freq_index); in imx258_set_pad_format()
919 link_freq = link_freq_menu_items[mode->link_freq_index]; in imx258_set_pad_format()
920 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx258_set_pad_format()
1165 imx258->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in imx258_init_controls()
1172 if (imx258->link_freq) in imx258_init_controls()
1173 imx258->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx258_init_controls()
Dimx290.c81 struct v4l2_ctrl *link_freq; member
588 s64 link_freq = imx290_get_link_freq(imx290); in imx290_calc_pixel_rate() local
593 pixel_rate = link_freq * 2 * nlanes; in imx290_calc_pixel_rate()
633 if (imx290->link_freq) in imx290_set_fmt()
634 __v4l2_ctrl_s_ctrl(imx290->link_freq, in imx290_set_fmt()
1050 imx290->link_freq = in imx290_probe()
1055 if (imx290->link_freq) in imx290_probe()
1056 imx290->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx290_probe()
Dimx214.c48 struct v4l2_ctrl *link_freq; member
949 static const s64 link_freq[] = { in imx214_probe() local
1016 imx214->link_freq = v4l2_ctrl_new_int_menu(&imx214->ctrls, NULL, in imx214_probe()
1018 ARRAY_SIZE(link_freq) - 1, in imx214_probe()
1019 0, link_freq); in imx214_probe()
1020 if (imx214->link_freq) in imx214_probe()
1021 imx214->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx214_probe()
Dimx208.c276 struct v4l2_ctrl *link_freq; member
587 s64 link_freq; in imx208_set_pad_format() local
600 __v4l2_ctrl_s_ctrl(imx208->link_freq, mode->link_freq_index); in imx208_set_pad_format()
601 link_freq = link_freq_menu_items[mode->link_freq_index]; in imx208_set_pad_format()
602 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx208_set_pad_format()
896 imx208->link_freq = in imx208_init_controls()
903 if (imx208->link_freq) in imx208_init_controls()
904 imx208->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx208_init_controls()
Dov13858.c1036 struct v4l2_ctrl *link_freq; member
1361 s64 link_freq; in ov13858_set_pad_format() local
1379 __v4l2_ctrl_s_ctrl(ov13858->link_freq, mode->link_freq_index); in ov13858_set_pad_format()
1380 link_freq = link_freq_menu_items[mode->link_freq_index]; in ov13858_set_pad_format()
1381 pixel_rate = link_freq_to_pixel_rate(link_freq); in ov13858_set_pad_format()
1615 ov13858->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov13858_init_controls()
1621 if (ov13858->link_freq) in ov13858_init_controls()
1622 ov13858->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov13858_init_controls()
Dov7251.c82 u32 link_freq; member
146 struct v4l2_ctrl *link_freq; member
632 static const s64 link_freq[] = { variable
1483 for (j = 0; j < ARRAY_SIZE(link_freq); j++) in ov7251_check_hwcfg()
1484 if (bus_cfg.link_frequencies[i] == link_freq[j]) in ov7251_check_hwcfg()
1487 if (j < ARRAY_SIZE(link_freq)) in ov7251_check_hwcfg()
1566 ov7251->link_freq = v4l2_ctrl_new_int_menu(&ov7251->ctrls, in ov7251_init_ctrls()
1569 ARRAY_SIZE(link_freq) - 1, in ov7251_init_ctrls()
1571 link_freq); in ov7251_init_ctrls()
1572 if (ov7251->link_freq) in ov7251_init_ctrls()
[all …]
Dov13b10.c578 struct v4l2_ctrl *link_freq; member
980 s64 link_freq; in ov13b10_set_pad_format() local
998 __v4l2_ctrl_s_ctrl(ov13b->link_freq, mode->link_freq_index); in ov13b10_set_pad_format()
999 link_freq = link_freq_menu_items[mode->link_freq_index]; in ov13b10_set_pad_format()
1000 pixel_rate = link_freq_to_pixel_rate(link_freq); in ov13b10_set_pad_format()
1216 ov13b->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov13b10_init_controls()
1222 if (ov13b->link_freq) in ov13b10_init_controls()
1223 ov13b->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov13b10_init_controls()
Dhi846.c1164 struct v4l2_ctrl *link_freq; member
1209 u64 link_freq = hi846_get_link_freq(hi846); in hi846_calc_pixel_rate() local
1210 u64 pixel_rate = link_freq * 2 * hi846->nr_lanes; in hi846_calc_pixel_rate()
1426 hi846->link_freq = in hi846_init_controls()
1431 if (hi846->link_freq) in hi846_init_controls()
1432 hi846->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in hi846_init_controls()
1498 u64 link_freq = hi846_get_link_freq(hi846); in hi846_set_video_mode() local
1503 do_div(link_freq, fps); in hi846_set_video_mode()
1504 frame_length = link_freq; in hi846_set_video_mode()
1770 __v4l2_ctrl_s_ctrl(hi846->link_freq, hi846_get_link_freq_index(hi846)); in hi846_set_format()
Dst-mipid02.c414 u32 link_freq; in mipid02_configure_from_rx_speed() local
416 link_freq = mipid02_get_link_freq_from_cid_link_freq(bridge, subdev); in mipid02_configure_from_rx_speed()
417 if (!link_freq) { in mipid02_configure_from_rx_speed()
418 link_freq = mipid02_get_link_freq_from_cid_pixel_rate(bridge, in mipid02_configure_from_rx_speed()
420 if (!link_freq) { in mipid02_configure_from_rx_speed()
426 dev_dbg(&client->dev, "detect link_freq = %d Hz", link_freq); in mipid02_configure_from_rx_speed()
427 bridge->r.clk_lane_reg1 |= (2000000000 / link_freq) << 2; in mipid02_configure_from_rx_speed()
Dog01a1b.c426 struct v4l2_ctrl *link_freq; member
614 og01a1b->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in og01a1b_init_controls()
620 if (og01a1b->link_freq) in og01a1b_init_controls()
621 og01a1b->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in og01a1b_init_controls()
822 __v4l2_ctrl_s_ctrl(og01a1b->link_freq, mode->link_freq_index); in og01a1b_set_format()
Dov5640.c409 struct v4l2_ctrl *link_freq; member
1447 unsigned long link_freq; in ov5640_set_mipi_pclk() local
1455 link_freq = sensor->current_link_freq; in ov5640_set_mipi_pclk()
1463 if (link_freq > OV5640_LINK_RATE_MAX) in ov5640_set_mipi_pclk()
1468 sysclk = link_freq * mipi_div; in ov5640_set_mipi_pclk()
1509 sample_rate = (link_freq * mipi_div * num_lanes * 2) / 16; in ov5640_set_mipi_pclk()
2833 s64 link_freq; in ov5640_update_pixel_rate() local
2861 link_freq = pixel_rate * bpp / (2 * num_lanes); in ov5640_update_pixel_rate()
2862 } while (link_freq >= 1000000000U && in ov5640_update_pixel_rate()
2865 sensor->current_link_freq = link_freq; in ov5640_update_pixel_rate()
[all …]
Dhi556.c484 struct v4l2_ctrl *link_freq; member
700 hi556->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, &hi556_ctrl_ops, in hi556_init_controls()
704 if (hi556->link_freq) in hi556_init_controls()
705 hi556->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in hi556_init_controls()
928 __v4l2_ctrl_s_ctrl(hi556->link_freq, mode->link_freq_index); in hi556_set_format()
Dov5670.c1822 struct v4l2_ctrl *link_freq; member
2081 ov5670->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov5670_init_controls()
2085 if (ov5670->link_freq) in ov5670_init_controls()
2086 ov5670->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5670_init_controls()
2248 __v4l2_ctrl_s_ctrl(ov5670->link_freq, mode->link_freq_index); in ov5670_set_pad_format()
Dov9734.c329 struct v4l2_ctrl *link_freq; member
556 ov9734->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, &ov9734_ctrl_ops, in ov9734_init_controls()
560 if (ov9734->link_freq) in ov9734_init_controls()
561 ov9734->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov9734_init_controls()
748 __v4l2_ctrl_s_ctrl(ov9734->link_freq, mode->link_freq_index); in ov9734_set_format()
Dhi847.c2174 struct v4l2_ctrl *link_freq; member
2493 hi847->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, &hi847_ctrl_ops, in hi847_init_controls()
2497 if (hi847->link_freq) in hi847_init_controls()
2498 hi847->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in hi847_init_controls()
2710 __v4l2_ctrl_s_ctrl(hi847->link_freq, mode->link_freq_index); in hi847_set_format()
Dov5675.c489 struct v4l2_ctrl *link_freq; member
777 ov5675->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
781 if (ov5675->link_freq) in ov5675_init_controls()
782 ov5675->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5675_init_controls()
1002 __v4l2_ctrl_s_ctrl(ov5675->link_freq, mode->link_freq_index); in ov5675_set_format()
Dov2740.c331 struct v4l2_ctrl *link_freq; member
590 ov2740->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, &ov2740_ctrl_ops, in ov2740_init_controls()
594 if (ov2740->link_freq) in ov2740_init_controls()
595 ov2740->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov2740_init_controls()
884 __v4l2_ctrl_s_ctrl(ov2740->link_freq, mode->link_freq_index); in ov2740_set_format()
/linux-6.1.9/drivers/media/platform/ti/cal/
Dcal-camerarx.c127 static void cal_camerarx_config(struct cal_camerarx *phy, s64 link_freq) in cal_camerarx_config() argument
135 ths_term = div_s64(20 * link_freq, 1000 * 1000 * 1000); in cal_camerarx_config()
139 ths_settle = div_s64(105 * link_freq, 1000 * 1000 * 1000) + 4; in cal_camerarx_config()
283 s64 link_freq; in cal_camerarx_start() local
293 link_freq = cal_camerarx_get_ext_link_freq(phy); in cal_camerarx_start()
294 if (link_freq < 0) in cal_camerarx_start()
295 return link_freq; in cal_camerarx_start()
343 cal_camerarx_config(phy, link_freq); in cal_camerarx_start()
/linux-6.1.9/drivers/staging/media/imx/
Dimx8mq-mipi-csi2.c309 s64 link_freq; in imx8mq_mipi_csi_calc_hs_settle() local
315 link_freq = v4l2_get_link_freq(state->src_sd->ctrl_handler, in imx8mq_mipi_csi_calc_hs_settle()
318 if (link_freq < 0) { in imx8mq_mipi_csi_calc_hs_settle()
320 (int)link_freq); in imx8mq_mipi_csi_calc_hs_settle()
321 return link_freq; in imx8mq_mipi_csi_calc_hs_settle()
324 lane_rate = link_freq * 2; in imx8mq_mipi_csi_calc_hs_settle()

12