Lines Matching refs:max_wait_count
535 u32 max_wait_count; in mpi_init_check() local
542 max_wait_count = 1 * 1000 * 1000;/* 1 sec */ in mpi_init_check()
547 } while ((value != 0) && (--max_wait_count)); in mpi_init_check()
549 if (!max_wait_count) in mpi_init_check()
571 u32 max_wait_count; in check_fw_ready() local
604 max_wait_count = 1 * 1000 * 1000;/* 1 sec timeout */ in check_fw_ready()
613 if ((--max_wait_count) == 0) in check_fw_ready()
708 u32 max_wait_count; in mpi_uninit_check() local
727 max_wait_count = 1 * 1000 * 1000;/* 1 sec */ in mpi_uninit_check()
732 } while ((value != 0) && (--max_wait_count)); in mpi_uninit_check()
734 if (!max_wait_count) { in mpi_uninit_check()
742 max_wait_count = 1 * 1000 * 1000; /* 1 sec */ in mpi_uninit_check()
751 } while (--max_wait_count); in mpi_uninit_check()
752 if (!max_wait_count) { in mpi_uninit_check()
822 u32 max_wait_count; in pm8001_chip_soft_rst() local
1062 max_wait_count = 2 * 1000 * 1000;/* 2 sec */ in pm8001_chip_soft_rst()
1067 } while ((regVal != toggleVal) && (--max_wait_count)); in pm8001_chip_soft_rst()
1069 if (!max_wait_count) { in pm8001_chip_soft_rst()