Lines Matching refs:divs

466 static unsigned int count_test_sg_divisions(const struct test_sg_division *divs)
472 remaining -= divs[ndivs++].proportion_of_total;
481 static bool valid_sg_divisions(const struct test_sg_division *divs,
488 if (divs[i].proportion_of_total <= 0 ||
489 divs[i].proportion_of_total > TEST_SG_TOTAL - total)
491 total += divs[i].proportion_of_total;
492 if (divs[i].flush_type != FLUSH_TYPE_NONE)
494 if (divs[i].nosimd)
498 memchr_inv(&divs[i], 0, (count - i) * sizeof(divs[0])) == NULL;
566 * @divs: the layout specification on which the scatterlist will be based
573 * corresponds will be returned here. This will match @divs except
580 const struct test_sg_division *divs,
590 const unsigned int ndivs = count_test_sg_divisions(divs);
603 (total_len * divs[i].proportion_of_total +
607 partitions[tsgl->nents].div = &divs[i];
614 partitions[tsgl->nents].div = &divs[0];
996 struct test_sg_division *divs,
1000 struct test_sg_division *div = divs;
1007 if (div == &divs[max_divs - 1] || prandom_bool(rng))
1225 const struct test_sg_division *divs[XBUFSIZE])
1234 &input, divs);
1279 const struct test_sg_division *divs[XBUFSIZE];
1304 err = build_hash_sglist(tsgl, vec, cfg, 0, divs);
1357 if (divs[i]->nosimd)
1361 if (divs[i]->nosimd)
1369 if (divs[i]->nosimd)
1373 if (divs[i]->nosimd)
1378 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) {
1463 const struct test_sg_division *divs[XBUFSIZE];
1491 err = build_hash_sglist(tsgl, vec, cfg, 0, divs);
1539 if (divs[i]->flush_type != FLUSH_TYPE_NONE &&
1547 divs[i]->nosimd);
1556 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) {