Home
last modified time | relevance | path

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

12345678910>>...119

/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, sgma 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()
[all...]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_gen4_pm_debugfs.c83 static_assert(sizeof(struct icp_qat_fw_init_admin_pm_info) < PAGE_SIZE);
99 pm_info = kmalloc(PAGE_SIZE, GFP_KERNEL); in adf_gen4_print_pm_status()
103 pm_kv = kmalloc(PAGE_SIZE, GFP_KERNEL); in adf_gen4_print_pm_status()
109 p_state_addr = dma_map_single(&GET_DEV(accel_dev), pm_info, PAGE_SIZE, in adf_gen4_print_pm_status()
116 ret = adf_get_pm_info(accel_dev, p_state_addr, PAGE_SIZE); in adf_gen4_print_pm_status()
117 dma_unmap_single(&GET_DEV(accel_dev), p_state_addr, PAGE_SIZE, in adf_gen4_print_pm_status()
125 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen4_print_pm_status()
128 pm_info_regs, PAGE_SIZE - len, in adf_gen4_print_pm_status()
130 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, "max_pwrreq: %#x\n", in adf_gen4_print_pm_status()
132 len += scnprintf(&pm_kv[len], PAGE_SIZE in adf_gen4_print_pm_status()
[all...]
H A Dadf_gen6_pm_dbgfs.c38 static_assert(sizeof(struct icp_qat_fw_init_admin_pm_info) < PAGE_SIZE);
53 pm_info = kzalloc(PAGE_SIZE, GFP_KERNEL); in adf_gen6_print_pm_status()
57 pm_kv = kzalloc(PAGE_SIZE, GFP_KERNEL); in adf_gen6_print_pm_status()
63 p_state_addr = dma_map_single(&GET_DEV(accel_dev), pm_info, PAGE_SIZE, in adf_gen6_print_pm_status()
70 ret = adf_get_pm_info(accel_dev, p_state_addr, PAGE_SIZE); in adf_gen6_print_pm_status()
71 dma_unmap_single(&GET_DEV(accel_dev), p_state_addr, PAGE_SIZE, in adf_gen6_print_pm_status()
79 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen6_print_pm_status()
82 pm_info_regs, PAGE_SIZE - len, in adf_gen6_print_pm_status()
86 len += scnprintf(&pm_kv[len], PAGE_SIZE - len, in adf_gen6_print_pm_status()
90 pm_info_regs, PAGE_SIZE in adf_gen6_print_pm_status()
[all...]
/linux/arch/s390/kernel/
H A Dvmlinux.lds.S56 . = ALIGN(PAGE_SIZE);
60 RO_DATA(PAGE_SIZE)
62 . = ALIGN(PAGE_SIZE);
65 . = ALIGN(PAGE_SIZE);
71 . = ALIGN(PAGE_SIZE);
90 RW_DATA(0x100, PAGE_SIZE, THREAD_SIZE)
103 . = ALIGN(PAGE_SIZE);
107 . = ALIGN(PAGE_SIZE); /* Init code and data */
110 . = ALIGN(PAGE_SIZE);
114 . = ALIGN(PAGE_SIZE);
[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/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/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, " in iscsi_stat_instance_disc_time_show()
[all...]
/linux/arch/parisc/kernel/
H A Dvmlinux.lds.S15 * will ensure that it has .bss alignment (PAGE_SIZE).
64 . = 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_SIZ
[all...]
/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, " in target_stat_tgt_non_access_lus_show()
[all...]
/linux/lib/tests/
H A Dusercopy_kunit.c55 KUNIT_ASSERT_GE_MSG(test, size, 2 * PAGE_SIZE, "buffer too small"); in usercopy_test_check_nonzero_user()
64 start = PAGE_SIZE - (size / 2); in usercopy_test_check_nonzero_user()
183 memset(kmem, 0x3a, PAGE_SIZE * 2); in usercopy_test_valid()
184 KUNIT_EXPECT_EQ_MSG(test, 0, copy_to_user(usermem, kmem, PAGE_SIZE), in usercopy_test_valid()
186 memset(kmem, 0x0, PAGE_SIZE); in usercopy_test_valid()
187 KUNIT_EXPECT_EQ_MSG(test, 0, copy_from_user(kmem, usermem, PAGE_SIZE), in usercopy_test_valid()
189 KUNIT_EXPECT_MEMEQ_MSG(test, kmem, kmem + PAGE_SIZE, PAGE_SIZE, in usercopy_test_valid()
233 memset(kmem, 0x5a, PAGE_SIZE); in usercopy_test_invalid()
234 memset(kmem + PAGE_SIZE, in usercopy_test_invalid()
[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()
[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()
346 * This expects "kaddr" to point to a PAGE_SIZE allocatio
[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/include/linux/
H A Dhighmem.h160 * memset(vaddr, 0, PAGE_SIZE);
174 * memcpy(vaddr1, vaddr2, PAGE_SIZE);
261 * If we pass in a base or tail page, we can zero up to PAGE_SIZE.
305 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_user_highpage()
343 ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE); in copy_mc_user_highpage()
345 kmsan_unpoison_memory(page_address(to), PAGE_SIZE); in copy_mc_user_highpage()
362 ret = copy_mc_to_kernel(vto, vfrom, PAGE_SIZE); in copy_mc_highpage()
395 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
413 chunk > PAGE_SIZE in memcpy_folio()
[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 * page in kmsan_alloc_page()
[all...]
/linux/tools/testing/selftests/iommu/
H A Diommufd.c16 #define MOCK_PAGE_SIZE (PAGE_SIZE / 2)
43 PAGE_SIZE = sysconf(_SC_PAGE_SIZE); in setup_sizes()
46 BUFFER_SIZE = PAGE_SIZE * 16; in setup_sizes()
304 test_ioctl_ioas_map(buffer, PAGE_SIZE, &iova); in TEST_F()
306 test_ioctl_ioas_unmap(iova, PAGE_SIZE); in TEST_F()
309 test_ioctl_ioas_map_file(mfd, 0, PAGE_SIZE, &iova); in TEST_F()
315 int nlock = PAGE_SIZE / 1024; in TEST_F()
735 test_ioctl_ioas_map_fixed(buffer, PAGE_SIZE, self->base_iova); in TEST_F()
749 test_ioctl_ioas_map_fixed(buffer, PAGE_SIZE, in TEST_F()
750 self->base_iova + i * PAGE_SIZE); in TEST_F()
[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/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/x86/include/asm/
H 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/arch/x86/kernel/
H A Dvmlinux.lds.S84 . = ALIGN(PAGE_SIZE); \
94 . = ALIGN(PAGE_SIZE); \
170 . = ALIGN(PAGE_SIZE);
173 RO_DATA(PAGE_SIZE)
192 PAGE_ALIGNED_DATA(PAGE_SIZE)
214 . = ALIGN(PAGE_SIZE);
219 INIT_TEXT_SECTION(PAGE_SIZE)
342 . = ALIGN(PAGE_SIZE);
353 . = ALIGN(PAGE_SIZE);
357 . = ALIGN(PAGE_SIZE);
[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/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/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/hexagon/mm/
H A Duaccess.c26 while (count > PAGE_SIZE) { in __clear_user_hexagon()
27 uncleared = raw_copy_to_user(dest, &empty_zero_page, PAGE_SIZE); in __clear_user_hexagon()
29 return count - (PAGE_SIZE - uncleared); in __clear_user_hexagon()
30 count -= PAGE_SIZE; in __clear_user_hexagon()
31 dest += PAGE_SIZE; in __clear_user_hexagon()

12345678910>>...119