Lines Matching refs:partitions
537 } partitions[XBUFSIZE]; in build_test_sglist() local
542 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
543 if (WARN_ON(ndivs > ARRAY_SIZE(partitions))) in build_test_sglist()
555 partitions[tsgl->nents].div = &divs[i]; in build_test_sglist()
556 partitions[tsgl->nents].length = len_this_sg; in build_test_sglist()
562 partitions[tsgl->nents].div = &divs[0]; in build_test_sglist()
563 partitions[tsgl->nents].length = 0; in build_test_sglist()
566 partitions[tsgl->nents - 1].length += len_remaining; in build_test_sglist()
571 unsigned int offset = partitions[i].div->offset; in build_test_sglist()
574 if (partitions[i].div->offset_relative_to_alignmask) in build_test_sglist()
577 while (offset + partitions[i].length + TESTMGR_POISON_LEN > in build_test_sglist()
585 sg_set_buf(&tsgl->sgl[i], addr, partitions[i].length); in build_test_sglist()
588 out_divs[i] = partitions[i].div; in build_test_sglist()
593 copy_len = min(partitions[i].length, data->count); in build_test_sglist()
597 testmgr_poison(addr + copy_len, partitions[i].length + in build_test_sglist()
600 testmgr_poison(addr, partitions[i].length + in build_test_sglist()