Home
last modified time | relevance | path

Searched full:phy_cfg (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/phy/broadcom/
H A 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/drivers/net/ethernet/sfc/siena/
H A 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/drivers/net/ethernet/sfc/
H A 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()
531 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_get_link_ksettings() local
537 cmd->base.port = mcdi_to_ethtool_media(phy_cfg->media); in efx_mcdi_phy_get_link_ksettings()
538 cmd->base.phy_address = phy_cfg->port; in efx_mcdi_phy_get_link_ksettings()
541 mcdi_to_ethtool_linkset(phy_cfg->media, phy_cfg->supported_cap, in efx_mcdi_phy_get_link_ksettings()
[all …]
/linux/drivers/net/usb/
H A Daqc111.c330 aqc111_data->phy_cfg &= ~AQ_ADV_MASK; in aqc111_set_phy_speed()
331 aqc111_data->phy_cfg |= AQ_PAUSE; in aqc111_set_phy_speed()
332 aqc111_data->phy_cfg |= AQ_ASYM_PAUSE; in aqc111_set_phy_speed()
333 aqc111_data->phy_cfg |= AQ_DOWNSHIFT; in aqc111_set_phy_speed()
334 aqc111_data->phy_cfg &= ~AQ_DSH_RETRIES_MASK; in aqc111_set_phy_speed()
335 aqc111_data->phy_cfg |= (3 << AQ_DSH_RETRIES_SHIFT) & in aqc111_set_phy_speed()
341 aqc111_data->phy_cfg |= AQ_ADV_5G; in aqc111_set_phy_speed()
344 aqc111_data->phy_cfg |= AQ_ADV_2G5; in aqc111_set_phy_speed()
347 aqc111_data->phy_cfg |= AQ_ADV_1G; in aqc111_set_phy_speed()
350 aqc111_data->phy_cfg |= AQ_ADV_100M; in aqc111_set_phy_speed()
[all …]
H A Daqc111.h173 u32 phy_cfg; member
/linux/drivers/gpu/drm/bridge/cadence/
H A Dcdns-mhdp8546-core.c808 union phy_configure_opts phy_cfg; in cdns_mhdp_link_training_init() local
829 phy_cfg.dp.link_rate = mhdp->link.rate / 100; in cdns_mhdp_link_training_init()
830 phy_cfg.dp.lanes = mhdp->link.num_lanes; in cdns_mhdp_link_training_init()
832 memset(phy_cfg.dp.voltage, 0, sizeof(phy_cfg.dp.voltage)); in cdns_mhdp_link_training_init()
833 memset(phy_cfg.dp.pre, 0, sizeof(phy_cfg.dp.pre)); in cdns_mhdp_link_training_init()
835 phy_cfg.dp.ssc = cdns_mhdp_get_ssc_supported(mhdp); in cdns_mhdp_link_training_init()
836 phy_cfg.dp.set_lanes = true; in cdns_mhdp_link_training_init()
837 phy_cfg.dp.set_rate = true; in cdns_mhdp_link_training_init()
838 phy_cfg.dp.set_voltages = true; in cdns_mhdp_link_training_init()
839 ret = phy_configure(mhdp->phy, &phy_cfg); in cdns_mhdp_link_training_init()
[all …]
/linux/drivers/scsi/mvsas/
H A 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/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Dconfig.h81 * @phy_cfg: PHY configuration value, uses &enum iwl_fw_phy_cfg
85 __le32 phy_cfg; member
92 * @phy_cfg: PHY configuration value, uses &enum iwl_fw_phy_cfg
97 __le32 phy_cfg; member
/linux/drivers/phy/samsung/
H A Dphy-exynos5-usbdrd.c426 const struct exynos5_usbdrd_phy_config *phy_cfg; member
452 * instances each with its 'phy' and 'phy_cfg'.
474 const struct exynos5_usbdrd_phy_config *phy_cfg; member
867 inst->phy_cfg->phy_init(phy_drd); in exynos5_usbdrd_phy_init()
870 reg = inst->phy_cfg->set_refclk(inst); in exynos5_usbdrd_phy_init()
951 inst->phy_cfg->phy_isol(inst, false); in exynos5_usbdrd_phy_power_on()
970 inst->phy_cfg->phy_isol(inst, true); in exynos5_usbdrd_phy_power_off()
1125 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) in exynos5_usbdrd_phy_calibrate()
1254 inst->phy_cfg->phy_init(phy_drd); in exynos7870_usbdrd_phy_init()
1344 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) { in exynos2200_usbdrd_link_attach_detach_pipe3_phy()
[all …]
/linux/drivers/phy/rockchip/
H A Dphy-rockchip-inno-usb2.c243 * @phy_cfg: phy register configuration, assigned by driver data.
260 const struct rockchip_usb2phy_cfg *phy_cfg; member
330 if (!property_enabled(base, &rphy->phy_cfg->clkout_ctl)) { in rockchip_usb2phy_clk480m_prepare()
331 ret = property_enable(base, &rphy->phy_cfg->clkout_ctl, true); in rockchip_usb2phy_clk480m_prepare()
349 property_enable(base, &rphy->phy_cfg->clkout_ctl, false); in rockchip_usb2phy_clk480m_unprepare()
358 return property_enabled(base, &rphy->phy_cfg->clkout_ctl); in rockchip_usb2phy_clk480m_prepared()
792 property_enable(base, &rphy->phy_cfg->chg_det.rdm_pdwn_en, en); in rockchip_chg_enable_dcd()
793 property_enable(base, &rphy->phy_cfg->chg_det.idp_src_en, en); in rockchip_chg_enable_dcd()
801 property_enable(base, &rphy->phy_cfg->chg_det.vdp_src_en, en); in rockchip_chg_enable_primary_det()
802 property_enable(base, &rphy->phy_cfg->chg_det.idm_sink_en, en); in rockchip_chg_enable_primary_det()
[all …]
H A Dphy-rockchip-naneng-combphy.c385 const struct rockchip_combphy_cfg *phy_cfg; in rockchip_combphy_probe() local
389 phy_cfg = of_device_get_match_data(dev); in rockchip_combphy_probe()
390 if (!phy_cfg) { in rockchip_combphy_probe()
407 for (id = 0; id < phy_cfg->num_phys; id++) { in rockchip_combphy_probe()
408 if (res->start == phy_cfg->phy_ids[id]) { in rockchip_combphy_probe()
416 priv->cfg = phy_cfg; in rockchip_combphy_probe()
/linux/Documentation/devicetree/bindings/display/bridge/
H A Dfsl,imx93-mipi-dsi.yaml35 - const: phy_cfg
75 clock-names = "pclk", "pix", "phy_cfg", "phy_ref";
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_mcp.c1519 struct eth_phy_cfg phy_cfg; in qed_mcp_set_link() local
1525 memset(&phy_cfg, 0, sizeof(phy_cfg)); in qed_mcp_set_link()
1528 phy_cfg.speed = params->speed.forced_speed; in qed_mcp_set_link()
1529 phy_cfg.pause |= (params->pause.autoneg) ? ETH_PAUSE_AUTONEG : 0; in qed_mcp_set_link()
1530 phy_cfg.pause |= (params->pause.forced_rx) ? ETH_PAUSE_RX : 0; in qed_mcp_set_link()
1531 phy_cfg.pause |= (params->pause.forced_tx) ? ETH_PAUSE_TX : 0; in qed_mcp_set_link()
1532 phy_cfg.adv_speed = params->speed.advertised_speeds; in qed_mcp_set_link()
1533 phy_cfg.loopback_mode = params->loopback_mode; in qed_mcp_set_link()
1542 phy_cfg.eee_cfg |= EEE_CFG_EEE_ENABLED; in qed_mcp_set_link()
1544 phy_cfg.eee_cfg |= EEE_CFG_TX_LPI; in qed_mcp_set_link()
[all …]
H A Dqed_mfw_hsi.h2069 u32 phy_cfg; member
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dphy.c178 .phy_cfg = cpu_to_le32(iwl_mld_get_phy_config(mld)), in iwl_mld_send_phy_cfg_cmd()
184 IWL_DEBUG_INFO(mld, "Sending Phy CFG command: 0x%x\n", cmd.phy_cfg); in iwl_mld_send_phy_cfg_cmd()
/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_v1_hw.c114 #define PHY_CFG (PORT_BASE + 0x0) macro
445 u32 cfg = hisi_sas_phy_read32(hisi_hba, phy_no, PHY_CFG); in config_phy_opt_mode_v1_hw()
449 hisi_sas_phy_write32(hisi_hba, phy_no, PHY_CFG, cfg); in config_phy_opt_mode_v1_hw()
767 u32 cfg = hisi_sas_phy_read32(hisi_hba, phy_no, PHY_CFG); in enable_phy_v1_hw()
770 hisi_sas_phy_write32(hisi_hba, phy_no, PHY_CFG, cfg); in enable_phy_v1_hw()
775 u32 cfg = hisi_sas_phy_read32(hisi_hba, phy_no, PHY_CFG); in disable_phy_v1_hw()
778 hisi_sas_phy_write32(hisi_hba, phy_no, PHY_CFG, cfg); in disable_phy_v1_hw()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_e610.c2151 struct ixgbe_aci_cmd_set_phy_cfg_data phy_cfg = {}; in ixgbe_set_phy_power_e610() local
2160 ixgbe_copy_phy_caps_to_cfg(&phy_caps, &phy_cfg); in ixgbe_set_phy_power_e610()
2163 phy_cfg.caps &= ~IXGBE_ACI_PHY_ENA_LOW_POWER; in ixgbe_set_phy_power_e610()
2165 phy_cfg.caps |= IXGBE_ACI_PHY_ENA_LOW_POWER; in ixgbe_set_phy_power_e610()
2168 if (phy_caps.caps == phy_cfg.caps) in ixgbe_set_phy_power_e610()
2171 phy_cfg.caps |= IXGBE_ACI_PHY_ENA_LINK; in ixgbe_set_phy_power_e610()
2172 phy_cfg.caps |= IXGBE_ACI_PHY_ENA_AUTO_LINK_UPDT; in ixgbe_set_phy_power_e610()
2174 return ixgbe_aci_set_phy_cfg(hw, &phy_cfg); in ixgbe_set_phy_power_e610()
2190 struct ixgbe_aci_cmd_set_phy_cfg_data phy_cfg = {}; in ixgbe_enter_lplu_e610() local
2199 ixgbe_copy_phy_caps_to_cfg(&phy_caps, &phy_cfg); in ixgbe_enter_lplu_e610()
[all …]
/linux/drivers/gpu/drm/sun4i/
H A Dsun8i_dw_hdmi.h155 const struct dw_hdmi_phy_config *phy_cfg; member
H A Dsun8i_hdmi_phy.c586 plat_data->phy_config = variant->phy_cfg; in sun8i_hdmi_phy_set_ops()
625 .phy_cfg = sun50i_h6_phy_config,
/linux/drivers/net/ethernet/intel/ice/
H A Dice_common.c3975 * @phy_cfg: PHY configuration
3982 struct ice_aqc_set_phy_cfg_data *phy_cfg) in ice_phy_caps_equals_cfg() argument
3986 if (!phy_caps || !phy_cfg) in ice_phy_caps_equals_cfg()
3996 if (phy_caps->phy_type_low != phy_cfg->phy_type_low || in ice_phy_caps_equals_cfg()
3997 phy_caps->phy_type_high != phy_cfg->phy_type_high || in ice_phy_caps_equals_cfg()
3998 ((phy_caps->caps & caps_mask) != (phy_cfg->caps & cfg_mask)) || in ice_phy_caps_equals_cfg()
3999 phy_caps->low_power_ctrl_an != phy_cfg->low_power_ctrl_an || in ice_phy_caps_equals_cfg()
4000 phy_caps->eee_cap != phy_cfg->eee_cap || in ice_phy_caps_equals_cfg()
4001 phy_caps->eeer_value != phy_cfg->eeer_value || in ice_phy_caps_equals_cfg()
4002 phy_caps->link_fec_options != phy_cfg->link_fec_opt) in ice_phy_caps_equals_cfg()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c5661 struct i40e_aq_get_phy_abilities_resp phy_cfg; in i40e_get_eee() local
5668 status = i40e_aq_get_phy_capabilities(hw, false, true, &phy_cfg, NULL); in i40e_get_eee()
5675 if (phy_cfg.eee_capability == 0) in i40e_get_eee()
5678 i40e_eee_capability_to_kedata_supported(phy_cfg.eee_capability, in i40e_get_eee()
5683 status = i40e_aq_get_phy_capabilities(hw, false, false, &phy_cfg, NULL); in i40e_get_eee()
5688 if (phy_cfg.eee_capability) in i40e_get_eee()
5690 edata->eee_enabled = !!phy_cfg.eee_capability; in i40e_get_eee()
/linux/drivers/media/platform/ti/omap3isp/
H A Dispcsi2.c651 CSI2_PRINT_REGISTER(isp, csi2->regs1, PHY_CFG); in csi2_print_status()
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3399-base.dtsi2069 clock-names = "ref", "pclk", "phy_cfg", "grf";
2108 clock-names = "ref", "pclk", "phy_cfg", "grf";
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c12311 * result upon successfully return of the phy_cfg command in bnxt_hwrm_set_pause()
12758 * PHY_CFG to bring it back up. in bnxt_update_phy_setting()