Home
last modified time | relevance | path

Searched refs:phy_cfg (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.6/drivers/phy/broadcom/
Dphy-bcm-sr-usb.c124 static int bcm_usb_ss_phy_init(struct bcm_usb_phy_cfg *phy_cfg) in bcm_usb_ss_phy_init() argument
127 void __iomem *regs = phy_cfg->regs; in bcm_usb_ss_phy_init()
131 offset = phy_cfg->offset; in bcm_usb_ss_phy_init()
155 static int bcm_usb_hs_phy_init(struct bcm_usb_phy_cfg *phy_cfg) in bcm_usb_hs_phy_init() argument
158 void __iomem *regs = phy_cfg->regs; in bcm_usb_hs_phy_init()
161 offset = phy_cfg->offset; in bcm_usb_hs_phy_init()
176 struct bcm_usb_phy_cfg *phy_cfg = phy_get_drvdata(phy); in bcm_usb_phy_reset() local
177 void __iomem *regs = phy_cfg->regs; in bcm_usb_phy_reset()
180 offset = phy_cfg->offset; in bcm_usb_phy_reset()
182 if (phy_cfg->type == USB_HS_PHY) { in bcm_usb_phy_reset()
[all …]
/Linux-v6.6/drivers/phy/realtek/
Dphy-rtk-usb2.c76 struct phy_cfg { struct
121 struct phy_cfg *phy_cfg; argument
241 static u8 __updated_dc_disconnect_level_page0_0xe4(struct phy_cfg *phy_cfg, in __updated_dc_disconnect_level_page0_0xe4() argument
246 s32 dc_disconnect_mask = phy_cfg->dc_disconnect_mask; in __updated_dc_disconnect_level_page0_0xe4()
268 struct phy_cfg *phy_cfg; in update_dc_disconnect_level_at_page0() local
277 phy_cfg = rtk_phy->phy_cfg; in update_dc_disconnect_level_at_page0()
281 phy_data_page = phy_cfg->page0; in update_dc_disconnect_level_at_page0()
293 dc_disconnect_mask = phy_cfg->dc_disconnect_mask; in update_dc_disconnect_level_at_page0()
296 data = __updated_dc_disconnect_level_page0_0xe4(phy_cfg, phy_parameter, data); in update_dc_disconnect_level_at_page0()
307 static u8 __updated_dc_disconnect_level_page1_0xe2(struct phy_cfg *phy_cfg, in __updated_dc_disconnect_level_page1_0xe2() argument
[all …]
Dphy-rtk-usb3.c65 struct phy_cfg { struct
91 struct phy_cfg *phy_cfg; argument
155 struct phy_cfg *phy_cfg = rtk_phy->phy_cfg; in do_rtk_usb3_phy_toggle() local
166 if (!phy_cfg->do_toggle) in do_rtk_usb3_phy_toggle()
170 phy_data = phy_cfg->param + i; in do_rtk_usb3_phy_toggle()
188 struct phy_cfg *phy_cfg; in do_rtk_phy_init() local
193 phy_cfg = rtk_phy->phy_cfg; in do_rtk_phy_init()
197 if (phy_cfg->use_default_parameter) in do_rtk_phy_init()
200 for (i = 0; i < phy_cfg->param_size; i++) { in do_rtk_phy_init()
201 struct phy_data *phy_data = phy_cfg->param + i; in do_rtk_phy_init()
[all …]
/Linux-v6.6/drivers/net/ethernet/sfc/
Dmcdi_port_common.c234 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_get_mcdi_phy_flags() local
240 if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_OUT_TXDIS_LBN)) in efx_get_mcdi_phy_flags()
242 if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_OUT_LOWPOWER_LBN)) in efx_get_mcdi_phy_flags()
244 if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_OUT_POWEROFF_LBN)) in efx_get_mcdi_phy_flags()
376 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_check_fcntl() local
382 if (~phy_cfg->supported_cap & (1 << MC_CMD_PHY_CAP_AN_LBN)) in efx_mcdi_phy_check_fcntl()
540 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_get_link_ksettings() local
546 cmd->base.port = mcdi_to_ethtool_media(phy_cfg->media); in efx_mcdi_phy_get_link_ksettings()
547 cmd->base.phy_address = phy_cfg->port; in efx_mcdi_phy_get_link_ksettings()
552 mcdi_to_ethtool_linkset(phy_cfg->media, phy_cfg->supported_cap, in efx_mcdi_phy_get_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/ethernet/sfc/siena/
Dmcdi_port_common.c235 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_get_mcdi_phy_flags() local
241 if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_OUT_TXDIS_LBN)) in efx_get_mcdi_phy_flags()
243 if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_OUT_LOWPOWER_LBN)) in efx_get_mcdi_phy_flags()
245 if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_OUT_POWEROFF_LBN)) in efx_get_mcdi_phy_flags()
377 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_check_fcntl() local
383 if (~phy_cfg->supported_cap & (1 << MC_CMD_PHY_CAP_AN_LBN)) in efx_mcdi_phy_check_fcntl()
542 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_siena_mcdi_phy_get_link_ksettings() local
548 cmd->base.port = mcdi_to_ethtool_media(phy_cfg->media); in efx_siena_mcdi_phy_get_link_ksettings()
549 cmd->base.phy_address = phy_cfg->port; in efx_siena_mcdi_phy_get_link_ksettings()
554 mcdi_to_ethtool_linkset(phy_cfg->media, phy_cfg->supported_cap, in efx_siena_mcdi_phy_get_link_ksettings()
[all …]
/Linux-v6.6/drivers/net/usb/
Daqc111.c324 aqc111_data->phy_cfg &= ~AQ_ADV_MASK; in aqc111_set_phy_speed()
325 aqc111_data->phy_cfg |= AQ_PAUSE; in aqc111_set_phy_speed()
326 aqc111_data->phy_cfg |= AQ_ASYM_PAUSE; in aqc111_set_phy_speed()
327 aqc111_data->phy_cfg |= AQ_DOWNSHIFT; in aqc111_set_phy_speed()
328 aqc111_data->phy_cfg &= ~AQ_DSH_RETRIES_MASK; in aqc111_set_phy_speed()
329 aqc111_data->phy_cfg |= (3 << AQ_DSH_RETRIES_SHIFT) & in aqc111_set_phy_speed()
335 aqc111_data->phy_cfg |= AQ_ADV_5G; in aqc111_set_phy_speed()
338 aqc111_data->phy_cfg |= AQ_ADV_2G5; in aqc111_set_phy_speed()
341 aqc111_data->phy_cfg |= AQ_ADV_1G; in aqc111_set_phy_speed()
344 aqc111_data->phy_cfg |= AQ_ADV_100M; in aqc111_set_phy_speed()
[all …]
Daqc111.h173 u32 phy_cfg; member
/Linux-v6.6/drivers/phy/rockchip/
Dphy-rockchip-inno-usb2.c254 const struct rockchip_usb2phy_cfg *phy_cfg; member
317 if (!property_enabled(base, &rphy->phy_cfg->clkout_ctl)) { in rockchip_usb2phy_clk480m_prepare()
318 ret = property_enable(base, &rphy->phy_cfg->clkout_ctl, true); in rockchip_usb2phy_clk480m_prepare()
336 property_enable(base, &rphy->phy_cfg->clkout_ctl, false); in rockchip_usb2phy_clk480m_unprepare()
345 return property_enabled(base, &rphy->phy_cfg->clkout_ctl); in rockchip_usb2phy_clk480m_prepared()
760 property_enable(base, &rphy->phy_cfg->chg_det.rdm_pdwn_en, en); in rockchip_chg_enable_dcd()
761 property_enable(base, &rphy->phy_cfg->chg_det.idp_src_en, en); in rockchip_chg_enable_dcd()
769 property_enable(base, &rphy->phy_cfg->chg_det.vdp_src_en, en); in rockchip_chg_enable_primary_det()
770 property_enable(base, &rphy->phy_cfg->chg_det.idm_sink_en, en); in rockchip_chg_enable_primary_det()
778 property_enable(base, &rphy->phy_cfg->chg_det.vdm_src_en, en); in rockchip_chg_enable_secondary_det()
[all …]
Dphy-rockchip-inno-hdmi.c283 const struct phy_config *phy_cfg);
609 const struct phy_config *phy_cfg = inno->plat_data->phy_cfg_table; in inno_hdmi_phy_power_on() local
627 for (; phy_cfg->tmdsclock != 0; phy_cfg++) in inno_hdmi_phy_power_on()
628 if (tmdsclock <= phy_cfg->tmdsclock) in inno_hdmi_phy_power_on()
631 if (cfg->tmdsclock == 0 || phy_cfg->tmdsclock == 0) in inno_hdmi_phy_power_on()
642 ret = inno->plat_data->ops->power_on(inno, cfg, phy_cfg); in inno_hdmi_phy_power_on()
1057 const struct phy_config *phy_cfg) in inno_hdmi_phy_rk3228_power_on() argument
1089 inno_write(inno, 0xef + v, phy_cfg->regs[v]); in inno_hdmi_phy_rk3228_power_on()
1172 const struct phy_config *phy_cfg) in inno_hdmi_phy_rk3328_power_on() argument
1199 inno_write(inno, 0xb5 + v, phy_cfg->regs[v]); in inno_hdmi_phy_rk3328_power_on()
[all …]
Dphy-rockchip-naneng-combphy.c321 const struct rockchip_combphy_cfg *phy_cfg; in rockchip_combphy_probe() local
325 phy_cfg = of_device_get_match_data(dev); in rockchip_combphy_probe()
326 if (!phy_cfg) { in rockchip_combphy_probe()
343 priv->cfg = phy_cfg; in rockchip_combphy_probe()
/Linux-v6.6/drivers/gpu/drm/bridge/imx/
Dimx8qm-ldb.c70 struct phy_configure_opts_lvds *phy_cfg) in imx8qm_ldb_set_phy_cfg() argument
72 phy_cfg->bits_per_lane_and_dclk_cycle = 7; in imx8qm_ldb_set_phy_cfg()
73 phy_cfg->lanes = 4; in imx8qm_ldb_set_phy_cfg()
74 phy_cfg->differential_clk_rate = is_split ? di_clk / 2 : di_clk; in imx8qm_ldb_set_phy_cfg()
75 phy_cfg->is_slave = is_slave; in imx8qm_ldb_set_phy_cfg()
92 struct phy_configure_opts_lvds *phy_cfg = &opts.lvds; in imx8qm_ldb_bridge_atomic_check() local
100 imx8qm_ldb_set_phy_cfg(imx8qm_ldb, di_clk, is_split, false, phy_cfg); in imx8qm_ldb_bridge_atomic_check()
112 phy_cfg); in imx8qm_ldb_bridge_atomic_check()
139 struct phy_configure_opts_lvds *phy_cfg = &opts.lvds; in imx8qm_ldb_bridge_mode_set() local
154 imx8qm_ldb_set_phy_cfg(imx8qm_ldb, di_clk, is_split, false, phy_cfg); in imx8qm_ldb_bridge_mode_set()
[all …]
Dimx8qxp-ldb.c67 struct phy_configure_opts_lvds *phy_cfg) in imx8qxp_ldb_set_phy_cfg() argument
69 phy_cfg->bits_per_lane_and_dclk_cycle = 7; in imx8qxp_ldb_set_phy_cfg()
70 phy_cfg->lanes = 4; in imx8qxp_ldb_set_phy_cfg()
73 phy_cfg->differential_clk_rate = di_clk / 2; in imx8qxp_ldb_set_phy_cfg()
74 phy_cfg->is_slave = !imx8qxp_ldb->companion; in imx8qxp_ldb_set_phy_cfg()
76 phy_cfg->differential_clk_rate = di_clk; in imx8qxp_ldb_set_phy_cfg()
77 phy_cfg->is_slave = false; in imx8qxp_ldb_set_phy_cfg()
97 struct phy_configure_opts_lvds *phy_cfg = &opts.lvds; in imx8qxp_ldb_bridge_atomic_check() local
105 imx8qxp_ldb_set_phy_cfg(imx8qxp_ldb, di_clk, is_split, phy_cfg); in imx8qxp_ldb_bridge_atomic_check()
139 struct phy_configure_opts_lvds *phy_cfg = &opts.lvds; in imx8qxp_ldb_bridge_mode_set() local
[all …]
/Linux-v6.6/drivers/phy/samsung/
Dphy-exynos5-usbdrd.c196 const struct exynos5_usbdrd_phy_config *phy_cfg; member
234 const struct exynos5_usbdrd_phy_config *phy_cfg; member
447 inst->phy_cfg->phy_init(phy_drd); in exynos5_usbdrd_phy_init()
450 reg = inst->phy_cfg->set_refclk(inst); in exynos5_usbdrd_phy_init()
543 inst->phy_cfg->phy_isol(inst, 0); in exynos5_usbdrd_phy_power_on()
570 inst->phy_cfg->phy_isol(inst, 1); in exynos5_usbdrd_phy_power_off()
733 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) in exynos5_usbdrd_phy_calibrate()
819 inst->phy_cfg->phy_init(phy_drd); in exynos850_usbdrd_phy_init()
945 .phy_cfg = phy_cfg_exynos5,
953 .phy_cfg = phy_cfg_exynos5,
[all …]
/Linux-v6.6/drivers/scsi/mvsas/
Dmv_94xx.c166 union reg_phy_cfg phy_cfg, phy_cfg_tmp; in set_phy_rate() local
169 phy_cfg.v = 0; in set_phy_rate()
170 phy_cfg.u.disable_phy = phy_cfg_tmp.u.disable_phy; in set_phy_rate()
171 phy_cfg.u.sas_support = 1; in set_phy_rate()
172 phy_cfg.u.sata_support = 1; in set_phy_rate()
173 phy_cfg.u.sata_host_mode = 1; in set_phy_rate()
178 phy_cfg.u.speed_support = 1; in set_phy_rate()
179 phy_cfg.u.snw_3_support = 0; in set_phy_rate()
180 phy_cfg.u.tx_lnk_parity = 1; in set_phy_rate()
181 phy_cfg.u.tx_spt_phs_lnk_rate = 0x30; in set_phy_rate()
[all …]
/Linux-v6.6/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-core.c878 union phy_configure_opts phy_cfg; in cdns_mhdp_link_training_init() local
899 phy_cfg.dp.link_rate = mhdp->link.rate / 100; in cdns_mhdp_link_training_init()
900 phy_cfg.dp.lanes = mhdp->link.num_lanes; in cdns_mhdp_link_training_init()
902 memset(phy_cfg.dp.voltage, 0, sizeof(phy_cfg.dp.voltage)); in cdns_mhdp_link_training_init()
903 memset(phy_cfg.dp.pre, 0, sizeof(phy_cfg.dp.pre)); in cdns_mhdp_link_training_init()
905 phy_cfg.dp.ssc = cdns_mhdp_get_ssc_supported(mhdp); in cdns_mhdp_link_training_init()
906 phy_cfg.dp.set_lanes = true; in cdns_mhdp_link_training_init()
907 phy_cfg.dp.set_rate = true; in cdns_mhdp_link_training_init()
908 phy_cfg.dp.set_voltages = true; in cdns_mhdp_link_training_init()
909 ret = phy_configure(mhdp->phy, &phy_cfg); in cdns_mhdp_link_training_init()
[all …]
Dcdns-dsi-core.c515 struct phy_configure_opts_mipi_dphy *phy_cfg, in cdns_dsi_adjust_phy_config() argument
553 phy_cfg->hs_clk_rate = dlane_bps * 8; in cdns_dsi_adjust_phy_config()
568 struct phy_configure_opts_mipi_dphy *phy_cfg = &output->phy_opts.mipi_dphy; in cdns_dsi_check_conf() local
579 nlanes, phy_cfg); in cdns_dsi_check_conf()
581 ret = cdns_dsi_adjust_phy_config(dsi, dsi_cfg, phy_cfg, mode, mode_valid_check); in cdns_dsi_check_conf()
598 if ((u64)phy_cfg->hs_clk_rate * in cdns_dsi_check_conf()
761 struct phy_configure_opts_mipi_dphy *phy_cfg = &output->phy_opts.mipi_dphy; in cdns_dsi_bridge_enable() local
814 phy_cfg->hs_clk_rate); in cdns_dsi_bridge_enable()
815 reg_wakeup = (phy_cfg->hs_prepare + phy_cfg->hs_zero) / tx_byte_period; in cdns_dsi_bridge_enable()
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/fw/api/
Dconfig.h85 __le32 phy_cfg; member
97 __le32 phy_cfg; member
/Linux-v6.6/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.c1525 struct eth_phy_cfg phy_cfg; in qed_mcp_set_link() local
1531 memset(&phy_cfg, 0, sizeof(phy_cfg)); in qed_mcp_set_link()
1534 phy_cfg.speed = params->speed.forced_speed; in qed_mcp_set_link()
1535 phy_cfg.pause |= (params->pause.autoneg) ? ETH_PAUSE_AUTONEG : 0; in qed_mcp_set_link()
1536 phy_cfg.pause |= (params->pause.forced_rx) ? ETH_PAUSE_RX : 0; in qed_mcp_set_link()
1537 phy_cfg.pause |= (params->pause.forced_tx) ? ETH_PAUSE_TX : 0; in qed_mcp_set_link()
1538 phy_cfg.adv_speed = params->speed.advertised_speeds; in qed_mcp_set_link()
1539 phy_cfg.loopback_mode = params->loopback_mode; in qed_mcp_set_link()
1548 phy_cfg.eee_cfg |= EEE_CFG_EEE_ENABLED; in qed_mcp_set_link()
1550 phy_cfg.eee_cfg |= EEE_CFG_TX_LPI; in qed_mcp_set_link()
[all …]
/Linux-v6.6/drivers/phy/intel/
Dphy-intel-lgm-combo.c142 int (*phy_cfg)(struct intel_cbphy_iphy *)) in intel_cbphy_iphy_cfg()
147 ret = phy_cfg(iphy); in intel_cbphy_iphy_cfg()
154 return phy_cfg(&cbphy->iphy[PHY_1]); in intel_cbphy_iphy_cfg()
/Linux-v6.6/drivers/gpu/drm/bridge/
Dnwl-dsi.c71 union phy_configure_opts phy_cfg; member
215 struct phy_configure_opts_mipi_dphy *cfg = &dsi->phy_cfg.mipi_dphy; in nwl_dsi_config_host()
655 union phy_configure_opts *phy_cfg = &dsi->phy_cfg; in nwl_dsi_mode_set() local
675 ret = phy_configure(dsi->phy, phy_cfg); in nwl_dsi_mode_set()
860 memcpy(&dsi->phy_cfg, &new_cfg, sizeof(new_cfg)); in nwl_dsi_bridge_mode_set()
/Linux-v6.6/drivers/gpu/drm/sun4i/
Dsun8i_hdmi_phy.c586 plat_data->phy_config = variant->phy_cfg; in sun8i_hdmi_phy_set_ops()
625 .phy_cfg = sun50i_h6_phy_config,
Dsun8i_dw_hdmi.h155 const struct dw_hdmi_phy_config *phy_cfg; member
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw.c548 phy_cfg_cmd.phy_cfg = in iwl_send_phy_cfg_cmd()
553 phy_cfg_cmd.phy_cfg = cpu_to_le32(iwl_mvm_get_phy_config(mvm)); in iwl_send_phy_cfg_cmd()
556 phy_cfg_cmd.phy_cfg |= in iwl_send_phy_cfg_cmd()
570 phy_cfg_cmd.phy_cfg); in iwl_send_phy_cfg_cmd()
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_common.c3496 struct ice_aqc_set_phy_cfg_data *phy_cfg) in ice_phy_caps_equals_cfg() argument
3500 if (!phy_caps || !phy_cfg) in ice_phy_caps_equals_cfg()
3510 if (phy_caps->phy_type_low != phy_cfg->phy_type_low || in ice_phy_caps_equals_cfg()
3511 phy_caps->phy_type_high != phy_cfg->phy_type_high || in ice_phy_caps_equals_cfg()
3512 ((phy_caps->caps & caps_mask) != (phy_cfg->caps & cfg_mask)) || in ice_phy_caps_equals_cfg()
3513 phy_caps->low_power_ctrl_an != phy_cfg->low_power_ctrl_an || in ice_phy_caps_equals_cfg()
3514 phy_caps->eee_cap != phy_cfg->eee_cap || in ice_phy_caps_equals_cfg()
3515 phy_caps->eeer_value != phy_cfg->eeer_value || in ice_phy_caps_equals_cfg()
3516 phy_caps->link_fec_options != phy_cfg->link_fec_opt) in ice_phy_caps_equals_cfg()
/Linux-v6.6/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c5632 struct i40e_aq_get_phy_abilities_resp phy_cfg; in i40e_get_eee() local
5639 status = i40e_aq_get_phy_capabilities(hw, false, true, &phy_cfg, NULL); in i40e_get_eee()
5646 if (phy_cfg.eee_capability == 0) in i40e_get_eee()
5653 status = i40e_aq_get_phy_capabilities(hw, false, false, &phy_cfg, NULL); in i40e_get_eee()
5657 edata->advertised = phy_cfg.eee_capability ? SUPPORTED_Autoneg : 0U; in i40e_get_eee()

12