Home
last modified time | relevance | path

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

/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/
H A Drand_stream.c21 size_t sb_offs; member
34 rs->sb_offs = rs->sb_size; in rand_stream_alloc()
76 if (rs->sb_offs == rs->sb_size) { in rand_stream_peek()
77 rs->sb_offs = 0; in rand_stream_peek()
81 *num_bytes = MIN(*num_bytes, rs->sb_size - rs->sb_offs); in rand_stream_peek()
82 return rs->stream_buf + rs->sb_offs; in rand_stream_peek()
102 if (nb <= (rs->sb_size - rs->sb_offs)) { in rand_stream_advance()
103 rs->sb_offs += nb; in rand_stream_advance()
107 nb -= rs->sb_size - rs->sb_offs; in rand_stream_advance()
108 rs->sb_offs = rs->sb_size; in rand_stream_advance()
[all …]