Lines Matching refs:ret_val
295 s32 ret_val = 0; in e1000e_read_nvm_eerd() local
311 ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_READ); in e1000e_read_nvm_eerd()
312 if (ret_val) { in e1000e_read_nvm_eerd()
313 e_dbg("NVM read error: %d\n", ret_val); in e1000e_read_nvm_eerd()
320 return ret_val; in e1000e_read_nvm_eerd()
338 s32 ret_val = -E1000_ERR_NVM; in e1000e_write_nvm_spi() local
353 ret_val = nvm->ops.acquire(hw); in e1000e_write_nvm_spi()
354 if (ret_val) in e1000e_write_nvm_spi()
355 return ret_val; in e1000e_write_nvm_spi()
357 ret_val = e1000_ready_nvm_eeprom(hw); in e1000e_write_nvm_spi()
358 if (ret_val) { in e1000e_write_nvm_spi()
360 return ret_val; in e1000e_write_nvm_spi()
399 return ret_val; in e1000e_write_nvm_spi()
414 s32 ret_val; in e1000_read_pba_string_generic() local
425 ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); in e1000_read_pba_string_generic()
426 if (ret_val) { in e1000_read_pba_string_generic()
428 return ret_val; in e1000_read_pba_string_generic()
431 ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_1, 1, &pba_ptr); in e1000_read_pba_string_generic()
432 if (ret_val) { in e1000_read_pba_string_generic()
434 return ret_val; in e1000_read_pba_string_generic()
476 ret_val = e1000_read_nvm(hw, pba_ptr, 1, &length); in e1000_read_pba_string_generic()
477 if (ret_val) { in e1000_read_pba_string_generic()
479 return ret_val; in e1000_read_pba_string_generic()
497 ret_val = e1000_read_nvm(hw, pba_ptr + offset, 1, &nvm_data); in e1000_read_pba_string_generic()
498 if (ret_val) { in e1000_read_pba_string_generic()
500 return ret_val; in e1000_read_pba_string_generic()
548 s32 ret_val; in e1000e_validate_nvm_checksum_generic() local
553 ret_val = e1000_read_nvm(hw, i, 1, &nvm_data); in e1000e_validate_nvm_checksum_generic()
554 if (ret_val) { in e1000e_validate_nvm_checksum_generic()
556 return ret_val; in e1000e_validate_nvm_checksum_generic()
579 s32 ret_val; in e1000e_update_nvm_checksum_generic() local
584 ret_val = e1000_read_nvm(hw, i, 1, &nvm_data); in e1000e_update_nvm_checksum_generic()
585 if (ret_val) { in e1000e_update_nvm_checksum_generic()
587 return ret_val; in e1000e_update_nvm_checksum_generic()
592 ret_val = e1000_write_nvm(hw, NVM_CHECKSUM_REG, 1, &checksum); in e1000e_update_nvm_checksum_generic()
593 if (ret_val) in e1000e_update_nvm_checksum_generic()
596 return ret_val; in e1000e_update_nvm_checksum_generic()