Home
last modified time | relevance | path

Searched refs:duplex (Results 1 – 200 of 379) sorted by relevance

12

/linux-4.4.14/sound/core/seq/
Dseq_dummy.c68 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-4.4.14/drivers/net/phy/
Dphy.c96 DUPLEX_FULL == phydev->duplex ? "Full" : "Half", in phy_print_status()
159 int duplex; member
167 .duplex = DUPLEX_FULL,
172 .duplex = DUPLEX_FULL,
177 .duplex = DUPLEX_FULL,
182 .duplex = DUPLEX_FULL,
187 .duplex = DUPLEX_FULL,
192 .duplex = DUPLEX_FULL,
197 .duplex = DUPLEX_HALF,
202 .duplex = DUPLEX_FULL,
[all …]
Dlxt.c196 phydev->duplex = DUPLEX_HALF; in lxt973a2_read_status()
203 phydev->duplex = DUPLEX_FULL; in lxt973a2_read_status()
208 phydev->duplex = DUPLEX_FULL; in lxt973a2_read_status()
211 phydev->duplex = DUPLEX_FULL; in lxt973a2_read_status()
214 if (phydev->duplex == DUPLEX_FULL) { in lxt973a2_read_status()
225 phydev->duplex = DUPLEX_FULL; in lxt973a2_read_status()
227 phydev->duplex = DUPLEX_HALF; in lxt973a2_read_status()
Dfixed_phy.c60 if (fp->status.duplex) { in fixed_phy_update_regs()
93 if (fp->status.duplex) { in fixed_phy_update_regs()
232 _UPD(duplex); in fixed_phy_update_state()
342 phy->duplex = status->duplex; in fixed_phy_register()
Dphy_device.c165 dev->duplex = -1; in phy_device_create()
897 if (DUPLEX_FULL == phydev->duplex) in genphy_setup_forced()
1071 phydev->duplex = DUPLEX_HALF; in genphy_read_status()
1079 phydev->duplex = DUPLEX_FULL; in genphy_read_status()
1084 phydev->duplex = DUPLEX_FULL; in genphy_read_status()
1087 phydev->duplex = DUPLEX_FULL; in genphy_read_status()
1089 if (phydev->duplex == DUPLEX_FULL) { in genphy_read_status()
1100 phydev->duplex = DUPLEX_FULL; in genphy_read_status()
1102 phydev->duplex = DUPLEX_HALF; in genphy_read_status()
1128 phydev->duplex = DUPLEX_FULL; in gen10g_read_status()
Dteranetics.c77 phydev->duplex = DUPLEX_FULL; in teranetics_read_status()
Dmarvell.c820 phydev->duplex = DUPLEX_FULL; in marvell_read_status()
822 phydev->duplex = DUPLEX_HALF; in marvell_read_status()
841 if (phydev->duplex == DUPLEX_FULL) { in marvell_read_status()
852 phydev->duplex = DUPLEX_FULL; in marvell_read_status()
854 phydev->duplex = DUPLEX_HALF; in marvell_read_status()
Daquantia.c114 phydev->duplex = DUPLEX_FULL; in aquantia_read_status()
Dbcm87xx.c133 phydev->duplex = 1; in bcm87xx_read_status()
Dicplus.c95 phydev->duplex = DUPLEX_FULL; in ip175c_config_init()
Dbroadcom.c279 phydev->duplex = DUPLEX_FULL; in bcm5482_config_init()
298 phydev->duplex = DUPLEX_FULL; in bcm5482_read_status()
/linux-4.4.14/Documentation/networking/
D3c509.txt25 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 …]
Dtlan.txt63 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
Ddl2k.txt188 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 …]
Dvortex.txt118 0x0200 Force full duplex mode.
125 will force full-duplex 100base-TX, rather than allowing the usual
137 full-duplex mode. Please use this in preference to the `options'
145 Sets full duplex mode for all 3c59x NICs in the machine. Entries
155 full duplex mode.
265 the same network being in full-duplex mode, while this host is in
266 half-duplex mode. You need to find that other host and make it run in
267 half-duplex mode or fix this host to run in full-duplex mode.
269 As a last resort, you can force the 3c59x driver into full-duplex mode
336 100" and "duplex full" as well (or "speed 10" and "duplex half").
[all …]
Dde4x5.txt146 Where SROM media detection is used and full duplex is specified in the
150 duplex links except through autonegotiation. When I include the
155 through LILO. This will allow a per adapter board set up of full duplex
161 fdx for full duplex
174 Yes, I know full duplex isn't permissible on BNC or AUI; they're just
175 examples. By default, full duplex is turned off and AUTO is the default
176 autosense setting. In reality, I expect only the full duplex option to
De1000.txt51 This parameter is a bit-mask that specifies the speed and duplex settings
66 set to auto-negotiate, the board auto-detects the correct duplex. If the
68 duplex.
342 Three keywords are used to control the speed and duplex configuration.
346 fiber interface board only links at 1000 Mbps full-duplex.
351 supported speed and duplex combinations, and it links at the highest
352 common speed and duplex mode IF the link partner is set to auto-negotiate.
363 speed and duplex combinations are advertised during the auto-negotiation
389 If the link partner is forced to a specific speed and duplex, then this
391 previously mentioned to force the adapter to the same speed and duplex.
De100.txt74 Speed/Duplex: The driver auto-negotiates the link speed and duplex settings by
75 default. The ethtool utility can be used as follows to force speed/duplex.
77 ethtool -s eth? autoneg off speed {10|100} duplex {full|half}
79 NOTE: setting the speed/duplex to incorrect values will cause the link to
Dcs89x0.txt63 IEEE 802.3 standards and support half or full-duplex operation in ISA bus
170 Transmission Mode: Half-duplex
230 * duplex=full - specify forced half/full/autonegotiate duplex
231 or duplex=half
232 or duplex=auto
257 d) The "duplex=auto" parameter is only supported for the CS8920.
272 * CS8900 defaults to half-duplex if not specified on command-line
Dbaycom.txt15 This driver supports the SER12 modems either full or half duplex.
25 It only supports half duplex, and only 1200 baud. Its devices
70 All of the above modems only support half duplex communications. However,
Dz8530drv.txt252 # dpll = normal half duplex operation
254 # divider = use full duplex divider if
489 The full-duplex mode switch. This can be one of the following
493 half-duplex packet radio operation)
507 the first slot in CSMA mode. In full duplex modes it is
534 This parameter specifies the maximum idle time in full duplex
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dfixed-link.txt14 * '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-4.4.14/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()
153 if (ecmd->duplex != DUPLEX_HALF && ecmd->duplex != DUPLEX_FULL) in mii_ethtool_sset()
216 if (ecmd->duplex == DUPLEX_FULL) { in mii_ethtool_sset()
318 int advertise, lpa, media, duplex; in mii_check_media() local
363 duplex = (media & ADVERTISE_FULL) ? 1 : 0; in mii_check_media()
365 duplex = 1; in mii_check_media()
[all …]
Dsungem_phy.c319 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 …]
Dmdio.c298 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()
/linux-4.4.14/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()
Daq100x.c201 static int aq100x_set_speed_duplex(struct cphy *phy, int speed, int duplex) in aq100x_set_speed_duplex() argument
208 int *speed, int *duplex, int *fc) in aq100x_get_link_status() argument
244 if (duplex) in aq100x_get_link_status()
245 *duplex = v & 1 ? DUPLEX_FULL : DUPLEX_HALF; in aq100x_get_link_status()
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()
835 int *duplex, int *fc) in get_link_status_x() argument
854 if (duplex) in get_link_status_x()
855 *duplex = DUPLEX_FULL; in get_link_status_x()
896 int *speed, int *duplex, int *fc) in xaui_direct_get_link_status() argument
914 if (duplex) in xaui_direct_get_link_status()
915 *duplex = DUPLEX_FULL; in xaui_direct_get_link_status()
Dt3_hw.c449 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex) in t3_set_phy_speed_duplex() argument
465 if (duplex >= 0) { in t3_set_phy_speed_duplex()
467 if (duplex == DUPLEX_FULL) in t3_set_phy_speed_duplex()
1208 int link_ok, speed, duplex, fc; in t3_link_changed() local
1214 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t3_link_changed()
1239 duplex == lc->duplex && fc == lc->fc) in t3_link_changed()
1251 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t3_link_changed()
1255 t3_mac_set_speed_duplex_fc(mac, speed, duplex, fc); in t3_link_changed()
1260 speed, duplex, fc); in t3_link_changed()
1269 int link_ok, speed, duplex, fc, link_fault; in t3_link_fault() local
[all …]
Dcommon.h432 unsigned char duplex; /* actual link duplex */ member
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);
716 int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc);
Dcxgb3_main.c177 s, p->link_config.duplex == DUPLEX_FULL in link_report()
252 int speed, int duplex, int pause) in t3_os_link_changed() argument
1810 cmd->duplex = p->link_config.duplex; in get_settings()
1813 cmd->duplex = DUPLEX_UNKNOWN; in get_settings()
1825 static int speed_duplex_to_caps(int speed, int duplex) in speed_duplex_to_caps() argument
1831 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
1837 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
1843 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
1849 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
1872 int cap = speed_duplex_to_caps(speed, cmd->duplex); in set_settings()
[all …]
Dxgmac.c428 int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) in t3_mac_set_speed_duplex_fc() argument
434 if (duplex >= 0 && duplex != DUPLEX_FULL) in t3_mac_set_speed_duplex_fc()
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dphy.c115 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()
493 phy->duplex = DUPLEX_HALF; in emac_mii_phy_probe()
Dcore.c574 link, dev->phy.duplex, dev->phy.pause, dev->phy.asym_pause); in emac_configure()
585 else if (dev->phy.duplex == DUPLEX_FULL) in emac_configure()
635 dev->phy.duplex == DUPLEX_FULL) { in emac_configure()
1152 dev->phy.duplex == DUPLEX_FULL ? "FDX" : "HDX", in emac_print_link_status()
1239 int duplex = r & EMAC_MR1_FDE ? DUPLEX_FULL : DUPLEX_HALF;
1261 return speed != dev->phy.speed || duplex != dev->phy.duplex ||
1982 cmd->duplex = dev->phy.duplex; in emac_ethtool_get_settings()
1995 cmd->autoneg, cmd->speed, cmd->duplex, cmd->advertising); in emac_ethtool_set_settings()
2004 if (cmd->duplex != DUPLEX_HALF && cmd->duplex != DUPLEX_FULL) in emac_ethtool_set_settings()
2010 if (cmd->duplex == DUPLEX_HALF && in emac_ethtool_set_settings()
[all …]
Dphy.h69 int duplex; member
/linux-4.4.14/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c63 cmd->duplex = port->full_duplex == 1 ? in ehea_get_settings()
67 cmd->duplex = DUPLEX_UNKNOWN; in ehea_get_settings()
103 if (cmd->duplex == DUPLEX_FULL) in ehea_set_settings()
110 if (cmd->duplex == DUPLEX_FULL) in ehea_set_settings()
117 if (cmd->duplex == DUPLEX_FULL) in ehea_set_settings()
124 if (cmd->duplex == DUPLEX_FULL) in ehea_set_settings()
/linux-4.4.14/drivers/net/ethernet/atheros/alx/
Dhw.h482 u8 duplex; member
566 static inline u32 alx_speed_to_ethadv(int speed, u8 duplex) in alx_speed_to_ethadv() argument
568 if (speed == SPEED_1000 && duplex == DUPLEX_FULL) in alx_speed_to_ethadv()
570 if (speed == SPEED_100 && duplex == DUPLEX_FULL) in alx_speed_to_ethadv()
572 if (speed == SPEED_100 && duplex== DUPLEX_HALF) in alx_speed_to_ethadv()
574 if (speed == SPEED_10 && duplex == DUPLEX_FULL) in alx_speed_to_ethadv()
576 if (speed == SPEED_10 && duplex == DUPLEX_HALF) in alx_speed_to_ethadv()
Dethtool.c166 ecmd->duplex = hw->duplex; in alx_get_settings()
185 ecmd->duplex); in alx_set_settings()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c55 ecmd->duplex = DUPLEX_FULL; in atl1c_get_settings()
57 ecmd->duplex = DUPLEX_HALF; in atl1c_get_settings()
60 ecmd->duplex = DUPLEX_UNKNOWN; in atl1c_get_settings()
82 if (ecmd->duplex != DUPLEX_FULL) { in atl1c_set_settings()
91 if (ecmd->duplex == DUPLEX_FULL) in atl1c_set_settings()
96 if (ecmd->duplex == DUPLEX_FULL) in atl1c_set_settings()
Datl1c_hw.c659 int atl1c_get_speed_and_duplex(struct atl1c_hw *hw, u16 *speed, u16 *duplex) in atl1c_get_speed_and_duplex() argument
687 *duplex = FULL_DUPLEX; in atl1c_get_speed_and_duplex()
689 *duplex = HALF_DUPLEX; in atl1c_get_speed_and_duplex()
705 u16 duplex = FULL_DUPLEX; in atl1c_phy_to_ps_link() local
737 &duplex) != 0) in atl1c_phy_to_ps_link()
746 duplex = HALF_DUPLEX; in atl1c_phy_to_ps_link()
749 adapter->link_duplex = duplex; in atl1c_phy_to_ps_link()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dmv88e1xxx.c124 static int mv88e1xxx_set_speed_duplex(struct cphy *phy, int speed, int duplex) in mv88e1xxx_set_speed_duplex() argument
136 if (duplex >= 0) { in mv88e1xxx_set_speed_duplex()
138 if (duplex == DUPLEX_FULL) in mv88e1xxx_set_speed_duplex()
241 int *speed, int *duplex, int *fc) in mv88e1xxx_get_link_status() argument
266 if (duplex) in mv88e1xxx_get_link_status()
267 *duplex = dplx; in mv88e1xxx_get_link_status()
Dmv88x201x.c172 int *speed, int *duplex, int *fc) in mv88x201x_get_link_status() argument
186 if (duplex) in mv88x201x_get_link_status()
187 *duplex = DUPLEX_FULL; in mv88x201x_get_link_status()
Dsubr.c152 int link_ok, speed, duplex, fc; in t1_link_changed() local
156 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t1_link_changed()
159 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t1_link_changed()
167 mac->ops->set_speed_duplex_fc(mac, speed, duplex, fc); in t1_link_changed()
170 t1_link_negotiated(adapter, port_id, link_ok, speed, duplex, fc); in t1_link_changed()
643 lc->duplex = lc->requested_duplex; in t1_link_start()
646 lc->duplex, fc); in t1_link_start()
649 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t1_link_start()
1035 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config()
Dgmac.h113 int (*set_speed_duplex_fc)(struct cmac *, int speed, int duplex, int fc);
114 int (*get_speed_duplex_fc)(struct cmac *, int *speed, int *duplex,
Dcphy.h83 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
85 int *duplex, int *fc);
Dcxgb2.c143 s, p->link_config.duplex == DUPLEX_FULL in link_report()
149 int speed, int duplex, int pause) in t1_link_negotiated() argument
581 cmd->duplex = p->link_config.duplex; in get_settings()
584 cmd->duplex = DUPLEX_UNKNOWN; in get_settings()
596 static int speed_duplex_to_caps(int speed, int duplex) in speed_duplex_to_caps() argument
602 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
608 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
614 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
620 if (duplex == DUPLEX_FULL) in speed_duplex_to_caps()
642 int cap = speed_duplex_to_caps(speed, cmd->duplex); in set_settings()
[all …]
Dpm3393.c404 int *duplex, int *fc) in pm3393_get_speed_duplex_fc() argument
408 if (duplex) in pm3393_get_speed_duplex_fc()
409 *duplex = DUPLEX_FULL; in pm3393_get_speed_duplex_fc()
415 static int pm3393_set_speed_duplex_fc(struct cmac *cmac, int speed, int duplex, in pm3393_set_speed_duplex_fc() argument
420 if (duplex >= 0 && duplex != DUPLEX_FULL) in pm3393_set_speed_duplex_fc()
Dmy3126.c110 int *link_ok, int *speed, int *duplex, int *fc) in my3126_get_link_status() argument
143 *duplex = DUPLEX_FULL; in my3126_get_link_status()
Dcommon.h207 unsigned char duplex; /* actual link duplex */ member
350 int speed, int duplex, int pause);
Dvsc7326.c463 static int mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, in mac_set_speed_duplex_fc() argument
472 if (duplex > 0 && duplex != DUPLEX_FULL) in mac_set_speed_duplex_fc()
505 if (duplex == DUPLEX_HALF) in mac_set_speed_duplex_fc()
/linux-4.4.14/sound/oss/
Dsb_ess.c291 if (devc->duplex) { in ess_set_output_parms()
377 if (devc->duplex) { in ess_common_speed()
420 if (!devc->duplex) audionum = 1; in ess_speed()
527 if (devc->duplex) { in ess_audio_prepare_for_output()
546 if (devc->duplex) ess_chgmixer(devc, 0x78, 0x03, 0x00); in ess_audio_halt_xfer()
615 if (devc->duplex) { in ess_audio_output_block()
676 minspeed = (devc->duplex ? 6215 : 5000 ); in ess_audio_set_speed()
677 maxspeed = (devc->duplex ? 44100 : 48000); in ess_audio_set_speed()
744 if (devc->duplex) { in ess_audio_init()
1237 , devc->dma8, devc->dma16, devc->duplex);
[all …]
Dsb_audio.c55 if (devc->dma16 != -1 && devc->dma16 != devc->dma8 && !devc->duplex) in sb_audio_open()
68 devc->fullduplex = devc->duplex && in sb_audio_open()
102 if(devc->duplex in sb_audio_close()
108 audio_devs[dev]->dmap_in->dma = ( devc->duplex ) ? in sb_audio_close()
111 if (devc->dma16 != -1 && devc->dma16 != devc->dma8 && !devc->duplex) in sb_audio_close()
1072 devc->duplex = 1; in sb_audio_init()
1090 devc->duplex ? devc->dma16 : devc->dma8)) < 0) in sb_audio_init()
DCHANGELOG62 - Fixed a bug in handling of full duplex cards in write only mode. This has
87 - Support for OPTi 82C930. Only half duplex at this time. 16 bit playback
146 - Full duplex audio with MAD16+CS4231 may work now. The driver configures
149 duplex mode.
209 - Full duplex support for some CS4231, CS4232 and AD1845 based cards
230 use select() carefully when you are writing a half duplex app.
231 Full duplex mode is not implemented yet.) Select works also with
360 - Now supports half duplex mode. It's now possible to record and
Dsb.h103 int duplex; member
/linux-4.4.14/Documentation/spi/
Dspidev1 SPI devices have a limited userspace API, supporting basic half-duplex
3 full duplex transfers and device I/O configuration are also available.
75 Standard read() and write() operations are obviously only half-duplex, and
76 the chipselect is deactivated between those operations. Full-duplex access,
136 full duplex programming interface. (Although it doesn't perform a full duplex
141 The example shows one half-duplex RPC-style request and response message.
148 To make a full duplex request, provide both rx_buf and tx_buf for the
Dspi-summary19 are used though; not every protocol uses those full duplex capabilities.
34 - It may also be used to stream data in either direction (half duplex),
35 or both of them at the same time (full duplex).
52 half-duplex SPI, for request/response protocols), SSP ("Synchronous
57 limiting themselves to half-duplex at the hardware level. In fact
60 course they won't handle full duplex transfers. You may find such
389 buffer for each transfer direction, supporting full duplex
391 duplex (one pointer is NULL) transfers;
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
Ddwmac100_core.c147 static void dwmac100_flow_ctrl(struct mac_device_info *hw, unsigned int duplex, in dwmac100_flow_ctrl() argument
153 if (duplex) in dwmac100_flow_ctrl()
191 mac->link.duplex = MAC_CONTROL_F; in dwmac100_setup()
Ddwmac1000_core.c200 static void dwmac1000_flow_ctrl(struct mac_device_info *hw, unsigned int duplex, in dwmac1000_flow_ctrl() argument
219 if (duplex) { in dwmac1000_flow_ctrl()
384 adv->duplex = DUPLEX_FULL; in dwmac1000_get_adv()
386 adv->duplex |= DUPLEX_HALF; in dwmac1000_get_adv()
440 mac->link.duplex = GMAC_CONTROL_DM; in dwmac1000_setup()
Dcommon.h237 unsigned int duplex; member
396 void (*flow_ctrl)(struct mac_device_info *hw, unsigned int duplex,
428 int duplex; member
Dstmmac_ethtool.c256 cmd->duplex = DUPLEX_UNKNOWN; in stmmac_ethtool_getsettings()
259 cmd->duplex = priv->xstats.pcs_duplex; in stmmac_ethtool_getsettings()
286 if (adv.duplex) { in stmmac_ethtool_getsettings()
465 priv->hw->mac->flow_ctrl(priv->hw, phy->duplex, in stmmac_set_pauseparam()
/linux-4.4.14/Documentation/devicetree/bindings/spi/
Dspi_pl022.txt38 - pl022,duplex : Microwire interface: Full/Half duplex
67 pl022,duplex = <0>;
/linux-4.4.14/drivers/net/ethernet/intel/igbvf/
Dvf.c31 u16 *duplex);
95 u16 *duplex) in e1000_get_link_up_info_vf() argument
108 *duplex = FULL_DUPLEX; in e1000_get_link_up_info_vf()
110 *duplex = HALF_DUPLEX; in e1000_get_link_up_info_vf()
Dethtool.c98 ecmd->duplex = DUPLEX_FULL; in igbvf_get_settings()
100 ecmd->duplex = DUPLEX_HALF; in igbvf_get_settings()
103 ecmd->duplex = DUPLEX_UNKNOWN; in igbvf_get_settings()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c130 u8 duplex; in hns_nic_get_settings() local
140 ret = h->dev->ops->get_info(h, NULL, &speed, &duplex); in hns_nic_get_settings()
149 cmd->duplex = duplex; in hns_nic_get_settings()
157 cmd->duplex = DUPLEX_UNKNOWN; in hns_nic_get_settings()
211 cmd->duplex != DUPLEX_FULL) in hns_nic_set_settings()
217 if (speed == SPEED_1000 && cmd->duplex == DUPLEX_HALF) in hns_nic_set_settings()
223 speed != SPEED_1000) || (cmd->duplex != DUPLEX_HALF && in hns_nic_set_settings()
224 cmd->duplex != DUPLEX_FULL)) in hns_nic_set_settings()
232 h->dev->ops->adjust_link(h, (int)speed, cmd->duplex); in hns_nic_set_settings()
356 int speed, duplex; in __lb_up() local
[all …]
Dhns_dsaf_mac.c115 u8 *auto_neg, u16 *speed, u8 *duplex) in hns_mac_get_port_info() argument
130 if (duplex) in hns_mac_get_port_info()
131 *duplex = info.duplex; in hns_mac_get_port_info()
136 void hns_mac_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex) in hns_mac_adjust_link() argument
144 mac_cb->half_duplex = !duplex; in hns_mac_adjust_link()
149 (enum mac_speed)speed, duplex); in hns_mac_adjust_link()
Dhns_dsaf_mac.h202 u8 duplex; /* Duplex, half or full */ member
434 void hns_mac_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex);
442 u8 *auto_neg, u16 *speed, u8 *duplex);
Dhns_ae_adapt.c357 u8 *auto_neg, u16 *speed, u8 *duplex) in hns_ae_get_mac_info() argument
361 return hns_mac_get_port_info(mac_cb, auto_neg, speed, duplex); in hns_ae_get_mac_info()
365 int duplex) in hns_ae_adjust_link() argument
369 hns_mac_adjust_link(mac_cb, speed, duplex); in hns_ae_adjust_link()
Dhns_dsaf_gmac.c453 enum hns_gmac_duplex_mdoe duplex; in hns_gmac_get_info() local
472 hns_gmac_get_duplex_type(mac_drv, &duplex); in hns_gmac_get_info()
473 mac_info->duplex = duplex; in hns_gmac_get_info()
Dhnae.h412 u8 *auto_neg, u16 *speed, u8 *duplex);
415 void (*adjust_link)(struct hnae_handle *handle, int speed, int duplex);
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dmac.h38 u16 *duplex);
40 u16 *speed, u16 *duplex);
D80003es2lan.c45 static s32 e1000_cfg_kmrn_10_100_80003es2lan(struct e1000_hw *hw, u16 duplex);
659 u16 *duplex) in e1000_get_link_up_info_80003es2lan() argument
664 ret_val = e1000e_get_speed_and_duplex_copper(hw, speed, duplex); in e1000_get_link_up_info_80003es2lan()
669 duplex); in e1000_get_link_up_info_80003es2lan()
1089 u16 duplex; in e1000_cfg_on_link_up_80003es2lan() local
1093 &duplex); in e1000_cfg_on_link_up_80003es2lan()
1100 ret_val = e1000_cfg_kmrn_10_100_80003es2lan(hw, duplex); in e1000_cfg_on_link_up_80003es2lan()
1114 static s32 e1000_cfg_kmrn_10_100_80003es2lan(struct e1000_hw *hw, u16 duplex) in e1000_cfg_kmrn_10_100_80003es2lan() argument
1146 if (duplex == HALF_DUPLEX) in e1000_cfg_kmrn_10_100_80003es2lan()
Dmac.c1025 u16 speed, duplex; in e1000e_config_fc_after_link_up() local
1168 ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex); in e1000e_config_fc_after_link_up()
1174 if (duplex == HALF_DUPLEX) in e1000e_config_fc_after_link_up()
1324 u16 *duplex) in e1000e_get_speed_and_duplex_copper() argument
1337 *duplex = FULL_DUPLEX; in e1000e_get_speed_and_duplex_copper()
1339 *duplex = HALF_DUPLEX; in e1000e_get_speed_and_duplex_copper()
1343 *duplex == FULL_DUPLEX ? "Full" : "Half"); in e1000e_get_speed_and_duplex_copper()
1358 *hw, u16 *speed, u16 *duplex) in e1000e_get_speed_and_duplex_fiber_serdes() argument
1361 *duplex = FULL_DUPLEX; in e1000e_get_speed_and_duplex_fiber_serdes()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c288 cmd->duplex = pdata->phy.duplex; in xgbe_get_settings()
329 if (cmd->duplex != DUPLEX_FULL) { in xgbe_set_settings()
331 cmd->duplex); in xgbe_set_settings()
350 pdata->phy.duplex = cmd->duplex; in xgbe_set_settings()
Dxgbe-mdio.c859 pdata->phy.duplex == DUPLEX_FULL ? "Full" : "Half", in xgbe_phy_print_status()
928 if (pdata->phy.duplex != DUPLEX_FULL) in xgbe_phy_config_fixed()
1029 pdata->phy.duplex = DUPLEX_FULL; in xgbe_phy_status_force()
1110 pdata->phy.duplex = DUPLEX_FULL; in xgbe_phy_status_aneg()
1322 pdata->phy.duplex = DUPLEX_UNKNOWN; in xgbe_phy_init()
/linux-4.4.14/Documentation/devicetree/bindings/serial/
Drs485.txt4 the built-in half-duplex mode.
5 The properties described hereafter shall be given to a half-duplex capable
/linux-4.4.14/arch/mips/cavium-octeon/executive/
Dcvmx-helper-rgmii.c111 gmx_cfg.s.duplex = 1; in cvmx_helper_rgmii_internal_loopback()
372 new_gmx_cfg.s.duplex = 1; in __cvmx_helper_rgmii_link_set()
375 new_gmx_cfg.s.duplex = 1; in __cvmx_helper_rgmii_link_set()
377 new_gmx_cfg.s.duplex = link_info.s.full_duplex; in __cvmx_helper_rgmii_link_set()
489 gmx_cfg.s.duplex = 1; in __cvmx_helper_rgmii_configure_loopback()
Dcvmx-helper-spi.c161 result.s.full_duplex = inband.s.duplex; in __cvmx_helper_spi_link_get()
Dcvmx-helper-board.c424 result.s.full_duplex = inband_status.s.duplex; in __cvmx_helper_board_link_get()
609 reg_control.s.duplex = link_info.s.full_duplex; in cvmx_helper_board_link_set_phy()
/linux-4.4.14/drivers/net/ethernet/freescale/
Dfec_mpc52xx.c56 int duplex; member
172 if (phydev->duplex != priv->duplex) { in mpc52xx_fec_adjust_link()
178 priv->duplex = phydev->duplex; in mpc52xx_fec_adjust_link()
185 if (phydev->duplex == DUPLEX_FULL) in mpc52xx_fec_adjust_link()
208 priv->duplex = -1; in mpc52xx_fec_adjust_link()
670 if (priv->duplex == DUPLEX_FULL) in mpc52xx_fec_start()
956 priv->duplex = DUPLEX_HALF; in mpc52xx_fec_probe()
963 priv->duplex = prop[1] ? DUPLEX_FULL : DUPLEX_HALF; in mpc52xx_fec_probe()
/linux-4.4.14/drivers/net/ethernet/
Ddnet.c188 if (bp->duplex != phydev->duplex) { in dnet_handle_link_change()
189 if (phydev->duplex) in dnet_handle_link_change()
196 bp->duplex = phydev->duplex; in dnet_handle_link_change()
230 bp->duplex = -1; in dnet_handle_link_change()
248 DUPLEX_FULL == phydev->duplex ? "Full" : "Half"); in dnet_handle_link_change()
303 bp->duplex = -1; in dnet_mii_probe()
Ddnet.h222 unsigned int duplex; member
/linux-4.4.14/drivers/net/ethernet/allwinner/
Dsun4i-emac.c84 unsigned int duplex; member
110 if (db->duplex) in emac_update_duplex()
131 if (db->duplex != phydev->duplex) { in emac_handle_link_change()
133 db->duplex = phydev->duplex; in emac_handle_link_change()
143 db->duplex = -1; in emac_handle_link_change()
175 db->duplex = -1; in emac_mdio_probe()
/linux-4.4.14/include/linux/
Dpxa168_eth.h17 int duplex; /* DUPLEX_HALF or DUPLEX_FULL */ member
Dmv643xx_eth.h60 int duplex; member
Dphy_fixed.h7 int duplex; member
Dsungem_phy.h51 int duplex; member
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dtc35815.c79 int duplex; member
409 int duplex; member
548 (lp->speed != phydev->speed || lp->duplex != phydev->duplex)) { in tc_handle_link_change()
556 if (phydev->duplex == DUPLEX_FULL) in tc_handle_link_change()
573 if (phydev->duplex == DUPLEX_HALF && in tc_handle_link_change()
579 lp->duplex = phydev->duplex; in tc_handle_link_change()
590 lp->duplex = -1; in tc_handle_link_change()
653 if (options.duplex == 1) in tc_mii_probe()
655 else if (options.duplex == 2) in tc_mii_probe()
662 lp->duplex = -1; in tc_mii_probe()
[all …]
Dspider_net_ethtool.c62 cmd->duplex = DUPLEX_FULL; in spider_net_ethtool_get_settings()
/linux-4.4.14/Documentation/serial/
Dserial-rs485.txt15 half-duplex mode capable of automatically controlling line direction by
17 half-duplex hardware like an RS485 transceiver or any RS232-connected
18 half-duplex devices like some modems.
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ethtool.c72 cmd->duplex = DUPLEX_FULL; in xgene_get_settings()
80 cmd->duplex = DUPLEX_FULL; in xgene_get_settings()
/linux-4.4.14/drivers/net/ethernet/nuvoton/
Dw90p910_ether.c177 unsigned int speed, unsigned int duplex) in update_linkspeed_register() argument
186 if (duplex == DUPLEX_FULL) { in update_linkspeed_register()
194 if (duplex == DUPLEX_FULL) { in update_linkspeed_register()
209 unsigned int bmsr, bmcr, lpa, speed, duplex; in update_linkspeed() local
238 duplex = DUPLEX_FULL; in update_linkspeed()
240 duplex = DUPLEX_HALF; in update_linkspeed()
244 duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in update_linkspeed()
247 update_linkspeed_register(dev, speed, duplex); in update_linkspeed()
250 (duplex == DUPLEX_FULL) ? "FullDuplex" : "HalfDuplex"); in update_linkspeed()
/linux-4.4.14/drivers/net/ethernet/arc/
Demac_main.c66 if (priv->duplex != phy_dev->duplex) { in arc_emac_adjust_link()
69 if (DUPLEX_FULL == phy_dev->duplex) in arc_emac_adjust_link()
75 priv->duplex = phy_dev->duplex; in arc_emac_adjust_link()
411 phy_dev->duplex = 0; in arc_emac_open()
Demac.h154 unsigned int duplex; member
/linux-4.4.14/drivers/net/ethernet/hisilicon/
Dhip04_eth.c156 unsigned int duplex; member
191 static void hip04_config_port(struct net_device *ndev, u32 speed, u32 duplex) in hip04_config_port() argument
197 priv->duplex = duplex; in hip04_config_port()
221 val = duplex ? GE_DUPLEX_FULL : GE_DUPLEX_HALF; in hip04_config_port()
621 if ((priv->speed != phy->speed) || (priv->duplex != phy->duplex)) { in hip04_adjust_link()
622 hip04_config_port(ndev, phy->speed, phy->duplex); in hip04_adjust_link()
Dhix5hd2_gmac.c226 unsigned int duplex; member
234 static void hix5hd2_config_port(struct net_device *dev, u32 speed, u32 duplex) in hix5hd2_config_port() argument
240 priv->duplex = duplex; in hix5hd2_config_port()
263 if (duplex) in hix5hd2_config_port()
276 writel_relaxed(duplex, priv->base + MAC_DUPLEX_HALF_CTRL); in hix5hd2_config_port()
407 if ((priv->speed != phy->speed) || (priv->duplex != phy->duplex)) { in hix5hd2_adjust_link()
408 hix5hd2_config_port(dev, phy->speed, phy->duplex); in hix5hd2_adjust_link()
/linux-4.4.14/drivers/net/ethernet/sis/
Dsis900.c119 static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex);
242 static void sis900_set_mode(struct sis900_private *, int speed, int duplex);
1312 int speed = 0, duplex = 0; in sis900_timer() local
1328 sis900_read_mode(net_dev, &speed, &duplex); in sis900_timer()
1329 if (duplex) { in sis900_timer()
1330 sis900_set_mode(sis_priv, speed, duplex); in sis900_timer()
1373 int speed, duplex; in sis900_check_mode() local
1382 duplex = FDX_CAPABLE_HALF_SELECTED; in sis900_check_mode()
1383 sis900_set_mode(sis_priv, speed, duplex); in sis900_check_mode()
1401 static void sis900_set_mode(struct sis900_private *sp, int speed, int duplex) in sis900_set_mode() argument
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Dkirkwood-km_fixedeth.dts21 duplex = <1>; /* <DUPLEX_FULL> */
Dspear1310-evb.dts369 pl022,duplex = <0>;
402 pl022,duplex = <0>;
418 pl022,duplex = <0>;
Dkirkwood-dir665.dts257 * fixed speed and duplex. */
263 duplex = <1>;
Dspear1340-evb.dts462 pl022,duplex = <0>;
478 pl022,duplex = <0>;
512 pl022,duplex = <0>;
Dkirkwood-rd88f6281.dtsi134 duplex = <1>;
Darmada-385-linksys.dtsi98 full-duplex;
107 full-duplex;
Dkirkwood-mv88f6281gtw-ge.dts179 duplex = <1>;
Darmada-xp-linksys-mamba.dts122 full-duplex;
133 full-duplex;
Dphy3250.dts148 pl022,duplex = <0>;
/linux-4.4.14/Documentation/sound/oss/
DSoundPro29 The chip is capable of doing full-duplex, but since the driver sees it as an
30 AD1848, it cannot take advantage of this. Moreover, the full-duplex mode is
33 says the user must use WSS Playback and SB16 Recording for full-duplex, so
100 - full-duplex
DVIBRA1613 A good starting point is that the vibra16x chip full-duplex facility
16 it as half-duplex soundcard). Oh, I almost forgot, the RedHat sndconfig
Dultrasound12 dma16 2nd DMA channel, only needed for full duplex operation
/linux-4.4.14/drivers/net/ethernet/ti/
Ddavinci_emac.c338 u32 duplex; /* Link duplex: 0=Half, 1=Full */ member
655 new_duplex = priv->phydev->duplex; in emac_update_phystatus()
661 priv->duplex = new_duplex; in emac_update_phystatus()
662 if (DUPLEX_FULL == priv->duplex) in emac_update_phystatus()
1310 ((priv->duplex == DUPLEX_FULL) ? 0x1 : 0)); in emac_hw_enable()
1465 if (phydev->duplex != priv->duplex) { in emac_adjust_link()
1467 priv->duplex = phydev->duplex; in emac_adjust_link()
1482 priv->duplex = ~0; in emac_adjust_link()
1645 priv->duplex = ~0; in emac_dev_open()
1658 priv->duplex = DUPLEX_FULL; in emac_dev_open()
Dtlan.c57 static int duplex[MAX_TLAN_BOARDS]; variable
61 module_param_array(duplex, int, NULL, 0);
64 MODULE_PARM_DESC(duplex,
548 priv->duplex = ((dev->mem_start & 0x06) == 0x06) ? 0 in tlan_probe1()
562 priv->duplex = duplex[boards_found]; in tlan_probe1()
2233 } else if (priv->duplex == TLAN_DUPLEX_FULL) { in tlan_reset_adapter()
2621 priv->duplex == TLAN_DUPLEX_HALF) { in tlan_phy_start_link()
2624 priv->duplex == TLAN_DUPLEX_FULL) { in tlan_phy_start_link()
2628 priv->duplex == TLAN_DUPLEX_HALF) { in tlan_phy_start_link()
2631 priv->duplex == TLAN_DUPLEX_FULL) { in tlan_phy_start_link()
[all …]
/linux-4.4.14/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c114 int duplex; member
870 smc->duplex = 0; in smc91c92_config()
1294 outw(inw(ioaddr + TCR) | TCR_ENABLE | smc->duplex, ioaddr + TCR); in smc_tx_err()
1329 outw(inw(ioaddr + TCR) | TCR_ENABLE | smc->duplex, ioaddr + TCR); in smc_eph_irq()
1415 if (smc->duplex) in smc_interrupt()
1681 TCR_ENABLE | TCR_PAD_EN | smc->duplex, ioaddr + TCR); in smc_reset()
1779 smc->duplex = (((p & 0x0100) || ((p & 0x1c0) == 0x40)) in media_check()
1784 (p & 0x0180) ? 100 : 10, smc->duplex ? 'F' : 'H'); in media_check()
1787 outw(inw(ioaddr + TCR) | smc->duplex, ioaddr + TCR); in media_check()
1862 ecmd->duplex = (tmp & TCR_FDUPLX) ? DUPLEX_FULL : DUPLEX_HALF; in smc_netdev_get_ecmd()
[all …]
Depic100.c329 int i, ret, option = 0, duplex = 0; in epic_init_one() local
394 duplex = (dev->mem_start & 16) ? 1 : 0; in epic_init_one()
399 duplex = full_duplex[card_idx]; in epic_init_one()
475 if (duplex) { in epic_init_one()
836 int duplex = (negotiated & 0x0100) || (negotiated & 0x01C0) == 0x0040; in check_media() local
842 if (ep->mii.full_duplex != duplex) { in check_media()
843 ep->mii.full_duplex = duplex; in check_media()
/linux-4.4.14/drivers/net/ethernet/natsemi/
Dnatsemi.c587 u8 duplex; /* Duplex, half or full */ member
758 np->duplex = (tmp & BMCR_FULLDPLX)? DUPLEX_FULL : DUPLEX_HALF; in natsemi_init_media()
1164 if (np->duplex == DUPLEX_FULL) in init_phy_fixup()
1645 int duplex = np->duplex; in check_link() local
1676 duplex = np->full_duplex; in check_link()
1677 if (!duplex) { in check_link()
1682 duplex = 1; in check_link()
1684 duplex = 1; in check_link()
1689 if (duplex ^ !!(np->rx_config & RxAcceptTx)) { in check_link()
1694 duplex ? "full" : "half"); in check_link()
[all …]
/linux-4.4.14/arch/arm/mach-mv78xx0/
Dcommon.c243 eth_data->duplex = DUPLEX_FULL; in mv78xx0_ge10_init()
267 eth_data->duplex = DUPLEX_FULL; in mv78xx0_ge11_init()
/linux-4.4.14/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c105 if (priv->old_duplex != phydev->duplex) { in bcmgenet_mii_setup()
107 priv->old_duplex = phydev->duplex; in bcmgenet_mii_setup()
129 if (phydev->duplex != DUPLEX_FULL) in bcmgenet_mii_setup()
601 .duplex = pd->phy_duplex, in bcmgenet_mii_pd_init()
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/
Datl2.c1173 u16 speed, duplex, phy_data; in atl2_check_link() local
1194 ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); in atl2_check_link()
1199 if (speed != SPEED_100 || duplex != FULL_DUPLEX) in atl2_check_link()
1203 if (speed != SPEED_100 || duplex != HALF_DUPLEX) in atl2_check_link()
1207 if (speed != SPEED_10 || duplex != FULL_DUPLEX) in atl2_check_link()
1211 if (speed != SPEED_10 || duplex != HALF_DUPLEX) in atl2_check_link()
1218 adapter->link_duplex != duplex) { in atl2_check_link()
1220 adapter->link_duplex = duplex; in atl2_check_link()
1518 u16 speed, duplex; in atl2_suspend() local
1547 ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); in atl2_suspend()
[all …]
Datl1.c884 static s32 atl1_get_speed_and_duplex(struct atl1_hw *hw, u16 *speed, u16 *duplex) in atl1_get_speed_and_duplex() argument
915 *duplex = FULL_DUPLEX; in atl1_get_speed_and_duplex()
917 *duplex = HALF_DUPLEX; in atl1_get_speed_and_duplex()
1304 u16 speed, duplex, phy_data; in atl1_check_link() local
1323 ret_val = atl1_get_speed_and_duplex(hw, &speed, &duplex); in atl1_check_link()
1329 if (speed != SPEED_1000 || duplex != FULL_DUPLEX) in atl1_check_link()
1333 if (speed != SPEED_100 || duplex != FULL_DUPLEX) in atl1_check_link()
1337 if (speed != SPEED_100 || duplex != HALF_DUPLEX) in atl1_check_link()
1341 if (speed != SPEED_10 || duplex != FULL_DUPLEX) in atl1_check_link()
1345 if (speed != SPEED_10 || duplex != HALF_DUPLEX) in atl1_check_link()
[all …]
/linux-4.4.14/drivers/net/ethernet/sgi/
Dmeth.c182 unsigned long duplex, speed; in meth_check_link() local
188 duplex = ((negotiated & 0x0100) || (negotiated & 0x01C0) == 0x0040) ? in meth_check_link()
191 if ((priv->mac_ctrl & METH_PHY_FDX) ^ duplex) { in meth_check_link()
192 DPRINTK("Setting %s-duplex\n", duplex ? "full" : "half"); in meth_check_link()
193 if (duplex) in meth_check_link()
202 if (duplex) in meth_check_link()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
De1000_mac.c827 u16 speed, duplex; in igb_config_fc_after_link_up() local
996 ret_val = hw->mac.ops.get_speed_and_duplex(hw, &speed, &duplex); in igb_config_fc_after_link_up()
1002 if (duplex == HALF_DUPLEX) in igb_config_fc_after_link_up()
1152 u16 *duplex) in igb_get_speed_and_duplex_copper() argument
1169 *duplex = FULL_DUPLEX; in igb_get_speed_and_duplex_copper()
1172 *duplex = HALF_DUPLEX; in igb_get_speed_and_duplex_copper()
De1000_mac.h47 u16 *duplex);
De1000_82575.c1254 u16 *duplex) in igb_get_link_up_info_82575() argument
1260 duplex); in igb_get_link_up_info_82575()
1263 duplex); in igb_get_link_up_info_82575()
1278 u16 speed, duplex; in igb_check_for_link_82575() local
1282 &duplex); in igb_check_for_link_82575()
1342 u16 *duplex) in igb_get_pcs_speed_and_duplex_82575() argument
1350 *duplex = 0; in igb_get_pcs_speed_and_duplex_82575()
1375 *duplex = FULL_DUPLEX; in igb_get_pcs_speed_and_duplex_82575()
1377 *duplex = HALF_DUPLEX; in igb_get_pcs_speed_and_duplex_82575()
1385 *duplex = FULL_DUPLEX; in igb_get_pcs_speed_and_duplex_82575()
/linux-4.4.14/drivers/net/ethernet/nxp/
Dlpc_eth.c441 int duplex; member
491 if (pldat->duplex == DUPLEX_FULL) { in __lpc_params_setup()
762 (pldat->duplex != phydev->duplex)) { in lpc_handle_link_change()
764 pldat->duplex = phydev->duplex; in lpc_handle_link_change()
772 pldat->duplex = -1; in lpc_handle_link_change()
816 pldat->duplex = -1; in lpc_mii_probe()
1457 pldat->duplex = DUPLEX_FULL; in lpc_eth_drv_probe()
/linux-4.4.14/drivers/net/ethernet/sun/
Dsungem.c1259 int duplex; in gem_begin_auto_negotiation() local
1277 duplex = gp->phy_mii.duplex; in gem_begin_auto_negotiation()
1288 duplex = ep->duplex; in gem_begin_auto_negotiation()
1301 if (duplex == DUPLEX_FULL && in gem_begin_auto_negotiation()
1305 duplex = DUPLEX_HALF; in gem_begin_auto_negotiation()
1315 gp->phy_mii.duplex = duplex; in gem_begin_auto_negotiation()
1327 gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, speed, duplex); in gem_begin_auto_negotiation()
1352 full_duplex = (gp->phy_mii.duplex == DUPLEX_FULL); in gem_set_link_modes()
2542 cmd->duplex = gp->phy_mii.duplex; in gem_get_settings()
2558 cmd->duplex = cmd->port = cmd->phy_address = in gem_get_settings()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c200 cmd->duplex = current_link.duplex; in qede_get_settings()
202 cmd->duplex = DUPLEX_UNKNOWN; in qede_get_settings()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c56 ecmd->duplex = DUPLEX_FULL; in atl1e_get_settings()
58 ecmd->duplex = DUPLEX_HALF; in atl1e_get_settings()
61 ecmd->duplex = DUPLEX_UNKNOWN; in atl1e_get_settings()
Datl1e_hw.c596 int atl1e_get_speed_and_duplex(struct atl1e_hw *hw, u16 *speed, u16 *duplex) in atl1e_get_speed_and_duplex() argument
624 *duplex = FULL_DUPLEX; in atl1e_get_speed_and_duplex()
626 *duplex = HALF_DUPLEX; in atl1e_get_speed_and_duplex()
Datl1e_hw.h36 s32 atl1e_get_speed_and_duplex(struct atl1e_hw *hw, u16 *speed, u16 *duplex);
37 u32 atl1e_auto_get_fc(struct atl1e_adapter *adapter, u16 duplex);
/linux-4.4.14/drivers/net/ethernet/marvell/
Dskge.c321 ecmd->duplex = skge->duplex; in skge_get_settings()
334 skge->duplex = -1; in skge_set_settings()
342 if (ecmd->duplex == DUPLEX_FULL) in skge_set_settings()
344 else if (ecmd->duplex == DUPLEX_HALF) in skge_set_settings()
350 if (ecmd->duplex == DUPLEX_FULL) in skge_set_settings()
352 else if (ecmd->duplex == DUPLEX_HALF) in skge_set_settings()
359 if (ecmd->duplex == DUPLEX_FULL) in skge_set_settings()
361 else if (ecmd->duplex == DUPLEX_HALF) in skge_set_settings()
374 skge->duplex = ecmd->duplex; in skge_set_settings()
1059 skge->duplex == DUPLEX_FULL ? "full" : "half", in skge_link_up()
[all …]
Dmv643xx_eth.c1261 if (mp->phy->duplex == DUPLEX_FULL) in mv643xx_eth_adjust_link()
1542 cmd->duplex = (port_status & FULL_DUPLEX) ? DUPLEX_FULL : DUPLEX_HALF; in mv643xx_eth_get_settings_phyless()
2208 int duplex; in handle_link_event() local
2244 duplex = (port_status & FULL_DUPLEX) ? 1 : 0; in handle_link_event()
2248 speed, duplex ? "full" : "half", fc ? "en" : "dis"); in handle_link_event()
2771 of_property_read_u32(pnp, "duplex", &ppd.duplex); in mv643xx_eth_shared_of_add_port()
3007 static void phy_init(struct mv643xx_eth_private *mp, int speed, int duplex) in phy_init() argument
3014 phy->duplex = 0; in phy_init()
3020 phy->duplex = duplex; in phy_init()
3025 static void init_pscr(struct mv643xx_eth_private *mp, int speed, int duplex) in init_pscr() argument
[all …]
Dmvneta.c371 unsigned int duplex; member
2138 status.duplex = !!(gmac_stat & MVNETA_GMAC_FULL_DUPLEX); in mvneta_fixed_link_update()
2141 changed.duplex = 1; in mvneta_fixed_link_update()
2632 (pp->duplex != phydev->duplex)) { in mvneta_adjust_link()
2640 if (phydev->duplex) in mvneta_adjust_link()
2650 pp->duplex = phydev->duplex; in mvneta_adjust_link()
2657 pp->duplex = -1; in mvneta_adjust_link()
2707 pp->duplex = 0; in mvneta_mdio_probe()
Dsky2.c470 if (sky2->duplex == DUPLEX_FULL) { in sky2_phy_init()
2215 sky2->duplex == DUPLEX_FULL ? "full" : "half", in sky2_link_up()
2268 sky2->duplex = (aux & PHY_M_PS_FULL_DUP) ? DUPLEX_FULL : DUPLEX_HALF; in sky2_autoneg_done()
2299 if (sky2->duplex == DUPLEX_HALF && sky2->speed < SPEED_1000 && in sky2_autoneg_done()
2339 sky2->duplex = in sky2_phy_intr()
3623 ecmd->duplex = sky2->duplex; in sky2_get_settings()
3647 sky2->duplex = -1; in sky2_set_settings()
3655 if (ecmd->duplex == DUPLEX_FULL) in sky2_set_settings()
3657 else if (ecmd->duplex == DUPLEX_HALF) in sky2_set_settings()
3663 if (ecmd->duplex == DUPLEX_FULL) in sky2_set_settings()
[all …]
/linux-4.4.14/drivers/net/ethernet/8390/
Dax88796.c92 int duplex; member
327 (ax->duplex != phy_dev->duplex))) { in ax_handle_link_change()
330 ax->duplex = phy_dev->duplex; in ax_handle_link_change()
337 ax->duplex = -1; in ax_handle_link_change()
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c121 ecmd->duplex = adapter->link_duplex; in netxen_nic_get_settings()
139 ecmd->duplex = adapter->link_duplex; in netxen_nic_get_settings()
154 ecmd->duplex = DUPLEX_FULL; in netxen_nic_get_settings()
248 ecmd->duplex = DUPLEX_UNKNOWN; in netxen_nic_get_settings()
268 ret = nx_fw_cmd_set_gbe_port(adapter, speed, ecmd->duplex, in netxen_nic_set_settings()
276 adapter->link_duplex = ecmd->duplex; in netxen_nic_set_settings()
/linux-4.4.14/arch/arm/mach-orion5x/
Drd88f6183ap-ge-setup.c31 .duplex = DUPLEX_FULL,
Drd88f5181l-fxo-setup.c92 .duplex = DUPLEX_FULL,
Drd88f5181l-ge-setup.c93 .duplex = DUPLEX_FULL,
Dwnr854t-setup.c97 .duplex = DUPLEX_FULL,
Dwrt350n-v2-setup.c182 .duplex = DUPLEX_FULL,
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c229 cmd->duplex = DUPLEX_FULL; in bnx2x_get_vf_settings()
231 cmd->duplex = DUPLEX_HALF; in bnx2x_get_vf_settings()
235 cmd->duplex = DUPLEX_UNKNOWN; in bnx2x_get_vf_settings()
252 cmd->duplex, cmd->port, cmd->phy_address, cmd->transceiver, in bnx2x_get_vf_settings()
277 cmd->duplex = bp->link_vars.duplex; in bnx2x_get_settings()
284 cmd->duplex = DUPLEX_UNKNOWN; in bnx2x_get_settings()
351 cmd->duplex, cmd->port, cmd->phy_address, cmd->transceiver, in bnx2x_get_settings()
372 cmd->duplex, cmd->port, cmd->phy_address, cmd->transceiver, in bnx2x_set_settings()
378 if (cmd->duplex == DUPLEX_UNKNOWN) in bnx2x_set_settings()
379 cmd->duplex = DUPLEX_FULL; in bnx2x_set_settings()
[all …]
Dbnx2x_link.c1602 if (vars->duplex == DUPLEX_HALF) in bnx2x_umac_enable()
4716 vars->duplex = DUPLEX_FULL; in bnx2x_sync_link()
4720 vars->duplex = DUPLEX_HALF; in bnx2x_sync_link()
4727 vars->duplex = DUPLEX_HALF; in bnx2x_sync_link()
4735 vars->duplex = DUPLEX_HALF; in bnx2x_sync_link()
4742 vars->duplex = DUPLEX_HALF; in bnx2x_sync_link()
4798 vars->duplex = DUPLEX_FULL; in bnx2x_sync_link()
4874 vars->line_speed, vars->duplex, vars->flow_ctrl); in bnx2x_link_status_update()
5615 vars->duplex = DUPLEX_FULL; in bnx2x_get_link_speed_duplex()
5630 u16 gp_status, duplex = DUPLEX_HALF, link_up = 0, speed_mask; in bnx2x_link_settings_status() local
[all …]
/linux-4.4.14/drivers/net/hamradio/
D6pack.c113 unsigned char duplex; member
206 case 5: sp->duplex = p[1]; in sp_encaps()
219 if (sp->duplex == 1) { in sp_encaps()
618 sp->duplex = 0; in sixpack_open()
914 if ((sp->status2 != 0) && (sp->duplex == 1)) { in decode_prio_command()
DKconfig121 ser12 design in full-duplex mode. In addition, it allows the
124 driver, "BAYCOM ser12 half-duplex driver for AX.25" is the old
141 ser12 design in half-duplex mode. This is the old driver. It is
143 the full-duplex driver. This driver is deprecated. To configure
/linux-4.4.14/arch/m68k/coldfire/
Dm5272.c121 .duplex = 0,
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-net109 What: /sys/clas/net/<iface>/duplex
114 Indicates the interface latest or current duplex value. Possible
116 half: half duplex
117 full: full duplex
/linux-4.4.14/drivers/staging/slicoss/
Dslicoss.c233 u32 duplex; in slic_link_config() local
351 duplex = 0; in slic_link_config()
353 duplex = PCR_DUPLEX_FULL; in slic_link_config()
365 phy_config = (MIICR_REG_PCR | (PCR_POWERDOWN | speed | duplex)); in slic_link_config()
378 (MIICR_REG_PCR | (PCR_RESET | speed | duplex)); in slic_link_config()
382 phy_config = (MIICR_REG_PCR | (speed | duplex)); in slic_link_config()
2607 edata.duplex = DUPLEX_FULL; in slic_ioctl()
2609 edata.duplex = DUPLEX_HALF; in slic_ioctl()
2629 edata.duplex = DUPLEX_FULL; in slic_ioctl()
2631 edata.duplex = DUPLEX_HALF; in slic_ioctl()
[all …]
/linux-4.4.14/drivers/net/usb/
Dasix_devices.c181 if (ecmd.duplex != DUPLEX_FULL) in ax88172_link_reset()
185 ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in ax88172_link_reset()
287 if (ecmd.duplex != DUPLEX_FULL) in ax88772_link_reset()
291 ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in ax88772_link_reset()
699 if (ecmd.duplex == DUPLEX_FULL) in ax88178_link_reset()
705 speed, ecmd.duplex, mode); in ax88178_link_reset()
Dax88172a.c76 if (phydev->duplex == DUPLEX_HALF) in ax88172a_adjust_link()
87 phydev->speed, phydev->duplex, mode); in ax88172a_adjust_link()
/linux-4.4.14/drivers/of/
Dof_mdio.c335 status.duplex = of_property_read_bool(fixed_link_node, in of_phy_register_fixed_link()
356 status.duplex = be32_to_cpu(fixed_link_prop[1]); in of_phy_register_fixed_link()
/linux-4.4.14/drivers/net/ethernet/renesas/
Dravb_main.c75 if (priv->duplex) /* Full */ in ravb_set_duplex()
349 ecmr |= ECMR_ZPF | (priv->duplex ? ECMR_DM : 0) | ECMR_TE | ECMR_RE; in ravb_emac_init()
839 if (phydev->duplex != priv->duplex) { in ravb_adjust_link()
841 priv->duplex = phydev->duplex; in ravb_adjust_link()
862 priv->duplex = -1; in ravb_adjust_link()
881 priv->duplex = -1; in ravb_phy_init()
967 if (ecmd->duplex == DUPLEX_FULL) in ravb_set_settings()
968 priv->duplex = 1; in ravb_set_settings()
970 priv->duplex = 0; in ravb_set_settings()
Dsh_eth.c470 if (mdp->duplex) /* Full */ in sh_eth_set_duplex()
1348 ECMR_ZPF | (mdp->duplex ? ECMR_DM : 0) | ECMR_TE | ECMR_RE; in sh_eth_dev_init()
1810 if (phydev->duplex != mdp->duplex) { in sh_eth_adjust_link()
1812 mdp->duplex = phydev->duplex; in sh_eth_adjust_link()
1836 mdp->duplex = -1; in sh_eth_adjust_link()
1854 mdp->duplex = -1; in sh_eth_phy_init()
1941 if (ecmd->duplex == DUPLEX_FULL) in sh_eth_set_settings()
1942 mdp->duplex = 1; in sh_eth_set_settings()
1944 mdp->duplex = 0; in sh_eth_set_settings()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c132 ecmd->duplex = linfo->link.s.duplex; in lio_get_settings()
135 ecmd->duplex = DUPLEX_UNKNOWN; in lio_get_settings()
964 (ecmd->duplex != DUPLEX_HALF && in lio_set_settings()
965 ecmd->duplex != DUPLEX_FULL))) in lio_set_settings()
998 nctrl.ncmd.s.param3 = ecmd->duplex; in lio_set_settings()
1022 ecmd.duplex = 0; in lio_nway_reset()
Dliquidio_common.h498 u64 duplex:8; member
514 u64 duplex:8;
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmdio_10g.c241 ecmd->duplex == prev.duplex && in efx_mdio_set_settings()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dsb1250-mac.c307 static int sbmac_set_duplex(struct sbmac_softc *s, enum sbmac_duplex duplex,
1891 static int sbmac_set_duplex(struct sbmac_softc *s, enum sbmac_duplex duplex, in sbmac_set_duplex() argument
1900 s->sbm_duplex = duplex; in sbmac_set_duplex()
1919 switch (duplex) { in sbmac_set_duplex()
2413 duplex_chg = (sc->sbm_duplex != phy_dev->duplex); in sbmac_mii_poll()
2431 if (phy_dev->duplex == DUPLEX_FULL) { in sbmac_mii_poll()
2441 phy_dev->duplex == DUPLEX_FULL ? 'F' : 'H'); in sbmac_mii_poll()
2446 sc->sbm_duplex = phy_dev->duplex; in sbmac_mii_poll()
Dbnx2.c947 if (bp->duplex == DUPLEX_HALF) in bnx2_report_fw_link()
953 if (bp->duplex == DUPLEX_HALF) in bnx2_report_fw_link()
959 if (bp->duplex == DUPLEX_HALF) in bnx2_report_fw_link()
965 if (bp->duplex == DUPLEX_HALF) in bnx2_report_fw_link()
1009 bp->duplex == DUPLEX_FULL ? "full" : "half"); in bnx2_report_link()
1041 if (bp->duplex == DUPLEX_FULL) { in bnx2_resolve_flow_ctrl()
1047 if (bp->duplex != DUPLEX_FULL) { in bnx2_resolve_flow_ctrl()
1121 bp->duplex = bp->req_duplex; in bnx2_5709s_linkup()
1141 bp->duplex = DUPLEX_FULL; in bnx2_5709s_linkup()
1143 bp->duplex = DUPLEX_HALF; in bnx2_5709s_linkup()
[all …]
Dbcm63xx_enet.c803 if (phydev->link && phydev->duplex != priv->old_duplex) { in bcm_enet_adjust_phy_link()
805 (phydev->duplex == DUPLEX_FULL) ? 1 : 0); in bcm_enet_adjust_phy_link()
807 priv->old_duplex = phydev->duplex; in bcm_enet_adjust_phy_link()
838 DUPLEX_FULL == phydev->duplex ? "full" : "half", in bcm_enet_adjust_phy_link()
1467 cmd->duplex = (priv->force_duplex_full) ? in bcm_enet_get_settings()
1498 priv->force_duplex_full = (cmd->duplex == DUPLEX_FULL) ? 1 : 0; in bcm_enet_set_settings()
2051 int val, j, up, advertise, lpa, speed, duplex, media; in swphy_poll_timer() local
2096 duplex = (media & ADVERTISE_FULL) ? 1 : 0; in swphy_poll_timer()
2113 duplex = (lpa & LPA_1000FULL); in swphy_poll_timer()
2119 port->name, speed, duplex ? "full" : "half"); in swphy_poll_timer()
[all …]
/linux-4.4.14/drivers/net/ethernet/aeroflex/
Dgreth.c1236 if ((greth->speed != phydev->speed) || (greth->duplex != phydev->duplex)) { in greth_link_change()
1240 if (phydev->duplex) in greth_link_change()
1250 greth->duplex = phydev->duplex; in greth_link_change()
1258 greth->duplex = -1; in greth_link_change()
1271 DUPLEX_FULL == phydev->duplex ? "Full" : "Half"); in greth_link_change()
1309 greth->duplex = -1; in greth_mdio_probe()
Dgreth.h131 unsigned int duplex; member
/linux-4.4.14/include/linux/amba/
Dpl022.h290 enum ssp_duplex duplex; member
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
Dnic_main.c43 u8 duplex[MAX_LMAC]; member
663 nic->duplex[vf] = 0; in nic_handle_mbx_intr()
975 nic->duplex[vf] = link.duplex; in nic_poll_for_link()
980 mbx.link_status.duplex = link.duplex; in nic_poll_for_link()
Dnic.h280 u8 duplex; member
438 u8 duplex; member
Dnicvf_ethtool.c117 cmd->duplex = DUPLEX_UNKNOWN; in nicvf_get_settings()
129 cmd->duplex = nic->duplex; in nicvf_get_settings()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c579 if (link_info->duplex & BNXT_LINK_DUPLEX_FULL) in bnxt_get_settings()
580 cmd->duplex = DUPLEX_FULL; in bnxt_get_settings()
582 cmd->duplex = DUPLEX_UNKNOWN; in bnxt_get_settings()
686 if (cmd->duplex == DUPLEX_HALF) { in bnxt_set_settings()
692 if (cmd->duplex == DUPLEX_UNKNOWN) in bnxt_set_settings()
693 cmd->duplex = DUPLEX_FULL; in bnxt_set_settings()
/linux-4.4.14/drivers/net/dsa/
Dbcm_sf2.c1210 if (phydev->duplex == DUPLEX_FULL) in bcm_sf2_sw_adjust_link()
1220 u32 duplex, pause; in bcm_sf2_sw_fixed_link_update() local
1223 duplex = core_readl(priv, CORE_DUPSTS); in bcm_sf2_sw_fixed_link_update()
1245 status->duplex = 1; in bcm_sf2_sw_fixed_link_update()
1248 status->duplex = !!(duplex & (1 << port)); in bcm_sf2_sw_fixed_link_update()
/linux-4.4.14/drivers/net/ethernet/tundra/
Dtsi108_eth.c116 unsigned int duplex; member
178 data->link_up, data->speed, data->duplex); in dump_eth_one()
296 u32 duplex; in tsi108_check_phy() local
305 duplex = mii_check_media(&data->mii_if, netif_msg_link(data), data->init_media); in tsi108_check_phy()
312 if ((speed != data->speed) || duplex) { in tsi108_check_phy()
332 data->duplex = 2; in tsi108_check_phy()
336 data->duplex = 1; in tsi108_check_phy()
/linux-4.4.14/net/core/
Dnet-sysfs.c223 const char *duplex; in duplex_show() local
224 switch (cmd.duplex) { in duplex_show()
226 duplex = "half"; in duplex_show()
229 duplex = "full"; in duplex_show()
232 duplex = "unknown"; in duplex_show()
235 ret = sprintf(buf, "%s\n", duplex); in duplex_show()
241 static DEVICE_ATTR_RO(duplex);
/linux-4.4.14/drivers/net/cris/
Deth_v10.c89 enum duplex enum
182 static enum duplex current_duplex;
208 static void e100_set_duplex(struct net_device* dev, enum duplex);
548 SETF(network_rec_config_shadow, R_NETWORK_REC_CONFIG, duplex, full_duplex); in e100_open()
815 SETF(network_rec_config_shadow, R_NETWORK_REC_CONFIG, duplex, full_duplex); in e100_check_duplex()
880 e100_set_duplex(struct net_device* dev, enum duplex new_duplex) in e100_set_duplex()
1441 e100_set_duplex(dev, ecmd->duplex == DUPLEX_HALF ? half : full); in e100_set_settings()
/linux-4.4.14/drivers/net/bonding/
Dbond_procfs.c178 if (slave->duplex == DUPLEX_UNKNOWN) in bond_info_show_slave()
181 seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half"); in bond_info_show_slave()
Dbond_main.c384 slave->duplex = DUPLEX_UNKNOWN; in bond_update_speed_duplex()
394 switch (ecmd.duplex) { in bond_update_speed_duplex()
403 slave->duplex = ecmd.duplex; in bond_update_speed_duplex()
740 if (prim->speed == curr->speed && prim->duplex <= curr->duplex) in bond_choose_primary_or_current()
2111 slave->duplex ? "full" : "half"); in bond_miimon_commit()
4038 ecmd->duplex = DUPLEX_UNKNOWN; in bond_ethtool_get_settings()
4050 if (ecmd->duplex == DUPLEX_UNKNOWN && in bond_ethtool_get_settings()
4051 slave->duplex != DUPLEX_UNKNOWN) in bond_ethtool_get_settings()
4052 ecmd->duplex = slave->duplex; in bond_ethtool_get_settings()
Dbond_3ad.c337 switch (slave->duplex) { in __get_duplex()
2317 u8 duplex = 0; in ad_update_actor_keys() local
2325 duplex = __get_duplex(port); in ad_update_actor_keys()
2326 port->actor_admin_port_key |= (speed << 1) | duplex; in ad_update_actor_keys()
2332 if (duplex) in ad_update_actor_keys()
2342 } else if (duplex && ospeed != speed) { in ad_update_actor_keys()
/linux-4.4.14/drivers/spi/
Dspi-bfin-sport.c50 void (*duplex) (struct bfin_sport_spi_master_data *); member
206 .duplex = bfin_sport_spi_u8_duplex,
246 .duplex = bfin_sport_spi_u16_duplex,
441 drv_data->ops->duplex(drv_data); in bfin_sport_spi_pump_transfers()
Dspi-adi-v3.c48 void (*duplex) (struct adi_spi_master *); member
273 .duplex = adi_spi_u8_duplex,
318 .duplex = adi_spi_u16_duplex,
363 .duplex = adi_spi_u32_duplex,
546 drv_data->ops->duplex(drv_data); in adi_spi_pio_xfer()
/linux-4.4.14/drivers/net/ethernet/amd/
Dau1000_eth.c446 if (phydev->link && (aup->old_duplex != phydev->duplex)) { in au1000_adjust_link()
453 if (DUPLEX_FULL == phydev->duplex) { in au1000_adjust_link()
465 aup->old_duplex = phydev->duplex; in au1000_adjust_link()
489 DUPLEX_FULL == phydev->duplex ? "Full" : "Half"); in au1000_adjust_link()
786 if (aup->phy_dev->link && (DUPLEX_FULL == aup->phy_dev->duplex)) in au1000_init()
902 if (!aup->phy_dev || (DUPLEX_FULL == aup->phy_dev->duplex)) { in au1000_update_tx_stats()
/linux-4.4.14/drivers/net/fjes/
Dfjes_ethtool.c115 ecmd->duplex = DUPLEX_FULL; in fjes_get_settings()
/linux-4.4.14/drivers/net/ethernet/microchip/
Denc28j60.c778 enc28j60_setlink(struct net_device *ndev, u8 autoneg, u16 speed, u8 duplex) in enc28j60_setlink() argument
788 priv->full_duplex = (duplex == DUPLEX_FULL); in enc28j60_setlink()
1045 int duplex; in enc28j60_check_link_status() local
1052 duplex = reg & PHSTAT2_DPXSTAT; in enc28j60_check_link_status()
1058 duplex ? "Full duplex" : "Half duplex"); in enc28j60_check_link_status()
1491 cmd->duplex = priv->full_duplex ? DUPLEX_FULL : DUPLEX_HALF; in enc28j60_get_settings()
1502 ethtool_cmd_speed(cmd), cmd->duplex); in enc28j60_set_settings()
Dencx24j600.c690 u8 duplex) in encx24j600_setlink() argument
701 priv->full_duplex = (duplex == DUPLEX_FULL); in encx24j600_setlink()
955 cmd->duplex = priv->full_duplex ? DUPLEX_FULL : DUPLEX_HALF; in encx24j600_get_settings()
966 ethtool_cmd_speed(cmd), cmd->duplex); in encx24j600_set_settings()
/linux-4.4.14/drivers/net/ethernet/octeon/
Docteon_mgmt.c844 prtx_cfg.s.duplex = 1; in octeon_mgmt_update_link()
846 prtx_cfg.s.duplex = p->phydev->duplex; in octeon_mgmt_update_link()
874 prtx_cfg.s.burst = p->phydev->duplex; in octeon_mgmt_update_link()
922 && (p->last_duplex != p->phydev->duplex in octeon_mgmt_adjust_link()
933 p->last_duplex = p->phydev->duplex; in octeon_mgmt_adjust_link()
941 DUPLEX_FULL == p->phydev->duplex ? in octeon_mgmt_adjust_link()
/linux-4.4.14/drivers/net/ethernet/xscale/
Dixp4xx_eth.c180 int speed, duplex; member
575 if (port->speed == phydev->speed && port->duplex == phydev->duplex) in ixp4xx_adjust_link()
579 port->duplex = phydev->duplex; in ixp4xx_adjust_link()
581 if (port->duplex) in ixp4xx_adjust_link()
589 dev->name, port->speed, port->duplex ? "full" : "half"); in ixp4xx_adjust_link()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c493 u8 duplex = DUPLEX_UNKNOWN; in get_speed_duplex() local
501 duplex = DUPLEX_FULL; in get_speed_duplex()
507 cmd->duplex = duplex; in get_speed_duplex()
/linux-4.4.14/drivers/net/ethernet/nvidia/
Dforcedeth.c762 int duplex; member
3219 static void nv_force_linkspeed(struct net_device *dev, int speed, int duplex) in nv_force_linkspeed() argument
3227 np->duplex = duplex; in nv_force_linkspeed()
3246 if (np->duplex == 0) in nv_force_linkspeed()
3277 writel(NVREG_MISC1_FORCE | (np->duplex ? 0 : NVREG_MISC1_HD), in nv_force_linkspeed()
3305 int newdup = np->duplex; in nv_update_linkspeed()
3401 if (np->duplex == newdup && np->linkspeed == newls) in nv_update_linkspeed()
3404 np->duplex = newdup; in nv_update_linkspeed()
3430 if (np->duplex == 0) in nv_update_linkspeed()
3443 if (!phy_exp && !np->duplex && (np->driver_data & DEV_HAS_COLLISION_FIX)) { in nv_update_linkspeed()
[all …]
/linux-4.4.14/drivers/net/ethernet/3com/
D3c509.c1067 ecmd->duplex = DUPLEX_HALF; in el3_netdev_get_ecmd()
1080 ecmd->duplex = DUPLEX_FULL; in el3_netdev_get_ecmd()
1096 if ((ecmd->duplex != DUPLEX_HALF) && (ecmd->duplex != DUPLEX_FULL)) in el3_netdev_set_ecmd()
1134 if (ecmd->duplex == DUPLEX_FULL) in el3_netdev_set_ecmd()
Dtyphoon.c271 u8 duplex; member
944 tp->duplex = (s->linkStatus & TYPHOON_LINK_FULL_DUPLEX) ? in typhoon_do_get_stats()
1043 cmd->duplex = tp->duplex; in typhoon_get_settings()
1069 if (cmd->duplex == DUPLEX_HALF) { in typhoon_set_settings()
1076 } else if (cmd->duplex == DUPLEX_FULL) { in typhoon_set_settings()
1096 tp->duplex = 0xff; /* invalid */ in typhoon_set_settings()
1099 tp->duplex = cmd->duplex; in typhoon_set_settings()
/linux-4.4.14/drivers/net/ethernet/micrel/
Dks8695net.c897 cmd->duplex = (ctrl & WMC_WDS) ? in ks8695_wan_get_settings()
905 cmd->duplex = (ctrl & WMC_WANFF) ? in ks8695_wan_get_settings()
925 if ((cmd->duplex != DUPLEX_HALF) && (cmd->duplex != DUPLEX_FULL)) in ks8695_wan_set_settings()
967 if (cmd->duplex == DUPLEX_FULL) in ks8695_wan_set_settings()
/linux-4.4.14/drivers/net/ethernet/pasemi/
Dpasemi_mac.h99 int duplex; member
/linux-4.4.14/arch/mips/bcm47xx/
Dsetup.c262 .duplex = DUPLEX_FULL,
/linux-4.4.14/drivers/staging/octeon/
Dethernet-mdio.c125 link_info.s.full_duplex = priv->phydev->duplex ? 1 : 0; in cvm_oct_adjust_link()
/linux-4.4.14/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c121 ecmd->duplex = DUPLEX_FULL; in pch_gbe_set_settings()
129 hw->mac.link_duplex = ecmd->duplex; in pch_gbe_set_settings()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c675 int duplex, fasteth, result, mii_reg; in update_link() local
712 duplex = mii_reg & BMCR_FULLDPLX; in update_link()
719 duplex = (negotiated & LPA_100FULL) || ((negotiated & 0x02C0) == LPA_10FULL); in update_link()
722 duplex |= np->mii_if.force_media; in update_link()
725 if (duplex) in update_link()
732 fasteth ? 100 : 10, duplex ? "full" : "half", in update_link()
/linux-4.4.14/Documentation/
Dhsi.txt11 The HSI interface supports full duplex communication over multiple channels
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dfsl,esai.txt3 The Enhanced Serial Audio Interface (ESAI) provides a full-duplex serial port
/linux-4.4.14/drivers/net/ethernet/intel/e1000/
De1000_hw.c2081 u16 duplex; in e1000_config_fc_after_link_up() local
2257 e1000_get_speed_and_duplex(hw, &speed, &duplex); in e1000_config_fc_after_link_up()
2264 if (duplex == HALF_DUPLEX) in e1000_config_fc_after_link_up()
2530 u16 speed, duplex; in e1000_check_for_link() local
2532 e1000_get_speed_and_duplex(hw, &speed, &duplex); in e1000_check_for_link()
2583 s32 e1000_get_speed_and_duplex(struct e1000_hw *hw, u16 *speed, u16 *duplex) in e1000_get_speed_and_duplex() argument
2603 *duplex = FULL_DUPLEX; in e1000_get_speed_and_duplex()
2606 *duplex = HALF_DUPLEX; in e1000_get_speed_and_duplex()
2612 *duplex = FULL_DUPLEX; in e1000_get_speed_and_duplex()
2625 *duplex = HALF_DUPLEX; in e1000_get_speed_and_duplex()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c108 ecmd->duplex = DUPLEX_FULL; in ixgb_get_settings()
111 ecmd->duplex = DUPLEX_UNKNOWN; in ixgb_get_settings()
135 (speed + ecmd->duplex != SPEED_10000 + DUPLEX_FULL)) in ixgb_set_settings()
/linux-4.4.14/drivers/net/ethernet/aurora/
Dnb8800.h294 int duplex; member
Dnb8800.c607 if (!priv->duplex) in nb8800_mac_config()
676 if (phydev->duplex != priv->duplex) { in nb8800_link_reconfigure()
677 priv->duplex = phydev->duplex; in nb8800_link_reconfigure()
/linux-4.4.14/drivers/net/ethernet/rdc/
Dr6040.c1013 if (phydev->link && (lp->old_duplex != phydev->duplex)) { in r6040_adjust_link()
1014 lp->mcr0 |= (phydev->duplex == DUPLEX_FULL ? MCR0_FD : 0); in r6040_adjust_link()
1018 lp->old_duplex = phydev->duplex; in r6040_adjust_link()
1026 DUPLEX_FULL == phydev->duplex ? "full" : "half"); in r6040_adjust_link()
/linux-4.4.14/drivers/net/ethernet/cadence/
Dmacb.c312 (bp->duplex != phydev->duplex)) { in macb_handle_link_change()
320 if (phydev->duplex) in macb_handle_link_change()
331 bp->duplex = phydev->duplex; in macb_handle_link_change()
339 bp->duplex = -1; in macb_handle_link_change()
358 phydev->duplex == DUPLEX_FULL ? in macb_handle_link_change()
412 bp->duplex = -1; in macb_mii_probe()
1705 bp->duplex = DUPLEX_HALF; in macb_init_hw()
/linux-4.4.14/drivers/staging/wilc1000/
DKconfig59 full-duplex slave synchronous serial interface that is available
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c118 ecmd->duplex = DUPLEX_FULL; in enic_get_settings()
121 ecmd->duplex = DUPLEX_UNKNOWN; in enic_get_settings()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dswitchx2.c688 u8 duplex = DUPLEX_UNKNOWN; in mlxsw_sx_from_ptys_speed_duplex() local
697 duplex = DUPLEX_FULL; in mlxsw_sx_from_ptys_speed_duplex()
703 cmd->duplex = duplex; in mlxsw_sx_from_ptys_speed_duplex()
/linux-4.4.14/arch/cris/include/arch-v32/arch/hwregs/
Deth_defs.h154 unsigned int duplex : 1; member

12