Lines Matching refs:partitions
567 } partitions[XBUFSIZE]; in build_test_sglist() local
572 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
573 if (WARN_ON(ndivs > ARRAY_SIZE(partitions))) in build_test_sglist()
585 partitions[tsgl->nents].div = &divs[i]; in build_test_sglist()
586 partitions[tsgl->nents].length = len_this_sg; in build_test_sglist()
592 partitions[tsgl->nents].div = &divs[0]; in build_test_sglist()
593 partitions[tsgl->nents].length = 0; in build_test_sglist()
596 partitions[tsgl->nents - 1].length += len_remaining; in build_test_sglist()
601 unsigned int offset = partitions[i].div->offset; in build_test_sglist()
604 if (partitions[i].div->offset_relative_to_alignmask) in build_test_sglist()
607 while (offset + partitions[i].length + TESTMGR_POISON_LEN > in build_test_sglist()
615 sg_set_buf(&tsgl->sgl[i], addr, partitions[i].length); in build_test_sglist()
618 out_divs[i] = partitions[i].div; in build_test_sglist()
623 copy_len = min(partitions[i].length, data->count); in build_test_sglist()
627 testmgr_poison(addr + copy_len, partitions[i].length + in build_test_sglist()
630 testmgr_poison(addr, partitions[i].length + in build_test_sglist()