Home
last modified time | relevance | path

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

12345678910>>...18

/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 …]
/drivers/net/
Dmii.c108 ecmd->duplex = !!(nego & ADVERTISED_1000baseT_Full); in mii_ethtool_gset()
112 ecmd->duplex = !!(nego & ADVERTISED_100baseT_Full); in mii_ethtool_gset()
115 ecmd->duplex = !!(nego & ADVERTISED_10baseT_Full); in mii_ethtool_gset()
126 ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in mii_ethtool_gset()
129 mii->full_duplex = ecmd->duplex; in mii_ethtool_gset()
193 cmd->base.duplex = !!(nego & ADVERTISED_1000baseT_Full); in mii_ethtool_get_link_ksettings()
197 cmd->base.duplex = !!(nego & ADVERTISED_100baseT_Full); in mii_ethtool_get_link_ksettings()
200 cmd->base.duplex = !!(nego & ADVERTISED_10baseT_Full); in mii_ethtool_get_link_ksettings()
210 cmd->base.duplex = (bmcr & BMCR_FULLDPLX) ? in mii_ethtool_get_link_ksettings()
216 mii->full_duplex = cmd->base.duplex; in mii_ethtool_get_link_ksettings()
[all …]
Dsungem_phy.c316 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()
554 phy->duplex = phy_BCM5400_link_table[link_mode][0] ? in bcm54xx_read_link()
561 phy->pause = (phy->duplex == DUPLEX_FULL) && in bcm54xx_read_link()
640 phy->duplex |= DUPLEX_HALF; in bcm5421_read_link()
642 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()
/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()
Dphylink.c408 unsigned int duplex; member
458 unsigned int duplex) in phylink_cap_from_speed_duplex() argument
464 duplex == phylink_caps_params[i].duplex) in phylink_cap_from_speed_duplex()
765 pl->link_config.duplex = DUPLEX_HALF; in phylink_parse_fixedlink()
768 pl->link_config.duplex = DUPLEX_FULL; in phylink_parse_fixedlink()
806 pl->link_config.duplex = prop[1] ? in phylink_parse_fixedlink()
819 pl->link_config.duplex != DUPLEX_FULL) in phylink_parse_fixedlink()
830 s = phy_lookup_setting(pl->link_config.speed, pl->link_config.duplex, in phylink_parse_fixedlink()
849 pl->link_config.duplex == DUPLEX_FULL ? "full" : "half", in phylink_parse_fixedlink()
1011 if (state->duplex == DUPLEX_FULL) { in phylink_resolve_an_pause()
[all …]
Dphy.c122 phy_duplex_to_str(phydev->duplex), in phy_print_status()
227 phy_find_valid(int speed, int duplex, unsigned long *supported) in phy_find_valid() argument
229 return phy_lookup_setting(speed, duplex, supported, false); in phy_find_valid()
258 bool phy_check_valid(int speed, int duplex, unsigned long *features) in phy_check_valid() argument
260 return !!phy_lookup_setting(speed, duplex, features, true); in phy_check_valid()
276 setting = phy_find_valid(phydev->speed, phydev->duplex, in phy_sanitize_settings()
280 phydev->duplex = setting->duplex; in phy_sanitize_settings()
284 phydev->duplex = DUPLEX_UNKNOWN; in phy_sanitize_settings()
297 cmd->base.duplex = phydev->duplex; in phy_ethtool_ksettings_get()
367 phydev->duplex = DUPLEX_FULL; in phy_mii_ioctl()
[all …]
Dphy-core.c67 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()
160 #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \
289 phy_lookup_setting(int speed, int duplex, const unsigned long *mask, bool exact) in phy_lookup_setting() argument
298 if (p->speed == speed && p->duplex == duplex) { in phy_lookup_setting()
425 if (phydev->duplex == DUPLEX_FULL) { in phy_resolve_aneg_pause()
453 phydev->duplex = settings[i].duplex; in phy_resolve_aneg_linkmode()
508 if (fdx_only && settings[i].duplex != DUPLEX_FULL) in phy_resolve_min_speed()
/drivers/net/pcs/
Dpcs-lynx.c80 state->duplex = DUPLEX_FULL; in lynx_pcs_get_state_2500basex()
111 phy_duplex_to_str(state->duplex), in lynx_pcs_get_state()
212 int speed, int duplex) in lynx_pcs_link_up_sgmii() argument
222 if (duplex == DUPLEX_HALF) in lynx_pcs_link_up_sgmii()
267 int speed, int duplex) in lynx_pcs_link_up_2500basex() argument
276 if (duplex == DUPLEX_HALF) in lynx_pcs_link_up_2500basex()
287 int speed, int duplex) in lynx_pcs_link_up() argument
294 lynx_pcs_link_up_sgmii(lynx->mdio, neg_mode, speed, duplex); in lynx_pcs_link_up()
297 lynx_pcs_link_up_2500basex(lynx->mdio, neg_mode, speed, duplex); in lynx_pcs_link_up()
Dpcs-xpcs.c592 state->duplex = DUPLEX_FULL; in xpcs_resolve_pma()
998 state->duplex = DUPLEX_UNKNOWN; in xpcs_get_state_c37_sgmii()
1023 state->duplex = DUPLEX_FULL; in xpcs_get_state_c37_sgmii()
1025 state->duplex = DUPLEX_HALF; in xpcs_get_state_c37_sgmii()
1027 int speed, duplex; in xpcs_get_state_c37_sgmii() local
1043 duplex = xpcs_read(xpcs, MDIO_MMD_VEND2, MII_ADVERTISE); in xpcs_get_state_c37_sgmii()
1044 if (duplex < 0) in xpcs_get_state_c37_sgmii()
1045 return duplex; in xpcs_get_state_c37_sgmii()
1047 if (duplex & DW_FULL_DUPLEX) in xpcs_get_state_c37_sgmii()
1048 state->duplex = DUPLEX_FULL; in xpcs_get_state_c37_sgmii()
[all …]
/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()
Dael1002.c177 int *duplex, int *fc) in get_link_status_r() argument
196 if (duplex) in get_link_status_r()
197 *duplex = DUPLEX_FULL; in get_link_status_r()
830 int *duplex, int *fc) in get_link_status_x() argument
849 if (duplex) in get_link_status_x()
850 *duplex = DUPLEX_FULL; in get_link_status_x()
891 int *speed, int *duplex, int *fc) in xaui_direct_get_link_status() argument
909 if (duplex) in xaui_direct_get_link_status()
910 *duplex = DUPLEX_FULL; in xaui_direct_get_link_status()
/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()
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_phylink.c49 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()
/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()
/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()
/drivers/net/dsa/mv88e6xxx/
Dport.h366 int speed, int duplex);
368 int speed, int duplex);
370 int speed, int duplex);
372 int speed, int duplex);
374 int speed, int duplex);
376 int speed, int duplex);
378 int speed, int duplex);
Dport.c221 bool force_bit, int duplex) in mv88e6xxx_port_set_speed_duplex() argument
259 switch (duplex) { in mv88e6xxx_port_set_speed_duplex()
308 int speed, int duplex) in mv88e6185_port_set_speed_duplex() argument
314 duplex); in mv88e6185_port_set_speed_duplex()
319 int speed, int duplex) in mv88e6250_port_set_speed_duplex() argument
325 duplex); in mv88e6250_port_set_speed_duplex()
330 int speed, int duplex) in mv88e6341_port_set_speed_duplex() argument
342 duplex); in mv88e6341_port_set_speed_duplex()
356 int speed, int duplex) in mv88e6352_port_set_speed_duplex() argument
365 duplex); in mv88e6352_port_set_speed_duplex()
[all …]
/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()
/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()
/drivers/net/ethernet/wangxun/ngbe/
Dngbe_mdio.c179 wx->duplex != phydev->duplex)) in ngbe_handle_link_change()
184 wx->duplex = phydev->duplex; in ngbe_handle_link_change()
287 wx->duplex = 0; in ngbe_mdio_init()
/drivers/leds/trigger/
Dledtrig-netdev.c58 u8 duplex; member
103 trigger_data->duplex == DUPLEX_HALF) in set_baseline_state()
107 trigger_data->duplex == DUPLEX_FULL) in set_baseline_state()
204 trigger_data->duplex = cmd.base.duplex; in get_device_state()
252 trigger_data->duplex = DUPLEX_UNKNOWN; in set_device_name()
462 trigger_data->duplex = DUPLEX_UNKNOWN; in netdev_trig_notify()
/drivers/net/ethernet/microchip/lan966x/
Dlan966x_phylink.c50 int speed, int duplex, in lan966x_phylink_mac_link_up() argument
56 port_config->duplex = duplex; in lan966x_phylink_mac_link_up()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mdio.c180 int duplex, speed; in hclge_mac_adjust_link() local
188 duplex = netdev->phydev->duplex; in hclge_mac_adjust_link()
190 ret = hclge_cfg_mac_speed_dup(hdev, speed, duplex, 0); in hclge_mac_adjust_link()
195 hdev->hw.mac.req_duplex = (u8)duplex; in hclge_mac_adjust_link()
/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c120 u8 duplex; in hns_nic_get_link_ksettings() local
131 ret = h->dev->ops->get_info(h, NULL, &speed, &duplex); in hns_nic_get_link_ksettings()
145 cmd->base.duplex = duplex; in hns_nic_get_link_ksettings()
153 cmd->base.duplex = DUPLEX_UNKNOWN; in hns_nic_get_link_ksettings()
220 cmd->base.duplex != DUPLEX_FULL) in hns_nic_set_link_ksettings()
226 if (speed == SPEED_1000 && cmd->base.duplex == DUPLEX_HALF) in hns_nic_set_link_ksettings()
232 speed != SPEED_1000) || (cmd->base.duplex != DUPLEX_HALF && in hns_nic_set_link_ksettings()
233 cmd->base.duplex != DUPLEX_FULL)) in hns_nic_set_link_ksettings()
242 h->dev->ops->adjust_link(h, (int)speed, cmd->base.duplex); in hns_nic_set_link_ksettings()
340 int speed, duplex; in __lb_up() local
[all …]

12345678910>>...18