Lines Matching refs:offset

153 		size_t total_len, offset;  in test_hash_incremental_updates()  local
161 offset = rand_offset(TEST_BUF_LEN - total_len); in test_hash_incremental_updates()
162 rand_bytes(&test_buf[offset], total_len); in test_hash_incremental_updates()
165 HASH(&test_buf[offset], total_len, hash1); in test_hash_incremental_updates()
173 cur_offset = offset; in test_hash_incremental_updates()
192 total_len, num_parts, offset); in test_hash_incremental_updates()
246 size_t offset = HASH_SIZE + rand_offset(max_tested_len - len); in test_hash_overlaps() local
248 u8 *ovl_hash = left_end ? &test_buf[offset] : in test_hash_overlaps()
249 &test_buf[offset + len - HASH_SIZE]; in test_hash_overlaps()
251 HASH(&test_buf[offset], len, hash); in test_hash_overlaps()
252 HASH(&test_buf[offset], len, ovl_hash); in test_hash_overlaps()
256 len, offset, left_end); in test_hash_overlaps()
259 HASH(&test_buf[offset], len, hash); in test_hash_overlaps()
261 HASH_UPDATE(&ctx, &test_buf[offset], len); in test_hash_overlaps()
266 len, offset, left_end); in test_hash_overlaps()
269 HASH(&test_buf[offset], len, hash); in test_hash_overlaps()
271 HASH_UPDATE(&ctx, &test_buf[offset], len); in test_hash_overlaps()
272 rand_bytes(&test_buf[offset], len); in test_hash_overlaps()
277 len, offset, left_end); in test_hash_overlaps()
478 int offset; member
511 ctx->offset = 0; in hash_irq_test2_func()
515 HASH_UPDATE(&ctx->hash_ctx, &test_buf[ctx->offset], in hash_irq_test2_func()
517 ctx->offset += state->update_lens[ctx->step - 1]; in hash_irq_test2_func()
523 if (WARN_ON_ONCE(ctx->offset != TEST_BUF_LEN)) in hash_irq_test2_func()