/linux-master/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_mac.c | 121 u8 *auto_neg, u16 *speed, u8 *duplex) 136 if (duplex) 137 *duplex = info.duplex; 143 *hns_mac_need_adjust_link - check is need change mac speed and duplex register 146 *@duplex:phy device duplex 149 bool hns_mac_need_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex) argument 157 (enum mac_speed)speed, duplex); 162 void hns_mac_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex) argument 120 hns_mac_get_port_info(struct hns_mac_cb *mac_cb, u8 *auto_neg, u16 *speed, u8 *duplex) argument [all...] |
H A D | hns_ae_adapt.c | 424 u8 *auto_neg, u16 *speed, u8 *duplex) 428 return hns_mac_get_port_info(mac_cb, auto_neg, speed, duplex); 432 int duplex) 436 return hns_mac_need_adjust_link(mac_cb, speed, duplex); 440 int duplex) 446 hns_mac_adjust_link(mac_cb, speed, duplex); 457 hns_mac_adjust_link(mac_cb, speed, duplex); 423 hns_ae_get_mac_info(struct hnae_handle *handle, u8 *auto_neg, u16 *speed, u8 *duplex) argument 431 hns_ae_need_adjust_link(struct hnae_handle *handle, int speed, int duplex) argument 439 hns_ae_adjust_link(struct hnae_handle *handle, int speed, int duplex) argument
|
/linux-master/drivers/net/ethernet/intel/e1000e/ |
H A D | 80003es2lan.c | 27 static s32 e1000_cfg_kmrn_10_100_80003es2lan(struct e1000_hw *hw, u16 duplex); 514 * e1000_phy_force_speed_duplex_80003es2lan - Force PHY speed and duplex 517 * Force the speed and duplex settings onto the PHY. This is a 527 * forced whenever speed and duplex are forced. 556 e_dbg("Waiting for forced speed/duplex link on GG82563 phy.\n"); 593 * duplex. 632 * e1000_get_link_up_info_80003es2lan - Report speed and duplex 635 * @duplex: pointer to duplex buffer 637 * Retrieve the current speed and duplex configuratio 639 e1000_get_link_up_info_80003es2lan(struct e1000_hw *hw, u16 *speed, u16 *duplex) argument 1083 u16 duplex; local 1108 e1000_cfg_kmrn_10_100_80003es2lan(struct e1000_hw *hw, u16 duplex) argument [all...] |
H A D | mac.c | 392 * to get the current speed/duplex if link exists. 410 * link. If so, then we want to get the current speed/duplex 422 /* If we are forcing speed/duplex, then we simply return since 429 * of MAC speed/duplex configuration. So we only need to 488 /* Force link-up and also force full-duplex. */ 551 /* Force link-up and also force full-duplex. */ 994 * speed and duplex were not forced. If the link needed to be forced, then 1005 u16 speed, duplex; local 1148 ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex); 1150 e_dbg("Error getting link speed and duplex\ 1303 e1000e_get_speed_and_duplex_copper(struct e1000_hw *hw, u16 *speed, u16 *duplex) argument 1337 e1000e_get_speed_and_duplex_fiber_serdes(struct e1000_hw __always_unused *hw, u16 *speed, u16 *duplex) argument [all...] |
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz8.h | 61 struct phy_device *phydev, int speed, int duplex,
|
/linux-master/drivers/net/phy/ |
H A D | marvell-88x2222.c | 338 phydev->duplex = DUPLEX_FULL; 396 phydev->duplex = DUPLEX_FULL; 398 phydev->duplex = DUPLEX_HALF; 433 phydev->duplex = DUPLEX_UNKNOWN;
|
/linux-master/drivers/net/ethernet/alacritech/ |
H A D | slicoss.c | 229 if (sdev->duplex == DUPLEX_FULL) 245 if (sdev->duplex == DUPLEX_FULL) 267 if (sdev->duplex == DUPLEX_FULL) 274 unsigned int duplex) 278 if (sdev->speed == speed && sdev->duplex == duplex) 282 sdev->duplex = duplex; 300 unsigned int duplex) 303 slic_configure_link_locked(sdev, speed, duplex); 273 slic_configure_link_locked(struct slic_device *sdev, int speed, unsigned int duplex) argument 299 slic_configure_link(struct slic_device *sdev, int speed, unsigned int duplex) argument 629 unsigned int duplex; local [all...] |
/linux-master/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_hw.c | 662 * Detects the current speed and duplex settings of the hardware. 666 * duplex - Duplex setting of the connection 668 int atl1c_get_speed_and_duplex(struct atl1c_hw *hw, u16 *speed, u16 *duplex) argument 678 *duplex = FULL_DUPLEX; 705 *duplex = FULL_DUPLEX; 707 *duplex = HALF_DUPLEX; 722 u16 duplex = FULL_DUPLEX; local 750 &duplex) != 0) 752 "get speed and duplex failed\n"); 759 duplex [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb/ |
H A D | common.h | 201 unsigned char requested_duplex; /* duplex user has requested */ 202 unsigned char duplex; /* actual link duplex */ member in struct:link_config 342 int speed, int duplex, int pause);
|
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch-ethtool.c | 92 link_ksettings->base.duplex = DUPLEX_FULL; 137 if (link_ksettings->base.duplex == DUPLEX_HALF)
|
/linux-master/arch/arm/mach-mv78xx0/ |
H A D | common.c | 239 eth_data->duplex = DUPLEX_FULL; 261 eth_data->duplex = DUPLEX_FULL;
|
/linux-master/drivers/net/ethernet/allwinner/ |
H A D | sun4i-emac.c | 87 unsigned int duplex; member in struct:emac_board_info 120 /* set duplex depend on phy */ 123 if (db->duplex) 144 if (db->duplex != phydev->duplex) { 146 db->duplex = phydev->duplex; 156 db->duplex = -1; 188 db->duplex = -1;
|
/linux-master/drivers/net/ethernet/hisilicon/ |
H A D | hip04_eth.c | 219 unsigned int duplex; member in struct:hip04_priv 256 static void hip04_config_port(struct net_device *ndev, u32 speed, u32 duplex) argument 262 priv->duplex = duplex; 286 val = duplex ? GE_DUPLEX_FULL : GE_DUPLEX_HALF; 717 if ((priv->speed != phy->speed) || (priv->duplex != phy->duplex)) { 718 hip04_config_port(ndev, phy->speed, phy->duplex);
|
H A D | hix5hd2_gmac.c | 263 unsigned int duplex; member in struct:hix5hd2_priv 285 static void hix5hd2_config_port(struct net_device *dev, u32 speed, u32 duplex) argument 291 priv->duplex = duplex; 314 if (duplex) 328 writel_relaxed(duplex, priv->base + MAC_DUPLEX_HALF_CTRL); 459 if ((priv->speed != phy->speed) || (priv->duplex != phy->duplex)) { 460 hix5hd2_config_port(dev, phy->speed, phy->duplex);
|
/linux-master/drivers/net/ethernet/ |
H A D | dnet.c | 185 if (bp->duplex != phydev->duplex) { 186 if (phydev->duplex) 193 bp->duplex = phydev->duplex; 227 bp->duplex = -1; 245 DUPLEX_FULL == phydev->duplex ? "Full" : "Half"); 292 bp->duplex = -1;
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.h | 148 u8 duplex; member in struct:hclgevf_mac 293 u8 duplex);
|
/linux-master/drivers/net/pcs/ |
H A D | pcs-mtk-lynxi.c | 213 int duplex) 219 /* Force the speed and duplex setting */ 227 if (duplex != DUPLEX_FULL) 210 mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) argument
|
/linux-master/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | common.h | 431 unsigned char requested_duplex; /* duplex user has requested */ 432 unsigned char duplex; /* actual link duplex */ member in struct:link_config 530 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex); 532 int *duplex, int *fc); 659 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex); 714 int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc);
|
/linux-master/drivers/net/ethernet/smsc/ |
H A D | smc91c92_cs.c | 114 int duplex; member in struct:smc_private 154 #define TCR_FDUPLX 0x0800 /* Full duplex mode. */ 873 smc->duplex = 0; 1297 outw(inw(ioaddr + TCR) | TCR_ENABLE | smc->duplex, ioaddr + TCR); 1332 outw(inw(ioaddr + TCR) | TCR_ENABLE | smc->duplex, ioaddr + TCR); 1418 if (smc->duplex) 1685 TCR_ENABLE | TCR_PAD_EN | smc->duplex, ioaddr + TCR); 1783 smc->duplex = (((p & 0x0100) || ((p & 0x1c0) == 0x40)) 1788 (p & 0x0180) ? 100 : 10, smc->duplex ? 'F' : 'H'); 1791 outw(inw(ioaddr + TCR) | smc->duplex, ioadd [all...] |
/linux-master/drivers/net/ethernet/toshiba/ |
H A D | tc35815.c | 79 int duplex; member in struct:tc35815_options 408 int duplex; member in struct:tc35815_local 547 (lp->speed != phydev->speed || lp->duplex != phydev->duplex)) { 555 if (phydev->duplex == DUPLEX_FULL) 568 * WORKAROUND: enable LostCrS only if half duplex 572 if (phydev->duplex == DUPLEX_HALF && 578 lp->duplex = phydev->duplex; 589 lp->duplex [all...] |
/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | core.c | 163 * We should allow up to 1 frame time (full-duplex, ignoring collisions) 594 DBG(dev, " link = %d duplex = %d, pause = %d, asym_pause = %d\n", 595 link, dev->phy.duplex, dev->phy.pause, dev->phy.asym_pause); 605 /* Check for full duplex */ 606 else if (dev->phy.duplex == DUPLEX_FULL) 656 dev->phy.duplex == DUPLEX_FULL) { 1220 dev->phy.duplex == DUPLEX_FULL ? "FDX" : "HDX", 1307 int duplex = r & EMAC_MR1_FDE ? DUPLEX_FULL : DUPLEX_HALF; 1329 return speed != dev->phy.speed || duplex != dev->phy.duplex || [all...] |
/linux-master/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-ethtool.c | 319 cmd->base.duplex = pdata->phy.duplex; 322 cmd->base.duplex = DUPLEX_UNKNOWN; 365 if (cmd->base.duplex != DUPLEX_FULL) { 366 netdev_err(netdev, "unsupported duplex %hhu\n", 367 cmd->base.duplex); 390 pdata->phy.duplex = cmd->base.duplex;
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_port.c | 52 status->duplex = DUPLEX_FULL; 54 status->duplex = DUPLEX_HALF; 61 status->duplex = (ADVERTISE_1000XFULL & lp_abil) ? 102 status->duplex = DUPLEX_FULL; 147 status->duplex = DUPLEX_FULL; 647 spx5_rmw(DSM_MAC_CFG_HDX_BACKPREASSURE_SET(conf->duplex == DUPLEX_HALF), 866 /* Configure speed/duplex dependent registers */ 872 bool fdx = conf->duplex == DUPLEX_FULL;
|
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_main.c | 148 cfg->duplex, cfg->fec); 267 int speed, int duplex, 296 state->duplex = smac.duplex; 327 cfg_mac.duplex = DUPLEX_FULL; 336 cfg_mac.duplex = DUPLEX_FULL; 696 cfg_mac.duplex = DUPLEX_UNKNOWN; 816 smac.duplex = pevt->data.mac.duplex; 264 prestera_mac_link_up(struct phylink_config *config, struct phy_device *phy, unsigned int mode, phy_interface_t interface, int speed, int duplex, bool tx_pause, bool rx_pause) argument
|
/linux-master/drivers/net/ethernet/nxp/ |
H A D | lpc_eth.c | 415 int duplex; member in struct:netdata_local 457 if (pldat->duplex == DUPLEX_FULL) { 728 (pldat->duplex != phydev->duplex)) { 730 pldat->duplex = phydev->duplex; 738 pldat->duplex = -1; 783 pldat->duplex = -1; 1373 pldat->duplex = DUPLEX_FULL;
|