Home
last modified time | relevance | path

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

12345678910>>...81

/linux/tools/testing/scatterlist/
H A Dmain.c25 ((1 + array[i]) * PAGE_SIZE); in set_pages()
56 { -EINVAL, 1, pfn(0), NULL, PAGE_SIZE, 0, 1 }, in main()
57 { 0, 1, pfn(0), NULL, PAGE_SIZE, PAGE_SIZE + 1, 1 }, in main()
58 { 0, 1, pfn(0), NULL, PAGE_SIZE, sgmax, 1 }, in main()
60 { 0, 2, pfn(0, 1), NULL, 2 * PAGE_SIZE, sgmax, 1 }, in main()
61 { 0, 2, pfn(1, 0), NULL, 2 * PAGE_SIZE, sgmax, 2 }, in main()
62 { 0, 3, pfn(0, 1, 2), NULL, 3 * PAGE_SIZE, sgmax, 1 }, in main()
63 { 0, 3, pfn(0, 1, 2), NULL, 3 * PAGE_SIZE, sgmax, 1 }, in main()
64 { 0, 3, pfn(0, 1, 2), pfn(3, 4, 5), 3 * PAGE_SIZE, sgmax, 1 }, in main()
65 { 0, 3, pfn(0, 1, 2), pfn(4, 5, 6), 3 * PAGE_SIZE, sgmax, 2 }, in main()
[all …]
/linux/lib/raid6/test/
H A Dtest.c21 const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
24 char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
25 char recovi[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
26 char recovj[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
33 for (j = 0; j < PAGE_SIZE; j++) in makedata()
56 memset(recovi, 0xf0, PAGE_SIZE); in test_disks()
57 memset(recovj, 0xba, PAGE_SIZE); in test_disks()
62 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks()
64 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks()
65 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
[all …]
/linux/arch/arm64/kernel/
H A Dvmlinux.lds.S18 . = ALIGN(PAGE_SIZE); \
22 . = ALIGN(PAGE_SIZE); \
28 . = ALIGN(PAGE_SIZE); \
31 . = ALIGN(PAGE_SIZE); \
36 . = ALIGN(PAGE_SIZE); \
51 . = ALIGN(PAGE_SIZE); \
60 #define SBSS_ALIGN PAGE_SIZE
88 . = ALIGN(PAGE_SIZE); \
95 . = ALIGN(PAGE_SIZE); \
126 . = ALIGN(PAGE_SIZE); \
[all …]
/linux/drivers/target/iscsi/
H A Discsi_target_stat.c53 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_inst_show()
60 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_min_ver_show()
66 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_max_ver_show()
72 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_portals_show()
79 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_INST_NUM_NODES); in iscsi_stat_instance_nodes_show()
85 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_sessions_show()
102 return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count); in iscsi_stat_instance_fail_sess_show()
111 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_fail_type_show()
121 return snprintf(page, PAGE_SIZE, "%s\n", in iscsi_stat_instance_fail_rem_name_show()
129 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DISCONTINUITY_TIME); in iscsi_stat_instance_disc_time_show()
[all …]
/linux/arch/csky/kernel/
H A Dvmlinux.lds.S27 . = ALIGN(PAGE_SIZE);
45 . = ALIGN(PAGE_SIZE);
47 INIT_TEXT_SECTION(PAGE_SIZE)
48 INIT_DATA_SECTION(PAGE_SIZE)
50 . = ALIGN(PAGE_SIZE);
54 RO_DATA(PAGE_SIZE)
55 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
60 . = ALIGN(PAGE_SIZE);
80 #define ITCM_SIZE CONFIG_ITCM_NR_PAGES * PAGE_SIZE
101 . = ALIGN(PAGE_SIZE);
[all …]
/linux/tools/testing/vsock/
H A Dvsock_test_zerocopy.c23 #ifndef PAGE_SIZE
24 #define PAGE_SIZE 4096 macro
58 { NULL, PAGE_SIZE },
59 { NULL, PAGE_SIZE },
70 { NULL, PAGE_SIZE },
71 { NULL, PAGE_SIZE * 2 },
72 { NULL, PAGE_SIZE * 3 }
84 { NULL, PAGE_SIZE * 16 },
85 { NULL, PAGE_SIZE * 16 },
86 { NULL, PAGE_SIZE * 16 }
[all …]
/linux/arch/parisc/kernel/
H A Dvmlinux.lds.S64 . = ALIGN(PAGE_SIZE);
65 INIT_DATA_SECTION(PAGE_SIZE)
85 .text ALIGN(PAGE_SIZE) : {
104 . = ALIGN(PAGE_SIZE);
130 RO_DATA(PAGE_SIZE)
149 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, PAGE_SIZE)
158 . = ALIGN(PAGE_SIZE);
162 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, PAGE_SIZE)
/linux/drivers/target/
H A Dtarget_core_stat.c52 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_inst_show()
57 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
62 return snprintf(page, PAGE_SIZE, "Target\n"); in target_stat_role_show()
67 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
102 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_tgt_inst_show()
107 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show()
113 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); in target_stat_tgt_num_lus_show()
120 return snprintf(page, PAGE_SIZE, "activated\n"); in target_stat_tgt_status_show()
122 return snprintf(page, PAGE_SIZE, "deactivated\n"); in target_stat_tgt_status_show()
135 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); in target_stat_tgt_non_access_lus_show()
[all …]
/linux/drivers/scsi/lpfc/
H A Dlpfc_attr.c141 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
161 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
182 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
199 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
220 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
237 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
254 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
269 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_cmf_info_show()
278 strlcat(buf, tmp, PAGE_SIZE); in lpfc_cmf_info_show()
281 len = strnlen(buf, PAGE_SIZE); in lpfc_cmf_info_show()
[all …]
/linux/arch/m68k/kernel/
H A Dsys_m68k.c107 unsigned long tmp = PAGE_SIZE - (addr & ~PAGE_MASK); in cache_flush_040()
113 tmp = PAGE_SIZE; in cache_flush_040()
125 i = (PAGE_SIZE - (paddr & ~PAGE_MASK)) >> 4; in cache_flush_040()
159 addr += PAGE_SIZE; in cache_flush_040()
160 i = PAGE_SIZE / 16; in cache_flush_040()
170 addr += PAGE_SIZE; in cache_flush_040()
180 len += (addr & ~PAGE_MASK) + (PAGE_SIZE - 1); in cache_flush_040()
181 for (len >>= PAGE_SHIFT; len--; addr += PAGE_SIZE) in cache_flush_040()
268 unsigned long tmp = PAGE_SIZE - (addr & ~PAGE_MASK); in cache_flush_060()
274 tmp = PAGE_SIZE; in cache_flush_060()
[all …]
/linux/include/linux/
H A Dhighmem.h307 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_user_highpage()
345 ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE); in copy_mc_user_highpage()
347 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_mc_user_highpage()
364 ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE); in copy_mc_highpage()
397 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
415 chunk > PAGE_SIZE - offset_in_page(dst_off)) in memcpy_folio()
416 chunk = PAGE_SIZE - offset_in_page(dst_off); in memcpy_folio()
418 chunk > PAGE_SIZE - offset_in_page(src_off)) in memcpy_folio()
419 chunk = PAGE_SIZE - offset_in_page(src_off); in memcpy_folio()
435 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
[all …]
/linux/drivers/misc/lkdtm/
H A Dusercopy.c81 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_stack()
127 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_stack()
149 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_slab_size()
192 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_slab_size()
225 user_alloc = vm_mmap(NULL, 0, PAGE_SIZE, in do_usercopy_slab_whitelist()
269 vm_munmap(user_alloc, PAGE_SIZE); in do_usercopy_slab_whitelist()
315 user_addr = vm_mmap(NULL, 0, PAGE_SIZE, in lkdtm_USERCOPY_KERNEL()
334 unconst + PAGE_SIZE)) { in lkdtm_USERCOPY_KERNEL()
342 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_USERCOPY_KERNEL()
355 uaddr = vm_mmap(NULL, 0, PAGE_SIZE, PROT_READ | PROT_WRITE, in do_usercopy_page_span()
[all …]
/linux/arch/x86/mm/
H A Dcpu_entry_area.c39 max_cea = (CPU_ENTRY_AREA_MAP_SIZE - PAGE_SIZE) / CPU_ENTRY_AREA_SIZE; in init_cea_offsets()
73 BUILD_BUG_ON(sizeof(struct cpu_entry_area) % PAGE_SIZE != 0); in get_cpu_entry_area()
101 for ( ; pages; pages--, cea_vaddr+= PAGE_SIZE, ptr += PAGE_SIZE) in cea_map_percpu_pages()
115 npages = sizeof(struct debug_store) / PAGE_SIZE; in percpu_setup_debug_store()
116 BUILD_BUG_ON(sizeof(struct debug_store) % PAGE_SIZE != 0); in percpu_setup_debug_store()
125 npages = sizeof(struct debug_store_buffers) / PAGE_SIZE; in percpu_setup_debug_store()
126 for (; npages; npages--, cea += PAGE_SIZE) in percpu_setup_debug_store()
134 npages = sizeof(estacks->name## _stack) / PAGE_SIZE; \
145 BUILD_BUG_ON(sizeof(exception_stacks) % PAGE_SIZE != 0); in percpu_setup_exception_stacks()
224 BUILD_BUG_ON(sizeof(struct tss_struct) % PAGE_SIZE != 0); in setup_cpu_entry_area()
[all …]
/linux/tools/testing/selftests/iommu/
H A Diommufd.c40 PAGE_SIZE = sysconf(_SC_PAGE_SIZE); in setup_sizes()
43 BUFFER_SIZE = PAGE_SIZE * 16; in setup_sizes()
301 test_ioctl_ioas_map(buffer, PAGE_SIZE, &iova); in TEST_F()
303 test_ioctl_ioas_unmap(iova, PAGE_SIZE); in TEST_F()
306 test_ioctl_ioas_map_file(mfd, 0, PAGE_SIZE, &iova); in TEST_F()
312 int nlock = PAGE_SIZE / 1024; in TEST_F()
732 test_ioctl_ioas_map_fixed(buffer, PAGE_SIZE, self->base_iova); in TEST_F()
746 test_ioctl_ioas_map_fixed(buffer, PAGE_SIZE, in TEST_F()
747 self->base_iova + i * PAGE_SIZE); in TEST_F()
815 test_err_ioctl_ioas_unmap(ENOENT, i * PAGE_SIZE, PAGE_SIZ in TEST_F()
[all...]
/linux/arch/sh/kernel/
H A Dvmlinux.lds.S45 RO_DATA(PAGE_SIZE)
46 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
51 . = ALIGN(PAGE_SIZE); /* Init code and data */
53 INIT_TEXT_SECTION(PAGE_SIZE)
72 . = ALIGN(PAGE_SIZE);
76 . = ALIGN(PAGE_SIZE);
79 . = ALIGN(PAGE_SIZE);
81 . = ALIGN(PAGE_SIZE);
/linux/arch/x86/kernel/
H A Dvmlinux.lds.S84 . = ALIGN(PAGE_SIZE); \
94 . = ALIGN(PAGE_SIZE); \
165 . = ALIGN(PAGE_SIZE);
168 RO_DATA(PAGE_SIZE)
187 PAGE_ALIGNED_DATA(PAGE_SIZE)
209 . = ALIGN(PAGE_SIZE);
214 INIT_TEXT_SECTION(PAGE_SIZE)
225 . = ALIGN(PAGE_SIZE);
339 . = ALIGN(PAGE_SIZE);
350 . = ALIGN(PAGE_SIZE);
[all …]
/linux/mm/kmsan/
H A Dshadow.c52 static char dummy_load_page[PAGE_SIZE] __aligned(PAGE_SIZE);
53 static char dummy_store_page[PAGE_SIZE] __aligned(PAGE_SIZE);
91 KMSAN_WARN_ON(size > PAGE_SIZE); in kmsan_get_shadow_origin_ptr()
158 kmsan_internal_unpoison_memory(page_address(dst), PAGE_SIZE, in kmsan_copy_page_meta()
164 __memcpy(shadow_ptr_for(dst), shadow_ptr_for(src), PAGE_SIZE); in kmsan_copy_page_meta()
165 __memcpy(origin_ptr_for(dst), origin_ptr_for(src), PAGE_SIZE); in kmsan_copy_page_meta()
184 __memset(page_address(shadow), 0, PAGE_SIZE * pages); in kmsan_alloc_page()
185 __memset(page_address(origin), 0, PAGE_SIZE * pages); in kmsan_alloc_page()
193 __memset(page_address(shadow), -1, PAGE_SIZE * pages); in kmsan_alloc_page()
201 for (int i = 0; i < PAGE_SIZE * pages / sizeof(handle); i++) in kmsan_alloc_page()
[all …]
/linux/block/partitions/
H A Dacorn.c43 strlcat(state->pp_buf, " [", PAGE_SIZE); in adfs_partition()
44 strlcat(state->pp_buf, name, PAGE_SIZE); in adfs_partition()
45 strlcat(state->pp_buf, "]", PAGE_SIZE); in adfs_partition()
81 strlcat(state->pp_buf, " [RISCiX]", PAGE_SIZE); in riscix_partition()
88 strlcat(state->pp_buf, " <", PAGE_SIZE); in riscix_partition()
97 strlcat(state->pp_buf, "(", PAGE_SIZE); in riscix_partition()
98 strlcat(state->pp_buf, rr->part[part].name, PAGE_SIZE); in riscix_partition()
99 strlcat(state->pp_buf, ")", PAGE_SIZE); in riscix_partition()
103 strlcat(state->pp_buf, " >\n", PAGE_SIZE); in riscix_partition()
133 strlcat(state->pp_buf, " [Linux]", PAGE_SIZE); in linux_partition()
[all …]
/linux/arch/riscv/kernel/
H A Dvmlinux-xip.lds.S31 INIT_TEXT_SECTION(PAGE_SIZE)
68 __data_loc = ALIGN(PAGE_SIZE); /* location in file */
76 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
84 . = ALIGN(PAGE_SIZE);
113 . = ALIGN(PAGE_SIZE);
120 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0)
136 . = ALIGN(PAGE_SIZE);
/linux/arch/m68k/mm/
H A Dsun3kmap.c55 phys += PAGE_SIZE; in do_pmeg_mapin()
56 virt += PAGE_SIZE; in do_pmeg_mapin()
72 offset = phys & (PAGE_SIZE-1); in sun3_ioremap()
73 phys &= ~(PAGE_SIZE-1); in sun3_ioremap()
85 pages = size / PAGE_SIZE; in sun3_ioremap()
92 seg_pages = (SUN3_PMEG_SIZE - (virt & SUN3_PMEG_MASK)) / PAGE_SIZE; in sun3_ioremap()
99 phys += seg_pages * PAGE_SIZE; in sun3_ioremap()
100 virt += seg_pages * PAGE_SIZE; in sun3_ioremap()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_arena_large.c17 __uint(max_entries, ARENA_SIZE / PAGE_SIZE);
32 page2 = bpf_arena_alloc_pages(&arena, base + ARENA_SIZE - PAGE_SIZE * 2, in big_alloc1()
37 no_page = bpf_arena_alloc_pages(&arena, base + ARENA_SIZE - PAGE_SIZE, in big_alloc1()
58 if (*(page1 + PAGE_SIZE) != 0) in big_alloc1()
60 if (*(page1 - PAGE_SIZE) != 0) in big_alloc1()
62 if (*(page2 + PAGE_SIZE) != 0) in big_alloc1()
64 if (*(page2 - PAGE_SIZE) != 0) in big_alloc1()
82 page = base = arena_base(&arena) + 16384 * PAGE_SIZE; in access_reserved()
93 page = (volatile char __arena *)(base + i * PAGE_SIZE); in access_reserved()
188 pg_idx = (unsigned long) (pg - base) / PAGE_SIZE; in alloc_pages()
[all...]
/linux/arch/openrisc/kernel/
H A Dvmlinux.lds.S47 . = ALIGN(PAGE_SIZE);
71 RO_DATA(PAGE_SIZE)
77 RW_DATA(32, PAGE_SIZE, PAGE_SIZE)
84 . = ALIGN(PAGE_SIZE);
88 INIT_TEXT_SECTION(PAGE_SIZE)
/linux/arch/arc/kernel/
H A Dvmlinux.lds.S33 . = ALIGN(PAGE_SIZE);
59 . = ALIGN(PAGE_SIZE);
80 . = ALIGN(PAGE_SIZE);
99 RO_DATA(PAGE_SIZE)
105 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
112 . = ALIGN(PAGE_SIZE);
122 . = ALIGN(PAGE_SIZE);
/linux/arch/arm64/mm/
H A Dkasan_init.c26 static pgd_t tmp_pg_dir[PTRS_PER_PTE] __initdata __aligned(PAGE_SIZE);
37 void *p = memblock_alloc_try_nid(PAGE_SIZE, PAGE_SIZE, in kasan_alloc_zeroed_page()
42 __func__, PAGE_SIZE, PAGE_SIZE, node, in kasan_alloc_zeroed_page()
50 void *p = memblock_alloc_try_nid_raw(PAGE_SIZE, PAGE_SIZE, in kasan_alloc_raw_page()
56 __func__, PAGE_SIZE, PAGE_SIZE, node, in kasan_alloc_raw_page()
126 memset(__va(page_phys), KASAN_SHADOW_INIT, PAGE_SIZE); in kasan_pte_populate()
127 next = addr + PAGE_SIZE; in kasan_pte_populate()
195 return (addr % (PAGE_SIZE << shift)) == 0; in root_level_aligned()
262 memcpy(pud, pudp, PAGE_SIZE); in clone_next_level()
302 static pud_t pud[2][PTRS_PER_PUD] __initdata __aligned(PAGE_SIZE); in kasan_init_shadow()
[all …]
/linux/lib/
H A Dtest_vmalloc.c97 size = ((rnd % 10) + 1) * PAGE_SIZE; in random_size_align_alloc_test()
122 ptr = __vmalloc_node(PAGE_SIZE, align, GFP_KERNEL|__GFP_ZERO, 0, in align_shift_alloc_test()
139 ptr = __vmalloc_node(5 * PAGE_SIZE, THREAD_ALIGN << 1, in fix_align_alloc_test()
159 p = vmalloc(n * PAGE_SIZE); in random_size_alloc_test()
183 ptr[i] = vmalloc(1 * PAGE_SIZE); in long_busy_list_alloc_test()
186 ptr_1 = vmalloc(100 * PAGE_SIZE); in long_busy_list_alloc_test()
190 ptr_2 = vmalloc(1 * PAGE_SIZE); in long_busy_list_alloc_test()
222 junk_length *= (32 * 1024 * 1024 / PAGE_SIZE); in full_fit_alloc_test()
235 ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test()
236 junk_ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test()
[all …]

12345678910>>...81