Lines Matching refs:errcode

70 	int errcode;  in pt_iscache_notify_resize()  local
81 errcode = pt_section_memsize(section, &memsize); in pt_iscache_notify_resize()
82 if (errcode < 0) in pt_iscache_notify_resize()
83 return errcode; in pt_iscache_notify_resize()
165 int errcode; in create() local
169 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in create()
170 ptu_int_eq(errcode, 0); in create()
187 int errcode; in create_bad_offset() local
189 errcode = pt_mk_section(&sfix->section, sfix->name, 0x10ull, 0x0ull); in create_bad_offset()
190 ptu_int_eq(errcode, -pte_invalid); in create_bad_offset()
200 int errcode; in create_truncated() local
204 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, UINT64_MAX); in create_truncated()
205 ptu_int_eq(errcode, 0); in create_truncated()
222 int errcode; in create_empty() local
224 errcode = pt_mk_section(&sfix->section, sfix->name, 0x0ull, 0x10ull); in create_empty()
225 ptu_int_eq(errcode, -pte_invalid); in create_empty()
254 int errcode; in memsize_null() local
256 errcode = pt_section_memsize(NULL, &size); in memsize_null()
257 ptu_int_eq(errcode, -pte_internal); in memsize_null()
259 errcode = pt_section_memsize(sfix->section, NULL); in memsize_null()
260 ptu_int_eq(errcode, -pte_internal); in memsize_null()
262 errcode = pt_section_memsize(NULL, NULL); in memsize_null()
263 ptu_int_eq(errcode, -pte_internal); in memsize_null()
280 int errcode; in get_null() local
282 errcode = pt_section_get(NULL); in get_null()
283 ptu_int_eq(errcode, -pte_internal); in get_null()
290 int errcode; in put_null() local
292 errcode = pt_section_put(NULL); in put_null()
293 ptu_int_eq(errcode, -pte_internal); in put_null()
302 int errcode; in attach_null() local
304 errcode = pt_section_attach(NULL, &iscache); in attach_null()
305 ptu_int_eq(errcode, -pte_internal); in attach_null()
307 errcode = pt_section_attach(&section, NULL); in attach_null()
308 ptu_int_eq(errcode, -pte_internal); in attach_null()
310 errcode = pt_section_attach(NULL, NULL); in attach_null()
311 ptu_int_eq(errcode, -pte_internal); in attach_null()
320 int errcode; in detach_null() local
322 errcode = pt_section_detach(NULL, &iscache); in detach_null()
323 ptu_int_eq(errcode, -pte_internal); in detach_null()
325 errcode = pt_section_detach(&section, NULL); in detach_null()
326 ptu_int_eq(errcode, -pte_internal); in detach_null()
328 errcode = pt_section_detach(NULL, NULL); in detach_null()
329 ptu_int_eq(errcode, -pte_internal); in detach_null()
336 int errcode; in map_null() local
338 errcode = pt_section_map(NULL); in map_null()
339 ptu_int_eq(errcode, -pte_internal); in map_null()
346 int errcode; in unmap_null() local
348 errcode = pt_section_unmap(NULL); in unmap_null()
349 ptu_int_eq(errcode, -pte_internal); in unmap_null()
367 int errcode; in get_overflow() local
371 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in get_overflow()
372 ptu_int_eq(errcode, 0); in get_overflow()
377 errcode = pt_section_get(sfix->section); in get_overflow()
378 ptu_int_eq(errcode, -pte_overflow); in get_overflow()
389 int errcode; in attach_overflow() local
393 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_overflow()
394 ptu_int_eq(errcode, 0); in attach_overflow()
399 errcode = pt_section_attach(sfix->section, &iscache); in attach_overflow()
400 ptu_int_eq(errcode, -pte_overflow); in attach_overflow()
411 int errcode; in attach_bad_ucount() local
415 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_ucount()
416 ptu_int_eq(errcode, 0); in attach_bad_ucount()
421 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_ucount()
422 ptu_int_eq(errcode, -pte_internal); in attach_bad_ucount()
432 int errcode; in map_change() local
436 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_change()
437 ptu_int_eq(errcode, 0); in map_change()
442 errcode = pt_section_map(sfix->section); in map_change()
443 ptu_int_eq(errcode, -pte_bad_image); in map_change()
451 int errcode; in map_put() local
455 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_put()
456 ptu_int_eq(errcode, 0); in map_put()
459 errcode = pt_section_map(sfix->section); in map_put()
460 ptu_int_eq(errcode, 0); in map_put()
462 errcode = pt_section_put(sfix->section); in map_put()
463 ptu_int_eq(errcode, -pte_internal); in map_put()
465 errcode = pt_section_unmap(sfix->section); in map_put()
466 ptu_int_eq(errcode, 0); in map_put()
474 int errcode; in unmap_nomap() local
478 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in unmap_nomap()
479 ptu_int_eq(errcode, 0); in unmap_nomap()
482 errcode = pt_section_unmap(sfix->section); in unmap_nomap()
483 ptu_int_eq(errcode, -pte_nomap); in unmap_nomap()
491 int errcode; in map_overflow() local
495 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_overflow()
496 ptu_int_eq(errcode, 0); in map_overflow()
501 errcode = pt_section_map(sfix->section); in map_overflow()
502 ptu_int_eq(errcode, -pte_overflow); in map_overflow()
512 int errcode; in get_put() local
516 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in get_put()
517 ptu_int_eq(errcode, 0); in get_put()
520 errcode = pt_section_get(sfix->section); in get_put()
521 ptu_int_eq(errcode, 0); in get_put()
523 errcode = pt_section_get(sfix->section); in get_put()
524 ptu_int_eq(errcode, 0); in get_put()
526 errcode = pt_section_put(sfix->section); in get_put()
527 ptu_int_eq(errcode, 0); in get_put()
529 errcode = pt_section_put(sfix->section); in get_put()
530 ptu_int_eq(errcode, 0); in get_put()
539 int errcode; in attach_detach() local
543 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_detach()
544 ptu_int_eq(errcode, 0); in attach_detach()
549 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
550 ptu_int_eq(errcode, 0); in attach_detach()
552 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
553 ptu_int_eq(errcode, 0); in attach_detach()
555 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
556 ptu_int_eq(errcode, 0); in attach_detach()
558 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
559 ptu_int_eq(errcode, 0); in attach_detach()
570 int errcode; in attach_bad_iscache() local
574 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_iscache()
575 ptu_int_eq(errcode, 0); in attach_bad_iscache()
580 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_iscache()
581 ptu_int_eq(errcode, 0); in attach_bad_iscache()
583 errcode = pt_section_attach(sfix->section, &bad); in attach_bad_iscache()
584 ptu_int_eq(errcode, -pte_internal); in attach_bad_iscache()
586 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_iscache()
587 ptu_int_eq(errcode, 0); in attach_bad_iscache()
598 int errcode; in detach_bad_iscache() local
602 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in detach_bad_iscache()
603 ptu_int_eq(errcode, 0); in detach_bad_iscache()
606 errcode = pt_section_attach(sfix->section, &iscache); in detach_bad_iscache()
607 ptu_int_eq(errcode, 0); in detach_bad_iscache()
609 errcode = pt_section_detach(sfix->section, &bad); in detach_bad_iscache()
610 ptu_int_eq(errcode, -pte_internal); in detach_bad_iscache()
612 errcode = pt_section_detach(sfix->section, &iscache); in detach_bad_iscache()
613 ptu_int_eq(errcode, 0); in detach_bad_iscache()
621 int errcode; in map_unmap() local
625 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in map_unmap()
626 ptu_int_eq(errcode, 0); in map_unmap()
629 errcode = pt_section_map(sfix->section); in map_unmap()
630 ptu_int_eq(errcode, 0); in map_unmap()
632 errcode = pt_section_map(sfix->section); in map_unmap()
633 ptu_int_eq(errcode, 0); in map_unmap()
635 errcode = pt_section_unmap(sfix->section); in map_unmap()
636 ptu_int_eq(errcode, 0); in map_unmap()
638 errcode = pt_section_unmap(sfix->section); in map_unmap()
639 ptu_int_eq(errcode, 0); in map_unmap()
648 int errcode; in attach_map() local
654 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_map()
655 ptu_int_eq(errcode, 0); in attach_map()
658 errcode = pt_section_attach(sfix->section, &iscache); in attach_map()
659 ptu_int_eq(errcode, 0); in attach_map()
661 errcode = pt_section_map(sfix->section); in attach_map()
662 ptu_int_eq(errcode, 0); in attach_map()
664 errcode = pt_section_map(sfix->section); in attach_map()
665 ptu_int_eq(errcode, 0); in attach_map()
669 errcode = pt_section_unmap(sfix->section); in attach_map()
670 ptu_int_eq(errcode, 0); in attach_map()
672 errcode = pt_section_unmap(sfix->section); in attach_map()
673 ptu_int_eq(errcode, 0); in attach_map()
675 errcode = pt_section_detach(sfix->section, &iscache); in attach_map()
676 ptu_int_eq(errcode, 0); in attach_map()
685 int errcode; in attach_bad_map() local
691 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_bad_map()
692 ptu_int_eq(errcode, 0); in attach_bad_map()
695 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_map()
696 ptu_int_eq(errcode, 0); in attach_bad_map()
698 errcode = pt_section_map(sfix->section); in attach_bad_map()
699 ptu_int_eq(errcode, -pte_eos); in attach_bad_map()
701 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_map()
702 ptu_int_eq(errcode, 0); in attach_bad_map()
711 int errcode; in attach_map_overflow() local
717 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in attach_map_overflow()
718 ptu_int_eq(errcode, 0); in attach_map_overflow()
721 errcode = pt_section_attach(sfix->section, &iscache); in attach_map_overflow()
722 ptu_int_eq(errcode, 0); in attach_map_overflow()
726 errcode = pt_section_map(sfix->section); in attach_map_overflow()
727 ptu_int_eq(errcode, -pte_overflow); in attach_map_overflow()
729 errcode = pt_section_detach(sfix->section, &iscache); in attach_map_overflow()
730 ptu_int_eq(errcode, 0); in attach_map_overflow()
1010 int it, errcode; in worker_read() local
1020 errcode = pt_section_get(sfix->section); in worker_read()
1021 if (errcode < 0) in worker_read()
1022 return errcode; in worker_read()
1024 errcode = pt_section_map(sfix->section); in worker_read()
1025 if (errcode < 0) in worker_read()
1032 errcode = -pte_invalid; in worker_read()
1036 errcode = pt_section_unmap(sfix->section); in worker_read()
1037 if (errcode < 0) in worker_read()
1040 errcode = pt_section_put(sfix->section); in worker_read()
1041 if (errcode < 0) in worker_read()
1042 return errcode; in worker_read()
1052 return errcode; in worker_read()
1058 int it, errcode; in worker_bcache() local
1064 errcode = pt_section_get(sfix->section); in worker_bcache()
1065 if (errcode < 0) in worker_bcache()
1066 return errcode; in worker_bcache()
1071 errcode = pt_section_map(sfix->section); in worker_bcache()
1072 if (errcode < 0) in worker_bcache()
1075 errcode = pt_section_request_bcache(sfix->section); in worker_bcache()
1076 if (errcode < 0) in worker_bcache()
1081 errcode = -pte_nomem; in worker_bcache()
1085 errcode = pt_section_unmap(sfix->section); in worker_bcache()
1086 if (errcode < 0) in worker_bcache()
1097 return errcode; in worker_bcache()
1104 int errcode; in stress() local
1108 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in stress()
1109 ptu_int_eq(errcode, 0); in stress()
1121 errcode = worker(sfix); in stress()
1122 ptu_int_eq(errcode, 0); in stress()
1131 int errcode; in init_no_bcache() local
1135 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in init_no_bcache()
1136 ptu_int_eq(errcode, 0); in init_no_bcache()
1139 errcode = pt_section_map(sfix->section); in init_no_bcache()
1140 ptu_int_eq(errcode, 0); in init_no_bcache()
1145 errcode = pt_section_unmap(sfix->section); in init_no_bcache()
1146 ptu_int_eq(errcode, 0); in init_no_bcache()
1155 int errcode; in bcache_alloc_free() local
1159 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_free()
1160 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1163 errcode = pt_section_map(sfix->section); in bcache_alloc_free()
1164 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1166 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_free()
1167 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1173 errcode = pt_section_unmap(sfix->section); in bcache_alloc_free()
1174 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1185 int errcode; in bcache_alloc_twice() local
1189 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_twice()
1190 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1193 errcode = pt_section_map(sfix->section); in bcache_alloc_twice()
1194 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1196 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1197 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1199 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1200 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1202 errcode = pt_section_unmap(sfix->section); in bcache_alloc_twice()
1203 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1211 int errcode; in bcache_alloc_nomap() local
1215 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in bcache_alloc_nomap()
1216 ptu_int_eq(errcode, 0); in bcache_alloc_nomap()
1219 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_nomap()
1220 ptu_int_eq(errcode, -pte_internal); in bcache_alloc_nomap()
1229 int errcode; in memsize_nomap() local
1233 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_nomap()
1234 ptu_int_eq(errcode, 0); in memsize_nomap()
1237 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_nomap()
1238 ptu_int_eq(errcode, 0); in memsize_nomap()
1248 int errcode; in memsize_unmap() local
1252 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_unmap()
1253 ptu_int_eq(errcode, 0); in memsize_unmap()
1256 errcode = pt_section_map(sfix->section); in memsize_unmap()
1257 ptu_int_eq(errcode, 0); in memsize_unmap()
1259 errcode = pt_section_unmap(sfix->section); in memsize_unmap()
1260 ptu_int_eq(errcode, 0); in memsize_unmap()
1262 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_unmap()
1263 ptu_int_eq(errcode, 0); in memsize_unmap()
1273 int errcode; in memsize_map_nobcache() local
1277 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_map_nobcache()
1278 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1281 errcode = pt_section_map(sfix->section); in memsize_map_nobcache()
1282 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1286 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_nobcache()
1287 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1291 errcode = pt_section_unmap(sfix->section); in memsize_map_nobcache()
1292 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1301 int errcode; in memsize_map_bcache() local
1305 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in memsize_map_bcache()
1306 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1309 errcode = pt_section_map(sfix->section); in memsize_map_bcache()
1310 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1312 errcode = pt_section_alloc_bcache(sfix->section); in memsize_map_bcache()
1313 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1315 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_bcache()
1316 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1320 errcode = pt_section_unmap(sfix->section); in memsize_map_bcache()
1321 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1328 int errcode; in sfix_init() local
1334 errcode = ptunit_mkfile(&sfix->file, &sfix->name, "wb"); in sfix_init()
1335 ptu_int_eq(errcode, 0); in sfix_init()
1346 int thrd, errcode; in sfix_fini() local
1375 errcode = remove(filename); in sfix_fini()
1376 if (!errcode) { in sfix_fini()