/drivers/gpu/drm/bridge/adv7511/ |
D | adv7533.c | 27 static void adv7511_dsi_config_timing_gen(struct adv7511 *adv) in adv7511_dsi_config_timing_gen() argument 29 struct mipi_dsi_device *dsi = adv->dsi; in adv7511_dsi_config_timing_gen() 30 struct drm_display_mode *mode = &adv->curr_mode; in adv7511_dsi_config_timing_gen() 42 regmap_write(adv->regmap_cec, 0x16, in adv7511_dsi_config_timing_gen() 46 regmap_write(adv->regmap_cec, 0x28, mode->htotal >> 4); in adv7511_dsi_config_timing_gen() 47 regmap_write(adv->regmap_cec, 0x29, (mode->htotal << 4) & 0xff); in adv7511_dsi_config_timing_gen() 48 regmap_write(adv->regmap_cec, 0x2a, hsw >> 4); in adv7511_dsi_config_timing_gen() 49 regmap_write(adv->regmap_cec, 0x2b, (hsw << 4) & 0xff); in adv7511_dsi_config_timing_gen() 50 regmap_write(adv->regmap_cec, 0x2c, hfp >> 4); in adv7511_dsi_config_timing_gen() 51 regmap_write(adv->regmap_cec, 0x2d, (hfp << 4) & 0xff); in adv7511_dsi_config_timing_gen() [all …]
|
D | adv7511_drv.c | 820 struct adv7511 *adv = connector_to_adv7511(connector); in adv7511_connector_get_modes() local 822 return adv7511_get_modes(adv, connector); in adv7511_connector_get_modes() 829 struct adv7511 *adv = connector_to_adv7511(connector); in adv7511_connector_mode_valid() local 831 return adv7511_mode_valid(adv, mode); in adv7511_connector_mode_valid() 842 struct adv7511 *adv = connector_to_adv7511(connector); in adv7511_connector_detect() local 844 return adv7511_detect(adv, connector); in adv7511_connector_detect() 856 static int adv7511_connector_init(struct adv7511 *adv) in adv7511_connector_init() argument 858 struct drm_bridge *bridge = &adv->bridge; in adv7511_connector_init() 866 if (adv->i2c_main->irq) in adv7511_connector_init() 867 adv->connector.polled = DRM_CONNECTOR_POLL_HPD; in adv7511_connector_init() [all …]
|
D | adv7511.h | 396 void adv7533_dsi_power_on(struct adv7511 *adv); 397 void adv7533_dsi_power_off(struct adv7511 *adv); 398 enum drm_mode_status adv7533_mode_valid(struct adv7511 *adv, 400 int adv7533_patch_registers(struct adv7511 *adv); 401 int adv7533_patch_cec_registers(struct adv7511 *adv); 402 int adv7533_attach_dsi(struct adv7511 *adv); 403 void adv7533_detach_dsi(struct adv7511 *adv); 404 int adv7533_parse_dt(struct device_node *np, struct adv7511 *adv);
|
/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 112 int ctl, adv; in genmii_setup_aneg() local 129 adv = phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg() 130 if (adv < 0) in genmii_setup_aneg() 131 return adv; in genmii_setup_aneg() 132 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4 | ADVERTISE_PAUSE_CAP | in genmii_setup_aneg() 135 adv |= ADVERTISE_10HALF; in genmii_setup_aneg() 137 adv |= ADVERTISE_10FULL; in genmii_setup_aneg() 139 adv |= ADVERTISE_100HALF; in genmii_setup_aneg() 141 adv |= ADVERTISE_100FULL; in genmii_setup_aneg() 143 adv |= ADVERTISE_PAUSE_CAP; in genmii_setup_aneg() [all …]
|
/drivers/net/ |
D | sungem_phy.c | 316 u16 ctl, adv; in genmii_setup_aneg() local 325 adv = sungem_phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg() 326 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4); in genmii_setup_aneg() 328 adv |= ADVERTISE_10HALF; in genmii_setup_aneg() 330 adv |= ADVERTISE_10FULL; in genmii_setup_aneg() 332 adv |= ADVERTISE_100HALF; in genmii_setup_aneg() 334 adv |= ADVERTISE_100FULL; in genmii_setup_aneg() 335 sungem_phy_write(phy, MII_ADVERTISE, adv); in genmii_setup_aneg() 472 u16 ctl, adv; in bcm54xx_setup_aneg() local 481 adv = sungem_phy_read(phy, MII_ADVERTISE); in bcm54xx_setup_aneg() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | aq100x.c | 155 unsigned int adv; in aq100x_advertise() local 159 adv = 0; in aq100x_advertise() 161 adv |= ADV_10G_FULL; in aq100x_advertise() 163 ADV_10G_FULL, adv); in aq100x_advertise() 168 adv = 0; in aq100x_advertise() 170 adv |= ADV_1G_FULL; in aq100x_advertise() 172 adv |= ADV_1G_HALF; in aq100x_advertise() 174 ADV_1G_FULL | ADV_1G_HALF, adv); in aq100x_advertise() 179 adv = 0; in aq100x_advertise() 181 adv |= ADVERTISE_100HALF; in aq100x_advertise() [all …]
|
D | vsc8211.c | 133 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status() local 182 MII_ADVERTISE, &adv); in vsc8211_get_link_status() 186 if (lpa & adv & ADVERTISE_PAUSE_CAP) in vsc8211_get_link_status() 190 (adv & ADVERTISE_PAUSE_ASYM)) in vsc8211_get_link_status() 193 (adv & ADVERTISE_PAUSE_CAP)) in vsc8211_get_link_status() 209 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status_fiber() local 242 &adv); in vsc8211_get_link_status_fiber() 246 if (adv & lpa & ADVERTISE_1000XFULL) { in vsc8211_get_link_status_fiber() 249 } else if (adv & lpa & ADVERTISE_1000XHALF) { in vsc8211_get_link_status_fiber() 255 if (lpa & adv & ADVERTISE_1000XPAUSE) in vsc8211_get_link_status_fiber() [all …]
|
/drivers/net/phy/ |
D | lxt.c | 221 int adv; in lxt973a2_read_status() local 233 adv = phy_read(phydev, MII_ADVERTISE); in lxt973a2_read_status() 235 if (adv < 0) in lxt973a2_read_status() 236 return adv; in lxt973a2_read_status() 247 } while (lpa == adv && retry--); in lxt973a2_read_status() 251 lpa &= adv; in lxt973a2_read_status()
|
D | phy-c45.c | 137 u32 adv; in genphy_c45_an_config_aneg() local 144 adv = linkmode_adv_to_mii_adv_t(phydev->advertising); in genphy_c45_an_config_aneg() 149 adv); in genphy_c45_an_config_aneg() 155 adv = linkmode_adv_to_mii_10gbt_adv_t(phydev->advertising); in genphy_c45_an_config_aneg() 160 MDIO_AN_10GBT_CTRL_ADV2_5G, adv); in genphy_c45_an_config_aneg()
|
D | bcm84881.c | 77 u32 adv; in bcm84881_config_aneg() local 100 adv = linkmode_adv_to_mii_ctrl1000_t(phydev->advertising); in bcm84881_config_aneg() 104 adv); in bcm84881_config_aneg()
|
D | phy.c | 1288 __ETHTOOL_DECLARE_LINK_MODE_MASK(adv); in phy_init_eee() 1318 mmd_eee_adv_to_linkmode(adv, eee_adv); in phy_init_eee() 1320 linkmode_and(common, adv, lp); in phy_init_eee() 1404 int cap, old_adv, adv = 0, ret; in phy_ethtool_set_eee() local 1419 adv = !data->advertised ? cap : in phy_ethtool_set_eee() 1422 adv &= ~phydev->eee_broken_modes; in phy_ethtool_set_eee() 1425 if (old_adv != adv) { in phy_ethtool_set_eee() 1426 ret = phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_EEE_ADV, adv); in phy_ethtool_set_eee()
|
D | phy_device.c | 1928 u32 adv; in genphy_config_advert() local 1934 adv = linkmode_adv_to_mii_adv_t(phydev->advertising); in genphy_config_advert() 1940 adv); in genphy_config_advert() 1957 adv = linkmode_adv_to_mii_ctrl1000_t(phydev->advertising); in genphy_config_advert() 1961 adv); in genphy_config_advert() 1982 u16 adv = 0; in genphy_c37_config_advert() local 1990 adv |= ADVERTISE_1000XFULL; in genphy_c37_config_advert() 1993 adv |= ADVERTISE_1000XPAUSE; in genphy_c37_config_advert() 1996 adv |= ADVERTISE_1000XPSE_ASYM; in genphy_c37_config_advert() 2001 adv); in genphy_c37_config_advert() [all …]
|
D | marvell-88x2222.c | 282 int ret, adv; in mv2222_config_aneg() local 292 adv = linkmode_adv_to_mii_adv_x(priv->supported, in mv2222_config_aneg() 298 adv); in mv2222_config_aneg()
|
D | mxl-gpy.c | 181 u32 adv; in gpy_config_aneg() local 199 adv = linkmode_adv_to_mii_ctrl1000_t(phydev->advertising); in gpy_config_aneg() 202 adv); in gpy_config_aneg()
|
D | phylink.c | 2616 u16 adv; in phylink_mii_c22_pcs_set_advertisement() local 2621 adv = ADVERTISE_1000XFULL; in phylink_mii_c22_pcs_set_advertisement() 2624 adv |= ADVERTISE_1000XPAUSE; in phylink_mii_c22_pcs_set_advertisement() 2627 adv |= ADVERTISE_1000XPSE_ASYM; in phylink_mii_c22_pcs_set_advertisement() 2633 if (val == adv) in phylink_mii_c22_pcs_set_advertisement() 2636 ret = mdiobus_write(bus, addr, MII_ADVERTISE, adv); in phylink_mii_c22_pcs_set_advertisement()
|
/drivers/net/pcs/ |
D | pcs-xpcs.c | 407 int ret, adv; in _xpcs_config_aneg_c73() local 416 adv = 0; in _xpcs_config_aneg_c73() 418 adv |= DW_C73_2500KX; in _xpcs_config_aneg_c73() 422 ret = xpcs_write(xpcs, MDIO_MMD_AN, DW_SR_AN_ADV3, adv); in _xpcs_config_aneg_c73() 427 adv = 0; in _xpcs_config_aneg_c73() 429 adv |= DW_C73_1000KX; in _xpcs_config_aneg_c73() 431 adv |= DW_C73_10000KX4; in _xpcs_config_aneg_c73() 433 adv |= DW_C73_10000KR; in _xpcs_config_aneg_c73() 435 ret = xpcs_write(xpcs, MDIO_MMD_AN, DW_SR_AN_ADV2, adv); in _xpcs_config_aneg_c73() 440 adv = DW_C73_AN_ADV_SF; in _xpcs_config_aneg_c73() [all …]
|
/drivers/net/dsa/mv88e6xxx/ |
D | serdes.c | 142 u16 adv, bmcr, val; in mv88e6352_serdes_pcs_config() local 148 adv = 0x0001; in mv88e6352_serdes_pcs_config() 152 adv = linkmode_adv_to_mii_adv_x(advertise, in mv88e6352_serdes_pcs_config() 164 changed = val != adv; in mv88e6352_serdes_pcs_config() 166 err = mv88e6352_serdes_write(chip, MII_ADVERTISE, adv); in mv88e6352_serdes_pcs_config() 856 u16 val, bmcr, adv; in mv88e6390_serdes_pcs_config() local 862 adv = 0x0001; in mv88e6390_serdes_pcs_config() 866 adv = linkmode_adv_to_mii_adv_x(advertise, in mv88e6390_serdes_pcs_config() 871 adv = linkmode_adv_to_mii_adv_x(advertise, in mv88e6390_serdes_pcs_config() 884 changed = val != adv; in mv88e6390_serdes_pcs_config() [all …]
|
/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 3383 int adv = 0; in nv_update_linkspeed() local 3447 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_update_linkspeed() 3464 adv_lpa = lpa & adv; in nv_update_linkspeed() 3562 adv_pause = adv & (ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM); in nv_update_linkspeed() 4336 int adv; in nv_get_link_ksettings() local 4378 adv = mii_rw(dev, np->phyaddr, MII_ADVERTISE, MII_READ); in nv_get_link_ksettings() 4379 if (adv & ADVERTISE_10HALF) in nv_get_link_ksettings() 4381 if (adv & ADVERTISE_10FULL) in nv_get_link_ksettings() 4383 if (adv & ADVERTISE_100HALF) in nv_get_link_ksettings() 4385 if (adv & ADVERTISE_100FULL) in nv_get_link_ksettings() [all …]
|
/drivers/net/ethernet/sfc/falcon/ |
D | tenxpress.c | 443 u32 adv = 0, lpa = 0; in tenxpress_get_link_ksettings() local 448 adv |= ADVERTISED_10000baseT_Full; in tenxpress_get_link_ksettings() 453 mdio45_ethtool_ksettings_get_npage(&efx->mdio, cmd, adv, lpa); in tenxpress_get_link_ksettings()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 311 struct rgmii_adv adv; in stmmac_ethtool_get_link_ksettings() local 324 if (stmmac_pcs_get_adv_lp(priv, priv->ioaddr, &adv)) in stmmac_ethtool_get_link_ksettings() 336 if (adv.pause & STMMAC_PCS_PAUSE) in stmmac_ethtool_get_link_ksettings() 338 if (adv.pause & STMMAC_PCS_ASYM_PAUSE) in stmmac_ethtool_get_link_ksettings() 340 if (adv.lp_pause & STMMAC_PCS_PAUSE) in stmmac_ethtool_get_link_ksettings() 342 if (adv.lp_pause & STMMAC_PCS_ASYM_PAUSE) in stmmac_ethtool_get_link_ksettings() 351 if (adv.duplex) { in stmmac_ethtool_get_link_ksettings() 366 if (adv.lp_duplex) in stmmac_ethtool_get_link_ksettings()
|
D | dwmac1000_core.c | 421 static void dwmac1000_get_adv_lp(void __iomem *ioaddr, struct rgmii_adv *adv) in dwmac1000_get_adv_lp() argument 423 dwmac_get_adv_lp(ioaddr, GMAC_PCS_BASE, adv); in dwmac1000_get_adv_lp()
|
/drivers/net/ethernet/atheros/alx/ |
D | hw.c | 724 u16 adv, giga, cr; in alx_setup_speed_duplex() local 733 adv = ADVERTISE_CSMA; in alx_setup_speed_duplex() 734 adv |= ethtool_adv_to_mii_adv_t(ethadv); in alx_setup_speed_duplex() 738 adv |= ADVERTISED_Pause; in alx_setup_speed_duplex() 740 adv |= ADVERTISED_Asym_Pause; in alx_setup_speed_duplex() 742 adv |= ADVERTISED_Asym_Pause; in alx_setup_speed_duplex() 751 if (alx_write_phy_reg(hw, MII_ADVERTISE, adv) || in alx_setup_speed_duplex()
|
/drivers/bluetooth/ |
D | btmtkuart.c | 478 int sz_left = count, sz_h4, adv; in btmtkuart_recv() local 501 adv = p_h4 - p_left; in btmtkuart_recv() 502 sz_left -= adv; in btmtkuart_recv() 503 p_left += adv; in btmtkuart_recv()
|
/drivers/net/ethernet/marvell/ |
D | skge.c | 1350 u16 adv = PHY_B_1000C_RD; in bcom_phy_init() local 1352 adv |= PHY_B_1000C_AHD; in bcom_phy_init() 1354 adv |= PHY_B_1000C_AFD; in bcom_phy_init() 1355 xm_phy_write(hw, port, PHY_BCOM_1000T_CTRL, adv); in bcom_phy_init() 1947 u16 ctrl, ct1000, adv; in yukon_init() local 1970 adv = PHY_AN_CSMA; in yukon_init() 1979 adv |= PHY_M_AN_100_FD; in yukon_init() 1981 adv |= PHY_M_AN_100_HD; in yukon_init() 1983 adv |= PHY_M_AN_10_FD; in yukon_init() 1985 adv |= PHY_M_AN_10_HD; in yukon_init() [all …]
|
/drivers/net/ethernet/broadcom/ |
D | b44.c | 458 u32 adv = ADVERTISE_CSMA; in b44_setup_phy() local 461 adv |= ADVERTISE_10HALF; in b44_setup_phy() 463 adv |= ADVERTISE_10FULL; in b44_setup_phy() 465 adv |= ADVERTISE_100HALF; in b44_setup_phy() 467 adv |= ADVERTISE_100FULL; in b44_setup_phy() 470 adv |= ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM; in b44_setup_phy() 472 if ((err = b44_writephy(bp, MII_ADVERTISE, adv)) != 0) in b44_setup_phy()
|