Lines Matching refs:rv
111 int rv; in handle_mac_address() local
113 rv = eth_env_get_enetaddr("ethaddr", enetaddr); in handle_mac_address()
114 if (rv) in handle_mac_address()
117 rv = cl_eeprom_read_mac_addr(enetaddr, CONFIG_SYS_I2C_EEPROM_BUS); in handle_mac_address()
118 if (rv) in handle_mac_address()
134 int rv, n = 0; in board_eth_init() local
138 rv = handle_mac_address(); in board_eth_init()
139 if (rv) in board_eth_init()
146 rv = cpsw_register(&cpsw_data); in board_eth_init()
147 if (rv < 0) in board_eth_init()
148 printf("Error %d registering CPSW switch\n", rv); in board_eth_init()
150 n += rv; in board_eth_init()