/linux-6.6.21/tools/testing/scatterlist/ |
D | main.c | 25 ((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-6.6.21/tools/testing/selftests/mm/ |
D | va_high_addr_switch.c | 15 #define PAGE_SIZE (64 << 10) macro 25 #define PAGE_SIZE (64 << 10) macro 28 #define PAGE_SIZE (4 << 10) macro 68 .addr = ((void *)(ADDR_SWITCH_HINT - PAGE_SIZE)), 69 .size = PAGE_SIZE, 81 .addr = ((void *)(ADDR_SWITCH_HINT - PAGE_SIZE)), 82 .size = 2 * PAGE_SIZE, 93 .size = PAGE_SIZE, 100 .size = 2 * PAGE_SIZE, 106 .size = 2 * PAGE_SIZE, [all …]
|
/linux-6.6.21/arch/s390/kernel/ |
D | vmlinux.lds.S | 56 . = ALIGN(PAGE_SIZE); 60 RO_DATA(PAGE_SIZE) 62 . = ALIGN(PAGE_SIZE); 65 . = ALIGN(PAGE_SIZE); 71 . = ALIGN(PAGE_SIZE); 74 RW_DATA(0x100, PAGE_SIZE, THREAD_SIZE) 84 . = ALIGN(PAGE_SIZE); 88 . = ALIGN(PAGE_SIZE); /* Init code and data */ 91 . = ALIGN(PAGE_SIZE); 95 . = ALIGN(PAGE_SIZE); [all …]
|
/linux-6.6.21/lib/raid6/test/ |
D | test.c | 21 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-6.6.21/lib/ |
D | test_user_copy.c | 52 if (test(size < 2 * PAGE_SIZE, "buffer too small")) in test_check_nonzero_user() 62 start = PAGE_SIZE - (size / 2); in test_check_nonzero_user() 194 kmem = kmalloc(PAGE_SIZE * 2, GFP_KERNEL); in test_user_copy_init() 198 user_addr = vm_mmap(NULL, 0, PAGE_SIZE * 2, in test_user_copy_init() 213 memset(kmem, 0x3a, PAGE_SIZE * 2); in test_user_copy_init() 214 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init() 216 memset(kmem, 0x0, PAGE_SIZE); in test_user_copy_init() 217 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init() 219 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init() 248 ret |= test_check_nonzero_user(kmem, usermem, 2 * PAGE_SIZE); in test_user_copy_init() [all …]
|
D | fortify_kunit.c | 214 checker((expected_pages) * PAGE_SIZE, \ 215 vmalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \ 216 checker((expected_pages) * PAGE_SIZE, \ 217 vzalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \ 218 checker((expected_pages) * PAGE_SIZE, \ 219 __vmalloc((alloc_pages) * PAGE_SIZE, gfp), vfree(p)); \ 229 checker((expected_pages) * PAGE_SIZE, \ 230 kvmalloc((alloc_pages) * PAGE_SIZE, gfp), \ 232 checker((expected_pages) * PAGE_SIZE, \ 233 kvmalloc_node((alloc_pages) * PAGE_SIZE, gfp, NUMA_NO_NODE), \ [all …]
|
/linux-6.6.21/arch/um/kernel/ |
D | mem.c | 62 memset(empty_zero_page, 0, PAGE_SIZE); in mem_init() 86 pte_t *pte = (pte_t *) memblock_alloc_low(PAGE_SIZE, in one_page_table_init() 87 PAGE_SIZE); in one_page_table_init() 90 __func__, PAGE_SIZE, PAGE_SIZE); in one_page_table_init() 101 pmd_t *pmd_table = (pmd_t *) memblock_alloc_low(PAGE_SIZE, PAGE_SIZE); in one_md_table_init() 104 __func__, PAGE_SIZE, PAGE_SIZE); in one_md_table_init() 152 v = (unsigned long) memblock_alloc_low(size, PAGE_SIZE); in fixaddr_user_init() 155 __func__, size, PAGE_SIZE); in fixaddr_user_init() 159 for ( ; size > 0; size -= PAGE_SIZE, vaddr += PAGE_SIZE, in fixaddr_user_init() 160 p += PAGE_SIZE) { in fixaddr_user_init() [all …]
|
/linux-6.6.21/arch/arm64/kernel/ |
D | vmlinux.lds.S | 18 . = ALIGN(PAGE_SIZE); \ 22 . = ALIGN(PAGE_SIZE); \ 27 . = ALIGN(PAGE_SIZE); \ 42 . = ALIGN(PAGE_SIZE); \ 51 #define SBSS_ALIGN PAGE_SIZE 78 . = ALIGN(PAGE_SIZE); \ 85 . = ALIGN(PAGE_SIZE); \ 116 . = ALIGN(PAGE_SIZE); \ 119 . = ALIGN(PAGE_SIZE); \ 190 RO_DATA(PAGE_SIZE) [all …]
|
/linux-6.6.21/tools/testing/selftests/iommu/ |
D | iommufd.c | 14 #define MOCK_PAGE_SIZE (PAGE_SIZE / 2) 40 PAGE_SIZE = sysconf(_SC_PAGE_SIZE); in setup_sizes() 43 BUFFER_SIZE = PAGE_SIZE * 16; in setup_sizes() 276 test_ioctl_ioas_map_fixed(buffer, PAGE_SIZE, self->base_iova); in TEST_F() 290 test_ioctl_ioas_map_fixed(buffer, PAGE_SIZE, in TEST_F() 291 self->base_iova + i * PAGE_SIZE); in TEST_F() 335 test_err_ioctl_ioas_unmap(ENOENT, i * PAGE_SIZE, PAGE_SIZE); in TEST_F() 339 test_ioctl_ioas_map_fixed(buffer, PAGE_SIZE, in TEST_F() 340 self->base_iova + i * PAGE_SIZE); in TEST_F() 342 test_ioctl_ioas_unmap(self->base_iova + i * PAGE_SIZE, in TEST_F() [all …]
|
/linux-6.6.21/arch/csky/kernel/ |
D | vmlinux.lds.S | 27 . = 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-6.6.21/drivers/target/iscsi/ |
D | iscsi_target_stat.c | 53 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-6.6.21/drivers/target/ |
D | target_core_stat.c | 52 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"); in target_stat_tgt_status_show() 122 return snprintf(page, PAGE_SIZE, "deactivated"); 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-6.6.21/arch/x86/kernel/ |
D | vmlinux.lds.S | 84 . = ALIGN(PAGE_SIZE); \ 93 . = ALIGN(PAGE_SIZE); \ 163 . = ALIGN(PAGE_SIZE); 166 RO_DATA(PAGE_SIZE) 182 PAGE_ALIGNED_DATA(PAGE_SIZE) 200 . = ALIGN(PAGE_SIZE); 218 . = __vvar_beginning_hack + PAGE_SIZE; 221 . = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE); 224 . = ALIGN(PAGE_SIZE); 240 INIT_TEXT_SECTION(PAGE_SIZE) [all …]
|
/linux-6.6.21/arch/parisc/kernel/ |
D | vmlinux.lds.S | 64 . = ALIGN(PAGE_SIZE); 65 INIT_DATA_SECTION(PAGE_SIZE) 85 .text ALIGN(PAGE_SIZE) : { 104 . = ALIGN(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-6.6.21/arch/m68k/mm/ |
D | sun3mmu.c | 47 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()
|
D | sun3kmap.c | 57 phys += PAGE_SIZE; in do_pmeg_mapin() 58 virt += PAGE_SIZE; in do_pmeg_mapin() 74 offset = phys & (PAGE_SIZE-1); in sun3_ioremap() 75 phys &= ~(PAGE_SIZE-1); in sun3_ioremap() 87 pages = size / PAGE_SIZE; in sun3_ioremap() 94 seg_pages = (SUN3_PMEG_SIZE - (virt & SUN3_PMEG_MASK)) / PAGE_SIZE; in sun3_ioremap() 101 phys += seg_pages * PAGE_SIZE; in sun3_ioremap() 102 virt += seg_pages * PAGE_SIZE; in sun3_ioremap()
|
/linux-6.6.21/arch/m68k/kernel/ |
D | sys_m68k.c | 107 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-6.6.21/drivers/misc/lkdtm/ |
D | usercopy.c | 81 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-6.6.21/arch/x86/mm/ |
D | cpu_entry_area.c | 39 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-6.6.21/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 141 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-6.6.21/mm/kmsan/ |
D | shadow.c | 52 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() 160 kmsan_internal_unpoison_memory(page_address(dst), PAGE_SIZE, in kmsan_copy_page_meta() 166 __memcpy(shadow_ptr_for(dst), shadow_ptr_for(src), PAGE_SIZE); in kmsan_copy_page_meta() 167 __memcpy(origin_ptr_for(dst), origin_ptr_for(src), PAGE_SIZE); in kmsan_copy_page_meta() 186 __memset(page_address(shadow), 0, PAGE_SIZE * pages); in kmsan_alloc_page() 187 __memset(page_address(origin), 0, PAGE_SIZE * pages); in kmsan_alloc_page() 195 __memset(page_address(shadow), -1, PAGE_SIZE * pages); in kmsan_alloc_page() 203 for (int i = 0; i < PAGE_SIZE * pages / sizeof(handle); i++) in kmsan_alloc_page() [all …]
|
/linux-6.6.21/arch/riscv/kernel/ |
D | vmlinux-xip.lds.S | 30 INIT_TEXT_SECTION(PAGE_SIZE) 67 __data_loc = ALIGN(PAGE_SIZE); /* location in file */ 75 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) 83 . = ALIGN(PAGE_SIZE); 112 . = ALIGN(PAGE_SIZE); 119 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0) 135 . = ALIGN(PAGE_SIZE);
|
/linux-6.6.21/block/partitions/ |
D | acorn.c | 43 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-6.6.21/arch/x86/include/asm/ |
D | pgtable_32_areas.h | 27 #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-6.6.21/arch/openrisc/kernel/ |
D | vmlinux.lds.S | 47 . = ALIGN(PAGE_SIZE); 70 RO_DATA(PAGE_SIZE) 76 RW_DATA(32, PAGE_SIZE, PAGE_SIZE) 83 . = ALIGN(PAGE_SIZE); 89 INIT_TEXT_SECTION(PAGE_SIZE)
|