Lines Matching refs:divs

468 static unsigned int count_test_sg_divisions(const struct test_sg_division *divs)
474 remaining -= divs[ndivs++].proportion_of_total;
483 static bool valid_sg_divisions(const struct test_sg_division *divs,
490 if (divs[i].proportion_of_total <= 0 ||
491 divs[i].proportion_of_total > TEST_SG_TOTAL - total)
493 total += divs[i].proportion_of_total;
494 if (divs[i].flush_type != FLUSH_TYPE_NONE)
496 if (divs[i].nosimd)
500 memchr_inv(&divs[i], 0, (count - i) * sizeof(divs[0])) == NULL;
568 * @divs: the layout specification on which the scatterlist will be based
575 * corresponds will be returned here. This will match @divs except
582 const struct test_sg_division *divs,
592 const unsigned int ndivs = count_test_sg_divisions(divs);
605 (total_len * divs[i].proportion_of_total +
609 partitions[tsgl->nents].div = &divs[i];
616 partitions[tsgl->nents].div = &divs[0];
998 struct test_sg_division *divs,
1002 struct test_sg_division *div = divs;
1009 if (div == &divs[max_divs - 1] || prandom_bool(rng))
1227 const struct test_sg_division *divs[XBUFSIZE])
1236 &input, divs);
1282 const struct test_sg_division *divs[XBUFSIZE];
1307 err = build_hash_sglist(tsgl, vec, cfg, alignmask, divs);
1360 if (divs[i]->nosimd)
1364 if (divs[i]->nosimd)
1372 if (divs[i]->nosimd)
1376 if (divs[i]->nosimd)
1381 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) {
1467 const struct test_sg_division *divs[XBUFSIZE];
1495 err = build_hash_sglist(tsgl, vec, cfg, alignmask, divs);
1543 if (divs[i]->flush_type != FLUSH_TYPE_NONE &&
1551 divs[i]->nosimd);
1560 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) {