/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 25 u8 duplex; member 32 .duplex = PRESTERA_PORT_DUPLEX_HALF, 39 .duplex = PRESTERA_PORT_DUPLEX_FULL, 46 .duplex = PRESTERA_PORT_DUPLEX_HALF, 474 u8 duplex; in prestera_port_link_mode_get() local 482 &duplex, NULL); in prestera_port_link_mode_get() 488 state->duplex = duplex == PRESTERA_PORT_DUPLEX_FULL ? in prestera_port_link_mode_get() 494 ecmd->base.duplex = port->state_mac.duplex; in prestera_port_link_mode_get() 600 duplex != port_link_modes[mode].duplex) in prestera_port_link_mode_set() 635 u8 duplex = DUPLEX_UNKNOWN; in prestera_port_speed_duplex_set() local [all …]
|
/linux-6.3-rc2/sound/core/seq/ |
A D | seq_dummy.c | 54 static bool duplex; variable 58 module_param(duplex, bool, 0444); 59 MODULE_PARM_DESC(duplex, "create DUPLEX ports"); 64 int duplex; member 85 if (p->duplex) in dummy_input() 117 rec->duplex = duplex; in create_port() 121 if (duplex) in create_port() 128 if (duplex) in create_port() 174 if (duplex) { in register_client()
|
/linux-6.3-rc2/Documentation/networking/device_drivers/ethernet/3com/ |
A D | 3c509.rst | 29 - 3c509B (later revision of the ISA card; supports full-duplex) 31 - 3c589B (later revision of the 3c589; supports full-duplex) 62 Full-duplex mode 78 AUI and 10base2 network cabling is physically incapable of full-duplex 83 duplex-capable Ethernet switch (*not* a hub), or a full-duplex-capable NIC on 86 Full-duplex mode can be enabled using 'ethtool'. 90 Extremely important caution concerning full-duplex mode 117 4 10baseT (RJ-45 connector); force half-duplex mode 119 12 10baseT (RJ-45 connector); force full-duplex mode 231 host is incorrectly set to full duplex on a half duplex network. [all …]
|
/linux-6.3-rc2/drivers/net/ |
A D | mii.c | 129 mii->full_duplex = ecmd->duplex; in mii_ethtool_gset() 216 mii->full_duplex = cmd->base.duplex; in mii_ethtool_get_link_ksettings() 244 if (ecmd->duplex != DUPLEX_HALF && ecmd->duplex != DUPLEX_FULL) in mii_ethtool_sset() 307 if (ecmd->duplex == DUPLEX_FULL) { in mii_ethtool_sset() 337 if (cmd->base.duplex != DUPLEX_HALF && cmd->base.duplex != DUPLEX_FULL) in mii_ethtool_set_link_ksettings() 404 if (cmd->base.duplex == DUPLEX_FULL) { in mii_ethtool_set_link_ksettings() 507 int advertise, lpa, media, duplex; in mii_check_media() local 552 duplex = (media & ADVERTISE_FULL) ? 1 : 0; in mii_check_media() 554 duplex = 1; in mii_check_media() 561 duplex ? "full" : "half", in mii_check_media() [all …]
|
A D | sungem_phy.c | 316 phy->duplex = DUPLEX_HALF; in genmii_setup_aneg() 347 phy->duplex = fd; in genmii_setup_forced() 395 phy->duplex = DUPLEX_FULL; in genmii_read_link() 397 phy->duplex = DUPLEX_HALF; in genmii_read_link() 472 phy->duplex = DUPLEX_HALF; in bcm54xx_setup_aneg() 516 phy->duplex = fd; in bcm54xx_setup_forced() 748 phy->duplex = DUPLEX_HALF; in marvell_setup_aneg() 799 phy->duplex = fd; in marvell_setup_forced() 858 phy->duplex = DUPLEX_FULL; in marvell_read_link() 860 phy->duplex = DUPLEX_HALF; in marvell_read_link() [all …]
|
A D | mdio.c | 295 ecmd->duplex = DUPLEX_FULL; in mdio45_ethtool_gset_npage() 300 ecmd->duplex = !(modes & ADVERTISED_1000baseT_Half); in mdio45_ethtool_gset_npage() 304 ecmd->duplex = !!(modes & ADVERTISED_100baseT_Full); in mdio45_ethtool_gset_npage() 307 ecmd->duplex = !!(modes & ADVERTISED_10baseT_Full); in mdio45_ethtool_gset_npage() 315 ecmd->duplex = (reg & MDIO_CTRL1_FULLDPLX || in mdio45_ethtool_gset_npage() 467 cmd->base.duplex = DUPLEX_FULL; in mdio45_ethtool_ksettings_get_npage() 472 cmd->base.duplex = !(modes & ADVERTISED_1000baseT_Half); in mdio45_ethtool_ksettings_get_npage() 476 cmd->base.duplex = !!(modes & ADVERTISED_100baseT_Full); in mdio45_ethtool_ksettings_get_npage() 479 cmd->base.duplex = !!(modes & ADVERTISED_10baseT_Full); in mdio45_ethtool_ksettings_get_npage() 487 cmd->base.duplex = (reg & MDIO_CTRL1_FULLDPLX || in mdio45_ethtool_ksettings_get_npage()
|
/linux-6.3-rc2/drivers/net/phy/ |
A D | swphy.c | 56 static const struct swmii_regs duplex[] = { variable 130 duplex_index = state->duplex ? SWMII_DUPLEX_FULL : SWMII_DUPLEX_HALF; in swphy_read_reg() 132 bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; in swphy_read_reg() 133 estat |= speed[speed_index].estat & duplex[duplex_index].estat; in swphy_read_reg() 138 lpa |= speed[speed_index].lpa & duplex[duplex_index].lpa; in swphy_read_reg() 139 lpagb |= speed[speed_index].lpagb & duplex[duplex_index].lpagb; in swphy_read_reg()
|
A D | phylink.c | 384 unsigned int duplex; member 422 duplex == phylink_caps_params[i].duplex) in phylink_cap_from_speed_duplex() 1149 state->duplex = pl->link_config.duplex; in phylink_mac_pcs_get_state() 1226 int speed, duplex; in phylink_link_up() local 1230 duplex = link_state.duplex; in phylink_link_up() 1598 pl->phy_state.duplex = phydev->duplex; in phylink_phy_change() 2137 kset->base.duplex = state->duplex; in phylink_get_ksettings() 2255 s->duplex != pl->link_config.duplex) in phylink_ethtool_ksettings_set() 2261 config.duplex = s->duplex; in phylink_ethtool_ksettings_set() 2328 pl->link_config.duplex = config.duplex; in phylink_ethtool_ksettings_set() [all …]
|
A D | phy.c | 109 phy_duplex_to_str(phydev->duplex), in phy_print_status() 263 setting = phy_find_valid(phydev->speed, phydev->duplex, in phy_sanitize_settings() 267 phydev->duplex = setting->duplex; in phy_sanitize_settings() 271 phydev->duplex = DUPLEX_UNKNOWN; in phy_sanitize_settings() 284 cmd->base.duplex = phydev->duplex; in phy_ethtool_ksettings_get() 354 phydev->duplex = DUPLEX_FULL; in phy_mii_ioctl() 356 phydev->duplex = DUPLEX_HALF; in phy_mii_ioctl() 1001 u8 duplex = cmd->base.duplex; in phy_ethtool_ksettings_set() local 1023 (duplex != DUPLEX_HALF && in phy_ethtool_ksettings_set() 1024 duplex != DUPLEX_FULL))) in phy_ethtool_ksettings_set() [all …]
|
A D | phy-core.c | 67 const char *phy_duplex_to_str(unsigned int duplex) in phy_duplex_to_str() argument 69 if (duplex == DUPLEX_HALF) in phy_duplex_to_str() 71 if (duplex == DUPLEX_FULL) in phy_duplex_to_str() 73 if (duplex == DUPLEX_UNKNOWN) in phy_duplex_to_str() 158 #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \ 287 phy_lookup_setting(int speed, int duplex, const unsigned long *mask, bool exact) in phy_lookup_setting() argument 296 if (p->speed == speed && p->duplex == duplex) { in phy_lookup_setting() 423 if (phydev->duplex == DUPLEX_FULL) { in phy_resolve_aneg_pause() 451 phydev->duplex = settings[i].duplex; in phy_resolve_aneg_linkmode() 506 if (fdx_only && settings[i].duplex != DUPLEX_FULL) in phy_resolve_min_speed()
|
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/ |
A D | altr_tse_pcs.c | 129 u16 duplex = 0; in auto_nego_timer_callback() local 140 duplex = val & TSE_PCS_PARTNER_DUPLEX_MASK; in auto_nego_timer_callback() 143 duplex == TSE_PCS_PARTNER_DUPLEX_FULL) in auto_nego_timer_callback() 147 duplex == TSE_PCS_PARTNER_DUPLEX_FULL) in auto_nego_timer_callback() 151 duplex == TSE_PCS_PARTNER_DUPLEX_FULL) in auto_nego_timer_callback() 155 duplex == TSE_PCS_PARTNER_DUPLEX_HALF) in auto_nego_timer_callback() 159 duplex == TSE_PCS_PARTNER_DUPLEX_HALF) in auto_nego_timer_callback() 163 duplex == TSE_PCS_PARTNER_DUPLEX_HALF) in auto_nego_timer_callback() 170 if (duplex == TSE_PCS_PARTNER_DUPLEX_FULL && in auto_nego_timer_callback()
|
/linux-6.3-rc2/drivers/net/pcs/ |
A D | pcs-lynx.c | 87 state->duplex = DUPLEX_FULL; in lynx_pcs_get_state_2500basex() 118 phy_duplex_to_str(state->duplex), in lynx_pcs_get_state() 214 int speed, int duplex) in lynx_pcs_link_up_sgmii() argument 224 if (duplex == DUPLEX_HALF) in lynx_pcs_link_up_sgmii() 269 int speed, int duplex) in lynx_pcs_link_up_2500basex() argument 278 if (duplex == DUPLEX_HALF) in lynx_pcs_link_up_2500basex() 289 int speed, int duplex) in lynx_pcs_link_up() argument 296 lynx_pcs_link_up_sgmii(lynx->mdio, mode, speed, duplex); in lynx_pcs_link_up() 299 lynx_pcs_link_up_2500basex(lynx->mdio, mode, speed, duplex); in lynx_pcs_link_up()
|
/linux-6.3-rc2/Documentation/networking/device_drivers/ethernet/ti/ |
A D | tlan.rst | 81 3. You can set duplex=1 to force half duplex, and duplex=2 to 82 force full duplex. 89 5. You have to use speed=X duplex=Y together now. If you just 92 duplex=1". 107 0x02 use half duplex 108 0x04 use full duplex 113 You also need to set both speed and duplex settings when forcing 121 insmod tlan speed=0,100 duplex=0,1 133 3. Try forcing different speed/duplex settings
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_phylink.c | 49 int speed, int duplex, in sparx5_phylink_mac_link_up() argument 57 conf.duplex = duplex; in sparx5_phylink_mac_link_up() 90 state->duplex = status.duplex; in sparx5_pcs_get_state()
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb3/ |
A 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-6.3-rc2/drivers/net/ethernet/ibm/emac/ |
A D | phy.c | 116 phy->duplex = DUPLEX_HALF; in genmii_setup_aneg() 175 phy->duplex = fd; in genmii_setup_forced() 240 phy->duplex = DUPLEX_HALF; in genmii_read_link() 246 phy->duplex = DUPLEX_FULL; in genmii_read_link() 250 phy->duplex = DUPLEX_FULL; in genmii_read_link() 252 phy->duplex = DUPLEX_FULL; in genmii_read_link() 254 if (phy->duplex == DUPLEX_FULL) { in genmii_read_link() 264 phy->duplex = DUPLEX_FULL; in genmii_read_link() 266 phy->duplex = DUPLEX_HALF; in genmii_read_link() 520 phy->duplex = DUPLEX_HALF; in emac_mii_phy_probe()
|
/linux-6.3-rc2/net/ethtool/ |
A D | common.h | 12 #define ETHTOOL_LINK_MODE(speed, type, duplex) \ argument 13 ETHTOOL_LINK_MODE_ ## speed ## base ## type ## _ ## duplex ## _BIT 20 u8 duplex; member
|
A D | common.c | 103 #define __LINK_MODE_NAME(speed, type, duplex) \ argument 104 #speed "base" #type "/" #duplex 105 #define __DEFINE_LINK_MODE_NAME(speed, type, duplex) \ argument 106 [ETHTOOL_LINK_MODE(speed, type, duplex)] = \ 107 __LINK_MODE_NAME(speed, type, duplex) 259 .duplex = __DUPLEX_ ## _duplex \ 267 .duplex = DUPLEX_UNKNOWN, \ 294 .duplex = DUPLEX_FULL, 499 link_ksettings->base.duplex in convert_legacy_settings_to_link_ksettings() 500 = legacy_settings->duplex; in convert_legacy_settings_to_link_ksettings() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/ibm/ehea/ |
A D | ehea_ethtool.c | 51 cmd->base.duplex = port->full_duplex == 1 ? in ehea_get_link_ksettings() 55 cmd->base.duplex = DUPLEX_UNKNOWN; in ehea_get_link_ksettings() 98 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings() 105 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_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()
|
/linux-6.3-rc2/drivers/net/ethernet/atheros/alx/ |
A 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-6.3-rc2/Documentation/devicetree/bindings/phy/ |
A D | mscc,vsc7514-serdes.yaml | 23 half/full-duplex and 1000Mbps in full-duplex mode while SERDES6G supports 24 10/100Mbps in half/full-duplex and 1000/2500Mbps in full-duplex mode.
|
/linux-6.3-rc2/drivers/net/dsa/mv88e6xxx/ |
A D | port.h | 348 int speed, int duplex); 350 int speed, int duplex); 352 int speed, int duplex); 354 int speed, int duplex); 356 int speed, int duplex); 358 int speed, int duplex); 360 int speed, int duplex);
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | vf610-zii-dev-rev-b.dts | 72 full-duplex; 83 full-duplex; 156 full-duplex; 167 full-duplex; 236 full-duplex; 248 full-duplex; 263 full-duplex;
|
A D | bcm958625-meraki-alamo.dtsi | 124 full-duplex; 202 full-duplex; 262 full-duplex; 271 full-duplex; 280 full-duplex;
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb/ |
A 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()
|