Home
last modified time | relevance | path

Searched refs:num_remaining (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/char/hw_random/ !
Diproc-rng200.c94 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()
[all …]
/linux-6.6.21/drivers/firmware/arm_scmi/ !
Dvoltage.c93 u32 num_returned, u32 num_remaining, in scmi_init_voltage_levels() argument
98 num_levels = num_returned + num_remaining; in scmi_init_voltage_levels()
104 (segmented && (num_remaining || num_returned != 3))) { in scmi_init_voltage_levels()
107 num_levels, num_returned, num_remaining, v->id); in scmi_init_voltage_levels()
147 st->num_remaining = NUM_REMAINING_LEVELS(flags); in iter_volt_levels_update_state()
152 st->num_remaining, in iter_volt_levels_update_state()
Dclock.c223 st->num_remaining = NUM_REMAINING(flags); in iter_clk_describe_update_state()
229 (st->num_returned != 3 || st->num_remaining != 0)) { in iter_clk_describe_update_state()
232 p->clk->name, st->num_returned, st->num_remaining, in iter_clk_describe_update_state()
239 if (st->num_returned != 3 && st->num_remaining == 0 && in iter_clk_describe_update_state()
242 st->num_remaining = 0; in iter_clk_describe_update_state()
Dsensors.c74 __le16 num_remaining; member
284 st->num_remaining = NUM_INTERVALS_REMAINING(flags); in iter_intervals_update_state()
292 s->intervals.count = st->num_returned + st->num_remaining; in iter_intervals_update_state()
295 (st->num_remaining || st->num_returned != 3)) { in iter_intervals_update_state()
387 st->num_remaining = NUM_AXIS_REMAINING(flags); in iter_axes_desc_update_state()
441 st->num_remaining = NUM_AXIS_REMAINING(flags); in iter_axes_extended_name_update_state()
563 st->num_remaining = le16_to_cpu(r->num_remaining); in iter_sens_descr_update_state()
Dprotocols.h197 unsigned int num_remaining; member
Dperf.c123 __le16 num_remaining; member
134 __le16 num_remaining; member
334 st->num_remaining = le16_to_cpu(r->num_remaining); in iter_perf_levels_update_state()
Ddriver.c1577 } while (st->num_returned && st->num_remaining); in scmi_iterator_run()