Lines Matching refs:divs

441 static unsigned int count_test_sg_divisions(const struct test_sg_division *divs)
447 remaining -= divs[ndivs++].proportion_of_total;
456 static bool valid_sg_divisions(const struct test_sg_division *divs,
463 if (divs[i].proportion_of_total <= 0 ||
464 divs[i].proportion_of_total > TEST_SG_TOTAL - total)
466 total += divs[i].proportion_of_total;
467 if (divs[i].flush_type != FLUSH_TYPE_NONE)
469 if (divs[i].nosimd)
473 memchr_inv(&divs[i], 0, (count - i) * sizeof(divs[0])) == NULL;
541 * @divs: the layout specification on which the scatterlist will be based
548 * corresponds will be returned here. This will match @divs except
555 const struct test_sg_division *divs,
565 const unsigned int ndivs = count_test_sg_divisions(divs);
578 (total_len * divs[i].proportion_of_total +
582 partitions[tsgl->nents].div = &divs[i];
589 partitions[tsgl->nents].div = &divs[0];
911 static char *generate_random_sgl_divisions(struct test_sg_division *divs,
915 struct test_sg_division *div = divs;
922 if (div == &divs[max_divs - 1] || prandom_u32() % 2 == 0)
1126 const struct test_sg_division *divs[XBUFSIZE])
1135 &input, divs);
1186 const struct test_sg_division *divs[XBUFSIZE];
1211 err = build_hash_sglist(tsgl, vec, cfg, alignmask, divs);
1264 if (divs[i]->nosimd)
1268 if (divs[i]->nosimd)
1276 if (divs[i]->nosimd)
1280 if (divs[i]->nosimd)
1285 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) {
1371 const struct test_sg_division *divs[XBUFSIZE];
1399 err = build_hash_sglist(tsgl, vec, cfg, alignmask, divs);
1447 if (divs[i]->flush_type != FLUSH_TYPE_NONE &&
1455 divs[i]->nosimd);
1464 if (divs[i]->flush_type == FLUSH_TYPE_REIMPORT) {