Home
last modified time | relevance | path

Searched refs:duplex (Results 1 – 25 of 567) sorted by relevance

12345678910>>...23

/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_ethtool.c25 u8 duplex; member
32 .duplex = PRESTERA_PORT_DUPLEX_HALF,
39 .duplex = PRESTERA_PORT_DUPLEX_FULL,
46 .duplex = PRESTERA_PORT_DUPLEX_HALF,
53 .duplex = PRESTERA_PORT_DUPLEX_FULL,
60 .duplex = PRESTERA_PORT_DUPLEX_HALF,
67 .duplex = PRESTERA_PORT_DUPLEX_FULL,
74 .duplex = PRESTERA_PORT_DUPLEX_FULL,
81 .duplex = PRESTERA_PORT_DUPLEX_FULL,
88 .duplex = PRESTERA_PORT_DUPLEX_FULL,
[all …]
/kernel/linux/linux-5.10/sound/core/seq/
Dseq_dummy.c54 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()
116 rec->duplex = duplex; in create_port()
120 if (duplex) in create_port()
127 if (duplex) in create_port()
173 if (duplex) { in register_client()
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/3com/
D3c509.rst29 - 3c509B (later revision of the ISA card; supports full-duplex)
31 - 3c589B (later revision of the 3c589; supports full-duplex)
47 needed except to enable full-duplex mode (see below). An example of the syntax
62 Full-duplex mode
65 The v1.18c driver added support for the 3c509B's full-duplex capabilities.
66 In order to enable and successfully use full-duplex mode, three conditions
70 duplex operations. Currently, the only members of the 3c509 family that are
71 positively known to support full-duplex are the 3c509B (ISA bus) and 3c589B
73 full-duplex mode; these include the original 3c509 (no "B"), the original
78 AUI and 10base2 network cabling is physically incapable of full-duplex
[all …]
/kernel/linux/linux-5.10/drivers/net/
Dmii.c109 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 …]
Dsungem_phy.c320 phy->duplex = DUPLEX_HALF; in genmii_setup_aneg()
351 phy->duplex = fd; in genmii_setup_forced()
399 phy->duplex = DUPLEX_FULL; in genmii_read_link()
401 phy->duplex = DUPLEX_HALF; in genmii_read_link()
476 phy->duplex = DUPLEX_HALF; in bcm54xx_setup_aneg()
520 phy->duplex = fd; in bcm54xx_setup_forced()
558 phy->duplex = phy_BCM5400_link_table[link_mode][0] ? in bcm54xx_read_link()
565 phy->pause = (phy->duplex == DUPLEX_FULL) && in bcm54xx_read_link()
644 phy->duplex |= DUPLEX_HALF; in bcm5421_read_link()
646 phy->duplex |= DUPLEX_FULL; in bcm5421_read_link()
[all …]
Dmdio.c295 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()
/kernel/linux/linux-5.10/drivers/net/phy/
Dswphy.c56 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()
Dphy.c107 phy_duplex_to_str(phydev->duplex), in phy_print_status()
207 phy_find_valid(int speed, int duplex, unsigned long *supported) in phy_find_valid() argument
209 return phy_lookup_setting(speed, duplex, supported, false); in phy_find_valid()
238 static inline bool phy_check_valid(int speed, int duplex, in phy_check_valid() argument
241 return !!phy_lookup_setting(speed, duplex, features, true); in phy_check_valid()
256 setting = phy_find_valid(phydev->speed, phydev->duplex, in phy_sanitize_settings()
260 phydev->duplex = setting->duplex; in phy_sanitize_settings()
264 phydev->duplex = DUPLEX_UNKNOWN; in phy_sanitize_settings()
277 cmd->base.duplex = phydev->duplex; in phy_ethtool_ksettings_get()
346 phydev->duplex = DUPLEX_FULL; in phy_mii_ioctl()
[all …]
Dphy-core.c65 const char *phy_duplex_to_str(unsigned int duplex) in phy_duplex_to_str() argument
67 if (duplex == DUPLEX_HALF) in phy_duplex_to_str()
69 if (duplex == DUPLEX_FULL) in phy_duplex_to_str()
71 if (duplex == DUPLEX_UNKNOWN) in phy_duplex_to_str()
81 #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \
199 phy_lookup_setting(int speed, int duplex, const unsigned long *mask, bool exact) in phy_lookup_setting() argument
208 if (p->speed == speed && p->duplex == duplex) { in phy_lookup_setting()
343 if (phydev->duplex == DUPLEX_FULL) { in phy_resolve_aneg_pause()
371 phydev->duplex = settings[i].duplex; in phy_resolve_aneg_linkmode()
426 if (fdx_only && settings[i].duplex != DUPLEX_FULL) in phy_resolve_min_speed()
Dphylink.c178 pl->link_config.duplex = DUPLEX_HALF; in phylink_parse_fixedlink()
181 pl->link_config.duplex = DUPLEX_FULL; in phylink_parse_fixedlink()
218 pl->link_config.duplex = prop[1] ? in phylink_parse_fixedlink()
231 pl->link_config.duplex != DUPLEX_FULL) in phylink_parse_fixedlink()
239 s = phy_lookup_setting(pl->link_config.speed, pl->link_config.duplex, in phylink_parse_fixedlink()
251 pl->link_config.duplex == DUPLEX_FULL ? "full" : "half", in phylink_parse_fixedlink()
399 if (state->duplex == DUPLEX_FULL) { in phylink_resolve_flow()
418 phy_duplex_to_str(state->duplex), in phylink_mac_config()
531 state->duplex = DUPLEX_UNKNOWN; in phylink_mac_pcs_get_state()
612 link_state.speed, link_state.duplex); in phylink_link_up()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Daltr_tse_pcs.c129 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()
/kernel/linux/linux-5.10/drivers/net/pcs/
Dpcs-lynx.c77 state->duplex = DUPLEX_FULL; in lynx_pcs_get_state_2500basex()
107 phy_duplex_to_str(state->duplex), in lynx_pcs_get_state()
189 int speed, int duplex) in lynx_pcs_link_up_sgmii() argument
201 if (duplex == DUPLEX_HALF) in lynx_pcs_link_up_sgmii()
246 int speed, int duplex) in lynx_pcs_link_up_2500basex() argument
257 if (duplex == DUPLEX_HALF) in lynx_pcs_link_up_2500basex()
268 int speed, int duplex) in lynx_pcs_link_up() argument
275 lynx_pcs_link_up_sgmii(lynx->mdio, mode, speed, duplex); in lynx_pcs_link_up()
278 lynx_pcs_link_up_2500basex(lynx->mdio, mode, speed, duplex); in lynx_pcs_link_up()
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/ti/
Dtlan.rst81 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
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
Dvsc8211.c131 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/emac/
Dphy.c116 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()
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Dport.h302 int speed, int duplex);
304 int speed, int duplex);
306 int speed, int duplex);
308 int speed, int duplex);
310 int speed, int duplex);
312 int speed, int duplex);
314 int speed, int duplex);
Dport.c167 bool force_bit, int duplex) in mv88e6xxx_port_set_speed_duplex() argument
205 switch (duplex) { in mv88e6xxx_port_set_speed_duplex()
254 int speed, int duplex) in mv88e6065_port_set_speed_duplex() argument
264 duplex); in mv88e6065_port_set_speed_duplex()
269 int speed, int duplex) in mv88e6185_port_set_speed_duplex() argument
278 duplex); in mv88e6185_port_set_speed_duplex()
283 int speed, int duplex) in mv88e6250_port_set_speed_duplex() argument
292 duplex); in mv88e6250_port_set_speed_duplex()
297 int speed, int duplex) in mv88e6341_port_set_speed_duplex() argument
312 duplex); in mv88e6341_port_set_speed_duplex()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/phy/
Dphy-ocelot-serdes.txt13 half/full-duplex and 1000Mbps in full-duplex mode while SERDES6G supports
14 10/100Mbps in half/full-duplex and 1000/2500Mbps in full-duplex mode.
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c51 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/
Dhw.h484 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()
/kernel/linux/linux-5.10/include/linux/
Dphylink.h48 int duplex; member
109 phy_interface_t interface, int speed, int duplex,
325 int speed, int duplex, bool tx_pause, bool rx_pause);
360 phy_interface_t interface, int speed, int duplex);
431 phy_interface_t interface, int speed, int duplex);
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/dsa/
Dqca8k.txt40 - 'full-duplex' (boolean, optional), to indicate that full duplex is
41 used. When absent, half duplex is assumed.
86 full-duplex;
145 full-duplex;
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dvf610-zii-dev-rev-b.dts72 full-duplex;
83 full-duplex;
156 full-duplex;
167 full-duplex;
234 full-duplex;
246 full-duplex;
261 full-duplex;
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/
Dmv88e1xxx.c125 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c41 cmd->base.duplex = DUPLEX_FULL; in atl1c_get_link_ksettings()
43 cmd->base.duplex = DUPLEX_HALF; in atl1c_get_link_ksettings()
46 cmd->base.duplex = DUPLEX_UNKNOWN; in atl1c_get_link_ksettings()
74 if (cmd->base.duplex != DUPLEX_FULL) { in atl1c_set_link_ksettings()
83 if (cmd->base.duplex == DUPLEX_FULL) in atl1c_set_link_ksettings()
88 if (cmd->base.duplex == DUPLEX_FULL) in atl1c_set_link_ksettings()

12345678910>>...23