Lines Matching +full:0 +full:xf003
20 #define MV_PCS_CONFIG 0xF002
21 #define MV_PCS_HOST_XAUI 0x73
22 #define MV_PCS_LINE_10GBR (0x71 << 8)
23 #define MV_PCS_LINE_1GBX_AN (0x7B << 8)
24 #define MV_PCS_LINE_SGMII_AN (0x7F << 8)
27 #define MV_PORT_RST 0xF003
33 #define MV_RX_SIGNAL_DETECT 0x000A
34 #define MV_RX_SIGNAL_DETECT_GLOBAL BIT(0)
37 #define MV_1GBX_CTRL (0x2000 + MII_BMCR)
40 #define MV_1GBX_STAT (0x2000 + MII_BMSR)
43 #define MV_1GBX_ADVERTISE (0x2000 + MII_ADVERTISE)
46 #define MV_1GBX_PHY_STAT 0xA003
80 if (ret < 0) in mv2222_soft_reset()
92 if (ret < 0) in mv2222_disable_aneg()
102 if (ret < 0) in mv2222_enable_aneg()
246 if (ret < 0) in mv2222_swap_line_type()
250 return 0; in mv2222_swap_line_type()
262 if (ret < 0) in mv2222_setup_forced()
269 if (ret < 0) in mv2222_setup_forced()
283 return 0; in mv2222_config_aneg()
296 if (ret < 0) in mv2222_config_aneg()
308 if (ret < 0) in mv2222_aneg_done()
316 if (ret < 0) in mv2222_aneg_done()
322 /* Returns negative on error, 0 if link is down, 1 if link is up */
326 int val, link = 0; in mv2222_read_status_10g()
329 if (val < 0) in mv2222_read_status_10g()
344 timeout = 0; in mv2222_read_status_10g()
347 if (val < 0) in mv2222_read_status_10g()
358 /* Returns negative on error, 0 if link is down, 1 if link is up */
362 int val, link = 0; in mv2222_read_status_1g()
365 if (val < 0) in mv2222_read_status_1g()
373 timeout = 0; in mv2222_read_status_1g()
376 if (val < 0) in mv2222_read_status_1g()
382 return 0; in mv2222_read_status_1g()
386 return 0; in mv2222_read_status_1g()
391 if (val < 0) in mv2222_read_status_1g()
417 if (val < 0 || !(val & MV_RX_SIGNAL_DETECT_GLOBAL)) in mv2222_link_is_operational()
431 phydev->link = 0; in mv2222_read_status()
436 return 0; in mv2222_read_status()
443 if (link < 0) in mv2222_read_status()
448 return 0; in mv2222_read_status()
465 return 0; in mv2222_get_features()
473 return 0; in mv2222_config_init()
485 __ETHTOOL_DECLARE_LINK_MODE_MASK(sfp_supported) = { 0, }; in mv2222_sfp_insert()
508 if (ret < 0) in mv2222_sfp_insert()
565 __ETHTOOL_DECLARE_LINK_MODE_MASK(supported) = { 0, }; in mv2222_probe()