Lines Matching refs:num_remaining
94 uint32_t num_remaining = max; in iproc_rng200_read() local
103 while ((num_remaining > 0) && time_before(jiffies, idle_endtime)) { in iproc_rng200_read()
111 return max - num_remaining; in iproc_rng200_read()
121 if (num_remaining >= sizeof(uint32_t)) { in iproc_rng200_read()
126 num_remaining -= sizeof(uint32_t); in iproc_rng200_read()
131 memcpy(buf, &rnd_number, num_remaining); in iproc_rng200_read()
132 buf += num_remaining; in iproc_rng200_read()
133 num_remaining = 0; in iproc_rng200_read()
141 return max - num_remaining; in iproc_rng200_read()
144 usleep_range(min(num_remaining * 10, 500U), 500); in iproc_rng200_read()
148 return max - num_remaining; in iproc_rng200_read()