Home
last modified time | relevance | path

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

12345

/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/platform/qcom/camss/
H A Dcamss-csiphy-2ph-1-0.c59 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
68 if (link_freq <= 0) in csiphy_settle_cnt_calc()
71 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
85 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
92 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
H A Dcamss-csiphy.c129 s64 link_freq; in csiphy_set_clock_rates() local
137 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_set_clock_rates()
138 if (link_freq < 0) in csiphy_set_clock_rates()
139 link_freq = 0; in csiphy_set_clock_rates()
145 u64 min_rate = link_freq / 4; in csiphy_set_clock_rates()
265 s64 link_freq; in csiphy_stream_on() local
272 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_stream_on()
274 if (link_freq < 0) { in csiphy_stream_on()
295 csiphy->ops->lanes_enable(csiphy, cfg, link_freq, lane_mask); in csiphy_stream_on()
H A Dcamss-csiphy-3ph-1-0.c214 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
222 if (link_freq <= 0) in csiphy_settle_cnt_calc()
225 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
325 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
332 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/platform/qcom/camss/
H A Dcamss-csiphy-2ph-1-0.c59 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
68 if (link_freq <= 0) in csiphy_settle_cnt_calc()
71 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
85 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
92 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
H A Dcamss-csiphy.c129 s64 link_freq; in csiphy_set_clock_rates() local
137 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_set_clock_rates()
138 if (link_freq < 0) in csiphy_set_clock_rates()
139 link_freq = 0; in csiphy_set_clock_rates()
145 u64 min_rate = link_freq / 4; in csiphy_set_clock_rates()
265 s64 link_freq; in csiphy_stream_on() local
272 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_stream_on()
274 if (link_freq < 0) { in csiphy_stream_on()
295 csiphy->ops->lanes_enable(csiphy, cfg, link_freq, lane_mask); in csiphy_stream_on()
H A Dcamss-csiphy-3ph-1-0.c214 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
222 if (link_freq <= 0) in csiphy_settle_cnt_calc()
225 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
325 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
332 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/platform/qcom/camss/
H A Dcamss-csiphy-2ph-1-0.c59 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
68 if (link_freq <= 0) in csiphy_settle_cnt_calc()
71 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
85 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
92 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
H A Dcamss-csiphy.c129 s64 link_freq; in csiphy_set_clock_rates() local
137 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_set_clock_rates()
138 if (link_freq < 0) in csiphy_set_clock_rates()
139 link_freq = 0; in csiphy_set_clock_rates()
145 u64 min_rate = link_freq / 4; in csiphy_set_clock_rates()
265 s64 link_freq; in csiphy_stream_on() local
272 link_freq = camss_get_link_freq(&csiphy->subdev.entity, bpp, num_lanes); in csiphy_stream_on()
274 if (link_freq < 0) { in csiphy_stream_on()
295 csiphy->ops->lanes_enable(csiphy, cfg, link_freq, lane_mask); in csiphy_stream_on()
H A Dcamss-csiphy-3ph-1-0.c214 static u8 csiphy_settle_cnt_calc(s64 link_freq, u32 timer_clk_rate) in csiphy_settle_cnt_calc() argument
222 if (link_freq <= 0) in csiphy_settle_cnt_calc()
225 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
325 s64 link_freq, u8 lane_mask) in csiphy_lanes_enable() argument
332 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/i2c/
H A 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[] */
937 ret = v4l2_ctrl_s_ctrl(ov5645->link_freq, in ov5645_set_format()
938 new_mode->link_freq); in ov5645_set_format()
1163 ARRAY_SIZE(link_freq) - 1, in ov5645_probe()
1164 0, link_freq); in ov5645_probe()
[all …]
H A Dov7251.c56 u32 link_freq; member
81 struct v4l2_ctrl *link_freq; member
521 static const s64 link_freq[] = { variable
532 .link_freq = 0, /* an index in link_freq[] */
1057 ret = __v4l2_ctrl_s_ctrl(ov7251->link_freq, in ov7251_set_format()
1058 new_mode->link_freq); in ov7251_set_format()
1197 ret = __v4l2_ctrl_s_ctrl(ov7251->link_freq, in ov7251_set_frame_interval()
1198 new_mode->link_freq); in ov7251_set_frame_interval()
1363 ARRAY_SIZE(link_freq) - 1, in ov7251_probe()
1364 0, link_freq); in ov7251_probe()
[all …]
H A Dimx258.c609 struct v4l2_ctrl *link_freq; member
900 s64 link_freq; in imx258_set_pad_format() local
916 __v4l2_ctrl_s_ctrl(imx258->link_freq, mode->link_freq_index); in imx258_set_pad_format()
918 link_freq = link_freq_menu_items[mode->link_freq_index]; in imx258_set_pad_format()
919 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx258_set_pad_format()
1166 imx258->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in imx258_init_controls()
1173 if (imx258->link_freq) in imx258_init_controls()
1174 imx258->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx258_init_controls()
H A 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()
1052 imx290->link_freq = in imx290_probe()
1057 if (imx290->link_freq) in imx290_probe()
1058 imx290->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx290_probe()
H A Dimx214.c48 struct v4l2_ctrl *link_freq; member
948 static const s64 link_freq[] = { in imx214_probe() local
1015 imx214->link_freq = v4l2_ctrl_new_int_menu(&imx214->ctrls, NULL, in imx214_probe()
1017 ARRAY_SIZE(link_freq) - 1, in imx214_probe()
1018 0, link_freq); in imx214_probe()
1019 if (imx214->link_freq) in imx214_probe()
1020 imx214->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx214_probe()
H A Dov13858.c1035 struct v4l2_ctrl *link_freq; member
1360 s64 link_freq; in ov13858_set_pad_format() local
1378 __v4l2_ctrl_s_ctrl(ov13858->link_freq, mode->link_freq_index); in ov13858_set_pad_format()
1379 link_freq = link_freq_menu_items[mode->link_freq_index]; in ov13858_set_pad_format()
1380 pixel_rate = link_freq_to_pixel_rate(link_freq); in ov13858_set_pad_format()
1609 ov13858->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in ov13858_init_controls()
1615 if (ov13858->link_freq) in ov13858_init_controls()
1616 ov13858->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in ov13858_init_controls()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/i2c/
H A 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[] */
937 ret = v4l2_ctrl_s_ctrl(ov5645->link_freq, in ov5645_set_format()
938 new_mode->link_freq); in ov5645_set_format()
1163 ARRAY_SIZE(link_freq) - 1, in ov5645_probe()
1164 0, link_freq); in ov5645_probe()
[all …]
H A Dov7251.c56 u32 link_freq; member
81 struct v4l2_ctrl *link_freq; member
521 static const s64 link_freq[] = { variable
532 .link_freq = 0, /* an index in link_freq[] */
1057 ret = __v4l2_ctrl_s_ctrl(ov7251->link_freq, in ov7251_set_format()
1058 new_mode->link_freq); in ov7251_set_format()
1197 ret = __v4l2_ctrl_s_ctrl(ov7251->link_freq, in ov7251_set_frame_interval()
1198 new_mode->link_freq); in ov7251_set_frame_interval()
1363 ARRAY_SIZE(link_freq) - 1, in ov7251_probe()
1364 0, link_freq); in ov7251_probe()
[all …]
H A 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()
1052 imx290->link_freq = in imx290_probe()
1057 if (imx290->link_freq) in imx290_probe()
1058 imx290->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx290_probe()
H A Dimx258.c609 struct v4l2_ctrl *link_freq; member
900 s64 link_freq; in imx258_set_pad_format() local
916 __v4l2_ctrl_s_ctrl(imx258->link_freq, mode->link_freq_index); in imx258_set_pad_format()
918 link_freq = link_freq_menu_items[mode->link_freq_index]; in imx258_set_pad_format()
919 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx258_set_pad_format()
1166 imx258->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in imx258_init_controls()
1173 if (imx258->link_freq) in imx258_init_controls()
1174 imx258->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx258_init_controls()
H A Dimx214.c48 struct v4l2_ctrl *link_freq; member
948 static const s64 link_freq[] = { in imx214_probe() local
1015 imx214->link_freq = v4l2_ctrl_new_int_menu(&imx214->ctrls, NULL, in imx214_probe()
1017 ARRAY_SIZE(link_freq) - 1, in imx214_probe()
1018 0, link_freq); in imx214_probe()
1019 if (imx214->link_freq) in imx214_probe()
1020 imx214->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx214_probe()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/i2c/
H A 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[] */
937 ret = v4l2_ctrl_s_ctrl(ov5645->link_freq, in ov5645_set_format()
938 new_mode->link_freq); in ov5645_set_format()
1163 ARRAY_SIZE(link_freq) - 1, in ov5645_probe()
1164 0, link_freq); in ov5645_probe()
[all …]
H A Dov7251.c56 u32 link_freq; member
81 struct v4l2_ctrl *link_freq; member
521 static const s64 link_freq[] = { variable
532 .link_freq = 0, /* an index in link_freq[] */
1057 ret = __v4l2_ctrl_s_ctrl(ov7251->link_freq, in ov7251_set_format()
1058 new_mode->link_freq); in ov7251_set_format()
1197 ret = __v4l2_ctrl_s_ctrl(ov7251->link_freq, in ov7251_set_frame_interval()
1198 new_mode->link_freq); in ov7251_set_frame_interval()
1363 ARRAY_SIZE(link_freq) - 1, in ov7251_probe()
1364 0, link_freq); in ov7251_probe()
[all …]
H A 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()
1052 imx290->link_freq = in imx290_probe()
1057 if (imx290->link_freq) in imx290_probe()
1058 imx290->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx290_probe()
H A Dimx258.c609 struct v4l2_ctrl *link_freq; member
900 s64 link_freq; in imx258_set_pad_format() local
916 __v4l2_ctrl_s_ctrl(imx258->link_freq, mode->link_freq_index); in imx258_set_pad_format()
918 link_freq = link_freq_menu_items[mode->link_freq_index]; in imx258_set_pad_format()
919 pixel_rate = link_freq_to_pixel_rate(link_freq); in imx258_set_pad_format()
1166 imx258->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, in imx258_init_controls()
1173 if (imx258->link_freq) in imx258_init_controls()
1174 imx258->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx258_init_controls()
H A Dimx214.c48 struct v4l2_ctrl *link_freq; member
948 static const s64 link_freq[] = { in imx214_probe() local
1015 imx214->link_freq = v4l2_ctrl_new_int_menu(&imx214->ctrls, NULL, in imx214_probe()
1017 ARRAY_SIZE(link_freq) - 1, in imx214_probe()
1018 0, link_freq); in imx214_probe()
1019 if (imx214->link_freq) in imx214_probe()
1020 imx214->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY; in imx214_probe()

12345