Lines Matching defs:offset_in_block

765 _dif_generate_split(struct _dif_sgl *sgl, uint32_t offset_in_block, uint32_t data_len,
770 assert(offset_in_block < ctx->guard_interval);
771 assert(offset_in_block + data_len < ctx->guard_interval ||
772 offset_in_block + data_len == ctx->block_size);
775 guard = dif_generate_guard_split(guard, sgl, offset_in_block, data_len, ctx);
777 if (offset_in_block + data_len < ctx->guard_interval) {
1003 _dif_verify_split(struct _dif_sgl *sgl, uint32_t offset_in_block, uint32_t data_len,
1012 assert(offset_in_block < ctx->guard_interval);
1013 assert(offset_in_block + data_len < ctx->guard_interval ||
1014 offset_in_block + data_len == ctx->block_size);
1016 guard = dif_generate_guard_split(guard, sgl, offset_in_block, data_len, ctx);
1018 if (offset_in_block + data_len < ctx->guard_interval) {
1104 _dif_update_crc32c_split(struct _dif_sgl *sgl, uint32_t offset_in_block, uint32_t data_len,
1112 assert(offset_in_block + data_len <= ctx->block_size);
1118 if (offset_in_block < data_block_size) {
1119 buf_len = spdk_min(buf_len, data_block_size - offset_in_block);
1124 offset_in_block += buf_len;
1733 uint32_t offset_in_block, buf_len;
1738 offset_in_block = 0;
1740 while (offset_in_block < block_size) {
1742 buf_len = spdk_min(buf_len, block_size - offset_in_block);
1744 if (inject_offset_bytes >= offset_in_block &&
1745 inject_offset_bytes < offset_in_block + buf_len) {
1746 buf += inject_offset_bytes - offset_in_block;
1752 offset_in_block += buf_len;
1890 uint32_t offset_in_block, data_buf_len;
1899 offset_in_block = 0;
1901 while (offset_in_block < ctx->block_size) {
1903 data_buf_len = spdk_min(data_buf_len, ctx->block_size - offset_in_block);
1911 offset_in_block += data_buf_len;
2003 uint32_t offset_in_block, data_buf_len;
2012 offset_in_block = 0;
2014 while (offset_in_block < ctx->block_size) {
2016 data_buf_len = spdk_min(data_buf_len, ctx->block_size - offset_in_block);
2024 offset_in_block += data_buf_len;
2261 uint32_t len, offset_in_block, offset_blocks;
2283 offset_in_block = buf_offset % ctx->block_size;
2286 guard = _dif_generate_split(&sgl, offset_in_block, len, guard, offset_blocks, ctx);
2306 uint32_t len, offset_in_block, offset_blocks;
2328 offset_in_block = buf_offset % ctx->block_size;
2331 rc = _dif_verify_split(&sgl, offset_in_block, len, &guard, offset_blocks,
2353 uint32_t buf_len = 0, buf_offset = 0, len, offset_in_block;
2372 offset_in_block = buf_offset % ctx->block_size;
2374 crc32c = _dif_update_crc32c_split(&sgl, offset_in_block, len, crc32c, ctx);