Home
last modified time | relevance | path

Searched refs:check_buf (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/drivers/mtd/tests/
Dtorturetest.c66 static unsigned char *check_buf; variable
102 err = mtd_read(mtd, addr, len, &read, check_buf); in check_eraseblock()
119 if (memcmp(buf, check_buf, len)) { in check_eraseblock()
121 report_corrupt(check_buf, buf); in check_eraseblock()
225 check_buf = kmalloc(mtd->erasesize, GFP_KERNEL); in tort_init()
226 if (!check_buf) in tort_init()
339 kfree(check_buf); in tort_init()
361 static int countdiffs(unsigned char *buf, unsigned char *check_buf,
449 static int countdiffs(unsigned char *buf, unsigned char *check_buf, in countdiffs() argument
457 if (buf[i] != check_buf[i]) { in countdiffs()
[all …]
/Linux-v6.1/lib/
Dstackinit_kunit.c22 static u8 check_buf[MAX_VAR_SIZE]; variable
161 memset(check_buf, 0x00, sizeof(check_buf)); \
167 sum += (check_buf[i] != 0xFF); \
171 memset(check_buf, 0x00, sizeof(check_buf)); \
188 sum += (check_buf[i] == 0xFF); \
235 memcpy(check_buf, target_start, target_size); \
371 memcpy(check_buf, target_start, target_size); in __leaf_switch_none()
382 memcpy(check_buf, target_start, target_size); in __leaf_switch_none()
Dtest_meminit.c187 static bool __init check_buf(void *buf, int size, bool want_ctor, in check_buf() function
240 fail |= check_buf(bulk_array[i], size, want_ctor, want_rcu, want_zero); in do_kmem_cache_size()
247 fail |= check_buf(buf, size, want_ctor, want_rcu, want_zero); in do_kmem_cache_size()
274 fail |= check_buf(buf, size, want_ctor, want_rcu, in do_kmem_cache_size()