Lines Matching defs:blocks_to_write
126 uint32_t blocks_to_write, blocks_to_read, blks_to_overlap;
207 blocks_to_write = 0;
209 for (c_blk = start_blk; c_blk < end_blk; c_blk += blocks_to_write) {
233 blocks_to_write = blocks_to_read;
234 previous_end = buf + (blocks_to_write * BLOCK_SIZE);
252 blocks_to_write = blocks_to_read - blks_to_overlap;
254 while ((off + (blocks_to_write*BLOCK_SIZE)) >
256 blocks_to_write--;
259 if ((blocks_to_write + c_blk) > end_blk) {
260 blocks_to_write = end_blk - c_blk;
263 if (blocks_to_write == 0) {
265 blocks_to_write = 1;
269 previous_end = buf + off + blocks_to_write * BLOCK_SIZE;
272 if (h->bstr_write(h, &buf[off], blocks_to_write*BLOCK_SIZE)