Searched refs:num_remaining (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/char/hw_random/ |
H A D | iproc-rng200.c | 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() [all …]
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | voltage.c | 93 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()
|
H A D | clock.c | 223 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()
|
H A D | sensors.c | 74 __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()
|
H A D | protocols.h | 197 unsigned int num_remaining; member
|
H A D | perf.c | 123 __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()
|
H A D | driver.c | 1577 } while (st->num_returned && st->num_remaining); in scmi_iterator_run()
|
/openbmc/u-boot/lib/libavb/ |
H A D | avb_util.c | 305 size_t num_remaining = avb_strlen(str_after_last_replace); in avb_replace() local 306 size_t num_new = ret_len + num_remaining + 1; in avb_replace() 312 avb_memcpy(new_str + ret_len, str_after_last_replace, num_remaining); in avb_replace()
|