Lines Matching refs:max_wait_count
991 u32 max_wait_count; in mpi_init_check() local
1000 max_wait_count = SPCV_DOORBELL_CLEAR_TIMEOUT; in mpi_init_check()
1002 max_wait_count = SPC_DOORBELL_CLEAR_TIMEOUT; in mpi_init_check()
1008 } while ((value != 0) && (--max_wait_count)); in mpi_init_check()
1010 if (!max_wait_count) { in mpi_init_check()
1018 max_wait_count = 5;/* 100 msec */ in mpi_init_check()
1025 (gst_len_mpistate & GST_MPI_STATE_MASK)) && (--max_wait_count)); in mpi_init_check()
1026 if (!max_wait_count) in mpi_init_check()
1052 u32 max_wait_count; in check_fw_ready() local
1058 max_wait_time = max_wait_count = 5; /* 100 milli sec */ in check_fw_ready()
1062 } while ((value == 0xFFFFFFFF) && (--max_wait_count)); in check_fw_ready()
1067 max_wait_time = max_wait_count = 180; /* 3600 milli sec */ in check_fw_ready()
1073 max_wait_time = max_wait_count = 170; /* 3400 milli sec */ in check_fw_ready()
1082 expected_mask) && (--max_wait_count)); in check_fw_ready()
1083 if (!max_wait_count) { in check_fw_ready()
1091 (max_wait_time - max_wait_count) * FW_READY_INTERVAL); in check_fw_ready()
1499 u32 max_wait_count; in mpi_uninit_check() local
1517 max_wait_count = SPCV_DOORBELL_CLEAR_TIMEOUT; in mpi_uninit_check()
1519 max_wait_count = SPC_DOORBELL_CLEAR_TIMEOUT; in mpi_uninit_check()
1525 } while ((value != 0) && (--max_wait_count)); in mpi_uninit_check()
1527 if (!max_wait_count) { in mpi_uninit_check()
1534 max_wait_count = 100; /* 2 sec for spcv/ve */ in mpi_uninit_check()
1543 } while (--max_wait_count); in mpi_uninit_check()
1544 if (!max_wait_count) { in mpi_uninit_check()