Lines Matching refs:chunk_count
196 for (i = 0; i < srv->block.chunk_count && count; ++i) { in block_report()
366 missing = srv->block.chunk_count; in block_status_rsp()
375 } else if (missing == srv->block.chunk_count) { in block_status_rsp()
383 LOG_DBG("Status: %u, missing: %u/%u", status, missing, srv->block.chunk_count); in block_status_rsp()
391 DIV_ROUND_UP(srv->block.chunk_count, in block_status_rsp()
396 DIV_ROUND_UP(srv->block.chunk_count, 8))); in block_status_rsp()
401 for (i = 0; (i < srv->block.chunk_count) && count; ++i) { in block_status_rsp()
676 srv->block.chunk_count = DIV_ROUND_UP(srv->block.size, chunk_size); in handle_block_start()
697 srv->block.size, chunk_size, srv->block.chunk_count); in handle_block_start()
737 idx >= srv->block.chunk_count) { in handle_chunk()
743 if (idx == srv->block.chunk_count - 1) { in handle_chunk()
756 LOG_DBG("%u/%u (%u bytes)", idx + 1, srv->block.chunk_count, in handle_chunk()