page_sizes         17 drivers/gpu/drm/i915/gem/i915_gem_client_blt.c 	struct i915_page_sizes page_sizes;
page_sizes         25 drivers/gpu/drm/i915/gem/i915_gem_client_blt.c 	vma->page_sizes = sleeve->page_sizes;
page_sizes         58 drivers/gpu/drm/i915/gem/i915_gem_client_blt.c 					 struct i915_page_sizes *page_sizes)
page_sizes         79 drivers/gpu/drm/i915/gem/i915_gem_client_blt.c 	sleeve->page_sizes = *page_sizes;
page_sizes        267 drivers/gpu/drm/i915/gem/i915_gem_client_blt.c 				     struct i915_page_sizes *page_sizes,
page_sizes        274 drivers/gpu/drm/i915/gem/i915_gem_client_blt.c 	sleeve = create_sleeve(ce->vm, obj, pages, page_sizes);
page_sizes         18 drivers/gpu/drm/i915/gem/i915_gem_client_blt.h 				     struct i915_page_sizes *page_sizes,
page_sizes        191 drivers/gpu/drm/i915/gem/i915_gem_object_types.h 		} page_sizes;
page_sizes         16 drivers/gpu/drm/i915/gem/i915_gem_pages.c 	unsigned long supported = INTEL_INFO(i915)->page_sizes;
page_sizes         42 drivers/gpu/drm/i915/gem/i915_gem_pages.c 	obj->mm.page_sizes.phys = sg_page_sizes;
page_sizes         52 drivers/gpu/drm/i915/gem/i915_gem_pages.c 	obj->mm.page_sizes.sg = 0;
page_sizes         54 drivers/gpu/drm/i915/gem/i915_gem_pages.c 		if (obj->mm.page_sizes.phys & ~0u << i)
page_sizes         55 drivers/gpu/drm/i915/gem/i915_gem_pages.c 			obj->mm.page_sizes.sg |= BIT(i);
page_sizes         57 drivers/gpu/drm/i915/gem/i915_gem_pages.c 	GEM_BUG_ON(!HAS_PAGE_SIZES(i915, obj->mm.page_sizes.sg));
page_sizes        177 drivers/gpu/drm/i915/gem/i915_gem_pages.c 	obj->mm.page_sizes.phys = obj->mm.page_sizes.sg = 0;
page_sizes         22 drivers/gpu/drm/i915/gem/selftests/huge_pages.c static const unsigned int page_sizes[] = {
page_sizes         33 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	for (i = 0; i < ARRAY_SIZE(page_sizes); ++i) {
page_sizes         34 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		unsigned int page_size = page_sizes[i];
page_sizes        334 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	unsigned int supported = INTEL_INFO(i915)->page_sizes;
page_sizes        338 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (!HAS_PAGE_SIZES(i915, vma->page_sizes.sg)) {
page_sizes        340 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		       vma->page_sizes.sg & ~supported, supported);
page_sizes        344 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (!HAS_PAGE_SIZES(i915, vma->page_sizes.gtt)) {
page_sizes        346 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		       vma->page_sizes.gtt & ~supported, supported);
page_sizes        350 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (vma->page_sizes.phys != obj->mm.page_sizes.phys) {
page_sizes        352 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		       vma->page_sizes.phys, obj->mm.page_sizes.phys);
page_sizes        356 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (vma->page_sizes.sg != obj->mm.page_sizes.sg) {
page_sizes        358 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		       vma->page_sizes.sg, obj->mm.page_sizes.sg);
page_sizes        362 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (obj->mm.page_sizes.gtt) {
page_sizes        364 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		       obj->mm.page_sizes.gtt);
page_sizes        375 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	unsigned int saved_mask = INTEL_INFO(i915)->page_sizes;
page_sizes        386 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	for (i = 1; i < BIT(ARRAY_SIZE(page_sizes)); i++) {
page_sizes        389 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		for (j = 0; j < ARRAY_SIZE(page_sizes); j++) {
page_sizes        391 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 				combination |= page_sizes[j];
page_sizes        394 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		mkwrite_device_info(i915)->page_sizes = combination;
page_sizes        422 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			if (vma->page_sizes.sg != combination) {
page_sizes        424 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 				       vma->page_sizes.sg, combination);
page_sizes        445 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	mkwrite_device_info(i915)->page_sizes = saved_mask;
page_sizes        454 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	unsigned long supported = INTEL_INFO(i915)->page_sizes;
page_sizes        493 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		obj->mm.page_sizes.sg = page_size;
page_sizes        510 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (vma->page_sizes.gtt != page_size) {
page_sizes        512 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			       vma->page_sizes.gtt, page_size);
page_sizes        543 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			if (vma->page_sizes.gtt != I915_GTT_PAGE_SIZE_4K) {
page_sizes        545 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 				       vma->page_sizes.gtt, I915_GTT_PAGE_SIZE_4K);
page_sizes        659 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		for (i = 0; i < ARRAY_SIZE(page_sizes); ++i) {
page_sizes        660 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			unsigned int page_size = page_sizes[i];
page_sizes        677 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K) {
page_sizes        695 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (vma->page_sizes.gtt != expected_gtt) {
page_sizes        697 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			       vma->page_sizes.gtt, expected_gtt,
page_sizes        814 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			obj->mm.page_sizes.sg &= ~I915_GTT_PAGE_SIZE_2M;
page_sizes        833 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			if (!offset && vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K) {
page_sizes        851 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			if (vma->page_sizes.gtt != expected_gtt) {
page_sizes        853 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 				       vma->page_sizes.gtt, expected_gtt, i,
page_sizes       1008 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (obj->mm.page_sizes.sg & I915_GTT_PAGE_SIZE_64K)
page_sizes       1011 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	max_page_size = rounddown_pow_of_two(obj->mm.page_sizes.sg);
page_sizes       1056 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (obj->mm.page_sizes.sg & I915_GTT_PAGE_SIZE_64K)
page_sizes       1086 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	unsigned long supported = INTEL_INFO(i915)->page_sizes;
page_sizes       1087 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	static unsigned int pages[ARRAY_SIZE(page_sizes)];
page_sizes       1119 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			unsigned int page_sizes = 0;
page_sizes       1123 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 					page_sizes |= pages[i];
page_sizes       1130 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			if (!IS_ALIGNED(size, BIT(__ffs(page_sizes))))
page_sizes       1133 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			obj = huge_pages_object(i915, size, page_sizes);
page_sizes       1145 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 						size, page_sizes);
page_sizes       1157 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 			obj->mm.page_sizes.sg = page_sizes;
page_sizes       1178 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	mkwrite_device_info(i915)->page_sizes = supported;
page_sizes       1215 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (obj->mm.page_sizes.phys < I915_GTT_PAGE_SIZE_64K) {
page_sizes       1284 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (obj->mm.page_sizes.phys < I915_GTT_PAGE_SIZE_2M) {
page_sizes       1316 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	unsigned long supported = INTEL_INFO(dev_priv)->page_sizes;
page_sizes       1360 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (vma->page_sizes.sg < page_size) {
page_sizes       1370 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 		if (vma->page_sizes.gtt != page_size) {
page_sizes       1381 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 				       vma->page_sizes.gtt, page_size);
page_sizes       1541 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (obj->mm.page_sizes.phys < I915_GTT_PAGE_SIZE_2M) {
page_sizes       1573 drivers/gpu/drm/i915/gem/selftests/huge_pages.c 	if (obj->mm.page_sizes.sg || obj->mm.page_sizes.phys) {
page_sizes         69 drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c 						       &obj->mm.page_sizes,
page_sizes        106 drivers/gpu/drm/i915/i915_debugfs.c stringify_page_sizes(unsigned int page_sizes, char *buf, size_t len)
page_sizes        110 drivers/gpu/drm/i915/i915_debugfs.c 	switch (page_sizes) {
page_sizes        123 drivers/gpu/drm/i915/i915_debugfs.c 		if (page_sizes & I915_GTT_PAGE_SIZE_2M)
page_sizes        125 drivers/gpu/drm/i915/i915_debugfs.c 		if (page_sizes & I915_GTT_PAGE_SIZE_64K)
page_sizes        127 drivers/gpu/drm/i915/i915_debugfs.c 		if (page_sizes & I915_GTT_PAGE_SIZE_4K)
page_sizes        171 drivers/gpu/drm/i915/i915_debugfs.c 			   stringify_page_sizes(vma->page_sizes.gtt, NULL, 0));
page_sizes       2112 drivers/gpu/drm/i915/i915_drv.h 	((sizes) & ~INTEL_INFO(dev_priv)->page_sizes) == 0; \
page_sizes       1429 drivers/gpu/drm/i915/i915_gem.c 		mkwrite_device_info(dev_priv)->page_sizes =
page_sizes        180 drivers/gpu/drm/i915/i915_gem_gtt.c 	vma->page_sizes = vma->obj->mm.page_sizes;
page_sizes        195 drivers/gpu/drm/i915/i915_gem_gtt.c 	memset(&vma->page_sizes, 0, sizeof(vma->page_sizes));
page_sizes       1236 drivers/gpu/drm/i915/i915_gem_gtt.c 		if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_2M &&
page_sizes       1253 drivers/gpu/drm/i915/i915_gem_gtt.c 			    vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K &&
page_sizes       1330 drivers/gpu/drm/i915/i915_gem_gtt.c 		vma->page_sizes.gtt |= page_size;
page_sizes       1342 drivers/gpu/drm/i915/i915_gem_gtt.c 	if (vma->page_sizes.sg > I915_GTT_PAGE_SIZE) {
page_sizes       1355 drivers/gpu/drm/i915/i915_gem_gtt.c 		vma->page_sizes.gtt = I915_GTT_PAGE_SIZE;
page_sizes       1682 drivers/gpu/drm/i915/i915_gem_gtt.c 	vma->page_sizes.gtt = I915_GTT_PAGE_SIZE;
page_sizes       2446 drivers/gpu/drm/i915/i915_gem_gtt.c 	vma->page_sizes.gtt = I915_GTT_PAGE_SIZE;
page_sizes       2555 drivers/gpu/drm/i915/i915_gem_gtt.c 	vma->page_sizes = vma->obj->mm.page_sizes;
page_sizes        145 drivers/gpu/drm/i915/i915_pci.c 	.page_sizes = I915_GTT_PAGE_SIZE_4K
page_sizes        586 drivers/gpu/drm/i915/i915_pci.c 	.page_sizes = I915_GTT_PAGE_SIZE_4K | \
page_sizes        728 drivers/gpu/drm/i915/i915_pci.c 	.page_sizes = I915_GTT_PAGE_SIZE_4K | \
page_sizes         97 drivers/gpu/drm/i915/i915_scatterlist.h 	unsigned int page_sizes;
page_sizes         99 drivers/gpu/drm/i915/i915_scatterlist.h 	page_sizes = 0;
page_sizes        103 drivers/gpu/drm/i915/i915_scatterlist.h 		page_sizes |= sg->length;
page_sizes        107 drivers/gpu/drm/i915/i915_scatterlist.h 	return page_sizes;
page_sizes        625 drivers/gpu/drm/i915/i915_vma.c 		    vma->page_sizes.sg > I915_GTT_PAGE_SIZE) {
page_sizes        633 drivers/gpu/drm/i915/i915_vma.c 				rounddown_pow_of_two(vma->page_sizes.sg |
page_sizes        645 drivers/gpu/drm/i915/i915_vma.c 			if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K)
page_sizes         64 drivers/gpu/drm/i915/i915_vma.h 	struct i915_page_sizes page_sizes;
page_sizes        160 drivers/gpu/drm/i915/intel_device_info.h 	unsigned int page_sizes; /* page sizes supported by the HW */
page_sizes        176 drivers/gpu/drm/i915/selftests/mock_gem_device.c 	mkwrite_device_info(i915)->page_sizes =
page_sizes        702 drivers/iommu/io-pgtable-arm.c 	unsigned long granule, page_sizes;
page_sizes        723 drivers/iommu/io-pgtable-arm.c 		page_sizes = (SZ_4K | SZ_2M | SZ_1G);
page_sizes        726 drivers/iommu/io-pgtable-arm.c 		page_sizes = (SZ_16K | SZ_32M);
page_sizes        730 drivers/iommu/io-pgtable-arm.c 		page_sizes = (SZ_64K | SZ_512M);
page_sizes        732 drivers/iommu/io-pgtable-arm.c 			page_sizes |= 1ULL << 42; /* 4TB */
page_sizes        735 drivers/iommu/io-pgtable-arm.c 		page_sizes = 0;
page_sizes        738 drivers/iommu/io-pgtable-arm.c 	cfg->pgsize_bitmap &= page_sizes;
page_sizes        198 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	const unsigned int	*page_sizes;
page_sizes        505 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	static const unsigned int page_sizes[] = { 512, 2048, 4096, 8192, 0 };
page_sizes        551 drivers/mtd/nand/raw/brcmnand/brcmnand.c 		ctrl->page_sizes = page_sizes;
page_sizes       2109 drivers/mtd/nand/raw/brcmnand/brcmnand.c 	if (ctrl->page_sizes) {
page_sizes       2112 drivers/mtd/nand/raw/brcmnand/brcmnand.c 		for (i = 0, found = 0; ctrl->page_sizes[i]; i++)
page_sizes       2113 drivers/mtd/nand/raw/brcmnand/brcmnand.c 			if (ctrl->page_sizes[i] == cfg->page_size) {
page_sizes         50 tools/testing/selftests/vm/thuge-gen.c unsigned long page_sizes[NUM_PAGESIZES];
page_sizes         69 tools/testing/selftests/vm/thuge-gen.c 				&page_sizes[i]);
page_sizes         70 tools/testing/selftests/vm/thuge-gen.c 		page_sizes[i] <<= 10;
page_sizes         71 tools/testing/selftests/vm/thuge-gen.c 		printf("Found %luMB\n", page_sizes[i] >> 20);
page_sizes        201 tools/testing/selftests/vm/thuge-gen.c 		if (page_sizes[i] > largest)
page_sizes        202 tools/testing/selftests/vm/thuge-gen.c 			largest = page_sizes[i];
page_sizes        204 tools/testing/selftests/vm/thuge-gen.c 		if (read_free(page_sizes[i]) < NUM_PAGES) {
page_sizes        206 tools/testing/selftests/vm/thuge-gen.c 				page_sizes[i] >> 20,
page_sizes        236 tools/testing/selftests/vm/thuge-gen.c 		unsigned long ps = page_sizes[i];
page_sizes        248 tools/testing/selftests/vm/thuge-gen.c 		unsigned long ps = page_sizes[i];