Home
last modified time | relevance | path

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

12345678910>>...137

/linux/tools/testing/scatterlist/
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()
74 { 0, 5, pfn(0, 1, 2, 3, 4), NULL, 5 * PAGE_SIZE, 2 * PAGE_SIZE, in main()
76 { 0, 6, pfn(0, 1, 2, 3, 4, 5), NULL, 6 * PAGE_SIZE, in main()
77 2 * PAGE_SIZE, 3 }, in main()
79 2 * PAGE_SIZE, 4 }, in main()
[all …]
/linux/lib/raid6/test/
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()
64 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks()
65 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
112 memset(data[NDISKS-2], 0xee, 2*PAGE_SIZE); in main()
[all …]
/linux/arch/s390/kernel/
A Dvmlinux.lds.S57 . = ALIGN(PAGE_SIZE);
61 RO_DATA(PAGE_SIZE)
63 . = ALIGN(PAGE_SIZE);
66 . = ALIGN(PAGE_SIZE);
72 . = ALIGN(PAGE_SIZE);
97 . = ALIGN(PAGE_SIZE);
104 . = ALIGN(PAGE_SIZE);
108 . = ALIGN(PAGE_SIZE);
168 . = ALIGN(PAGE_SIZE);
183 . = ALIGN(PAGE_SIZE);
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
A Dadf_gen4_pm_debugfs.c166 pm_info = kmalloc(PAGE_SIZE, GFP_KERNEL); in adf_gen4_print_pm_status()
170 pm_kv = kmalloc(PAGE_SIZE, GFP_KERNEL); in adf_gen4_print_pm_status()
192 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen4_print_pm_status()
195 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
203 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen4_print_pm_status()
208 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
213 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen4_print_pm_status()
216 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
223 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
227 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
[all …]
/linux/arch/um/kernel/
A Dmem.c64 memset(empty_zero_page, 0, PAGE_SIZE); in mem_init()
87 pte_t *pte = (pte_t *) memblock_alloc_low(PAGE_SIZE, in one_page_table_init()
88 PAGE_SIZE); in one_page_table_init()
91 __func__, PAGE_SIZE, PAGE_SIZE); in one_page_table_init()
102 pmd_t *pmd_table = (pmd_t *) memblock_alloc_low(PAGE_SIZE, PAGE_SIZE); in one_md_table_init()
105 __func__, PAGE_SIZE, PAGE_SIZE); in one_md_table_init()
156 __func__, size, PAGE_SIZE); in fixaddr_user_init()
160 for ( ; size > 0; size -= PAGE_SIZE, vaddr += PAGE_SIZE, in fixaddr_user_init()
161 p += PAGE_SIZE) { in fixaddr_user_init()
174 PAGE_SIZE); in paging_init()
[all …]
/linux/arch/arm64/kernel/
A Dvmlinux.lds.S18 . = ALIGN(PAGE_SIZE); \
22 . = ALIGN(PAGE_SIZE); \
27 . = ALIGN(PAGE_SIZE); \
42 . = ALIGN(PAGE_SIZE); \
190 RO_DATA(PAGE_SIZE)
209 . = ALIGN(PAGE_SIZE);
213 . += PAGE_SIZE;
217 . += PAGE_SIZE;
221 . += PAGE_SIZE;
224 . += PAGE_SIZE;
[all …]
/linux/arch/csky/kernel/
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/drivers/target/iscsi/
A Discsi_target_stat.c53 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_inst_show()
72 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_portals_show()
85 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_sessions_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()
199 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_sess_err_inst_show()
261 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_tgt_attr_inst_show()
401 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_login_inst_show()
533 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_logout_inst_show()
611 ret = snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_sess_node_show()
[all …]
/linux/drivers/target/
A Dtarget_core_stat.c141 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_resets_show()
148 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_aborts_complete_show()
155 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_tgt_aborts_no_task_show()
205 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_show()
225 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_lu_name_show()
259 return snprintf(page, PAGE_SIZE, "%u\n", in target_stat_lu_dev_type_show()
268 return snprintf(page, PAGE_SIZE, "%s\n", in target_stat_lu_status_show()
285 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_num_cmds_show()
295 return snprintf(page, PAGE_SIZE, "%lu\n", in target_stat_lu_read_mbytes_show()
868 ret = snprintf(page, PAGE_SIZE, "%u\n", in target_stat_auth_inst_show()
[all …]
/linux/arch/parisc/kernel/
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/tools/testing/vsock/
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 },
72 { NULL, PAGE_SIZE * 3 }
96 { NULL, PAGE_SIZE },
98 { NULL, PAGE_SIZE }
108 { NULL, PAGE_SIZE },
110 { NULL, PAGE_SIZE }
[all …]
/linux/tools/testing/selftests/iommu/
A Diommufd.c629 test_err_ioctl_ioas_unmap(ENOENT, i * PAGE_SIZE, PAGE_SIZE); in TEST_F()
643 PAGE_SIZE); in TEST_F()
683 8 * PAGE_SIZE - 4 * PAGE_SIZE, in TEST_F()
689 3 * 16 * PAGE_SIZE + 8 * PAGE_SIZE + in TEST_F()
854 .add_reserved = { .start = PAGE_SIZE, .length = PAGE_SIZE }, in TEST_F()
1537 check_refs(buf + start / PAGE_SIZE * PAGE_SIZE, in TEST_F()
1538 end / PAGE_SIZE * PAGE_SIZE - in TEST_F()
1539 start / PAGE_SIZE * PAGE_SIZE, in TEST_F()
1586 check_refs(buf + start / PAGE_SIZE * PAGE_SIZE, in TEST_F()
1587 end / PAGE_SIZE * PAGE_SIZE - in TEST_F()
[all …]
/linux/arch/x86/kernel/
A Dvmlinux.lds.S156 . = ALIGN(PAGE_SIZE);
159 RO_DATA(PAGE_SIZE)
196 . = ALIGN(PAGE_SIZE);
217 . = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);
220 . = ALIGN(PAGE_SIZE);
363 . = ALIGN(PAGE_SIZE);
374 . = ALIGN(PAGE_SIZE);
378 . = ALIGN(PAGE_SIZE);
389 . = ALIGN(PAGE_SIZE);
393 . = ALIGN(PAGE_SIZE);
[all …]
/linux/arch/m68k/mm/
A Dsun3mmu.c47 empty_zero_page = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in paging_init()
50 __func__, PAGE_SIZE, PAGE_SIZE); in paging_init()
58 size = (size + PAGE_SIZE) & ~(PAGE_SIZE-1); in paging_init()
60 next_pgtable = (unsigned long)memblock_alloc(size, PAGE_SIZE); in paging_init()
63 __func__, size, PAGE_SIZE); in paging_init()
64 bootmem_end = (next_pgtable + size + PAGE_SIZE) & PAGE_MASK; in paging_init()
82 address += PAGE_SIZE; in paging_init()
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/lib/
A Dusercopy_kunit.c63 start = PAGE_SIZE - (size / 2); in usercopy_test_check_nonzero_user()
185 memset(kmem, 0x0, PAGE_SIZE); in usercopy_test_valid()
188 KUNIT_EXPECT_MEMEQ_MSG(test, kmem, kmem + PAGE_SIZE, PAGE_SIZE, in usercopy_test_valid()
232 memset(kmem, 0x5a, PAGE_SIZE); in usercopy_test_invalid()
233 memset(kmem + PAGE_SIZE, 0, PAGE_SIZE); in usercopy_test_invalid()
237 PAGE_SIZE), 0, in usercopy_test_invalid()
241 KUNIT_EXPECT_MEMEQ_MSG(test, kmem + PAGE_SIZE, kmem, PAGE_SIZE, in usercopy_test_invalid()
252 PAGE_SIZE), 0, in usercopy_test_invalid()
256 PAGE_SIZE), 0, in usercopy_test_invalid()
260 PAGE_SIZE), 0, in usercopy_test_invalid()
[all …]
/linux/arch/m68k/kernel/
A Dsys_m68k.c113 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()
274 tmp = PAGE_SIZE; in cache_flush_060()
286 i = (PAGE_SIZE - (paddr & ~PAGE_MASK)) >> 4; in cache_flush_060()
318 addr += PAGE_SIZE; in cache_flush_060()
321 i = PAGE_SIZE / 16; in cache_flush_060()
331 addr += PAGE_SIZE; in cache_flush_060()
[all …]
/linux/drivers/misc/lkdtm/
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()
192 vm_munmap(user_addr, PAGE_SIZE); in do_usercopy_slab_size()
269 vm_munmap(user_alloc, PAGE_SIZE); in do_usercopy_slab_whitelist()
334 unconst + PAGE_SIZE)) { in lkdtm_USERCOPY_KERNEL()
342 vm_munmap(user_addr, PAGE_SIZE); in lkdtm_USERCOPY_KERNEL()
363 memset(kaddr, 0xAA, PAGE_SIZE); in do_usercopy_page_span()
366 kaddr += PAGE_SIZE / 2; in do_usercopy_page_span()
371 unconst + (PAGE_SIZE / 2))) { in do_usercopy_page_span()
387 vm_munmap(uaddr, PAGE_SIZE); in do_usercopy_page_span()
[all …]
/linux/arch/x86/mm/
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/drivers/scsi/lpfc/
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()
372 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
382 if (strlcat(buf, tmp, PAGE_SIZE) >= PAGE_SIZE) in lpfc_nvme_info_show()
[all …]
/linux/mm/kmsan/
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()
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()
233 nr = (end - start) / PAGE_SIZE; in kmsan_vmap_pages_range_noflush()
283 shadow = memblock_alloc(size, PAGE_SIZE); in kmsan_init_alloc_meta_for_range()
284 origin = memblock_alloc(size, PAGE_SIZE); in kmsan_init_alloc_meta_for_range()
[all …]
/linux/arch/riscv/kernel/
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/block/partitions/
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()
88 strlcat(state->pp_buf, " <", PAGE_SIZE); in riscix_partition()
97 strlcat(state->pp_buf, "(", PAGE_SIZE); in riscix_partition()
99 strlcat(state->pp_buf, ")", PAGE_SIZE); in riscix_partition()
141 strlcat(state->pp_buf, " <", PAGE_SIZE); in linux_partition()
151 strlcat(state->pp_buf, " >", PAGE_SIZE); in linux_partition()
296 strlcat(state->pp_buf, "\n", PAGE_SIZE); in adfspart_check_ADFS()
403 strlcat(state->pp_buf, "\n", PAGE_SIZE); in adfspart_check_ICS()
[all …]
/linux/arch/x86/include/asm/
A Dpgtable_32_areas.h27 #define CPU_ENTRY_AREA_PAGES (NR_CPUS * DIV_ROUND_UP(sizeof(struct cpu_entry_area), PAGE_SIZE))
31 ((FIXADDR_TOT_START - PAGE_SIZE*(CPU_ENTRY_AREA_PAGES+1)) & PMD_MASK)
34 ((CPU_ENTRY_AREA_BASE - PAGE_SIZE) & PMD_MASK)
39 ((LDT_BASE_ADDR - PAGE_SIZE) & PMD_MASK)
42 # define VMALLOC_END (PKMAP_BASE - 2 * PAGE_SIZE)
44 # define VMALLOC_END (LDT_BASE_ADDR - 2 * PAGE_SIZE)
/linux/include/linux/
A Dhighmem.h349 ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE); in copy_mc_user_highpage()
401 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
412 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
422 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page()
432 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page()
442 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page()
466 chunk = PAGE_SIZE - offset_in_page(offset); in memcpy_from_folio()
494 chunk = PAGE_SIZE - offset_in_page(offset); in memcpy_to_folio()
533 max = PAGE_SIZE; in folio_zero_tail()
572 max = PAGE_SIZE; in folio_fill_tail()
[all …]

Completed in 64 milliseconds

12345678910>>...137