Home
last modified time | relevance | path

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

12345678910>>...117

/Linux-v4.19/tools/testing/scatterlist/
Dmain.c15 ((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-v4.19/drivers/media/common/siano/
Dsmsdvb-debugfs.c27 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-v4.19/tools/testing/selftests/vm/
Dva_128TBswitch.c23 #define PAGE_SIZE (64 << 10) macro
29 #define PAGE_SIZE (4 << 10) macro
56 .addr = ((void *)(ADDR_SWITCH_HINT - PAGE_SIZE)),
57 .size = PAGE_SIZE,
68 .addr = ((void *)(ADDR_SWITCH_HINT - PAGE_SIZE)),
69 .size = 2 * PAGE_SIZE,
80 .size = PAGE_SIZE,
87 .size = 2 * PAGE_SIZE,
93 .size = 2 * PAGE_SIZE,
100 .size = 2 * PAGE_SIZE,
[all …]
/Linux-v4.19/lib/
Dtest_user_copy.c64 kmem = kmalloc(PAGE_SIZE * 2, GFP_KERNEL); in test_user_copy_init()
68 user_addr = vm_mmap(NULL, 0, PAGE_SIZE * 2, in test_user_copy_init()
83 memset(kmem, 0x3a, PAGE_SIZE * 2); in test_user_copy_init()
84 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init()
86 memset(kmem, 0x0, PAGE_SIZE); in test_user_copy_init()
87 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init()
89 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init()
122 memset(kmem, 0x5a, PAGE_SIZE); in test_user_copy_init()
123 memset(kmem + PAGE_SIZE, 0, PAGE_SIZE); in test_user_copy_init()
126 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), in test_user_copy_init()
[all …]
/Linux-v4.19/arch/s390/kernel/
Dvmlinux.lds.S51 . = ALIGN(PAGE_SIZE);
58 RO_DATA_SECTION(PAGE_SIZE)
60 . = ALIGN(PAGE_SIZE);
63 . = ALIGN(PAGE_SIZE);
69 . = ALIGN(PAGE_SIZE);
72 RW_DATA_SECTION(0x100, PAGE_SIZE, THREAD_SIZE)
77 . = ALIGN(PAGE_SIZE); /* Init code and data */
80 . = ALIGN(PAGE_SIZE);
84 . = ALIGN(PAGE_SIZE);
138 . = ALIGN(PAGE_SIZE);
[all …]
/Linux-v4.19/lib/raid6/test/
Dtest.c24 const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
28 char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
29 char recovi[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
30 char recovj[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));
37 for (j = 0; j < PAGE_SIZE; j++) in makedata()
60 memset(recovi, 0xf0, PAGE_SIZE); in test_disks()
61 memset(recovj, 0xba, PAGE_SIZE); in test_disks()
66 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks()
68 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks()
69 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
[all …]
/Linux-v4.19/arch/x86/kernel/
Dvmlinux.lds.S80 . = ALIGN(PAGE_SIZE); \
89 . = ALIGN(PAGE_SIZE); \
140 . = ALIGN(PAGE_SIZE);
144 . = ALIGN(PAGE_SIZE);
146 ASSERT(. - _entry_trampoline == PAGE_SIZE, "entry trampoline is too big");
164 . = ALIGN(PAGE_SIZE);
166 RO_DATA(PAGE_SIZE)
182 PAGE_ALIGNED_DATA(PAGE_SIZE)
200 . = ALIGN(PAGE_SIZE);
220 . = __vvar_beginning_hack + PAGE_SIZE;
[all …]
/Linux-v4.19/arch/nds32/mm/
Dinit.c84 pte = (pte_t *) __va(memblock_alloc(PAGE_SIZE, PAGE_SIZE)); in map_ram()
85 memset(pte, 0, PAGE_SIZE); in map_ram()
90 v += PAGE_SIZE, p += PAGE_SIZE, j++, pte++) { in map_ram()
117 fixmap_pmd_p = (pmd_t *) __va(memblock_alloc(PAGE_SIZE, PAGE_SIZE)); in fixedrange_init()
118 memset(fixmap_pmd_p, 0, PAGE_SIZE); in fixedrange_init()
130 pte = (pte_t *) __va(memblock_alloc(PAGE_SIZE, PAGE_SIZE)); in fixedrange_init()
131 memset(pte, 0, PAGE_SIZE); in fixedrange_init()
156 zero_page = __va(memblock_alloc(PAGE_SIZE, PAGE_SIZE)); in paging_init()
157 memset(zero_page, 0, PAGE_SIZE); in paging_init()
211 PKMAP_BASE, PKMAP_BASE + LAST_PKMAP * PAGE_SIZE, in mem_init()
[all …]
/Linux-v4.19/drivers/target/iscsi/
Discsi_target_stat.c62 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_inst_show()
69 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_min_ver_show()
75 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION); in iscsi_stat_instance_max_ver_show()
81 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_portals_show()
88 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_INST_NUM_NODES); in iscsi_stat_instance_nodes_show()
94 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_sessions_show()
111 return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count); in iscsi_stat_instance_fail_sess_show()
120 return snprintf(page, PAGE_SIZE, "%u\n", in iscsi_stat_instance_fail_type_show()
130 return snprintf(page, PAGE_SIZE, "%s\n", in iscsi_stat_instance_fail_rem_name_show()
138 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DISCONTINUITY_TIME); in iscsi_stat_instance_disc_time_show()
[all …]
/Linux-v4.19/drivers/staging/erofs/
Dunzip_vle_lz4.c22 char data[PAGE_SIZE * EROFS_PERCPU_NR_PAGES];
33 const unsigned righthalf = PAGE_SIZE - pageofs; in z_erofs_vle_plain_copy()
61 memcpy(percpu_data + j * PAGE_SIZE, dst, PAGE_SIZE); in z_erofs_vle_plain_copy()
69 percpu_data + (i-1) * PAGE_SIZE : in z_erofs_vle_plain_copy()
86 src = mirrored[i] ? percpu_data + i * PAGE_SIZE : in z_erofs_vle_plain_copy()
115 if (outlen + pageofs > EROFS_PERCPU_NR_PAGES * PAGE_SIZE) in z_erofs_vle_unzip_fast_percpu()
118 nr_pages = DIV_ROUND_UP(outlen + pageofs, PAGE_SIZE); in z_erofs_vle_unzip_fast_percpu()
129 clusterpages * PAGE_SIZE, outlen); in z_erofs_vle_unzip_fast_percpu()
137 j = min((unsigned)PAGE_SIZE - pageofs, outlen); in z_erofs_vle_unzip_fast_percpu()
152 vout += PAGE_SIZE; in z_erofs_vle_unzip_fast_percpu()
[all …]
/Linux-v4.19/arch/openrisc/kernel/
Dvmlinux.lds.S51 . = ALIGN(PAGE_SIZE);
75 RO_DATA_SECTION(PAGE_SIZE)
81 RW_DATA_SECTION(32, PAGE_SIZE, PAGE_SIZE)
89 . = ALIGN(PAGE_SIZE);
95 INIT_TEXT_SECTION(PAGE_SIZE)
104 . = ALIGN(PAGE_SIZE);
111 . = ALIGN (PAGE_SIZE);
/Linux-v4.19/drivers/target/
Dtarget_core_stat.c68 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_inst_show()
73 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
78 return snprintf(page, PAGE_SIZE, "Target\n"); in target_stat_role_show()
83 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
118 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index); in target_stat_tgt_inst_show()
123 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show()
129 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT); in target_stat_tgt_num_lus_show()
136 return snprintf(page, PAGE_SIZE, "activated"); in target_stat_tgt_status_show()
138 return snprintf(page, PAGE_SIZE, "deactivated"); in target_stat_tgt_status_show()
151 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus); in target_stat_tgt_non_access_lus_show()
[all …]
/Linux-v4.19/arch/x86/mm/
Dcpu_entry_area.c24 BUILD_BUG_ON(sizeof(struct cpu_entry_area) % PAGE_SIZE != 0); in get_cpu_entry_area()
52 for ( ; pages; pages--, cea_vaddr+= PAGE_SIZE, ptr += PAGE_SIZE) in cea_map_percpu_pages()
66 npages = sizeof(struct debug_store) / PAGE_SIZE; in percpu_setup_debug_store()
67 BUILD_BUG_ON(sizeof(struct debug_store) % PAGE_SIZE != 0); in percpu_setup_debug_store()
76 npages = sizeof(struct debug_store_buffers) / PAGE_SIZE; in percpu_setup_debug_store()
77 for (; npages; npages--, cea += PAGE_SIZE) in percpu_setup_debug_store()
133 BUILD_BUG_ON(sizeof(struct tss_struct) % PAGE_SIZE != 0); in setup_cpu_entry_area()
136 sizeof(struct tss_struct) / PAGE_SIZE, tss_prot); in setup_cpu_entry_area()
143 BUILD_BUG_ON(sizeof(exception_stacks) % PAGE_SIZE != 0); in setup_cpu_entry_area()
148 sizeof(exception_stacks) / PAGE_SIZE, PAGE_KERNEL); in setup_cpu_entry_area()
[all …]
/Linux-v4.19/arch/parisc/kernel/
Dvmlinux.lds.S52 . = ALIGN(PAGE_SIZE);
53 INIT_DATA_SECTION(PAGE_SIZE)
70 .text ALIGN(PAGE_SIZE) : {
89 . = ALIGN(PAGE_SIZE);
137 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, PAGE_SIZE)
149 BSS_SECTION(PAGE_SIZE, PAGE_SIZE, PAGE_SIZE)
/Linux-v4.19/arch/m68k/kernel/
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-v4.19/drivers/gpu/drm/i915/selftests/
Di915_gem_dmabuf.c36 obj = i915_gem_object_create(i915, PAGE_SIZE); in igt_dmabuf_export()
60 obj = i915_gem_object_create(i915, PAGE_SIZE); in igt_dmabuf_import_self()
123 if (obj->base.size != PAGE_SIZE) { in igt_dmabuf_import()
125 (long long)obj->base.size, PAGE_SIZE); in igt_dmabuf_import()
146 memset(dma_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import()
147 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import()
156 memset(obj_map, pattern[i], PAGE_SIZE); in igt_dmabuf_import()
157 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) { in igt_dmabuf_import()
197 memset(ptr, 0xc5, PAGE_SIZE); in igt_dmabuf_import_ownership()
235 obj = i915_gem_object_create(i915, PAGE_SIZE); in igt_dmabuf_export_vmap()
[all …]
/Linux-v4.19/drivers/cpufreq/
Dcpufreq_stats.c90 len += snprintf(buf + len, PAGE_SIZE - len, " From : To\n"); in show_trans_table()
91 len += snprintf(buf + len, PAGE_SIZE - len, " : "); in show_trans_table()
93 if (len >= PAGE_SIZE) in show_trans_table()
95 len += snprintf(buf + len, PAGE_SIZE - len, "%9u ", in show_trans_table()
98 if (len >= PAGE_SIZE) in show_trans_table()
99 return PAGE_SIZE; in show_trans_table()
101 len += snprintf(buf + len, PAGE_SIZE - len, "\n"); in show_trans_table()
104 if (len >= PAGE_SIZE) in show_trans_table()
107 len += snprintf(buf + len, PAGE_SIZE - len, "%9u: ", in show_trans_table()
111 if (len >= PAGE_SIZE) in show_trans_table()
[all …]
/Linux-v4.19/arch/riscv/include/asm/
Dpage.h24 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) macro
25 #define PAGE_MASK (~(PAGE_SIZE - 1))
38 #define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1)))
39 #define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1)))
48 #define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE)
49 #define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)
51 #define clear_user_page(pgaddr, vaddr, page) memset((pgaddr), 0, PAGE_SIZE)
53 memcpy((vto), (vfrom), PAGE_SIZE)
/Linux-v4.19/arch/alpha/mm/
Dinit.c80 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-v4.19/fs/btrfs/
Dzstd.c67 workspace->buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in zstd_alloc_workspace()
97 unsigned long max_out = nr_dest_pages * PAGE_SIZE; in zstd_compress_pages()
117 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
129 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
160 tot_out += PAGE_SIZE; in zstd_compress_pages()
161 max_out -= PAGE_SIZE; in zstd_compress_pages()
177 PAGE_SIZE); in zstd_compress_pages()
188 tot_in += PAGE_SIZE; in zstd_compress_pages()
192 start += PAGE_SIZE; in zstd_compress_pages()
193 len -= PAGE_SIZE; in zstd_compress_pages()
[all …]
/Linux-v4.19/drivers/platform/chrome/
Dcros_ec_sysfs.c44 count += scnprintf(buf + count, PAGE_SIZE - count, in reboot_show()
46 count += scnprintf(buf + count, PAGE_SIZE - count, in reboot_show()
154 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
156 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
158 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
168 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
171 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
175 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
184 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
187 count += scnprintf(buf + count, PAGE_SIZE - count, in version_show()
[all …]
/Linux-v4.19/block/partitions/
Dacorn.c49 strlcat(state->pp_buf, " [", PAGE_SIZE); in adfs_partition()
50 strlcat(state->pp_buf, name, PAGE_SIZE); in adfs_partition()
51 strlcat(state->pp_buf, "]", PAGE_SIZE); in adfs_partition()
87 strlcat(state->pp_buf, " [RISCiX]", PAGE_SIZE); in riscix_partition()
94 strlcat(state->pp_buf, " <", PAGE_SIZE); in riscix_partition()
103 strlcat(state->pp_buf, "(", PAGE_SIZE); in riscix_partition()
104 strlcat(state->pp_buf, rr->part[part].name, PAGE_SIZE); in riscix_partition()
105 strlcat(state->pp_buf, ")", PAGE_SIZE); in riscix_partition()
109 strlcat(state->pp_buf, " >\n", PAGE_SIZE); in riscix_partition()
139 strlcat(state->pp_buf, " [Linux]", PAGE_SIZE); in linux_partition()
[all …]
/Linux-v4.19/arch/m68k/mm/
Dsun3kmap.c58 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-v4.19/fs/nilfs2/
Dsysfs.c28 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 …]
/Linux-v4.19/arch/arc/kernel/
Dvmlinux.lds.S36 . = ALIGN(PAGE_SIZE);
62 . = ALIGN(PAGE_SIZE);
85 . = ALIGN(PAGE_SIZE);
102 RO_DATA_SECTION(PAGE_SIZE)
108 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
115 . = ALIGN(PAGE_SIZE);
127 . = ALIGN(PAGE_SIZE);

12345678910>>...117