Lines Matching refs:cp

226 		 const struct testfs_bcmd *cp)  in testfs_build()  argument
230 while (!TESTFS_BCMD_IS_END(cp)) { in testfs_build()
232 if (TESTFS_BCMD_IS_FILE(cp)) { in testfs_build()
238 cp->name, in testfs_build()
242 root->path, cp->size, cp->value, rc); in testfs_build()
244 rc = testfs_write_incrementing(&file, cp->value, cp->size); in testfs_build()
255 } else if (TESTFS_BCMD_IS_ENTER_DIR(cp)) { in testfs_build()
257 cp->name, in testfs_build()
264 } else if (TESTFS_BCMD_IS_EXIT_DIR(cp)) { in testfs_build()
271 ++cp; in testfs_build()
286 struct testfs_bcmd *cp, in check_layout_entry() argument
308 rc = testfs_verify_incrementing(&file, cp->value, cp->size); in check_layout_entry()
309 if (rc != cp->size) { in check_layout_entry()
324 cp + 1, in check_layout_entry()
325 testfs_bcmd_exitdir(cp, ecp)); in check_layout_entry()
336 cp->matched = true; in check_layout_entry()
350 struct testfs_bcmd *cp = scp; in testfs_bcmd_verify_layout() local
352 while (cp < ecp) { in testfs_bcmd_verify_layout()
353 cp->matched = false; in testfs_bcmd_verify_layout()
354 ++cp; in testfs_bcmd_verify_layout()
386 cp = testfs_bcmd_find(&stat, scp, ecp); in testfs_bcmd_verify_layout()
396 : (cp == NULL) ? " FOREIGN" in testfs_bcmd_verify_layout()
403 } else if (cp != NULL) { in testfs_bcmd_verify_layout()
404 rc = check_layout_entry(pp, &stat, cp, ecp); in testfs_bcmd_verify_layout()
431 struct testfs_bcmd *testfs_bcmd_exitdir(struct testfs_bcmd *cp, in testfs_bcmd_exitdir() argument
437 while ((level > 0) && (++cp < ecp)) { in testfs_bcmd_exitdir()
438 if (TESTFS_BCMD_IS_ENTER_DIR(cp)) { in testfs_bcmd_exitdir()
440 } else if (TESTFS_BCMD_IS_EXIT_DIR(cp)) { in testfs_bcmd_exitdir()
444 return cp; in testfs_bcmd_exitdir()
451 struct testfs_bcmd *cp = scp; in testfs_bcmd_find() local
453 while (cp < ecp) { in testfs_bcmd_find()
454 if ((cp->type == statp->type) in testfs_bcmd_find()
455 && (cp->name != NULL) in testfs_bcmd_find()
456 && (strcmp(cp->name, statp->name) == 0) in testfs_bcmd_find()
457 && (cp->size == statp->size)) { in testfs_bcmd_find()
458 return cp; in testfs_bcmd_find()
461 if (TESTFS_BCMD_IS_ENTER_DIR(cp)) { in testfs_bcmd_find()
462 cp = testfs_bcmd_exitdir(cp, ecp); in testfs_bcmd_find()
464 ++cp; in testfs_bcmd_find()