Lines Matching full:divs
471 static unsigned int count_test_sg_divisions(const struct test_sg_division *divs) in count_test_sg_divisions() argument
477 remaining -= divs[ndivs++].proportion_of_total; in count_test_sg_divisions()
486 static bool valid_sg_divisions(const struct test_sg_division *divs, in valid_sg_divisions() argument
493 if (divs[i].proportion_of_total <= 0 || in valid_sg_divisions()
494 divs[i].proportion_of_total > TEST_SG_TOTAL - total) in valid_sg_divisions()
496 total += divs[i].proportion_of_total; in valid_sg_divisions()
497 if (divs[i].flush_type != FLUSH_TYPE_NONE) in valid_sg_divisions()
499 if (divs[i].nosimd) in valid_sg_divisions()
503 memchr_inv(&divs[i], 0, (count - i) * sizeof(divs[0])) == NULL; in valid_sg_divisions()
572 * @divs: the layout specification on which the scatterlist will be based
579 * corresponds will be returned here. This will match @divs except
586 const struct test_sg_division *divs, in build_test_sglist() argument
596 const unsigned int ndivs = count_test_sg_divisions(divs); in build_test_sglist()
609 (total_len * divs[i].proportion_of_total + in build_test_sglist()
613 partitions[tsgl->nents].div = &divs[i]; in build_test_sglist()
620 partitions[tsgl->nents].div = &divs[0]; in build_test_sglist()
1013 struct test_sg_division *divs, in generate_random_sgl_divisions() argument
1017 struct test_sg_division *div = divs; in generate_random_sgl_divisions()
1024 if (div == &divs[max_divs - 1] || prandom_bool(rng)) in generate_random_sgl_divisions()
1245 const struct test_sg_division *divs[XBUFSIZE]) in build_hash_sglist()
1254 &input, divs); in build_hash_sglist()
1299 const struct test_sg_division *divs[XBUFSIZE]; in test_shash_vec_cfg() local
1324 err = build_hash_sglist(tsgl, vec, cfg, 0, divs); in test_shash_vec_cfg()
1377 if (divs[i]->nosimd) in test_shash_vec_cfg()
1381 if (divs[i]->nosimd) in test_shash_vec_cfg()
1389 if (divs[i]->nosimd) in test_shash_vec_cfg()
1393 if (divs[i]->nosimd) in test_shash_vec_cfg()
1398 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) { in test_shash_vec_cfg()
1483 const struct test_sg_division *divs[XBUFSIZE]; in test_ahash_vec_cfg() local
1511 err = build_hash_sglist(tsgl, vec, cfg, 0, divs); in test_ahash_vec_cfg()
1559 if (divs[i]->flush_type != FLUSH_TYPE_NONE && in test_ahash_vec_cfg()
1567 divs[i]->nosimd); in test_ahash_vec_cfg()
1576 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) { in test_ahash_vec_cfg()