/Linux-v4.19/drivers/net/phy/ |
D | phy-core.c | 49 const char *phy_duplex_to_str(unsigned int duplex) in phy_duplex_to_str() argument 51 if (duplex == DUPLEX_HALF) in phy_duplex_to_str() 53 if (duplex == DUPLEX_FULL) in phy_duplex_to_str() 55 if (duplex == DUPLEX_UNKNOWN) in phy_duplex_to_str() 67 .duplex = DUPLEX_FULL, 72 .duplex = DUPLEX_FULL, 77 .duplex = DUPLEX_FULL, 82 .duplex = DUPLEX_FULL, 87 .duplex = DUPLEX_FULL, 92 .duplex = DUPLEX_FULL, [all …]
|
D | swphy.c | 62 static const struct swmii_regs duplex[] = { variable 136 duplex_index = state->duplex ? SWMII_DUPLEX_FULL : SWMII_DUPLEX_HALF; in swphy_read_reg() 138 bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; in swphy_read_reg() 143 bmcr |= speed[speed_index].bmcr & duplex[duplex_index].bmcr; in swphy_read_reg() 144 lpa |= speed[speed_index].lpa & duplex[duplex_index].lpa; in swphy_read_reg() 145 lpagb |= speed[speed_index].lpagb & duplex[duplex_index].lpagb; in swphy_read_reg()
|
D | phy.c | 76 phy_duplex_to_str(phydev->duplex), in phy_print_status() 174 phy_find_valid(int speed, int duplex, u32 supported) in phy_find_valid() argument 178 return phy_lookup_setting(speed, duplex, &mask, BITS_PER_LONG, false); in phy_find_valid() 209 static inline bool phy_check_valid(int speed, int duplex, u32 features) in phy_check_valid() argument 213 return !!phy_lookup_setting(speed, duplex, &mask, BITS_PER_LONG, true); in phy_check_valid() 233 setting = phy_find_valid(phydev->speed, phydev->duplex, features); in phy_sanitize_settings() 236 phydev->duplex = setting->duplex; in phy_sanitize_settings() 240 phydev->duplex = DUPLEX_UNKNOWN; in phy_sanitize_settings() 278 (cmd->duplex != DUPLEX_HALF && in phy_ethtool_sset() 279 cmd->duplex != DUPLEX_FULL))) in phy_ethtool_sset() [all …]
|
D | lxt.c | 185 phydev->duplex = DUPLEX_HALF; in lxt973a2_read_status() 192 phydev->duplex = DUPLEX_FULL; in lxt973a2_read_status() 195 phydev->duplex = DUPLEX_FULL; in lxt973a2_read_status() 198 if (phydev->duplex == DUPLEX_FULL) { in lxt973a2_read_status() 209 phydev->duplex = DUPLEX_FULL; in lxt973a2_read_status() 211 phydev->duplex = DUPLEX_HALF; in lxt973a2_read_status()
|
D | phylink.c | 163 pl->link_config.duplex = DUPLEX_HALF; in phylink_parse_fixedlink() 166 pl->link_config.duplex = DUPLEX_FULL; in phylink_parse_fixedlink() 201 pl->link_config.duplex = prop[1] ? in phylink_parse_fixedlink() 212 pl->link_config.duplex != DUPLEX_FULL) in phylink_parse_fixedlink() 220 s = phy_lookup_setting(pl->link_config.speed, pl->link_config.duplex, in phylink_parse_fixedlink() 229 pl->link_config.duplex == DUPLEX_FULL ? "full" : "half", in phylink_parse_fixedlink() 329 phy_duplex_to_str(state->duplex), in phylink_mac_config() 488 phy_duplex_to_str(link_state.duplex), in phylink_resolve() 582 pl->link_config.duplex = DUPLEX_UNKNOWN; in phylink_create() 642 pl->phy_state.duplex = phydev->duplex; in phylink_phy_change() [all …]
|
D | uPD60620.c | 62 phydev->duplex = DUPLEX_HALF; in upd60620_read_status() 67 phydev->duplex = DUPLEX_FULL; in upd60620_read_status() 76 if (phydev->duplex == DUPLEX_FULL) { in upd60620_read_status()
|
/Linux-v4.19/sound/core/seq/ |
D | seq_dummy.c | 68 static bool duplex; variable 72 module_param(duplex, bool, 0444); 73 MODULE_PARM_DESC(duplex, "create DUPLEX ports"); 78 int duplex; member 99 if (p->duplex) in dummy_input() 130 rec->duplex = duplex; in create_port() 134 if (duplex) in create_port() 141 if (duplex) in create_port() 187 if (duplex) { in register_client()
|
/Linux-v4.19/Documentation/networking/ |
D | 3c509.txt | 25 3c509B (later revision of the ISA card; supports full-duplex) 27 3c589B (later revision of the 3c589; supports full-duplex) 42 needed except to enable full-duplex mode (see below). An example of the syntax 57 (2) Full-duplex mode 59 The v1.18c driver added support for the 3c509B's full-duplex capabilities. 60 In order to enable and successfully use full-duplex mode, three conditions 64 duplex operations. Currently, the only members of the 3c509 family that are 65 positively known to support full-duplex are the 3c509B (ISA bus) and 3c589B 67 full-duplex mode; these include the original 3c509 (no "B"), the original 72 AUI and 10base2 network cabling is physically incapable of full-duplex [all …]
|
D | tlan.txt | 63 3. You can set duplex=1 to force half duplex, and duplex=2 to 64 force full duplex. 71 5. You have to use speed=X duplex=Y together now. If you just 74 duplex=1". 88 0x02 = use half duplex 89 0x04 = use full duplex 93 You also need to set both speed and duplex settings when forcing 101 insmod tlan speed=0,100 duplex=0,1 111 3. Try forcing different speed/duplex settings
|
D | dl2k.txt | 188 10mbps_hd 10Mbps half duplex. 189 10mbps_fd 10Mbps full duplex. 190 100mbps_hd 100Mbps half duplex. 191 100mbps_fd 100Mbps full duplex. 192 1000mbps_fd 1000Mbps full duplex. 193 1000mbps_hd 1000Mbps half duplex. 195 1 10Mbps half duplex. 196 2 10Mbps full duplex. 197 3 100Mbps half duplex. 198 4 100Mbps full duplex. [all …]
|
/Linux-v4.19/drivers/net/ |
D | mii.c | 109 ecmd->duplex = !!(nego & ADVERTISED_1000baseT_Full); in mii_ethtool_gset() 113 ecmd->duplex = !!(nego & ADVERTISED_100baseT_Full); in mii_ethtool_gset() 116 ecmd->duplex = !!(nego & ADVERTISED_10baseT_Full); in mii_ethtool_gset() 127 ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in mii_ethtool_gset() 130 mii->full_duplex = ecmd->duplex; in mii_ethtool_gset() 195 cmd->base.duplex = !!(nego & ADVERTISED_1000baseT_Full); in mii_ethtool_get_link_ksettings() 199 cmd->base.duplex = !!(nego & ADVERTISED_100baseT_Full); in mii_ethtool_get_link_ksettings() 202 cmd->base.duplex = !!(nego & ADVERTISED_10baseT_Full); in mii_ethtool_get_link_ksettings() 212 cmd->base.duplex = (bmcr & BMCR_FULLDPLX) ? in mii_ethtool_get_link_ksettings() 218 mii->full_duplex = cmd->base.duplex; in mii_ethtool_get_link_ksettings() [all …]
|
D | sungem_phy.c | 319 phy->duplex = DUPLEX_HALF; in genmii_setup_aneg() 350 phy->duplex = fd; in genmii_setup_forced() 398 phy->duplex = DUPLEX_FULL; in genmii_read_link() 400 phy->duplex = DUPLEX_HALF; in genmii_read_link() 474 phy->duplex = DUPLEX_HALF; in bcm54xx_setup_aneg() 518 phy->duplex = fd; in bcm54xx_setup_forced() 556 phy->duplex = phy_BCM5400_link_table[link_mode][0] ? in bcm54xx_read_link() 563 phy->pause = (phy->duplex == DUPLEX_FULL) && in bcm54xx_read_link() 642 phy->duplex |= DUPLEX_HALF; in bcm5421_read_link() 644 phy->duplex |= DUPLEX_FULL; in bcm5421_read_link() [all …]
|
D | mdio.c | 298 ecmd->duplex = DUPLEX_FULL; in mdio45_ethtool_gset_npage() 303 ecmd->duplex = !(modes & ADVERTISED_1000baseT_Half); in mdio45_ethtool_gset_npage() 307 ecmd->duplex = !!(modes & ADVERTISED_100baseT_Full); in mdio45_ethtool_gset_npage() 310 ecmd->duplex = !!(modes & ADVERTISED_10baseT_Full); in mdio45_ethtool_gset_npage() 318 ecmd->duplex = (reg & MDIO_CTRL1_FULLDPLX || in mdio45_ethtool_gset_npage() 470 cmd->base.duplex = DUPLEX_FULL; in mdio45_ethtool_ksettings_get_npage() 475 cmd->base.duplex = !(modes & ADVERTISED_1000baseT_Half); in mdio45_ethtool_ksettings_get_npage() 479 cmd->base.duplex = !!(modes & ADVERTISED_100baseT_Full); in mdio45_ethtool_ksettings_get_npage() 482 cmd->base.duplex = !!(modes & ADVERTISED_10baseT_Full); in mdio45_ethtool_ksettings_get_npage() 490 cmd->base.duplex = (reg & MDIO_CTRL1_FULLDPLX || in mdio45_ethtool_ksettings_get_npage()
|
/Linux-v4.19/Documentation/devicetree/bindings/net/ |
D | fixed-link.txt | 14 * 'full-duplex' (boolean, optional), to indicate that full duplex is 15 used. When absent, half duplex is assumed. 29 - b: duplex configuration: 0 for half duplex, 1 for full duplex 41 full-duplex;
|
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/ |
D | altr_tse_pcs.c | 144 u16 duplex = 0; in auto_nego_timer_callback() local 155 duplex = val & TSE_PCS_PARTNER_DUPLEX_MASK; in auto_nego_timer_callback() 158 duplex == TSE_PCS_PARTNER_DUPLEX_FULL) in auto_nego_timer_callback() 162 duplex == TSE_PCS_PARTNER_DUPLEX_FULL) in auto_nego_timer_callback() 166 duplex == TSE_PCS_PARTNER_DUPLEX_FULL) in auto_nego_timer_callback() 170 duplex == TSE_PCS_PARTNER_DUPLEX_HALF) in auto_nego_timer_callback() 174 duplex == TSE_PCS_PARTNER_DUPLEX_HALF) in auto_nego_timer_callback() 178 duplex == TSE_PCS_PARTNER_DUPLEX_HALF) in auto_nego_timer_callback() 185 if (duplex == TSE_PCS_PARTNER_DUPLEX_FULL && in auto_nego_timer_callback()
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/ |
D | vsc8211.c | 131 int *speed, int *duplex, int *fc) in vsc8211_get_link_status() argument 199 if (duplex) in vsc8211_get_link_status() 200 *duplex = dplx; in vsc8211_get_link_status() 207 int *speed, int *duplex, int *fc) in vsc8211_get_link_status_fiber() argument 267 if (duplex) in vsc8211_get_link_status_fiber() 268 *duplex = dplx; in vsc8211_get_link_status_fiber() 305 int vsc8211_set_speed_duplex(struct cphy *phy, int speed, int duplex) in vsc8211_set_speed_duplex() argument 309 err = t3_set_phy_speed_duplex(phy, speed, duplex); in vsc8211_set_speed_duplex()
|
/Linux-v4.19/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 115 phy->duplex = DUPLEX_HALF; in genmii_setup_aneg() 174 phy->duplex = fd; in genmii_setup_forced() 239 phy->duplex = DUPLEX_HALF; in genmii_read_link() 245 phy->duplex = DUPLEX_FULL; in genmii_read_link() 249 phy->duplex = DUPLEX_FULL; in genmii_read_link() 251 phy->duplex = DUPLEX_FULL; in genmii_read_link() 253 if (phy->duplex == DUPLEX_FULL) { in genmii_read_link() 263 phy->duplex = DUPLEX_FULL; in genmii_read_link() 265 phy->duplex = DUPLEX_HALF; in genmii_read_link() 519 phy->duplex = DUPLEX_HALF; in emac_mii_phy_probe()
|
/Linux-v4.19/drivers/net/ethernet/ibm/ehea/ |
D | ehea_ethtool.c | 65 cmd->base.duplex = port->full_duplex == 1 ? in ehea_get_link_ksettings() 69 cmd->base.duplex = DUPLEX_UNKNOWN; in ehea_get_link_ksettings() 112 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings() 119 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings() 126 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings() 133 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings()
|
/Linux-v4.19/drivers/net/ethernet/atheros/alx/ |
D | hw.h | 484 u8 duplex; member 569 static inline u32 alx_speed_to_ethadv(int speed, u8 duplex) in alx_speed_to_ethadv() argument 571 if (speed == SPEED_1000 && duplex == DUPLEX_FULL) in alx_speed_to_ethadv() 573 if (speed == SPEED_100 && duplex == DUPLEX_FULL) in alx_speed_to_ethadv() 575 if (speed == SPEED_100 && duplex== DUPLEX_HALF) in alx_speed_to_ethadv() 577 if (speed == SPEED_10 && duplex == DUPLEX_FULL) in alx_speed_to_ethadv() 579 if (speed == SPEED_10 && duplex == DUPLEX_HALF) in alx_speed_to_ethadv()
|
/Linux-v4.19/Documentation/devicetree/bindings/net/dsa/ |
D | qca8k.txt | 31 - 'full-duplex' (boolean, optional), to indicate that full duplex is 32 used. When absent, half duplex is assumed. 75 full-duplex;
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb/ |
D | mv88e1xxx.c | 125 static int mv88e1xxx_set_speed_duplex(struct cphy *phy, int speed, int duplex) in mv88e1xxx_set_speed_duplex() argument 137 if (duplex >= 0) { in mv88e1xxx_set_speed_duplex() 139 if (duplex == DUPLEX_FULL) in mv88e1xxx_set_speed_duplex() 242 int *speed, int *duplex, int *fc) in mv88e1xxx_get_link_status() argument 267 if (duplex) in mv88e1xxx_get_link_status() 268 *duplex = dplx; in mv88e1xxx_get_link_status()
|
/Linux-v4.19/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_ethtool.c | 55 cmd->base.duplex = DUPLEX_FULL; in atl1c_get_link_ksettings() 57 cmd->base.duplex = DUPLEX_HALF; in atl1c_get_link_ksettings() 60 cmd->base.duplex = DUPLEX_UNKNOWN; in atl1c_get_link_ksettings() 88 if (cmd->base.duplex != DUPLEX_FULL) { in atl1c_set_link_ksettings() 97 if (cmd->base.duplex == DUPLEX_FULL) in atl1c_set_link_ksettings() 102 if (cmd->base.duplex == DUPLEX_FULL) in atl1c_set_link_ksettings()
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | armada-388-clearfog.dts | 85 full-duplex; 110 full-duplex; 194 full-duplex; 204 full-duplex;
|
/Linux-v4.19/drivers/staging/mt7621-eth/ |
D | mdio.c | 38 if (eth->phy->duplex[i] != phydev->duplex || in mtk_phy_link_adjust() 50 eth->phy->duplex[i] = phydev->duplex; in mtk_phy_link_adjust() 114 phy->duplex = 0; in phy_init()
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mdio.c | 181 int duplex, speed; in hclge_mac_adjust_link() local 185 duplex = netdev->phydev->duplex; in hclge_mac_adjust_link() 187 ret = hclge_cfg_mac_speed_dup(hdev, speed, duplex); in hclge_mac_adjust_link()
|