/drivers/media/platform/qcom/camss/ |
D | camss-csiphy-2ph-1-0.c | 73 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()
|
D | camss-csiphy.c | 130 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()
|
D | camss-csiphy-3ph-1-0.c | 331 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() 468 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument 477 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
|
D | camss-csid.c | 91 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()
|
/drivers/media/i2c/ |
D | ov5645.c | 82 u32 link_freq; member 101 struct v4l2_ctrl *link_freq; member 509 static const s64 link_freq[] = { variable 521 .link_freq = 0 /* an index in link_freq[] */ 529 .link_freq = 1 /* an index in link_freq[] */ 537 .link_freq = 1 /* an index in link_freq[] */ 916 ret = v4l2_ctrl_s_ctrl(ov5645->link_freq, in ov5645_set_format() 917 new_mode->link_freq); in ov5645_set_format() 1147 ov5645->link_freq = v4l2_ctrl_new_int_menu(&ov5645->ctrls, in ov5645_probe() 1150 ARRAY_SIZE(link_freq) - 1, in ov5645_probe() [all …]
|
D | imx214.c | 48 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()
|
D | ov7251.c | 82 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 …]
|
D | imx208.c | 276 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()
|
D | imx258.c | 610 struct v4l2_ctrl *link_freq; member 902 s64 link_freq; in imx258_set_pad_format() local 918 __v4l2_ctrl_s_ctrl(imx258->link_freq, mode->link_freq_index); in imx258_set_pad_format() 920 link_freq = link_freq_menu_items[mode->link_freq_index]; in imx258_set_pad_format() 921 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx258_set_pad_format() 1168 imx258->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in imx258_init_controls() 1175 if (imx258->link_freq) in imx258_init_controls() 1176 imx258->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx258_init_controls()
|
D | ov13858.c | 1036 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()
|
D | ov08x40.c | 2424 struct v4l2_ctrl *link_freq; member 2818 s64 link_freq; in ov08x40_set_pad_format() local 2836 __v4l2_ctrl_s_ctrl(ov08x->link_freq, mode->link_freq_index); in ov08x40_set_pad_format() 2837 link_freq = link_freq_menu_items[mode->link_freq_index]; in ov08x40_set_pad_format() 2838 pixel_rate = link_freq_to_pixel_rate(link_freq); in ov08x40_set_pad_format() 3052 ov08x->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov08x40_init_controls() 3058 if (ov08x->link_freq) in ov08x40_init_controls() 3059 ov08x->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov08x40_init_controls()
|
D | ov2680.c | 131 struct v4l2_ctrl *link_freq; member 159 s64 link_freq[1]; member 945 ctrls->link_freq = v4l2_ctrl_new_int_menu(hdl, NULL, V4L2_CID_LINK_FREQ, in ov2680_v4l2_register() 946 0, 0, sensor->link_freq); in ov2680_v4l2_register() 958 ctrls->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov2680_v4l2_register() 1100 sensor->link_freq[0] = sensor->xvclk_freq / OV2680_PLL_PREDIV0 / in ov2680_parse_dt() 1104 sensor->pixel_rate = sensor->link_freq[0] * 2; in ov2680_parse_dt() 1113 if (bus_cfg.link_frequencies[i] == sensor->link_freq[0]) in ov2680_parse_dt() 1119 sensor->link_freq[0]); in ov2680_parse_dt()
|
D | ov13b10.c | 585 struct v4l2_ctrl *link_freq; member 990 s64 link_freq; in ov13b10_set_pad_format() local 1008 __v4l2_ctrl_s_ctrl(ov13b->link_freq, mode->link_freq_index); in ov13b10_set_pad_format() 1009 link_freq = link_freq_menu_items[mode->link_freq_index]; in ov13b10_set_pad_format() 1010 pixel_rate = link_freq_to_pixel_rate(link_freq); in ov13b10_set_pad_format() 1287 ov13b->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov13b10_init_controls() 1293 if (ov13b->link_freq) in ov13b10_init_controls() 1294 ov13b->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov13b10_init_controls()
|
D | hi846.c | 1164 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() 1427 hi846->link_freq = in hi846_init_controls() 1432 if (hi846->link_freq) in hi846_init_controls() 1433 hi846->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in hi846_init_controls() 1504 u64 link_freq = hi846_get_link_freq(hi846); in hi846_set_video_mode() local 1509 do_div(link_freq, fps); in hi846_set_video_mode() 1510 frame_length = link_freq; in hi846_set_video_mode() 1776 __v4l2_ctrl_s_ctrl(hi846->link_freq, hi846_get_link_freq_index(hi846)); in hi846_set_format()
|
D | ov5670.c | 1863 struct v4l2_ctrl *link_freq; member 2121 ov5670->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov5670_init_controls() 2125 if (ov5670->link_freq) in ov5670_init_controls() 2126 ov5670->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov5670_init_controls() 2302 s64 link_freq; in ov5670_set_pad_format() local 2318 __v4l2_ctrl_s_ctrl(ov5670->link_freq, mode->link_freq_index); in ov5670_set_pad_format() 2321 link_freq = link_freq_menu_items[mode->link_freq_index]; in ov5670_set_pad_format() 2323 mipi_pixel_rate = div_s64(link_freq * 2 * lanes_count, 10); in ov5670_set_pad_format()
|
D | st-mipid02.c | 414 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()
|
D | og01a1b.c | 426 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()
|
D | ov5640.c | 410 struct v4l2_ctrl *link_freq; member 1458 unsigned long link_freq; in ov5640_set_mipi_pclk() local 1466 link_freq = sensor->current_link_freq; in ov5640_set_mipi_pclk() 1474 if (link_freq > OV5640_LINK_RATE_MAX) in ov5640_set_mipi_pclk() 1479 sysclk = link_freq * mipi_div; in ov5640_set_mipi_pclk() 1520 sample_rate = (link_freq * mipi_div * num_lanes * 2) / 16; in ov5640_set_mipi_pclk() 2873 s64 link_freq; in ov5640_update_pixel_rate() local 2903 link_freq = pixel_rate * bpp / (2 * num_lanes); in ov5640_update_pixel_rate() 2904 } while (link_freq >= 1000000000U && in ov5640_update_pixel_rate() 2907 sensor->current_link_freq = link_freq; in ov5640_update_pixel_rate() [all …]
|
D | imx334.c | 149 static const s64 link_freq[] = { variable 1126 for (j = 0; j < ARRAY_SIZE(link_freq); j++) { in imx334_parse_hw_config() 1127 if (bus_cfg.link_frequencies[i] == link_freq[j]) { in imx334_parse_hw_config() 1133 if (j == ARRAY_SIZE(link_freq)) { in imx334_parse_hw_config() 1271 link_freq); in imx334_init_controls()
|
D | ov01a10.c | 283 struct v4l2_ctrl *link_freq; member 542 ov01a10->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov01a10_init_controls() 547 if (ov01a10->link_freq) in ov01a10_init_controls() 548 ov01a10->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov01a10_init_controls() 760 __v4l2_ctrl_s_ctrl(ov01a10->link_freq, mode->link_freq_index); in ov01a10_set_format()
|
D | ov9734.c | 329 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()
|
D | hi847.c | 2174 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()
|
/drivers/media/platform/ti/cal/ |
D | cal-camerarx.c | 133 static void cal_camerarx_config(struct cal_camerarx *phy, s64 link_freq) in cal_camerarx_config() argument 141 ths_term = div_s64(20 * link_freq, 1000 * 1000 * 1000); in cal_camerarx_config() 145 ths_settle = div_s64(105 * link_freq, 1000 * 1000 * 1000) + 4; in cal_camerarx_config() 289 s64 link_freq; in cal_camerarx_start() local 299 link_freq = cal_camerarx_get_ext_link_freq(phy); in cal_camerarx_start() 300 if (link_freq < 0) in cal_camerarx_start() 301 return link_freq; in cal_camerarx_start() 349 cal_camerarx_config(phy, link_freq); in cal_camerarx_start()
|
/drivers/media/platform/nxp/ |
D | imx8mq-mipi-csi2.c | 290 s64 link_freq; in imx8mq_mipi_csi_calc_hs_settle() local 302 link_freq = v4l2_get_link_freq(state->src_sd->ctrl_handler, in imx8mq_mipi_csi_calc_hs_settle() 305 if (link_freq < 0) { in imx8mq_mipi_csi_calc_hs_settle() 307 (int)link_freq); in imx8mq_mipi_csi_calc_hs_settle() 308 return link_freq; in imx8mq_mipi_csi_calc_hs_settle() 311 lane_rate = link_freq * 2; in imx8mq_mipi_csi_calc_hs_settle()
|
/drivers/media/pci/intel/ivsc/ |
D | mei_csi.c | 86 u32 link_freq; member 139 u64 link_freq; member 239 cmd.param.conf.link_freq = CSI_LINK_FREQ(csi->link_freq); in csi_set_link_cfg() 303 csi->link_freq = freq; in mei_csi_set_stream()
|