Searched refs:check_buf (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/mtd/tests/ |
| H A D | torturetest.c | 73 static unsigned char *check_buf; variable 109 err = mtd_read(mtd, addr, len, &read, check_buf); in check_eraseblock() 126 if (memcmp(buf, check_buf, len)) { in check_eraseblock() 128 report_corrupt(check_buf, buf); in check_eraseblock() 236 check_buf = kmalloc(mtd->erasesize, GFP_KERNEL); in tort_init() 237 if (!check_buf) in tort_init() 362 kfree(check_buf); in tort_init() 386 static int countdiffs(unsigned char *buf, unsigned char *check_buf, 474 static int countdiffs(unsigned char *buf, unsigned char *check_buf, in countdiffs() argument 482 if (buf[i] != check_buf[i]) { in countdiffs() [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | test_stackinit.c | 15 static u8 check_buf[MAX_VAR_SIZE]; variable 110 memset(check_buf, 0x00, sizeof(check_buf)); \ 116 sum += (check_buf[i] != 0xFF); \ 122 memset(check_buf, 0x00, sizeof(check_buf)); \ 140 sum += (check_buf[i] == 0xFF); \ 189 memcpy(check_buf, target_start, target_size); \ 293 memcpy(check_buf, target_start, target_size); in __leaf_switch_none() 304 memcpy(check_buf, target_start, target_size); in __leaf_switch_none()
|
| H A D | test_meminit.c | 166 static bool __init check_buf(void *buf, int size, bool want_ctor, in check_buf() function 219 fail |= check_buf(bulk_array[i], size, want_ctor, want_rcu, want_zero); in do_kmem_cache_size() 226 fail |= check_buf(buf, size, want_ctor, want_rcu, want_zero); in do_kmem_cache_size() 253 fail |= check_buf(buf, size, want_ctor, want_rcu, in do_kmem_cache_size()
|