Lines Matching full:duplex
30 static int speed_duplex_to_capa(int speed, unsigned int duplex) in speed_duplex_to_capa() argument
32 if (duplex == DUPLEX_UNKNOWN || in speed_duplex_to_capa()
33 (speed > SPEED_1000 && duplex != DUPLEX_FULL)) in speed_duplex_to_capa()
37 case SPEED_10: return duplex == DUPLEX_FULL ? in speed_duplex_to_capa()
39 case SPEED_100: return duplex == DUPLEX_FULL ? in speed_duplex_to_capa()
41 case SPEED_1000: return duplex == DUPLEX_FULL ? in speed_duplex_to_capa()
81 capa = speed_duplex_to_capa(linkmode->speed, linkmode->duplex); in phy_caps_init()
151 * @fdx_only: Full duplex match only when set
154 * linkmodes. When set, fdx_only will ignore half-duplex matches.
163 if (fdx_only && lcap->duplex != DUPLEX_FULL) in phy_caps_lookup_by_linkmode_rev()
174 * phy_caps_lookup() - Lookup capabilities by speed/duplex that matches a mask
176 * @duplex: Duplex to match
181 * and that matches the passed speed and duplex.
183 * When @exact is set, an exact match is performed on speed and duplex, meaning
184 * that if the linkmodes for the given speed and duplex intersect the supported
195 phy_caps_lookup(int speed, unsigned int duplex, const unsigned long *supported, in phy_caps_lookup() argument
203 /* exact match on speed and duplex*/ in phy_caps_lookup()
204 if (lcap->speed == speed && lcap->duplex == duplex) { in phy_caps_lookup()
237 * phy_caps_valid() - Validate a linkmodes set agains given speed and duplex
239 * @duplex: input duplex to validate. Passing DUPLEX_UNKNOWN is always not valid
243 * the given speed and duplex, false otherwise.
245 bool phy_caps_valid(int speed, int duplex, const unsigned long *linkmodes) in phy_caps_valid() argument
247 int capa = speed_duplex_to_capa(speed, duplex); in phy_caps_valid()
271 * @interface: The PHY interface we want to get the possible Speed/Duplex from