Lines Matching refs:rv
107 int rv; in handle_mac_address() local
109 rv = eth_env_get_enetaddr("ethaddr", enetaddr); in handle_mac_address()
110 if (rv) in handle_mac_address()
113 rv = cl_eeprom_read_mac_addr(enetaddr, CONFIG_SYS_I2C_EEPROM_BUS); in handle_mac_address()
114 if (rv) in handle_mac_address()
130 int rv, n = 0; in board_eth_init() local
134 rv = handle_mac_address(); in board_eth_init()
135 if (rv) in board_eth_init()
142 rv = cpsw_register(&cpsw_data); in board_eth_init()
143 if (rv < 0) in board_eth_init()
144 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
146 n += rv; in board_eth_init()