Home
last modified time | relevance | path

Searched refs:num_lanes (Results 1 – 25 of 71) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dpppcielanes.c56 uint8_t encode_pcie_lane_width(uint32_t num_lanes) in encode_pcie_lane_width() argument
58 return pp_r600_encode_lanes[num_lanes]; in encode_pcie_lane_width()
61 uint8_t decode_pcie_lane_width(uint32_t num_lanes) in decode_pcie_lane_width() argument
63 return pp_r600_decoded_lanes[num_lanes]; in decode_pcie_lane_width()
Dpppcielanes.h27 extern uint8_t encode_pcie_lane_width(uint32_t num_lanes);
28 extern uint8_t decode_pcie_lane_width(uint32_t num_lanes);
/kernel/linux/linux-5.10/drivers/media/i2c/adv748x/
Dadv748x-core.c367 tx->active_lanes = min(tx->num_lanes, 2U); in adv748x_link_setup()
380 tx->active_lanes = tx->num_lanes; in adv748x_link_setup()
593 unsigned int num_lanes; in adv748x_parse_csi2_lanes() local
604 num_lanes = vep.bus.mipi_csi2.num_data_lanes; in adv748x_parse_csi2_lanes()
607 if (num_lanes != 1 && num_lanes != 2 && num_lanes != 4) { in adv748x_parse_csi2_lanes()
609 num_lanes); in adv748x_parse_csi2_lanes()
613 state->txa.num_lanes = num_lanes; in adv748x_parse_csi2_lanes()
614 state->txa.active_lanes = num_lanes; in adv748x_parse_csi2_lanes()
615 adv_dbg(state, "TXA: using %u lanes\n", state->txa.num_lanes); in adv748x_parse_csi2_lanes()
619 if (num_lanes != 1) { in adv748x_parse_csi2_lanes()
[all …]
/kernel/linux/linux-5.10/drivers/phy/ti/
Dphy-j721e-wiz.c220 u32 num_lanes; member
247 u32 num_lanes = wiz->num_lanes; in wiz_mode_select() local
252 for (i = 0; i < num_lanes; i++) { in wiz_mode_select()
268 u32 num_lanes = wiz->num_lanes; in wiz_init_raw_interface() local
272 for (i = 0; i < num_lanes; i++) { in wiz_init_raw_interface()
316 int num_lanes = wiz->num_lanes; in wiz_regfield_init() local
397 for (i = 0; i < num_lanes; i++) { in wiz_regfield_init()
793 u32 reg, num_lanes = 1, phy_type = PHY_NONE; in wiz_get_lane_phy_types() local
803 of_property_read_u32(subnode, "cdns,num-lanes", &num_lanes); in wiz_get_lane_phy_types()
807 reg, reg + num_lanes - 1, phy_type); in wiz_get_lane_phy_types()
[all …]
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/
Dpci-keystone.c123 int num_lanes; member
1010 int num_lanes = ks_pcie->num_lanes; in ks_pcie_disable_phy() local
1012 while (num_lanes--) { in ks_pcie_disable_phy()
1013 phy_power_off(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
1014 phy_exit(ks_pcie->phy[num_lanes]); in ks_pcie_disable_phy()
1022 int num_lanes = ks_pcie->num_lanes; in ks_pcie_enable_phy() local
1024 for (i = 0; i < num_lanes; i++) { in ks_pcie_enable_phy()
1162 u32 num_lanes; in ks_pcie_probe() local
1219 ret = of_property_read_u32(np, "num-lanes", &num_lanes); in ks_pcie_probe()
1221 num_lanes = 1; in ks_pcie_probe()
[all …]
Dpcie-designware.c591 of_property_read_u32(np, "num-lanes", &pci->num_lanes); in dw_pcie_setup()
592 if (!pci->num_lanes) { in dw_pcie_setup()
600 switch (pci->num_lanes) { in dw_pcie_setup()
614 dev_err(pci->dev, "num-lanes %u: invalid value\n", pci->num_lanes); in dw_pcie_setup()
622 switch (pci->num_lanes) { in dw_pcie_setup()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/adv7511/
Dadv7533.c192 u32 num_lanes; in adv7533_parse_dt() local
194 of_property_read_u32(np, "adi,dsi-lanes", &num_lanes); in adv7533_parse_dt()
196 if (num_lanes < 1 || num_lanes > 4) in adv7533_parse_dt()
199 adv->num_dsi_lanes = num_lanes; in adv7533_parse_dt()
/kernel/linux/linux-5.10/drivers/nvdimm/
Dregion.c19 if (nd_region->num_lanes > num_online_cpus() in nd_region_probe()
20 && nd_region->num_lanes < num_possible_cpus() in nd_region_probe()
23 num_online_cpus(), nd_region->num_lanes, in nd_region_probe()
26 nd_region->num_lanes); in nd_region_probe()
Dregion_devs.c963 if (nd_region->num_lanes < nr_cpu_ids) { in nd_region_acquire_lane()
966 lane = cpu % nd_region->num_lanes; in nd_region_acquire_lane()
980 if (nd_region->num_lanes < nr_cpu_ids) { in nd_region_release_lane()
1116 nd_region->num_lanes = ndr_desc->num_lanes; in nd_region_create()
1153 ndr_desc->num_lanes = ND_MAX_LANES; in nvdimm_pmem_region_create()
1164 ndr_desc->num_lanes = min(ndr_desc->num_lanes, ND_MAX_LANES); in nvdimm_blk_region_create()
1173 ndr_desc->num_lanes = ND_MAX_LANES; in nvdimm_volatile_region_create()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-core.c612 values[1] = link->num_lanes; in cdns_mhdp_link_configure()
877 CDNS_DP_LANE_EN_LANES(mhdp->link.num_lanes)); in cdns_mhdp_link_training_init()
881 phy_cfg.dp.lanes = mhdp->link.num_lanes; in cdns_mhdp_link_training_init()
922 for (i = 0; i < mhdp->link.num_lanes; i++) { in cdns_mhdp_get_adjust_train()
987 for (i = 0; i < mhdp->link.num_lanes; i++) { in cdns_mhdp_adjust_requested_eq()
1010 for (i = 0; i < mhdp->link.num_lanes; i++) { in cdns_mhdp_print_lt_status()
1020 mhdp->link.num_lanes, mhdp->link.rate / 100, in cdns_mhdp_print_lt_status()
1053 phy_cfg.dp.lanes = mhdp->link.num_lanes; in cdns_mhdp_link_training_channel_eq()
1065 cdns_mhdp_adjust_lt(mhdp, mhdp->link.num_lanes, in cdns_mhdp_link_training_channel_eq()
1068 r = drm_dp_clock_recovery_ok(link_status, mhdp->link.num_lanes); in cdns_mhdp_link_training_channel_eq()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/cadence/
Dcdns-csi2rx.c74 u8 num_lanes; member
118 reg = csi2rx->num_lanes << 8; in csi2rx_start()
119 for (i = 0; i < csi2rx->num_lanes; i++) { in csi2rx_start()
130 for (i = csi2rx->num_lanes; i < csi2rx->max_lanes; i++) { in csi2rx_start()
390 csi2rx->num_lanes = v4l2_ep.bus.mipi_csi2.num_data_lanes; in csi2rx_parse_dt()
391 if (csi2rx->num_lanes > csi2rx->max_lanes) { in csi2rx_parse_dt()
393 csi2rx->num_lanes); in csi2rx_parse_dt()
465 csi2rx->num_lanes, csi2rx->max_lanes, csi2rx->max_streams, in csi2rx_probe()
Dcdns-csi2tx.c115 unsigned int num_lanes; member
251 for (i = 0; i < csi2tx->num_lanes; i++) in csi2tx_dphy_init_finish()
273 for (i = 0; i < csi2tx->num_lanes; i++) in csi2tx_dphy_setup()
515 csi2tx->num_lanes = v4l2_ep.bus.mipi_csi2.num_data_lanes; in csi2tx_check_lanes()
516 if (csi2tx->num_lanes > csi2tx->max_lanes) { in csi2tx_check_lanes()
523 for (i = 0; i < csi2tx->num_lanes; i++) { in csi2tx_check_lanes()
623 csi2tx->num_lanes, csi2tx->max_lanes, csi2tx->max_streams, in csi2tx_probe()
/kernel/linux/linux-5.10/drivers/pci/controller/cadence/
Dpci-j721e.c54 u32 num_lanes; member
205 u32 lanes = pcie->num_lanes; in j721e_pcie_set_lane_count()
352 u32 num_lanes; in j721e_pcie_probe() local
381 ret = of_property_read_u32(node, "num-lanes", &num_lanes); in j721e_pcie_probe()
382 if (ret || num_lanes > MAX_LANES) in j721e_pcie_probe()
383 num_lanes = 1; in j721e_pcie_probe()
384 pcie->num_lanes = num_lanes; in j721e_pcie_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/
Ddp_panel.c74 link_info->num_lanes = dpcd[DP_MAX_LANE_COUNT] & DP_MAX_LANE_COUNT_MASK; in dp_panel_read_dpcd()
76 if (link_info->num_lanes > dp_panel->max_dp_lanes) in dp_panel_read_dpcd()
77 link_info->num_lanes = dp_panel->max_dp_lanes; in dp_panel_read_dpcd()
85 DRM_DEBUG_DP("lane_count=%d\n", link_info->num_lanes); in dp_panel_read_dpcd()
121 data_rate_khz = link_info->num_lanes * link_info->rate * 8; in dp_panel_get_supported_bpp()
172 !is_lane_count_valid(dp_panel->link_info.num_lanes) || in dp_panel_read_sink_caps()
212 !is_lane_count_valid(dp_panel->link_info.num_lanes) in dp_panel_read_sink_caps()
Ddp_ctrl.c97 values[1] = link->num_lanes; in dp_aux_link_configure()
148 config |= ((ctrl->link->link_params.num_lanes - 1) in dp_ctrl_config_ctrl()
949 in.nlanes = ctrl->link->link_params.num_lanes; in dp_ctrl_calc_tu_parameters()
1029 lane_cnt = ctrl->link->link_params.num_lanes; in dp_ctrl_update_vx_px()
1109 ctrl->link->link_params.num_lanes)) { in dp_ctrl_link_train_1()
1165 if (ctrl->link->link_params.num_lanes == 1) in dp_ctrl_link_lane_down_shift()
1168 ctrl->link->link_params.num_lanes /= 2; in dp_ctrl_link_lane_down_shift()
1220 ctrl->link->link_params.num_lanes)) { in dp_ctrl_link_train_2()
1245 link_info.num_lanes = ctrl->link->link_params.num_lanes; in dp_ctrl_link_train()
1326 opts_dp->lanes = ctrl->link->link_params.num_lanes; in dp_ctrl_enable_mainlink_clocks()
[all …]
/kernel/linux/linux-5.10/drivers/phy/cadence/
Dphy-cadence-torrent.c253 u32 num_lanes; member
294 u32 num_lanes);
312 u32 rate, u32 num_lanes);
316 u32 num_lanes,
705 if (dp->lanes > inst->num_lanes) in cdns_torrent_dp_verify_config()
731 u32 num_lanes) in cdns_torrent_dp_set_a0_pll() argument
744 if (num_lanes > 1) { in cdns_torrent_dp_set_a0_pll()
751 if (num_lanes > 2) { in cdns_torrent_dp_set_a0_pll()
956 cdns_torrent_dp_set_a0_pll(cdns_phy, inst->num_lanes); in cdns_torrent_dp_init()
962 lane_bits = (1 << inst->num_lanes) - 1; in cdns_torrent_dp_init()
[all …]
Dphy-cadence-sierra.c157 u32 num_lanes; member
204 u32 num_lanes; member
304 for (i = 0; i < ins->num_lanes; i++) { in cdns_sierra_phy_init()
373 if (of_property_read_u32(child, "cdns,num-lanes", &inst->num_lanes)) in cdns_sierra_get_optional()
601 sp->num_lanes += sp->phys[node].num_lanes; in cdns_sierra_phy_probe()
616 if (sp->num_lanes > SIERRA_MAX_LANES) { in cdns_sierra_phy_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/
Dsii902x.c757 int num_lanes, i; in sii902x_audio_codec_init() local
765 num_lanes = of_property_read_variable_u8_array(dev->of_node, in sii902x_audio_codec_init()
770 if (num_lanes == -EINVAL) { in sii902x_audio_codec_init()
774 num_lanes = 1; in sii902x_audio_codec_init()
776 } else if (num_lanes < 0) { in sii902x_audio_codec_init()
779 __func__, num_lanes); in sii902x_audio_codec_init()
780 return num_lanes; in sii902x_audio_codec_init()
782 codec_data.max_i2s_channels = 2 * num_lanes; in sii902x_audio_codec_init()
784 for (i = 0; i < num_lanes; i++) in sii902x_audio_codec_init()
Dtc358767.c235 u8 num_lanes; member
442 if (tc->link.num_lanes == 2) in tc_srcctrl()
667 u8 revision, num_lanes; in tc_get_display_props() local
680 num_lanes = drm_dp_max_lane_count(tc->link.dpcd); in tc_get_display_props()
689 if (num_lanes > 2) { in tc_get_display_props()
691 num_lanes = 2; in tc_get_display_props()
694 tc->link.num_lanes = num_lanes; in tc_get_display_props()
715 tc->link.num_lanes, in tc_get_display_props()
756 out_bw = tc->link.num_lanes * tc->link.rate; in tc_set_video_mode()
928 if (tc->link.num_lanes == 2) in tc_main_link_enable()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dmipi-csis.c216 u32 num_lanes; member
322 mask = (1 << (state->num_lanes + 1)) - 1; in s5pcsis_system_enable()
360 val = (val & ~S5PCSIS_CFG_NR_LANE_MASK) | (state->num_lanes - 1); in s5pcsis_set_params()
751 state->num_lanes = endpoint.bus.mipi_csi2.num_data_lanes; in s5pcsis_parse_dt()
790 if (state->num_lanes == 0 || state->num_lanes > state->max_num_lanes) { in s5pcsis_probe()
792 state->num_lanes, state->max_num_lanes); in s5pcsis_probe()
874 state->num_lanes, state->hs_settle, state->wclk_ext, in s5pcsis_probe()
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
Dcal-camerarx.c96 u32 num_lanes = phy->cal->data->camerarx[phy->instance].num_lanes; in cal_camerarx_enable() local
100 regmap_field_write(phy->fields[F_LANEENABLE], (1 << num_lanes) - 1); in cal_camerarx_enable()
127 u32 num_lanes = mipi_csi2->num_data_lanes; in cal_camerarx_config() local
138 2 * num_lanes * 1000); in cal_camerarx_config()
/kernel/linux/linux-5.10/drivers/gpu/drm/xlnx/
Dzynqmp_dp.c312 u8 num_lanes; member
397 for (i = 0; i < dp->num_lanes; i++) { in zynqmp_dp_phy_init()
411 for (i = dp->num_lanes - 1; i >= 0; i--) { in zynqmp_dp_phy_init()
433 for (i = 0; i < dp->num_lanes; i++) { in zynqmp_dp_phy_exit()
440 for (i = 0; i < dp->num_lanes; i++) { in zynqmp_dp_phy_exit()
475 if (dp->num_lanes) in zynqmp_dp_phy_probe()
492 dp->num_lanes++; in zynqmp_dp_phy_probe()
511 ready = (1 << dp->num_lanes) - 1; in zynqmp_dp_phy_ready()
1317 dp->num_lanes); in zynqmp_dp_connector_detect()
1712 dp->num_lanes); in zynqmp_dp_probe()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Dia_css_input_port.h55 unsigned int num_lanes; /** Number of lanes used (4-lane port only) */ member
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/
Dcamss-csiphy-2ph-1-0.c60 static u8 csiphy_settle_cnt_calc(u32 pixel_clock, u8 bpp, u8 num_lanes, in csiphy_settle_cnt_calc() argument
71 mipi_clock = pixel_clock * bpp / (2 * num_lanes); in csiphy_settle_cnt_calc()
/kernel/linux/linux-5.10/drivers/media/platform/rcar-vin/
Drcar-csi2.c496 unsigned int num_lanes = UINT_MAX; in rcsi2_get_active_lanes() local
520 num_lanes = 1; in rcsi2_get_active_lanes()
522 num_lanes = 2; in rcsi2_get_active_lanes()
524 num_lanes = 3; in rcsi2_get_active_lanes()
526 num_lanes = 4; in rcsi2_get_active_lanes()
528 if (num_lanes > priv->lanes) { in rcsi2_get_active_lanes()
531 num_lanes); in rcsi2_get_active_lanes()
535 *lanes = num_lanes; in rcsi2_get_active_lanes()

123