Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 25 of 145) sorted by relevance

123456

/external/linux-kselftest/tools/testing/selftests/vm/
Dva_128TBswitch.c15 #define PAGE_SIZE (64 << 10) macro
21 #define PAGE_SIZE (4 << 10) macro
48 .addr = ((void *)(ADDR_SWITCH_HINT - PAGE_SIZE)),
49 .size = PAGE_SIZE,
60 .addr = ((void *)(ADDR_SWITCH_HINT - PAGE_SIZE)),
61 .size = 2 * PAGE_SIZE,
72 .size = PAGE_SIZE,
79 .size = 2 * PAGE_SIZE,
85 .size = 2 * PAGE_SIZE,
92 .size = 2 * PAGE_SIZE,
[all …]
/external/igt-gpu-tools/tests/i915/
Dgem_mmap_gtt.c44 #ifndef PAGE_SIZE
45 #define PAGE_SIZE 4096 macro
128 for (pages = 1; pages <= OBJECT_SIZE / PAGE_SIZE; pages <<= 1) { in test_short()
131 w = mmap64(0, pages * PAGE_SIZE, PROT_READ | PROT_WRITE, in test_short()
135 r = mmap64(0, pages * PAGE_SIZE, PROT_READ, in test_short()
140 w[p*PAGE_SIZE] = r[p*PAGE_SIZE]; in test_short()
141 w[p*PAGE_SIZE+(PAGE_SIZE-1)] = in test_short()
142 r[p*PAGE_SIZE+(PAGE_SIZE-1)]; in test_short()
145 munmap(r, pages * PAGE_SIZE); in test_short()
146 munmap(w, pages * PAGE_SIZE); in test_short()
[all …]
Dgem_mmap.c41 #define PAGE_SIZE 4096 macro
59 huge_object_size = gem_mappable_aperture_size() + PAGE_SIZE; in test_huge_bo()
62 huge_object_size = gem_aperture_size(fd) + PAGE_SIZE; in test_huge_bo()
73 last_offset = huge_object_size - PAGE_SIZE; in test_huge_bo()
75 cpu_pattern = malloc(PAGE_SIZE); in test_huge_bo()
77 for (i = 0; i < PAGE_SIZE; i++) in test_huge_bo()
96 memcpy(ptr_cpu, cpu_pattern, PAGE_SIZE); in test_huge_bo()
97 igt_assert(memcmp(ptr_cpu, cpu_pattern, PAGE_SIZE) == 0); in test_huge_bo()
98 memset(ptr_cpu, 0xcc, PAGE_SIZE); in test_huge_bo()
103 memcpy(ptr_cpu + last_offset, cpu_pattern, PAGE_SIZE); in test_huge_bo()
[all …]
Dgem_userptr_blits.c64 #ifndef PAGE_SIZE
65 #define PAGE_SIZE 4096 macro
455 igt_assert(posix_memalign(&ptr, PAGE_SIZE, PAGE_SIZE) == 0); in has_userptr()
458 ret = __gem_userptr(fd, ptr, PAGE_SIZE, 0, userptr_flags, &handle); in has_userptr()
524 igt_assert(posix_memalign(&ptr, PAGE_SIZE, PAGE_SIZE) == 0); in test_access_control()
526 ret = __gem_userptr(fd, ptr, PAGE_SIZE, 0, userptr_flags, &handle); in test_access_control()
543 gem_userptr(fd, NULL, PAGE_SIZE, 0, userptr_flags, &handle); in test_invalid_null_pointer()
558 map = mmap(NULL, sizeof(linear) + 2 * PAGE_SIZE, in test_invalid_gtt_mapping()
564 gem_userptr(fd, map, sizeof(linear) + 2 * PAGE_SIZE, 0, userptr_flags, &handle); in test_invalid_gtt_mapping()
568 gem_userptr(fd, map, PAGE_SIZE, 0, userptr_flags, &handle); in test_invalid_gtt_mapping()
[all …]
Dgem_create.c67 #define PAGE_SIZE 4096 macro
86 create_v2.size = PAGE_SIZE; in invalid_flag_test()
128 .size = PAGE_SIZE / 2, in valid_nonaligned_size()
130 char buf[PAGE_SIZE]; in valid_nonaligned_size()
134 gem_write(fd, create.handle, PAGE_SIZE / 2, buf, PAGE_SIZE / 2); in valid_nonaligned_size()
147 .size = PAGE_SIZE / 2, in invalid_nonaligned_size()
149 char buf[PAGE_SIZE]; in invalid_nonaligned_size()
155 PAGE_SIZE / 2, buf, PAGE_SIZE)); in invalid_nonaligned_size()
Dgem_tiled_pread_pwrite.c70 #define PAGE_SIZE 4096 macro
106 igt_memcpy_from_wc(dst, src, PAGE_SIZE); in copy_wc_page()
136 for (int pfn = 0; pfn < sizeof(linear)/PAGE_SIZE; pfn++) {
137 uint32_t page[PAGE_SIZE/sizeof(uint32_t)];
138 copy_wc_page(page, data + PAGE_SIZE*pfn);
139 for (int j = 0; j < PAGE_SIZE/sizeof(uint32_t); j++) {
/external/arm-trusted-firmware/plat/rockchip/rk3399/include/
Dplat.ld.S19 ASSERT(. == ALIGN(PAGE_SIZE),
32 .incbin_sram : ALIGN(PAGE_SIZE) {
36 . = ALIGN(PAGE_SIZE);
42 .text_sram : ALIGN(PAGE_SIZE) {
47 . = ALIGN(PAGE_SIZE);
53 .data_sram : ALIGN(PAGE_SIZE) {
57 . = ALIGN(PAGE_SIZE);
63 .stack_sram : ALIGN(PAGE_SIZE) {
65 . += PAGE_SIZE;
/external/arm-trusted-firmware/bl31/
Dbl31.ld.S31 ASSERT(. == ALIGN(PAGE_SIZE),
42 . = ALIGN(PAGE_SIZE);
56 . = ALIGN(PAGE_SIZE);
79 . = ALIGN(PAGE_SIZE);
100 spm_shim_exceptions : ALIGN(PAGE_SIZE) {
103 . = ALIGN(PAGE_SIZE);
129 . = ALIGN(PAGE_SIZE);
136 ASSERT(. == ALIGN(PAGE_SIZE),
153 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
168 . = ALIGN(PAGE_SIZE);
/external/arm-trusted-firmware/bl2/
Dbl2_el3.ld.S31 ASSERT(. == ALIGN(PAGE_SIZE),
35 ASSERT(. == ALIGN(PAGE_SIZE),
48 . = ALIGN(PAGE_SIZE);
58 . = ALIGN(PAGE_SIZE);
62 ASSERT(__TEXT_RESIDENT_END__ - __TEXT_RESIDENT_START__ <= PAGE_SIZE,
83 . = ALIGN(PAGE_SIZE);
94 ASSERT(BL2_RW_BASE == ALIGN(PAGE_SIZE),
120 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
129 . = ALIGN(PAGE_SIZE);
Dbl2.ld.S22 ASSERT(. == ALIGN(PAGE_SIZE),
31 . = ALIGN(PAGE_SIZE);
50 . = ALIGN(PAGE_SIZE);
69 . = ALIGN(PAGE_SIZE);
92 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
101 . = ALIGN(PAGE_SIZE);
/external/arm-trusted-firmware/plat/rockchip/rk3288/include/
Dplat_sp_min.ld.S19 ASSERT(. == ALIGN(PAGE_SIZE),
22 .text_sram : ALIGN(PAGE_SIZE) {
27 . = ALIGN(PAGE_SIZE);
33 .data_sram : ALIGN(PAGE_SIZE) {
37 . = ALIGN(PAGE_SIZE);
43 .stack_sram : ALIGN(PAGE_SIZE) {
45 . += PAGE_SIZE;
/external/arm-trusted-firmware/bl32/tsp/
Dtsp.ld.S23 ASSERT(. == ALIGN(PAGE_SIZE),
32 . = ALIGN(PAGE_SIZE);
42 . = ALIGN(PAGE_SIZE);
62 . = ALIGN(PAGE_SIZE);
91 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
100 . = ALIGN(PAGE_SIZE);
/external/arm-trusted-firmware/bl2u/
Dbl2u.ld.S24 ASSERT(. == ALIGN(PAGE_SIZE),
33 . = ALIGN(PAGE_SIZE);
52 . = ALIGN(PAGE_SIZE);
71 . = ALIGN(PAGE_SIZE);
94 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
103 . = ALIGN(PAGE_SIZE);
/external/arm-trusted-firmware/bl32/sp_min/
Dsp_min.ld.S25 ASSERT(. == ALIGN(PAGE_SIZE),
34 . = ALIGN(PAGE_SIZE);
57 . = ALIGN(PAGE_SIZE);
81 . = ALIGN(PAGE_SIZE);
113 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
128 . = ALIGN(PAGE_SIZE);
/external/igt-gpu-tools/benchmarks/
Dgem_userptr_benchmark.c57 #ifndef PAGE_SIZE
58 #define PAGE_SIZE 4096 macro
109 ret = posix_memalign(&ptr, PAGE_SIZE, size); in create_userptr_bo()
131 assert(posix_memalign(&ptr, PAGE_SIZE, PAGE_SIZE) == 0); in has_userptr()
134 ret = __gem_userptr(fd, ptr, PAGE_SIZE, 0, userptr_flags, &handle); in has_userptr()
339 igt_assert(PAGE_SIZE < BO_SIZE); in test_impact_overlap()
340 ret = posix_memalign(&block, PAGE_SIZE, in test_impact_overlap()
341 PAGE_SIZE * nr_bos[subtest] + BO_SIZE); in test_impact_overlap()
345 i++, p += PAGE_SIZE) in test_impact_overlap()
393 unsigned long map_size = BO_SIZE + PAGE_SIZE - 1; in test_single()
[all …]
/external/arm-trusted-firmware/include/lib/xlat_tables/aarch64/
Dxlat_tables_aarch64.h14 #if !defined(PAGE_SIZE)
33 #if PAGE_SIZE == PAGE_SIZE_4KB
35 #elif (PAGE_SIZE == PAGE_SIZE_16KB) || (PAGE_SIZE == PAGE_SIZE_64KB)
/external/autotest/client/tests/fsx/
D0001-Minor-fixes-to-PAGE_SIZE-handling.patch4 Subject: [PATCH 1/2] Minor fixes to PAGE_SIZE handling
19 + * Minor fixes to PAGE_SIZE handling -- Suzuki <suzuki@in.ibm.com>.
27 #ifndef PAGE_SIZE
28 -#define PAGE_SIZE 4096
29 +#define PAGE_SIZE pagesize
31 #define PAGE_MASK (PAGE_SIZE - 1)
/external/arm-trusted-firmware/bl1/
Dbl1.ld.S30 ASSERT(. == ALIGN(PAGE_SIZE),
39 . = ALIGN(PAGE_SIZE);
95 ASSERT(BL1_RW_BASE == ALIGN(PAGE_SIZE),
113 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
122 . = ALIGN(PAGE_SIZE);
/external/arm-trusted-firmware/include/plat/common/
Dcommon_def.h71 #define BL1_RO_DATA_END round_up(BL1_ROM_END, PAGE_SIZE)
75 #define BL2_RO_DATA_END round_up(BL2_ROM_END, PAGE_SIZE)
80 #define BL1_CODE_END round_up(BL1_ROM_END, PAGE_SIZE)
84 #define BL2_CODE_END round_up(BL2_ROM_END, PAGE_SIZE)
/external/ltp/testcases/commands/mkswap/
Dmkswap01.sh20 PAGE_SIZE=`tst_getconf PAGESIZE`
25 DEVICE_SIZE=$((($real_size/$PAGE_SIZE * $PAGE_SIZE)/1024))
52 local pagesize=$PAGE_SIZE
66 if [ $pagesize -ne $PAGE_SIZE ]; then
/external/linux-kselftest/tools/testing/selftests/cgroup/
Dcgroup_util.c128 char buf[PAGE_SIZE]; in cg_read_strstr()
148 char buf[PAGE_SIZE]; in cg_read_key_long()
163 char buf[PAGE_SIZE]; in cg_read_lc()
192 char buf[10 * PAGE_SIZE]; in cg_find_unified_root()
226 char buf[10 * PAGE_SIZE] = {0}; in cg_wait_for_proc_count()
251 char buf[PAGE_SIZE]; in cg_killall()
360 char buf[PAGE_SIZE]; in alloc_pagecache()
387 for (ptr = buf; ptr < buf + size; ptr += PAGE_SIZE) in alloc_anon()
396 char buf[PAGE_SIZE]; in is_swap_enabled()
446 char buf[PAGE_SIZE]; in proc_read_strstr()
/external/arm-trusted-firmware/plat/mediatek/mt6795/
Dbl31.ld.S33 ASSERT(. == ALIGN(PAGE_SIZE),
49 . = ALIGN(PAGE_SIZE);
83 coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) {
98 . = ALIGN(PAGE_SIZE);
/external/arm-trusted-firmware/include/plat/arm/common/
Darm_spm_def.h37 PAGE_SIZE)
57 PAGE_SIZE)
71 PAGE_SIZE)
94 PAGE_SIZE)
/external/linux-kselftest/tools/testing/selftests/proc/
Dproc-self-map-files-002.c49 const int PAGE_SIZE = sysconf(_SC_PAGESIZE); in main() local
64 for (va = 0; va < va_max; va += PAGE_SIZE) { in main()
65 p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); in main()
75 b = (unsigned long)p + PAGE_SIZE; in main()
/external/linux-kselftest/tools/testing/selftests/ptrace/
Dpeeksiginfo.c35 #ifndef PAGE_SIZE
36 #define PAGE_SIZE sysconf(_SC_PAGESIZE) macro
54 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, in check_error_paths()
61 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, in check_error_paths()
101 munmap(addr_rw, 2 * PAGE_SIZE); in check_error_paths()

123456