Lines Matching refs:status

100 	struct ifix_status status[ifix_nsecs];  member
126 struct ifix_status *status, in ifix_init_section() argument
135 section->status = status; in ifix_init_section()
142 status->deleted = 0; in ifix_init_section()
143 status->bad_put = 0; in ifix_init_section()
144 status->mapping = mapping; in ifix_init_section()
145 status->ifix = ifix; in ifix_init_section()
159 ifix_init_section(&ifix->section[index], filename, &ifix->status[index], in ifix_add_section()
234 struct ifix_status *status; in pt_section_put() local
240 status = section->status; in pt_section_put()
241 if (!status) in pt_section_put()
246 status->bad_put += 1; in pt_section_put()
253 status->deleted += 1; in pt_section_put()
255 if (status->deleted > 1) in pt_section_put()
337 struct ifix_status *status; in pt_section_map() local
350 status = section->status; in pt_section_map()
351 if (!status) in pt_section_map()
354 section->mapping = status->mapping; in pt_section_map()
459 struct ifix_status status; in fini() local
466 ifix_init_section(&section, NULL, &status, &mapping, NULL); in fini()
475 ptu_int_eq(status.deleted, 1); in fini()
476 ptu_int_eq(status.bad_put, 0); in fini()
537 int status, isid; in read_empty() local
542 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in read_empty()
544 ptu_int_eq(status, -pte_nomap); in read_empty()
555 int status, isid; in overlap_front() local
557 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_front()
559 ptu_int_eq(status, 0); in overlap_front()
561 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in overlap_front()
563 ptu_int_eq(status, 0); in overlap_front()
566 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_front()
568 ptu_int_eq(status, 1); in overlap_front()
576 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_front()
578 ptu_int_eq(status, 1); in overlap_front()
589 int status, isid; in overlap_back() local
591 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_back()
593 ptu_int_eq(status, 0); in overlap_back()
595 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in overlap_back()
597 ptu_int_eq(status, 0); in overlap_back()
600 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_back()
602 ptu_int_eq(status, 1); in overlap_back()
608 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_back()
610 ptu_int_eq(status, 1); in overlap_back()
616 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in overlap_back()
618 ptu_int_eq(status, 1); in overlap_back()
629 int status, isid; in overlap_multiple() local
631 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_multiple()
633 ptu_int_eq(status, 0); in overlap_multiple()
635 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_multiple()
637 ptu_int_eq(status, 0); in overlap_multiple()
639 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_multiple()
641 ptu_int_eq(status, 0); in overlap_multiple()
644 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_multiple()
646 ptu_int_eq(status, 1); in overlap_multiple()
651 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in overlap_multiple()
653 ptu_int_eq(status, 1); in overlap_multiple()
659 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_multiple()
661 ptu_int_eq(status, 1); in overlap_multiple()
667 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in overlap_multiple()
669 ptu_int_eq(status, 1); in overlap_multiple()
680 int status, isid; in overlap_mid() local
682 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_mid()
684 ptu_int_eq(status, 0); in overlap_mid()
688 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in overlap_mid()
690 ptu_int_eq(status, 0); in overlap_mid()
693 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_mid()
695 ptu_int_eq(status, 1); in overlap_mid()
701 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in overlap_mid()
703 ptu_int_eq(status, 1); in overlap_mid()
709 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in overlap_mid()
711 ptu_int_eq(status, 1); in overlap_mid()
717 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in overlap_mid()
719 ptu_int_eq(status, 1); in overlap_mid()
730 int status, isid; in contained() local
734 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in contained()
736 ptu_int_eq(status, 0); in contained()
738 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in contained()
740 ptu_int_eq(status, 0); in contained()
743 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in contained()
745 ptu_int_eq(status, 1); in contained()
756 int status, isid; in contained_multiple() local
760 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in contained_multiple()
762 ptu_int_eq(status, 0); in contained_multiple()
764 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in contained_multiple()
766 ptu_int_eq(status, 0); in contained_multiple()
768 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in contained_multiple()
770 ptu_int_eq(status, 0); in contained_multiple()
773 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in contained_multiple()
775 ptu_int_eq(status, 1); in contained_multiple()
781 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in contained_multiple()
783 ptu_int_eq(status, 1); in contained_multiple()
794 int status, isid; in contained_back() local
798 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in contained_back()
800 ptu_int_eq(status, 0); in contained_back()
802 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in contained_back()
804 ptu_int_eq(status, 0); in contained_back()
806 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in contained_back()
808 ptu_int_eq(status, 0); in contained_back()
811 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in contained_back()
813 ptu_int_eq(status, 1); in contained_back()
819 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in contained_back()
821 ptu_int_eq(status, 1); in contained_back()
827 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in contained_back()
829 ptu_int_eq(status, 1); in contained_back()
835 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in contained_back()
837 ptu_int_eq(status, 1); in contained_back()
848 int status, isid; in same() local
850 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in same()
852 ptu_int_eq(status, 0); in same()
854 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in same()
856 ptu_int_eq(status, 0); in same()
859 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in same()
861 ptu_int_eq(status, 1); in same()
872 int status, isid; in same_different_isid() local
874 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in same_different_isid()
876 ptu_int_eq(status, 0); in same_different_isid()
878 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in same_different_isid()
880 ptu_int_eq(status, 0); in same_different_isid()
883 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in same_different_isid()
885 ptu_int_eq(status, 1); in same_different_isid()
896 int status, isid, index; in same_different_offset() local
912 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in same_different_offset()
914 ptu_int_eq(status, 0); in same_different_offset()
916 status = pt_image_add(&ifix->image, &ifix->section[index], in same_different_offset()
918 ptu_int_eq(status, 0); in same_different_offset()
921 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in same_different_offset()
923 ptu_int_eq(status, 1); in same_different_offset()
929 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in same_different_offset()
931 ptu_int_eq(status, 1); in same_different_offset()
942 int status, isid; in adjacent() local
944 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in adjacent()
946 ptu_int_eq(status, 0); in adjacent()
948 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in adjacent()
950 ptu_int_eq(status, 0); in adjacent()
952 status = pt_image_add(&ifix->image, &ifix->section[2], &ifix->asid[0], in adjacent()
954 ptu_int_eq(status, 0); in adjacent()
957 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in adjacent()
959 ptu_int_eq(status, 1); in adjacent()
965 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in adjacent()
967 ptu_int_eq(status, 1); in adjacent()
974 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in adjacent()
976 ptu_int_eq(status, 1); in adjacent()
987 int status, isid; in read_null() local
989 status = pt_image_read(NULL, &isid, &buffer, 1, &ifix->asid[0], in read_null()
991 ptu_int_eq(status, -pte_internal); in read_null()
993 status = pt_image_read(&ifix->image, NULL, &buffer, 1, &ifix->asid[0], in read_null()
995 ptu_int_eq(status, -pte_internal); in read_null()
997 status = pt_image_read(&ifix->image, &isid, NULL, 1, &ifix->asid[0], in read_null()
999 ptu_int_eq(status, -pte_internal); in read_null()
1001 status = pt_image_read(&ifix->image, &isid, &buffer, 1, NULL, in read_null()
1003 ptu_int_eq(status, -pte_internal); in read_null()
1011 int status, isid; in read() local
1014 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in read()
1016 ptu_int_eq(status, 2); in read()
1028 int status, isid; in read_asid() local
1030 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in read_asid()
1032 ptu_int_eq(status, 0); in read_asid()
1034 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[1], in read_asid()
1036 ptu_int_eq(status, 0); in read_asid()
1039 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in read_asid()
1041 ptu_int_eq(status, 1); in read_asid()
1047 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[1], in read_asid()
1049 ptu_int_eq(status, 1); in read_asid()
1060 int status, isid; in read_bad_asid() local
1063 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in read_bad_asid()
1065 ptu_int_eq(status, -pte_nomap); in read_bad_asid()
1076 int status, isid; in read_null_asid() local
1079 status = pt_image_read(&ifix->image, &isid, buffer, 2, NULL, 0x2003ull); in read_null_asid()
1080 ptu_int_eq(status, -pte_internal); in read_null_asid()
1092 int status, isid; in read_callback() local
1094 status = pt_image_set_callback(&ifix->image, image_readmem_callback, in read_callback()
1096 ptu_int_eq(status, 0); in read_callback()
1099 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in read_callback()
1101 ptu_int_eq(status, 2); in read_callback()
1113 int status, isid; in read_nomem() local
1116 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in read_nomem()
1118 ptu_int_eq(status, -pte_nomap); in read_nomem()
1129 int status, isid; in read_truncated() local
1132 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in read_truncated()
1134 ptu_int_eq(status, 1); in read_truncated()
1145 int status, isid; in read_error() local
1150 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in read_error()
1152 ptu_int_eq(status, -pte_nosync); in read_error()
1162 int status, isid; in read_spurious_error() local
1165 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in read_spurious_error()
1167 ptu_int_eq(status, 1); in read_spurious_error()
1175 status = pt_image_read(&ifix->image, &isid, buffer, 1, &ifix->asid[0], in read_spurious_error()
1177 ptu_int_eq(status, -pte_nosync); in read_spurious_error()
1187 int status, isid; in remove_section() local
1190 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_section()
1192 ptu_int_eq(status, 2); in remove_section()
1198 status = pt_image_remove(&ifix->image, &ifix->section[0], in remove_section()
1200 ptu_int_eq(status, 0); in remove_section()
1202 ptu_int_ne(ifix->status[0].deleted, 0); in remove_section()
1203 ptu_int_eq(ifix->status[1].deleted, 0); in remove_section()
1206 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in remove_section()
1208 ptu_int_eq(status, -pte_nomap); in remove_section()
1215 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in remove_section()
1217 ptu_int_eq(status, 2); in remove_section()
1229 int status, isid; in remove_bad_vaddr() local
1232 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_bad_vaddr()
1234 ptu_int_eq(status, 2); in remove_bad_vaddr()
1240 status = pt_image_remove(&ifix->image, &ifix->section[0], in remove_bad_vaddr()
1242 ptu_int_eq(status, -pte_bad_image); in remove_bad_vaddr()
1244 ptu_int_eq(ifix->status[0].deleted, 0); in remove_bad_vaddr()
1245 ptu_int_eq(ifix->status[1].deleted, 0); in remove_bad_vaddr()
1248 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_bad_vaddr()
1250 ptu_int_eq(status, 2); in remove_bad_vaddr()
1257 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in remove_bad_vaddr()
1259 ptu_int_eq(status, 2); in remove_bad_vaddr()
1271 int status, isid; in remove_bad_asid() local
1274 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_bad_asid()
1276 ptu_int_eq(status, 2); in remove_bad_asid()
1282 status = pt_image_remove(&ifix->image, &ifix->section[0], in remove_bad_asid()
1284 ptu_int_eq(status, -pte_bad_image); in remove_bad_asid()
1286 ptu_int_eq(ifix->status[0].deleted, 0); in remove_bad_asid()
1287 ptu_int_eq(ifix->status[1].deleted, 0); in remove_bad_asid()
1290 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_bad_asid()
1292 ptu_int_eq(status, 2); in remove_bad_asid()
1299 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in remove_bad_asid()
1301 ptu_int_eq(status, 2); in remove_bad_asid()
1313 int status, isid; in remove_by_filename() local
1316 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_by_filename()
1318 ptu_int_eq(status, 2); in remove_by_filename()
1324 status = pt_image_remove_by_filename(&ifix->image, in remove_by_filename()
1327 ptu_int_eq(status, 1); in remove_by_filename()
1329 ptu_int_ne(ifix->status[0].deleted, 0); in remove_by_filename()
1330 ptu_int_eq(ifix->status[1].deleted, 0); in remove_by_filename()
1333 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in remove_by_filename()
1335 ptu_int_eq(status, -pte_nomap); in remove_by_filename()
1342 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in remove_by_filename()
1344 ptu_int_eq(status, 2); in remove_by_filename()
1357 int status, isid; in remove_by_filename_bad_asid() local
1360 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_by_filename_bad_asid()
1362 ptu_int_eq(status, 2); in remove_by_filename_bad_asid()
1368 status = pt_image_remove_by_filename(&ifix->image, in remove_by_filename_bad_asid()
1371 ptu_int_eq(status, 0); in remove_by_filename_bad_asid()
1373 ptu_int_eq(ifix->status[0].deleted, 0); in remove_by_filename_bad_asid()
1374 ptu_int_eq(ifix->status[1].deleted, 0); in remove_by_filename_bad_asid()
1377 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_by_filename_bad_asid()
1379 ptu_int_eq(status, 2); in remove_by_filename_bad_asid()
1386 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in remove_by_filename_bad_asid()
1388 ptu_int_eq(status, 2); in remove_by_filename_bad_asid()
1400 int status, isid; in remove_none_by_filename() local
1402 status = pt_image_remove_by_filename(&ifix->image, "bad-name", in remove_none_by_filename()
1404 ptu_int_eq(status, 0); in remove_none_by_filename()
1406 ptu_int_eq(ifix->status[0].deleted, 0); in remove_none_by_filename()
1407 ptu_int_eq(ifix->status[1].deleted, 0); in remove_none_by_filename()
1410 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_none_by_filename()
1412 ptu_int_eq(status, 2); in remove_none_by_filename()
1419 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in remove_none_by_filename()
1421 ptu_int_eq(status, 2); in remove_none_by_filename()
1433 int status, isid; in remove_all_by_filename() local
1438 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in remove_all_by_filename()
1440 ptu_int_eq(status, 0); in remove_all_by_filename()
1442 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in remove_all_by_filename()
1444 ptu_int_eq(status, 0); in remove_all_by_filename()
1447 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_all_by_filename()
1449 ptu_int_eq(status, 2); in remove_all_by_filename()
1455 status = pt_image_remove_by_filename(&ifix->image, "same-name", in remove_all_by_filename()
1457 ptu_int_eq(status, 2); in remove_all_by_filename()
1459 ptu_int_ne(ifix->status[0].deleted, 0); in remove_all_by_filename()
1460 ptu_int_ne(ifix->status[1].deleted, 0); in remove_all_by_filename()
1463 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in remove_all_by_filename()
1465 ptu_int_eq(status, -pte_nomap); in remove_all_by_filename()
1472 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in remove_all_by_filename()
1474 ptu_int_eq(status, -pte_nomap); in remove_all_by_filename()
1486 int status, isid; in remove_by_asid() local
1489 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in remove_by_asid()
1491 ptu_int_eq(status, 2); in remove_by_asid()
1497 status = pt_image_remove_by_asid(&ifix->image, &ifix->asid[0]); in remove_by_asid()
1498 ptu_int_eq(status, 1); in remove_by_asid()
1500 ptu_int_ne(ifix->status[0].deleted, 0); in remove_by_asid()
1501 ptu_int_eq(ifix->status[1].deleted, 0); in remove_by_asid()
1504 status = pt_image_read(&ifix->image, &isid, buffer, sizeof(buffer), in remove_by_asid()
1506 ptu_int_eq(status, -pte_nomap); in remove_by_asid()
1513 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in remove_by_asid()
1515 ptu_int_eq(status, 2); in remove_by_asid()
1528 int status, isid; in copy_empty() local
1532 status = pt_image_copy(&ifix->copy, &ifix->image); in copy_empty()
1533 ptu_int_eq(status, 0); in copy_empty()
1536 status = pt_image_read(&ifix->copy, &isid, buffer, sizeof(buffer), in copy_empty()
1538 ptu_int_eq(status, -pte_nomap); in copy_empty()
1549 int status, isid; in copy() local
1551 status = pt_image_copy(&ifix->copy, &ifix->image); in copy()
1552 ptu_int_eq(status, 0); in copy()
1555 status = pt_image_read(&ifix->copy, &isid, buffer, 2, &ifix->asid[1], in copy()
1557 ptu_int_eq(status, 2); in copy()
1569 int status, isid; in copy_self() local
1571 status = pt_image_copy(&ifix->image, &ifix->image); in copy_self()
1572 ptu_int_eq(status, 0); in copy_self()
1575 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[1], in copy_self()
1577 ptu_int_eq(status, 2); in copy_self()
1589 int status, isid; in copy_shrink() local
1591 status = pt_image_add(&ifix->copy, &ifix->section[1], &ifix->asid[1], in copy_shrink()
1593 ptu_int_eq(status, 0); in copy_shrink()
1595 status = pt_image_copy(&ifix->copy, &ifix->image); in copy_shrink()
1596 ptu_int_eq(status, 0); in copy_shrink()
1599 status = pt_image_read(&ifix->copy, &isid, buffer, 2, &ifix->asid[1], in copy_shrink()
1601 ptu_int_eq(status, 2); in copy_shrink()
1613 int status, isid; in copy_split() local
1615 status = pt_image_add(&ifix->copy, &ifix->section[0], &ifix->asid[0], in copy_split()
1617 ptu_int_eq(status, 0); in copy_split()
1622 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in copy_split()
1624 ptu_int_eq(status, 0); in copy_split()
1629 status = pt_image_add(&ifix->image, &ifix->section[2], &ifix->asid[0], in copy_split()
1631 ptu_int_eq(status, 0); in copy_split()
1633 status = pt_image_copy(&ifix->copy, &ifix->image); in copy_split()
1634 ptu_int_eq(status, 0); in copy_split()
1637 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_split()
1639 ptu_int_eq(status, 1); in copy_split()
1645 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_split()
1647 ptu_int_eq(status, 1); in copy_split()
1653 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_split()
1655 ptu_int_eq(status, 1); in copy_split()
1666 int status, isid; in copy_merge() local
1671 status = pt_image_add(&ifix->copy, &ifix->section[1], &ifix->asid[0], in copy_merge()
1673 ptu_int_eq(status, 0); in copy_merge()
1678 status = pt_image_add(&ifix->copy, &ifix->section[2], &ifix->asid[0], in copy_merge()
1680 ptu_int_eq(status, 0); in copy_merge()
1682 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in copy_merge()
1684 ptu_int_eq(status, 0); in copy_merge()
1686 status = pt_image_copy(&ifix->copy, &ifix->image); in copy_merge()
1687 ptu_int_eq(status, 0); in copy_merge()
1690 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_merge()
1692 ptu_int_eq(status, 1); in copy_merge()
1698 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_merge()
1700 ptu_int_eq(status, 1); in copy_merge()
1711 int status, isid; in copy_overlap() local
1713 status = pt_image_add(&ifix->copy, &ifix->section[0], &ifix->asid[0], in copy_overlap()
1715 ptu_int_eq(status, 0); in copy_overlap()
1717 status = pt_image_add(&ifix->copy, &ifix->section[1], &ifix->asid[0], in copy_overlap()
1719 ptu_int_eq(status, 0); in copy_overlap()
1721 status = pt_image_add(&ifix->image, &ifix->section[2], &ifix->asid[0], in copy_overlap()
1723 ptu_int_eq(status, 0); in copy_overlap()
1725 status = pt_image_copy(&ifix->copy, &ifix->image); in copy_overlap()
1726 ptu_int_eq(status, 0); in copy_overlap()
1729 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_overlap()
1731 ptu_int_eq(status, 1); in copy_overlap()
1737 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_overlap()
1739 ptu_int_eq(status, 1); in copy_overlap()
1745 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_overlap()
1747 ptu_int_eq(status, 1); in copy_overlap()
1753 status = pt_image_read(&ifix->copy, &isid, buffer, 1, &ifix->asid[0], in copy_overlap()
1755 ptu_int_eq(status, 1); in copy_overlap()
1766 int status, isid; in copy_replace() local
1771 status = pt_image_add(&ifix->copy, &ifix->section[0], &ifix->asid[0], in copy_replace()
1773 ptu_int_eq(status, 0); in copy_replace()
1775 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[0], in copy_replace()
1777 ptu_int_eq(status, 0); in copy_replace()
1779 status = pt_image_copy(&ifix->copy, &ifix->image); in copy_replace()
1780 ptu_int_eq(status, 0); in copy_replace()
1783 status = pt_image_read(&ifix->copy, &isid, buffer, 2, &ifix->asid[0], in copy_replace()
1785 ptu_int_eq(status, 2); in copy_replace()
1798 int status; in add_cached_null() local
1800 status = pt_image_add_cached(NULL, &iscache, 0, NULL); in add_cached_null()
1801 ptu_int_eq(status, -pte_invalid); in add_cached_null()
1803 status = pt_image_add_cached(&image, NULL, 0, NULL); in add_cached_null()
1804 ptu_int_eq(status, -pte_invalid); in add_cached_null()
1812 int status, isid, risid; in add_cached() local
1817 status = pt_image_add_cached(&ifix->image, &ifix->iscache, isid, in add_cached()
1819 ptu_int_eq(status, 0); in add_cached()
1822 status = pt_image_read(&ifix->image, &risid, buffer, 2, &ifix->asid[0], in add_cached()
1824 ptu_int_eq(status, 2); in add_cached()
1836 int status, isid, risid; in add_cached_null_asid() local
1841 status = pt_image_add_cached(&ifix->image, &ifix->iscache, isid, NULL); in add_cached_null_asid()
1842 ptu_int_eq(status, 0); in add_cached_null_asid()
1845 status = pt_image_read(&ifix->image, &risid, buffer, 2, &ifix->asid[0], in add_cached_null_asid()
1847 ptu_int_eq(status, 2); in add_cached_null_asid()
1859 int status, isid, risid; in add_cached_twice() local
1864 status = pt_image_add_cached(&ifix->image, &ifix->iscache, isid, in add_cached_twice()
1866 ptu_int_eq(status, 0); in add_cached_twice()
1868 status = pt_image_add_cached(&ifix->image, &ifix->iscache, isid, in add_cached_twice()
1870 ptu_int_eq(status, 0); in add_cached_twice()
1873 status = pt_image_read(&ifix->image, &risid, buffer, 2, &ifix->asid[0], in add_cached_twice()
1875 ptu_int_eq(status, 2); in add_cached_twice()
1887 int status, isid; in add_cached_bad_isid() local
1889 status = pt_image_add_cached(&ifix->image, &ifix->iscache, 1, in add_cached_bad_isid()
1891 ptu_int_eq(status, -pte_bad_image); in add_cached_bad_isid()
1894 status = pt_image_read(&ifix->image, &isid, buffer, 2, &ifix->asid[0], in add_cached_bad_isid()
1896 ptu_int_eq(status, -pte_nomap); in add_cached_bad_isid()
1905 int status; in find_null() local
1907 status = pt_image_find(NULL, &msec, &ifix->asid[0], in find_null()
1909 ptu_int_eq(status, -pte_internal); in find_null()
1911 status = pt_image_find(&ifix->image, NULL, &ifix->asid[0], in find_null()
1913 ptu_int_eq(status, -pte_internal); in find_null()
1915 status = pt_image_find(&ifix->image, &msec, NULL, 0x1000ull); in find_null()
1916 ptu_int_eq(status, -pte_internal); in find_null()
1924 int status; in find() local
1926 status = pt_image_find(&ifix->image, &msec, &ifix->asid[1], 0x2003ull); in find()
1927 ptu_int_eq(status, 11); in find()
1931 status = pt_section_put(msec.section); in find()
1932 ptu_int_eq(status, 0); in find()
1940 int status; in find_asid() local
1942 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in find_asid()
1944 ptu_int_eq(status, 0); in find_asid()
1946 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[1], in find_asid()
1948 ptu_int_eq(status, 0); in find_asid()
1950 status = pt_image_find(&ifix->image, &msec, &ifix->asid[0], 0x1009ull); in find_asid()
1951 ptu_int_eq(status, 1); in find_asid()
1955 status = pt_section_put(msec.section); in find_asid()
1956 ptu_int_eq(status, 0); in find_asid()
1958 status = pt_image_find(&ifix->image, &msec, &ifix->asid[1], 0x1009ull); in find_asid()
1959 ptu_int_eq(status, 2); in find_asid()
1963 status = pt_section_put(msec.section); in find_asid()
1964 ptu_int_eq(status, 0); in find_asid()
1972 int status; in find_bad_asid() local
1974 status = pt_image_find(&ifix->image, &msec, &ifix->asid[0], 0x2003ull); in find_bad_asid()
1975 ptu_int_eq(status, -pte_nomap); in find_bad_asid()
1983 int status; in find_nomem() local
1985 status = pt_image_find(&ifix->image, &msec, &ifix->asid[1], 0x1010ull); in find_nomem()
1986 ptu_int_eq(status, -pte_nomap); in find_nomem()
1994 int status; in validate_null() local
1996 status = pt_image_validate(NULL, &msec, 0x1004ull, 10); in validate_null()
1997 ptu_int_eq(status, -pte_internal); in validate_null()
1999 status = pt_image_validate(&ifix->image, NULL, 0x1004ull, 10); in validate_null()
2000 ptu_int_eq(status, -pte_internal); in validate_null()
2008 int isid, status; in validate() local
2013 status = pt_section_put(msec.section); in validate()
2014 ptu_int_eq(status, 0); in validate()
2016 status = pt_image_validate(&ifix->image, &msec, 0x1004ull, isid); in validate()
2017 ptu_int_eq(status, 0); in validate()
2025 int isid, status; in validate_bad_asid() local
2030 status = pt_section_put(msec.section); in validate_bad_asid()
2031 ptu_int_eq(status, 0); in validate_bad_asid()
2035 status = pt_image_validate(&ifix->image, &msec, 0x1004ull, isid); in validate_bad_asid()
2036 ptu_int_eq(status, -pte_nomap); in validate_bad_asid()
2044 int isid, status; in validate_bad_vaddr() local
2049 status = pt_section_put(msec.section); in validate_bad_vaddr()
2050 ptu_int_eq(status, 0); in validate_bad_vaddr()
2054 status = pt_image_validate(&ifix->image, &msec, 0x1004ull, isid); in validate_bad_vaddr()
2055 ptu_int_eq(status, -pte_nomap); in validate_bad_vaddr()
2063 int isid, status; in validate_bad_offset() local
2068 status = pt_section_put(msec.section); in validate_bad_offset()
2069 ptu_int_eq(status, 0); in validate_bad_offset()
2073 status = pt_image_validate(&ifix->image, &msec, 0x1004ull, isid); in validate_bad_offset()
2074 ptu_int_eq(status, -pte_nomap); in validate_bad_offset()
2082 int isid, status; in validate_bad_size() local
2087 status = pt_section_put(msec.section); in validate_bad_size()
2088 ptu_int_eq(status, 0); in validate_bad_size()
2092 status = pt_image_validate(&ifix->image, &msec, 0x1004ull, isid); in validate_bad_size()
2093 ptu_int_eq(status, -pte_nomap); in validate_bad_size()
2101 int isid, status; in validate_bad_isid() local
2106 status = pt_section_put(msec.section); in validate_bad_isid()
2107 ptu_int_eq(status, 0); in validate_bad_isid()
2109 status = pt_image_validate(&ifix->image, &msec, 0x1004ull, isid + 1); in validate_bad_isid()
2110 ptu_int_eq(status, -pte_nomap); in validate_bad_isid()
2122 memset(ifix->status, 0, sizeof(ifix->status)); in ifix_init()
2152 int status; in rfix_init() local
2156 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in rfix_init()
2158 ptu_int_eq(status, 0); in rfix_init()
2160 status = pt_image_add(&ifix->image, &ifix->section[1], &ifix->asid[1], in rfix_init()
2162 ptu_int_eq(status, 0); in rfix_init()
2185 ptu_int_le(ifix->status[sec].deleted, 1); in ifix_fini()
2186 ptu_int_eq(ifix->status[sec].bad_put, 0); in ifix_fini()