Lines Matching refs:test
4410 struct lfs1_disk_dir test; in lfs1_dir_fetch() local
4411 int err = lfs1_bd_read(lfs, tpair[i], 0, &test, sizeof(test)); in lfs1_dir_fetch()
4412 lfs1_dir_fromle32(&test); in lfs1_dir_fetch()
4420 if (valid && lfs_scmp(test.rev, dir->d.rev) < 0) { in lfs1_dir_fetch()
4424 if ((0x7fffffff & test.size) < sizeof(test)+4 || in lfs1_dir_fetch()
4425 (0x7fffffff & test.size) > lfs->cfg->block_size) { in lfs1_dir_fetch()
4430 lfs1_dir_tole32(&test); in lfs1_dir_fetch()
4431 lfs1_crc(&crc, &test, sizeof(test)); in lfs1_dir_fetch()
4432 lfs1_dir_fromle32(&test); in lfs1_dir_fetch()
4433 err = lfs1_bd_crc(lfs, tpair[i], sizeof(test), in lfs1_dir_fetch()
4434 (0x7fffffff & test.size) - sizeof(test), &crc); in lfs1_dir_fetch()
4452 dir->d = test; in lfs1_dir_fetch()