Home
last modified time | relevance | path

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

/bootable/recovery/updater/
Dblockimg.c177 RangeSinkState* rss = (RangeSinkState*) token; in RangeSinkWrite() local
179 if (rss->p_remain <= 0) { in RangeSinkWrite()
188 if (rss->p_remain < write_now) { in RangeSinkWrite()
189 write_now = rss->p_remain; in RangeSinkWrite()
192 if (write_all(rss->fd, data, write_now) == -1) { in RangeSinkWrite()
199 rss->p_remain -= write_now; in RangeSinkWrite()
202 if (rss->p_remain == 0) { in RangeSinkWrite()
204 ++rss->p_block; in RangeSinkWrite()
205 if (rss->p_block < rss->tgt->count) { in RangeSinkWrite()
206 rss->p_remain = (rss->tgt->pos[rss->p_block * 2 + 1] - in RangeSinkWrite()
[all …]