/linux/drivers/phy/broadcom/ |
H A D | phy-bcm-sr-usb.c | 124 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 D | mcdi_port_common.c | 235 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 D | mcdi_port_common.c | 234 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/drivers/net/usb/ |
H A D | aqc111.c | 324 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 …]
|
H A D | aqc111.h | 173 u32 phy_cfg; member
|
/linux/drivers/gpu/drm/bridge/imx/ |
H A D | imx8qm-ldb.c | 70 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 …]
|
H A D | imx93-mipi-dsi.c | 100 union phy_configure_opts phy_cfg; member 469 union phy_configure_opts *phy_cfg, in imx93_dsi_get_phy_configure_opts() argument 483 lanes, &phy_cfg->mipi_dphy); in imx93_dsi_get_phy_configure_opts() 523 union phy_configure_opts phy_cfg; in imx93_dsi_validate_phy() local 528 ret = imx93_dsi_get_phy_configure_opts(dsi, mode, &phy_cfg, lanes, in imx93_dsi_validate_phy() 535 ret = dphy_pll_get_configure_from_opts(dsi, &phy_cfg.mipi_dphy, &cfg); in imx93_dsi_validate_phy() 658 ret = dphy_pll_configure(dsi, &dsi->phy_cfg); in imx93_dsi_phy_init() 682 union phy_configure_opts phy_cfg; in imx93_dsi_get_lane_mbps() local 686 ret = imx93_dsi_get_phy_configure_opts(dsi, mode, &phy_cfg, lanes, in imx93_dsi_get_lane_mbps() 693 *lane_mbps = DIV_ROUND_UP(phy_cfg.mipi_dphy.hs_clk_rate, USEC_PER_SEC); in imx93_dsi_get_lane_mbps() [all …]
|
H A D | imx8qxp-ldb.c | 67 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/drivers/gpu/drm/bridge/cadence/ |
H A D | cdns-mhdp8546-core.c | 878 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 …]
|
H A D | cdns-dsi-core.c | 515 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/drivers/scsi/mvsas/ |
H A D | mv_94xx.c | 166 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/phy/samsung/ |
H A D | phy-exynos5-usbdrd.c | 363 const struct exynos5_usbdrd_phy_config *phy_cfg; member 405 const struct exynos5_usbdrd_phy_config *phy_cfg; member 778 inst->phy_cfg->phy_init(phy_drd); in exynos5_usbdrd_phy_init() 781 reg = inst->phy_cfg->set_refclk(inst); in exynos5_usbdrd_phy_init() 862 inst->phy_cfg->phy_isol(inst, false); in exynos5_usbdrd_phy_power_on() 881 inst->phy_cfg->phy_isol(inst, true); in exynos5_usbdrd_phy_power_off() 1038 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) in exynos5_usbdrd_phy_calibrate() 1187 inst->phy_cfg->phy_init(phy_drd); in exynos850_usbdrd_phy_init() 1274 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) { in exynos5_usbdrd_gs101_phy_init() 1299 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) { in exynos5_usbdrd_gs101_phy_exit() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | config.h | 85 __le32 phy_cfg; member 97 __le32 phy_cfg; member
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mcp.c | 1519 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 D | qed_mfw_hsi.h | 2069 u32 phy_cfg; member
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_e610.c | 2023 struct ixgbe_aci_cmd_set_phy_cfg_data phy_cfg = {}; in ixgbe_set_phy_power_e610() local 2032 ixgbe_copy_phy_caps_to_cfg(&phy_caps, &phy_cfg); in ixgbe_set_phy_power_e610() 2035 phy_cfg.caps &= ~IXGBE_ACI_PHY_ENA_LOW_POWER; in ixgbe_set_phy_power_e610() 2037 phy_cfg.caps |= IXGBE_ACI_PHY_ENA_LOW_POWER; in ixgbe_set_phy_power_e610() 2040 if (phy_caps.caps == phy_cfg.caps) in ixgbe_set_phy_power_e610() 2043 phy_cfg.caps |= IXGBE_ACI_PHY_ENA_LINK; in ixgbe_set_phy_power_e610() 2044 phy_cfg.caps |= IXGBE_ACI_PHY_ENA_AUTO_LINK_UPDT; in ixgbe_set_phy_power_e610() 2046 return ixgbe_aci_set_phy_cfg(hw, &phy_cfg); in ixgbe_set_phy_power_e610() 2062 struct ixgbe_aci_cmd_set_phy_cfg_data phy_cfg = {}; in ixgbe_enter_lplu_e610() local 2071 ixgbe_copy_phy_caps_to_cfg(&phy_caps, &phy_cfg); in ixgbe_enter_lplu_e610() [all …]
|
/linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-naneng-combphy.c | 342 const struct rockchip_combphy_cfg *phy_cfg; in rockchip_combphy_probe() local 346 phy_cfg = of_device_get_match_data(dev); in rockchip_combphy_probe() 347 if (!phy_cfg) { in rockchip_combphy_probe() 364 for (id = 0; id < phy_cfg->num_phys; id++) { in rockchip_combphy_probe() 365 if (res->start == phy_cfg->phy_ids[id]) { in rockchip_combphy_probe() 373 priv->cfg = phy_cfg; in rockchip_combphy_probe()
|
H A D | phy-rockchip-samsung-hdptx.c | 272 struct phy_config *phy_cfg; member
|
/linux/drivers/gpu/drm/bridge/ |
H A D | nwl-dsi.c | 71 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/drivers/gpu/drm/sun4i/ |
H A D | sun8i_hdmi_phy.c | 586 plat_data->phy_config = variant->phy_cfg; in sun8i_hdmi_phy_set_ops() 625 .phy_cfg = sun50i_h6_phy_config,
|
H A D | sun8i_dw_hdmi.h | 155 const struct dw_hdmi_phy_config *phy_cfg; member
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | fw.c | 572 phy_cfg_cmd.phy_cfg = in iwl_send_phy_cfg_cmd() 577 phy_cfg_cmd.phy_cfg = cpu_to_le32(iwl_mvm_get_phy_config(mvm)); in iwl_send_phy_cfg_cmd() 580 phy_cfg_cmd.phy_cfg |= in iwl_send_phy_cfg_cmd() 594 phy_cfg_cmd.phy_cfg); in iwl_send_phy_cfg_cmd()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_common.c | 3771 struct ice_aqc_set_phy_cfg_data *phy_cfg) in ice_phy_caps_equals_cfg() argument 3775 if (!phy_caps || !phy_cfg) in ice_phy_caps_equals_cfg() 3785 if (phy_caps->phy_type_low != phy_cfg->phy_type_low || in ice_phy_caps_equals_cfg() 3786 phy_caps->phy_type_high != phy_cfg->phy_type_high || in ice_phy_caps_equals_cfg() 3787 ((phy_caps->caps & caps_mask) != (phy_cfg->caps & cfg_mask)) || in ice_phy_caps_equals_cfg() 3788 phy_caps->low_power_ctrl_an != phy_cfg->low_power_ctrl_an || in ice_phy_caps_equals_cfg() 3789 phy_caps->eee_cap != phy_cfg->eee_cap || in ice_phy_caps_equals_cfg() 3790 phy_caps->eeer_value != phy_cfg->eeer_value || in ice_phy_caps_equals_cfg() 3791 phy_caps->link_fec_options != phy_cfg->link_fec_opt) in ice_phy_caps_equals_cfg()
|
/linux/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v2_hw.c | 1033 u32 phy_cfg = hisi_sas_phy_read32(hisi_hba, i, PHY_CFG); in reset_hw_v2_hw() local 1035 phy_cfg &= ~PHY_CTRL_RESET_MSK; in reset_hw_v2_hw() 1036 hisi_sas_phy_write32(hisi_hba, i, PHY_CFG, phy_cfg); in reset_hw_v2_hw()
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-base.dtsi | 2069 clock-names = "ref", "pclk", "phy_cfg", "grf"; 2110 clock-names = "ref", "pclk", "phy_cfg", "grf";
|