/lib/raid6/test/ |
A 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() 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 …]
|
/lib/tests/ |
A D | usercopy_kunit.c | 64 start = PAGE_SIZE - (size / 2); in usercopy_test_check_nonzero_user() 186 memset(kmem, 0x0, 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, 0, PAGE_SIZE); in usercopy_test_invalid() 238 PAGE_SIZE), 0, in usercopy_test_invalid() 242 KUNIT_EXPECT_MEMEQ_MSG(test, kmem + PAGE_SIZE, kmem, PAGE_SIZE, in usercopy_test_invalid() 253 PAGE_SIZE), 0, in usercopy_test_invalid() 257 PAGE_SIZE), 0, in usercopy_test_invalid() 261 PAGE_SIZE), 0, in usercopy_test_invalid() [all …]
|
A D | kunit_iov_iter.c | 110 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_to_kvec() 160 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_from_kvec() 269 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_to_bvec() 323 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_from_bvec() 397 size += PAGE_SIZE; in iov_kunit_load_folioq() 427 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_to_folioq() 489 npages = bufsize / PAGE_SIZE; in iov_kunit_copy_from_folioq() 559 size += PAGE_SIZE; in iov_kunit_load_xarray() 753 ix = from / PAGE_SIZE; in iov_kunit_extract_pages_kvec() 908 ix = from / PAGE_SIZE; in iov_kunit_extract_pages_folioq() [all …]
|
A D | fortify_kunit.c | 282 checker((expected_pages) * PAGE_SIZE, \ 284 checker((expected_pages) * PAGE_SIZE, \ 286 checker((expected_pages) * PAGE_SIZE, \ 297 checker((expected_pages) * PAGE_SIZE, \ 300 checker((expected_pages) * PAGE_SIZE, \ 303 checker((expected_pages) * PAGE_SIZE, \ 306 checker((expected_pages) * PAGE_SIZE, \ 309 checker((expected_pages) * PAGE_SIZE, \ 312 checker((expected_pages) * PAGE_SIZE, \ 315 checker((expected_pages) * PAGE_SIZE, \ [all …]
|
/lib/ |
A D | test_vmalloc.c | 96 size = ((rnd % 10) + 1) * PAGE_SIZE; in random_size_align_alloc_test() 158 p = vmalloc(n * PAGE_SIZE); in random_size_alloc_test() 182 ptr[i] = vmalloc(1 * PAGE_SIZE); in long_busy_list_alloc_test() 185 ptr_1 = vmalloc(100 * PAGE_SIZE); in long_busy_list_alloc_test() 189 ptr_2 = vmalloc(1 * PAGE_SIZE); in long_busy_list_alloc_test() 221 junk_length *= (32 * 1024 * 1024 / PAGE_SIZE); in full_fit_alloc_test() 234 ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test() 235 junk_ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test() 242 tmp = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test() 332 p = vmalloc(1 * PAGE_SIZE); in kvfree_rcu_1_arg_vmalloc_test() [all …]
|
A D | iov_iter.c | 358 offset %= PAGE_SIZE; in copy_page_to_iter() 369 if (offset == PAGE_SIZE) { in copy_page_to_iter() 388 offset %= PAGE_SIZE; in copy_page_to_iter_nofault() 402 if (offset == PAGE_SIZE) { in copy_page_to_iter_nofault() 418 offset %= PAGE_SIZE; in copy_page_from_iter() 429 if (offset == PAGE_SIZE) { in copy_page_from_iter() 1021 size_t part = PAGE_SIZE - offset % PAGE_SIZE; in iter_folioq_get_pages() 1142 *start = skip % PAGE_SIZE; in first_bvec_segment() 1169 *start = addr % PAGE_SIZE; in __iov_iter_get_pages_alloc() 1611 size_t part = PAGE_SIZE - offset % PAGE_SIZE; in iov_iter_extract_folioq_pages() [all …]
|
A D | scatterlist.c | 142 kmemleak_alloc(ptr, PAGE_SIZE, 1, gfp_mask); in sg_kmalloc() 447 if (WARN_ON(max_segment < PAGE_SIZE)) in sg_alloc_append_table_from_pages() 467 sgt_append->prv->length += PAGE_SIZE; in sg_alloc_append_table_from_pages() 481 seg_len += PAGE_SIZE; in sg_alloc_append_table_from_pages() 497 seg_len += PAGE_SIZE; in sg_alloc_append_table_from_pages() 801 miter->__offset &= PAGE_SIZE - 1; in sg_miter_get_next_page() 806 PAGE_SIZE - miter->__offset); in sg_miter_get_next_page() 1115 npages = DIV_ROUND_UP(off + len, PAGE_SIZE); in extract_user_to_sg() 1220 seg = min_t(size_t, len, PAGE_SIZE - off); in extract_kvec_to_sg() 1232 kaddr += PAGE_SIZE; in extract_kvec_to_sg() [all …]
|
A D | test_firmware.c | 285 len += scnprintf(buf, PAGE_SIZE - len, in config_show() 297 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 300 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 305 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 308 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 310 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 312 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 315 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 318 len += scnprintf(buf + len, PAGE_SIZE - len, in config_show() 1423 if (req->fw->size > PAGE_SIZE) { in read_firmware_show() [all …]
|
A D | test_kho.c | 29 static long max_mem = (PAGE_SIZE << MAX_PAGE_ORDER) * 2; 108 fdt_size = state->nr_folios * sizeof(phys_addr_t) + PAGE_SIZE; in kho_test_prepare_fdt() 144 if (alloc_size + (PAGE_SIZE << order) > max_mem) { in kho_test_generate_data() 149 size = PAGE_SIZE << order; in kho_test_generate_data() 222 unsigned int size = PAGE_SIZE << order; in kho_test_restore_data()
|
A D | test_bitmap.c | 23 static char pbl_buffer[PAGE_SIZE] __initdata; 24 static char print_buf[PAGE_SIZE * 2] __initdata; 532 unsigned long *bmap = kmalloc(PAGE_SIZE, GFP_KERNEL); in test_bitmap_printlist() 533 char *buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in test_bitmap_printlist() 541 memset(bmap, -1, PAGE_SIZE); in test_bitmap_printlist() 1181 0, 2 * PAGE_SIZE); in test_bitmap_print_buf() 1186 0, 2 * PAGE_SIZE); in test_bitmap_print_buf() 1191 if (strlen(t->list) > PAGE_SIZE) { in test_bitmap_print_buf() 1193 PAGE_SIZE, PAGE_SIZE); in test_bitmap_print_buf() 1194 expect_eq_uint(strlen(t->list) + 1 - PAGE_SIZE, n); in test_bitmap_print_buf() [all …]
|
A D | fault-inject.c | 277 return snprintf(page, PAGE_SIZE, "%u\n", val); in fault_uint_attr_show() 282 return snprintf(page, PAGE_SIZE, "%lu\n", val); in fault_ulong_attr_show() 287 return snprintf(page, PAGE_SIZE, "%u\n", val); in fault_bool_attr_show() 292 return snprintf(page, PAGE_SIZE, "%d\n", atomic_read(&val)); in fault_atomic_t_attr_show() 414 return snprintf(page, PAGE_SIZE, in fault_xul_attr_show()
|
A D | test_kmod.c | 468 len += snprintf(buf, PAGE_SIZE, in config_show() 472 len += snprintf(buf+len, PAGE_SIZE - len, in config_show() 476 len += snprintf(buf+len, PAGE_SIZE - len, in config_show() 482 len += snprintf(buf+len, PAGE_SIZE - len, in config_show() 486 len += snprintf(buf+len, PAGE_SIZE - len, in config_show() 490 len += snprintf(buf+len, PAGE_SIZE - len, in config_show() 494 len += snprintf(buf+len, PAGE_SIZE - len, in config_show() 685 len = snprintf(dst, PAGE_SIZE, "%s\n", src); in config_test_show_str() 958 return snprintf(buf, PAGE_SIZE, "%d\n", val); in test_dev_config_show_int() 971 return snprintf(buf, PAGE_SIZE, "%u\n", val); in test_dev_config_show_uint()
|
A D | test_hmm.c | 378 memcpy_from_page(ptr, page, 0, PAGE_SIZE); in dmirror_do_read() 380 ptr += PAGE_SIZE; in dmirror_do_read() 444 memcpy_to_page(page, 0, ptr, PAGE_SIZE); in dmirror_do_write() 446 ptr += PAGE_SIZE; in dmirror_do_write() 648 for (addr = args->start; addr < args->end; addr += PAGE_SIZE, in dmirror_migrate_alloc_and_copy() 786 for (addr = start; !ret && addr < end; addr += PAGE_SIZE) { in dmirror_exclusive() 833 for (addr = start; addr < end; addr += PAGE_SIZE, in dmirror_devmem_fault_alloc_and_copy() 1349 for (addr = vma->vm_start; addr < vma->vm_end; addr += PAGE_SIZE) { in dmirror_fops_mmap() 1417 args.end = args.start + PAGE_SIZE; in dmirror_devmem_fault()
|
A D | test_dynamic_debug.c | 24 return scnprintf(buffer, PAGE_SIZE, "did do_prints\n"); in param_get_do_prints()
|
A D | string.c | 129 size_t limit = PAGE_SIZE - ((long)src & (PAGE_SIZE - 1)); in sized_strscpy()
|
A D | string_helpers.c | 684 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); in kstrdup_quotable_cmdline() 688 res = get_cmdline(task, buffer, PAGE_SIZE - 1); in kstrdup_quotable_cmdline()
|
A D | alloc_tag.c | 415 unsigned long phys_end = ALIGN_DOWN(module_tags.start_addr, PAGE_SIZE) + in vm_module_tags_populate() 426 more_pages = ALIGN(new_end - phys_end, PAGE_SIZE) >> PAGE_SHIFT; in vm_module_tags_populate()
|
A D | bitmap-str.c | 61 ptrdiff_t len = PAGE_SIZE - offset_in_page(buf); in bitmap_print_to_pagebuf()
|
/lib/vdso/ |
A D | datastore.c | 17 u8 page[PAGE_SIZE]; 20 static_assert(sizeof(vdso_time_data_store) == PAGE_SIZE); 26 u8 page[PAGE_SIZE]; 29 static_assert(sizeof(vdso_rng_data_store) == PAGE_SIZE); 57 addr = vmf->address + VDSO_TIMENS_PAGE_OFFSET * PAGE_SIZE; in vvar_fault() 101 return _install_special_mapping(mm, addr, VDSO_NR_PAGES * PAGE_SIZE, in vdso_install_vvar_mapping()
|
A D | getrandom.c | 18 #undef PAGE_SIZE 20 #define PAGE_SIZE (1UL << CONFIG_PAGE_SHIFT) macro 21 #define PAGE_MASK (~(PAGE_SIZE - 1)) 93 if (unlikely(((unsigned long)opaque_state & ~PAGE_MASK) + sizeof(*state) > PAGE_SIZE)) in __cvdso_getrandom_data()
|
/lib/raid6/ |
A D | algos.c | 181 (*algo)->gen_syndrome(disks, PAGE_SIZE, *dptrs); in raid6_choose_gen() 224 PAGE_SIZE, *dptrs); in raid6_choose_gen() 261 dptrs[i] = p + PAGE_SIZE * i; in raid6_select_algo() 263 cycle = ((disks - 2) * PAGE_SIZE) / 65536; in raid6_select_algo() 269 if ((disks - 2) * PAGE_SIZE % 65536) in raid6_select_algo() 270 memcpy(p, raid6_gfmul, (disks - 2) * PAGE_SIZE % 65536); in raid6_select_algo()
|
/lib/zlib_inflate/ |
A D | infutil.h | 26 unsigned char working_window[(1 << MAX_WBITS) + PAGE_SIZE];
|
/lib/math/tests/ |
A D | prime_numbers_kunit.c | 11 static char buf[PAGE_SIZE]; in dump_primes()
|
/lib/zlib_deflate/ |
A D | defutil.h | 245 (2 * (1 << (windowBits)) * sizeof(Byte) + PAGE_SIZE)
|
/lib/crc/tests/ |
A D | crc_kunit.c | 96 test_buflen = round_up(CRC_KUNIT_MAX_LEN, PAGE_SIZE); in crc_suite_init()
|