| /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/ |
| 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() 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/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/usb/ |
| H A D | aqc111.c | 325 aqc111_data->phy_cfg &= ~AQ_ADV_MASK; in aqc111_set_phy_speed() 326 aqc111_data->phy_cfg |= AQ_PAUSE; in aqc111_set_phy_speed() 327 aqc111_data->phy_cfg |= AQ_ASYM_PAUSE; in aqc111_set_phy_speed() 328 aqc111_data->phy_cfg |= AQ_DOWNSHIFT; in aqc111_set_phy_speed() 329 aqc111_data->phy_cfg &= ~AQ_DSH_RETRIES_MASK; in aqc111_set_phy_speed() 330 aqc111_data->phy_cfg |= (3 << AQ_DSH_RETRIES_SHIFT) & in aqc111_set_phy_speed() 336 aqc111_data->phy_cfg |= AQ_ADV_5G; in aqc111_set_phy_speed() 339 aqc111_data->phy_cfg |= AQ_ADV_2G5; in aqc111_set_phy_speed() 342 aqc111_data->phy_cfg |= AQ_ADV_1G; in aqc111_set_phy_speed() 345 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 | 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() 521 union phy_configure_opts phy_cfg; in imx93_dsi_validate_phy() local 526 ret = imx93_dsi_get_phy_configure_opts(dsi, mode, &phy_cfg, lanes, in imx93_dsi_validate_phy() 533 ret = dphy_pll_get_configure_from_opts(dsi, &phy_cfg.mipi_dphy, &cfg); in imx93_dsi_validate_phy() 656 ret = dphy_pll_configure(dsi, &dsi->phy_cfg); in imx93_dsi_phy_init() 680 union phy_configure_opts phy_cfg; in imx93_dsi_get_lane_mbps() local 684 ret = imx93_dsi_get_phy_configure_opts(dsi, mode, &phy_cfg, lanes, in imx93_dsi_get_lane_mbps() 691 *lane_mbps = DIV_ROUND_UP(phy_cfg.mipi_dphy.hs_clk_rate, USEC_PER_SEC); in imx93_dsi_get_lane_mbps() [all …]
|
| /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 | 479 const struct exynos5_usbdrd_phy_config *phy_cfg; member 527 const struct exynos5_usbdrd_phy_config *phy_cfg; member 920 inst->phy_cfg->phy_init(phy_drd); in exynos5_usbdrd_phy_init() 923 reg = inst->phy_cfg->set_refclk(inst); in exynos5_usbdrd_phy_init() 1004 inst->phy_cfg->phy_isol(inst, false); in exynos5_usbdrd_phy_power_on() 1023 inst->phy_cfg->phy_isol(inst, true); in exynos5_usbdrd_phy_power_off() 1178 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) in exynos5_usbdrd_phy_calibrate() 1307 inst->phy_cfg->phy_init(phy_drd); in exynos7870_usbdrd_phy_init() 1397 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) { in exynos2200_usbdrd_link_attach_detach_pipe3_phy() 1408 if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) { in exynos2200_usbdrd_link_attach_detach_pipe3_phy() [all …]
|
| /linux/drivers/phy/rockchip/ |
| H A D | phy-rockchip-inno-hdmi.c | 284 const struct phy_config *phy_cfg); 652 const struct phy_config *phy_cfg = inno->plat_data->phy_cfg_table; in inno_hdmi_phy_power_on() local 670 for (; phy_cfg->tmdsclock != 0; phy_cfg++) in inno_hdmi_phy_power_on() 671 if (tmdsclock <= phy_cfg->tmdsclock) in inno_hdmi_phy_power_on() 674 if (cfg->tmdsclock == 0 || phy_cfg->tmdsclock == 0) in inno_hdmi_phy_power_on() 685 ret = inno->plat_data->ops->power_on(inno, cfg, phy_cfg); in inno_hdmi_phy_power_on() 1104 const struct phy_config *phy_cfg) in inno_hdmi_phy_rk3228_power_on() argument 1136 inno_write(inno, 0xef + v, phy_cfg->regs[v]); in inno_hdmi_phy_rk3228_power_on() 1219 const struct phy_config *phy_cfg) in inno_hdmi_phy_rk3328_power_on() argument 1246 inno_write(inno, 0xb5 + v, phy_cfg->regs[v]); in inno_hdmi_phy_rk3328_power_on() [all …]
|
| H A D | phy-rockchip-naneng-combphy.c | 393 const struct rockchip_combphy_cfg *phy_cfg; in rockchip_combphy_probe() local 397 phy_cfg = of_device_get_match_data(dev); in rockchip_combphy_probe() 398 if (!phy_cfg) { in rockchip_combphy_probe() 415 for (id = 0; id < phy_cfg->num_phys; id++) { in rockchip_combphy_probe() 416 if (res->start == phy_cfg->phy_ids[id]) { in rockchip_combphy_probe() 424 priv->cfg = phy_cfg; in rockchip_combphy_probe()
|
| /linux/drivers/net/phy/ |
| H A D | microchip_t1.c | 1338 static const struct lan887x_regwr_map phy_cfg[] = { in lan887x_phy_setup() local 1368 return lan887x_phy_config(phydev, phy_cfg, ARRAY_SIZE(phy_cfg)); in lan887x_phy_setup() 1378 static const struct lan887x_regwr_map phy_cfg[] = { in lan887x_100M_setup() local 1384 ret = lan887x_phy_config(phydev, phy_cfg, ARRAY_SIZE(phy_cfg)); in lan887x_100M_setup() 1386 static const struct lan887x_regwr_map phy_cfg[] = { in lan887x_100M_setup() local 1391 ret = lan887x_phy_config(phydev, phy_cfg, ARRAY_SIZE(phy_cfg)); in lan887x_100M_setup() 1402 static const struct lan887x_regwr_map phy_cfg[] = { in lan887x_1000M_setup() local 1409 ret = lan887x_phy_config(phydev, phy_cfg, ARRAY_SIZE(phy_cfg)); in lan887x_1000M_setup()
|
| /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/gpu/drm/sun4i/ |
| 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 | 570 phy_cfg_cmd.phy_cfg = in iwl_send_phy_cfg_cmd() 575 phy_cfg_cmd.phy_cfg = cpu_to_le32(iwl_mvm_get_phy_config(mvm)); in iwl_send_phy_cfg_cmd() 578 phy_cfg_cmd.phy_cfg |= in iwl_send_phy_cfg_cmd() 592 phy_cfg_cmd.phy_cfg); in iwl_send_phy_cfg_cmd()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_common.c | 3952 struct ice_aqc_set_phy_cfg_data *phy_cfg) in ice_phy_caps_equals_cfg() argument 3956 if (!phy_caps || !phy_cfg) in ice_phy_caps_equals_cfg() 3966 if (phy_caps->phy_type_low != phy_cfg->phy_type_low || in ice_phy_caps_equals_cfg() 3967 phy_caps->phy_type_high != phy_cfg->phy_type_high || in ice_phy_caps_equals_cfg() 3968 ((phy_caps->caps & caps_mask) != (phy_cfg->caps & cfg_mask)) || in ice_phy_caps_equals_cfg() 3969 phy_caps->low_power_ctrl_an != phy_cfg->low_power_ctrl_an || in ice_phy_caps_equals_cfg() 3970 phy_caps->eee_cap != phy_cfg->eee_cap || in ice_phy_caps_equals_cfg() 3971 phy_caps->eeer_value != phy_cfg->eeer_value || in ice_phy_caps_equals_cfg() 3972 phy_caps->link_fec_options != phy_cfg->link_fec_opt) in ice_phy_caps_equals_cfg()
|