Lines Matching refs:rval

669 	uint32_t val, rval;  in qla_flash_write_enable()  local
677 rval = qla_wait_for_flash_busy(ha); in qla_flash_write_enable()
679 if (rval) in qla_flash_write_enable()
682 return (rval); in qla_flash_write_enable()
688 uint32_t val, rval; in qla_flash_unprotect() local
699 rval = qla_wait_for_flash_busy(ha); in qla_flash_unprotect()
701 if (rval) { in qla_flash_unprotect()
703 return rval; in qla_flash_unprotect()
715 rval = qla_wait_for_flash_busy(ha); in qla_flash_unprotect()
717 if (rval) in qla_flash_unprotect()
720 return rval; in qla_flash_unprotect()
726 uint32_t val, rval; in qla_flash_protect() local
737 rval = qla_wait_for_flash_busy(ha); in qla_flash_protect()
739 if (rval) in qla_flash_protect()
742 return rval; in qla_flash_protect()
749 uint32_t val, rval; in qla_flash_get_status() local
758 rval = qla_wait_for_flash_busy(ha); in qla_flash_get_status()
760 if (rval == 0) { in qla_flash_get_status()
805 int rval; in qla_erase_flash_sector() local
819 rval = qla_wait_for_flash_busy(ha); in qla_erase_flash_sector()
821 if (rval) in qla_erase_flash_sector()
823 return rval; in qla_erase_flash_sector()
830 int rval = 0; in qla_erase_flash() local
836 if ((rval = qla_p3p_sem_lock2(ha))) in qla_erase_flash()
839 if ((rval = qla_flash_unprotect(ha))) in qla_erase_flash()
842 if ((rval = qla_wait_for_flash_unprotect(ha))) in qla_erase_flash()
847 rval = -1; in qla_erase_flash()
852 rval = qla_flash_protect(ha); in qla_erase_flash()
858 return (rval); in qla_erase_flash()
865 int rval = 0; in qla_flash_write32() local
879 rval = qla_wait_for_flash_busy(ha); in qla_flash_write32()
881 if (rval) in qla_flash_write32()
884 return rval; in qla_flash_write32()
891 int rval = 0; in qla_flash_wait_for_write_complete() local
901 rval = qla_wait_for_flash_busy(ha); in qla_flash_wait_for_write_complete()
903 if (rval == 0) { in qla_flash_wait_for_write_complete()
933 int rval = 0; in qla_flash_write_pattern() local
936 if ((rval = qla_p3p_sem_lock2(ha))) in qla_flash_write_pattern()
939 if ((rval = qla_flash_unprotect(ha))) in qla_flash_write_pattern()
942 if ((rval = qla_wait_for_flash_unprotect(ha))) in qla_flash_write_pattern()
947 rval = -1; in qla_flash_write_pattern()
952 rval = qla_flash_protect(ha); in qla_flash_write_pattern()
954 if (rval == 0) in qla_flash_write_pattern()
955 rval = qla_wait_for_flash_protect(ha); in qla_flash_write_pattern()
961 return (rval); in qla_flash_write_pattern()
968 int rval = 0; in qla_flash_write_data() local
972 if ((rval = qla_p3p_sem_lock2(ha))) in qla_flash_write_data()
975 if ((rval = qla_flash_unprotect(ha))) in qla_flash_write_data()
978 if ((rval = qla_wait_for_flash_unprotect(ha))) in qla_flash_write_data()
985 rval = -1; in qla_flash_write_data()
992 rval = qla_flash_protect(ha); in qla_flash_write_data()
994 if (rval == 0) in qla_flash_write_data()
995 rval = qla_wait_for_flash_protect(ha); in qla_flash_write_data()
1001 return (rval); in qla_flash_write_data()
1008 int rval = 0; in qla_wr_flash_buffer() local
1017 rval = qla_flash_write_pattern(ha, off, size, pattern); in qla_wr_flash_buffer()
1018 return (rval); in qla_wr_flash_buffer()
1023 rval = -1; in qla_wr_flash_buffer()
1027 if ((rval = copyin(buf, data, size))) { in qla_wr_flash_buffer()
1032 rval = qla_flash_write_data(ha, off, size, data); in qla_wr_flash_buffer()
1038 return (rval); in qla_wr_flash_buffer()