| /Linux-v5.4/tools/testing/scatterlist/ |
| D | main.c | 15 ((1 + array[i]) * PAGE_SIZE); in set_pages() 31 { -EINVAL, 1, pfn(0), PAGE_SIZE, PAGE_SIZE + 1, 1 }, in main() 32 { -EINVAL, 1, pfn(0), PAGE_SIZE, 0, 1 }, in main() 33 { -EINVAL, 1, pfn(0), PAGE_SIZE, sgmax + 1, 1 }, in main() 34 { 0, 1, pfn(0), PAGE_SIZE, sgmax, 1 }, in main() 36 { 0, 2, pfn(0, 1), 2 * PAGE_SIZE, sgmax, 1 }, in main() 37 { 0, 2, pfn(1, 0), 2 * PAGE_SIZE, sgmax, 2 }, in main() 38 { 0, 3, pfn(0, 1, 2), 3 * PAGE_SIZE, sgmax, 1 }, in main() 39 { 0, 3, pfn(0, 2, 1), 3 * PAGE_SIZE, sgmax, 3 }, in main() 40 { 0, 3, pfn(0, 1, 3), 3 * PAGE_SIZE, sgmax, 2 }, in main() [all …]
|
| /Linux-v5.4/drivers/media/common/siano/ |
| D | smsdvb-debugfs.c | 27 char stats_data[PAGE_SIZE]; 48 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 50 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 52 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 54 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 56 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 58 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 60 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 62 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 64 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() [all …]
|
| /Linux-v5.4/tools/testing/selftests/vm/ |
| D | va_128TBswitch.c | 15 #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 …]
|
| /Linux-v5.4/lib/raid6/test/ |
| D | test.c | 21 const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE))); 25 char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE))); 26 char recovi[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE))); 27 char recovj[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE))); 34 for (j = 0; j < PAGE_SIZE; j++) in makedata() 57 memset(recovi, 0xf0, PAGE_SIZE); in test_disks() 58 memset(recovj, 0xba, PAGE_SIZE); in test_disks() 63 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks() 65 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks() 66 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks() [all …]
|
| /Linux-v5.4/arch/nds32/mm/ |
| D | init.c | 81 pte = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in map_ram() 84 __func__, PAGE_SIZE, PAGE_SIZE); in map_ram() 89 v += PAGE_SIZE, p += PAGE_SIZE, j++, pte++) { in map_ram() 116 fixmap_pmd_p = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in fixedrange_init() 119 __func__, PAGE_SIZE, PAGE_SIZE); in fixedrange_init() 131 pte = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in fixedrange_init() 134 __func__, PAGE_SIZE, PAGE_SIZE); in fixedrange_init() 159 zero_page = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in paging_init() 162 __func__, PAGE_SIZE, PAGE_SIZE); in paging_init() 216 PKMAP_BASE, PKMAP_BASE + LAST_PKMAP * PAGE_SIZE, in mem_init() [all …]
|
| /Linux-v5.4/arch/um/kernel/ |
| D | mem.c | 43 memset(empty_zero_page, 0, PAGE_SIZE); in mem_init() 68 pte_t *pte = (pte_t *) memblock_alloc_low(PAGE_SIZE, in one_page_table_init() 69 PAGE_SIZE); in one_page_table_init() 72 __func__, PAGE_SIZE, PAGE_SIZE); in one_page_table_init() 84 pmd_t *pmd_table = (pmd_t *) memblock_alloc_low(PAGE_SIZE, PAGE_SIZE); in one_md_table_init() 87 __func__, PAGE_SIZE, PAGE_SIZE); in one_md_table_init() 137 v = (unsigned long) memblock_alloc_low(size, PAGE_SIZE); in fixaddr_user_init() 140 __func__, size, PAGE_SIZE); in fixaddr_user_init() 144 for ( ; size > 0; size -= PAGE_SIZE, vaddr += PAGE_SIZE, in fixaddr_user_init() 145 p += PAGE_SIZE) { in fixaddr_user_init() [all …]
|
| /Linux-v5.4/arch/s390/kernel/ |
| D | vmlinux.lds.S | 49 . = ALIGN(PAGE_SIZE); 57 RO_DATA_SECTION(PAGE_SIZE) 59 . = ALIGN(PAGE_SIZE); 62 . = ALIGN(PAGE_SIZE); 69 . = ALIGN(PAGE_SIZE); 72 RW_DATA_SECTION(0x100, PAGE_SIZE, THREAD_SIZE) 78 . = ALIGN(PAGE_SIZE); /* Init code and data */ 81 . = ALIGN(PAGE_SIZE); 85 . = ALIGN(PAGE_SIZE); 141 . = ALIGN(PAGE_SIZE); [all …]
|
| /Linux-v5.4/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 …]
|
| /Linux-v5.4/drivers/target/iscsi/ |
| D | iscsi_target_stat.c | 54 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_inst_show() 61 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_min_ver_show() 67 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_max_ver_show() 73 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_portals_show() 80 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_INST_NUM_NODES); in iscsi_stat_instance_nodes_show() 86 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_sessions_show() 103 return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count); in iscsi_stat_instance_fail_sess_show() 112 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_fail_type_show() 122 return snprintf(page, PAGE_SIZE, "%s\n", in iscsi_stat_instance_fail_rem_name_show() 130 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DISCONTINUITY_TIME); in iscsi_stat_instance_disc_time_show() [all …]
|
| /Linux-v5.4/arch/m68k/mm/ |
| D | sun3mmu.c | 48 empty_zero_page = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in paging_init() 51 __func__, PAGE_SIZE, PAGE_SIZE); in paging_init() 59 size = (size + PAGE_SIZE) & ~(PAGE_SIZE-1); in paging_init() 61 next_pgtable = (unsigned long)memblock_alloc(size, PAGE_SIZE); in paging_init() 64 __func__, size, PAGE_SIZE); in paging_init() 65 bootmem_end = (next_pgtable + size + PAGE_SIZE) & PAGE_MASK; in paging_init() 83 address += PAGE_SIZE; in paging_init()
|
| D | motorola.c | 57 ptablep = (pte_t *)memblock_alloc_low(PAGE_SIZE, PAGE_SIZE); in kernel_page_table() 60 __func__, PAGE_SIZE, PAGE_SIZE); in kernel_page_table() 100 last_pgtable = (pmd_t *)memblock_alloc_low(PAGE_SIZE, in kernel_ptr_table() 101 PAGE_SIZE); in kernel_ptr_table() 104 __func__, PAGE_SIZE, PAGE_SIZE); in kernel_ptr_table() 178 physaddr += PAGE_SIZE; in map_node() 179 for (i = 1; i < 64; physaddr += PAGE_SIZE, i++) in map_node() 199 size -= PAGE_SIZE; in map_node() 200 virtaddr += PAGE_SIZE; in map_node() 201 physaddr += PAGE_SIZE; in map_node() [all …]
|
| D | sun3kmap.c | 58 phys += PAGE_SIZE; in do_pmeg_mapin() 59 virt += PAGE_SIZE; in do_pmeg_mapin() 75 offset = phys & (PAGE_SIZE-1); in sun3_ioremap() 76 phys &= ~(PAGE_SIZE-1); in sun3_ioremap() 88 pages = size / PAGE_SIZE; in sun3_ioremap() 95 seg_pages = (SUN3_PMEG_SIZE - (virt & SUN3_PMEG_MASK)) / PAGE_SIZE; in sun3_ioremap() 102 phys += seg_pages * PAGE_SIZE; in sun3_ioremap() 103 virt += seg_pages * PAGE_SIZE; in sun3_ioremap()
|
| /Linux-v5.4/drivers/target/ |
| D | target_core_stat.c | 55 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_inst_show() 60 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show() 65 return snprintf(page, PAGE_SIZE, "Target\n"); in target_stat_role_show() 70 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show() 105 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_tgt_inst_show() 110 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show() 116 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); in target_stat_tgt_num_lus_show() 123 return snprintf(page, PAGE_SIZE, "activated"); in target_stat_tgt_status_show() 125 return snprintf(page, PAGE_SIZE, "deactivated"); in target_stat_tgt_status_show() 138 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); in target_stat_tgt_non_access_lus_show() [all …]
|
| /Linux-v5.4/arch/x86/kernel/ |
| D | vmlinux.lds.S | 80 . = ALIGN(PAGE_SIZE); \ 89 . = ALIGN(PAGE_SIZE); \ 154 . = ALIGN(PAGE_SIZE); 156 RO_DATA(PAGE_SIZE) 172 PAGE_ALIGNED_DATA(PAGE_SIZE) 190 . = ALIGN(PAGE_SIZE); 210 . = __vvar_beginning_hack + PAGE_SIZE; 213 . = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE); 216 . = ALIGN(PAGE_SIZE); 232 INIT_TEXT_SECTION(PAGE_SIZE) [all …]
|
| /Linux-v5.4/arch/openrisc/kernel/ |
| D | vmlinux.lds.S | 47 . = ALIGN(PAGE_SIZE); 71 RO_DATA_SECTION(PAGE_SIZE) 77 RW_DATA_SECTION(32, PAGE_SIZE, PAGE_SIZE) 85 . = ALIGN(PAGE_SIZE); 91 INIT_TEXT_SECTION(PAGE_SIZE) 100 . = ALIGN(PAGE_SIZE); 107 . = ALIGN (PAGE_SIZE);
|
| /Linux-v5.4/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-v5.4/arch/x86/mm/ |
| D | cpu_entry_area.c | 23 BUILD_BUG_ON(sizeof(struct cpu_entry_area) % PAGE_SIZE != 0); in get_cpu_entry_area() 51 for ( ; pages; pages--, cea_vaddr+= PAGE_SIZE, ptr += PAGE_SIZE) in cea_map_percpu_pages() 65 npages = sizeof(struct debug_store) / PAGE_SIZE; in percpu_setup_debug_store() 66 BUILD_BUG_ON(sizeof(struct debug_store) % PAGE_SIZE != 0); in percpu_setup_debug_store() 75 npages = sizeof(struct debug_store_buffers) / PAGE_SIZE; in percpu_setup_debug_store() 76 for (; npages; npages--, cea += PAGE_SIZE) in percpu_setup_debug_store() 84 npages = sizeof(estacks->name## _stack) / PAGE_SIZE; \ 95 BUILD_BUG_ON(sizeof(exception_stacks) % PAGE_SIZE != 0); in percpu_setup_exception_stacks() 163 BUILD_BUG_ON(sizeof(struct tss_struct) % PAGE_SIZE != 0); in setup_cpu_entry_area() 165 sizeof(struct tss_struct) / PAGE_SIZE, tss_prot); in setup_cpu_entry_area() [all …]
|
| /Linux-v5.4/arch/csky/kernel/ |
| D | vmlinux.lds.S | 27 INIT_TEXT_SECTION(PAGE_SIZE) 28 INIT_DATA_SECTION(PAGE_SIZE) 30 . = ALIGN(PAGE_SIZE); 48 . = ALIGN(PAGE_SIZE); 52 RO_DATA_SECTION(PAGE_SIZE) 53 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) 58 BSS_SECTION(L1_CACHE_BYTES, PAGE_SIZE, L1_CACHE_BYTES)
|
| /Linux-v5.4/arch/parisc/kernel/ |
| D | vmlinux.lds.S | 63 . = ALIGN(PAGE_SIZE); 64 INIT_DATA_SECTION(PAGE_SIZE) 84 .text ALIGN(PAGE_SIZE) : { 104 . = ALIGN(PAGE_SIZE); 152 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, PAGE_SIZE) 164 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, PAGE_SIZE)
|
| /Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/ |
| D | i915_gem_dmabuf.c | 19 obj = i915_gem_object_create_shmem(i915, PAGE_SIZE); in igt_dmabuf_export() 43 obj = i915_gem_object_create_shmem(i915, PAGE_SIZE); in igt_dmabuf_import_self() 106 if (obj->base.size != PAGE_SIZE) { in igt_dmabuf_import() 108 (long long)obj->base.size, PAGE_SIZE); in igt_dmabuf_import() 129 memset(dma_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import() 130 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import() 139 memset(obj_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import() 140 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import() 180 memset(ptr, 0xc5, PAGE_SIZE); in igt_dmabuf_import_ownership() 218 obj = i915_gem_object_create_shmem(i915, PAGE_SIZE); in igt_dmabuf_export_vmap() [all …]
|
| /Linux-v5.4/arch/alpha/mm/ |
| D | init.c | 80 memset((void *) EMPTY_PGT, 0, PAGE_SIZE); in __bad_pagetable() 87 memset((void *) EMPTY_PGE, 0, PAGE_SIZE); in __bad_page() 109 memset(swapper_pg_dir, 0, PAGE_SIZE); in switch_to_system_map() 183 kernel_end = two_pages + 2*PAGE_SIZE; in callback_init() 184 memset(two_pages, 0, 2*PAGE_SIZE); in callback_init() 189 pmd_set(pmd, (pte_t *)(two_pages + PAGE_SIZE)); in callback_init() 204 vm_area_register_early(&console_remap_vm, PAGE_SIZE); in callback_init() 218 memset(kernel_end, 0, PAGE_SIZE); in callback_init() 221 kernel_end += PAGE_SIZE; in callback_init() 226 vaddr += PAGE_SIZE; in callback_init() [all …]
|
| /Linux-v5.4/arch/riscv/include/asm/ |
| D | page.h | 16 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) macro 17 #define PAGE_MASK (~(PAGE_SIZE - 1)) 40 #define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1))) 41 #define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1))) 50 #define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE) 51 #define copy_page(to, from) memcpy((to), (from), PAGE_SIZE) 53 #define clear_user_page(pgaddr, vaddr, page) memset((pgaddr), 0, PAGE_SIZE) 55 memcpy((vto), (vfrom), PAGE_SIZE)
|
| /Linux-v5.4/drivers/cpufreq/ |
| D | cpufreq_stats.c | 93 len += snprintf(buf + len, PAGE_SIZE - len, " From : To\n"); in show_trans_table() 94 len += snprintf(buf + len, PAGE_SIZE - len, " : "); in show_trans_table() 96 if (len >= PAGE_SIZE) in show_trans_table() 98 len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", in show_trans_table() 101 if (len >= PAGE_SIZE) in show_trans_table() 102 return PAGE_SIZE; in show_trans_table() 104 len += snprintf(buf + len, PAGE_SIZE - len, "\n"); in show_trans_table() 107 if (len >= PAGE_SIZE) in show_trans_table() 110 len += snprintf(buf + len, PAGE_SIZE - len, "%9u: ", in show_trans_table() 114 if (len >= PAGE_SIZE) in show_trans_table() [all …]
|
| /Linux-v5.4/block/partitions/ |
| D | acorn.c | 44 strlcat(state->pp_buf, " [", PAGE_SIZE); in adfs_partition() 45 strlcat(state->pp_buf, name, PAGE_SIZE); in adfs_partition() 46 strlcat(state->pp_buf, "]", PAGE_SIZE); in adfs_partition() 82 strlcat(state->pp_buf, " [RISCiX]", PAGE_SIZE); in riscix_partition() 89 strlcat(state->pp_buf, " <", PAGE_SIZE); in riscix_partition() 98 strlcat(state->pp_buf, "(", PAGE_SIZE); in riscix_partition() 99 strlcat(state->pp_buf, rr->part[part].name, PAGE_SIZE); in riscix_partition() 100 strlcat(state->pp_buf, ")", PAGE_SIZE); in riscix_partition() 104 strlcat(state->pp_buf, " >\n", PAGE_SIZE); in riscix_partition() 134 strlcat(state->pp_buf, " [Linux]", PAGE_SIZE); in linux_partition() [all …]
|
| /Linux-v5.4/fs/nilfs2/ |
| D | sysfs.c | 28 count = scnprintf(buf, PAGE_SIZE, \ 113 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_inodes_count_show() 121 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_blocks_count_show() 134 return snprintf(buf, PAGE_SIZE, snapshot_readme_str); in nilfs_snapshot_README_show() 235 return snprintf(buf, PAGE_SIZE, mounted_snapshots_readme_str); in nilfs_mounted_snapshots_README_show() 273 return snprintf(buf, PAGE_SIZE, "%llu\n", ncheckpoints); in nilfs_checkpoints_checkpoints_number_show() 296 return snprintf(buf, PAGE_SIZE, "%llu\n", nsnapshots); in nilfs_checkpoints_snapshots_number_show() 310 return snprintf(buf, PAGE_SIZE, "%llu\n", last_cno); in nilfs_checkpoints_last_seg_checkpoint_show() 324 return snprintf(buf, PAGE_SIZE, "%llu\n", cno); in nilfs_checkpoints_next_checkpoint_show() 340 return snprintf(buf, PAGE_SIZE, checkpoints_readme_str); in nilfs_checkpoints_README_show() [all …]
|