Lines Matching +full:0 +full:xf002

23 #define	MV_PCS_CONFIG		0xF002
24 #define MV_PCS_HOST_XAUI 0x73
25 #define MV_PCS_LINE_10GBR (0x71 << 8)
26 #define MV_PCS_LINE_1GBX_AN (0x7B << 8)
27 #define MV_PCS_LINE_SGMII_AN (0x7F << 8)
30 #define MV_PORT_RST 0xF003
36 #define MV_RX_SIGNAL_DETECT 0x000A
37 #define MV_RX_SIGNAL_DETECT_GLOBAL BIT(0)
40 #define MV_1GBX_CTRL (0x2000 + MII_BMCR)
43 #define MV_1GBX_STAT (0x2000 + MII_BMSR)
46 #define MV_1GBX_ADVERTISE (0x2000 + MII_ADVERTISE)
49 #define MV_1GBX_PHY_STAT 0xA003
83 if (ret < 0) in mv2222_soft_reset()
95 if (ret < 0) in mv2222_disable_aneg()
105 if (ret < 0) in mv2222_enable_aneg()
249 if (ret < 0) in mv2222_swap_line_type()
253 return 0; in mv2222_swap_line_type()
265 if (ret < 0) in mv2222_setup_forced()
272 if (ret < 0) in mv2222_setup_forced()
286 return 0; in mv2222_config_aneg()
299 if (ret < 0) in mv2222_config_aneg()
311 if (ret < 0) in mv2222_aneg_done()
319 if (ret < 0) in mv2222_aneg_done()
325 /* Returns negative on error, 0 if link is down, 1 if link is up */
329 int val, link = 0; in mv2222_read_status_10g()
332 if (val < 0) in mv2222_read_status_10g()
347 timeout = 0; in mv2222_read_status_10g()
350 if (val < 0) in mv2222_read_status_10g()
361 /* Returns negative on error, 0 if link is down, 1 if link is up */
365 int val, link = 0; in mv2222_read_status_1g()
368 if (val < 0) in mv2222_read_status_1g()
376 timeout = 0; in mv2222_read_status_1g()
379 if (val < 0) in mv2222_read_status_1g()
385 return 0; in mv2222_read_status_1g()
389 return 0; in mv2222_read_status_1g()
394 if (val < 0) in mv2222_read_status_1g()
420 if (val < 0 || !(val & MV_RX_SIGNAL_DETECT_GLOBAL)) in mv2222_link_is_operational()
434 phydev->link = 0; in mv2222_read_status()
439 return 0; in mv2222_read_status()
446 if (link < 0) in mv2222_read_status()
451 return 0; in mv2222_read_status()
468 return 0; in mv2222_get_features()
476 return 0; in mv2222_config_init()
488 __ETHTOOL_DECLARE_LINK_MODE_MASK(sfp_supported) = { 0, }; in mv2222_sfp_insert()
511 if (ret < 0) in mv2222_sfp_insert()
566 __ETHTOOL_DECLARE_LINK_MODE_MASK(supported) = { 0, }; in mv2222_probe()