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()
245 int errcode; in memsize_null() local
247 errcode = pt_section_memsize(NULL, &size); in memsize_null()
248 ptu_int_eq(errcode, -pte_internal); in memsize_null()
250 errcode = pt_section_memsize(sfix->section, NULL); in memsize_null()
251 ptu_int_eq(errcode, -pte_internal); in memsize_null()
253 errcode = pt_section_memsize(NULL, NULL); in memsize_null()
254 ptu_int_eq(errcode, -pte_internal); in memsize_null()
271 int errcode; in get_null() local
273 errcode = pt_section_get(NULL); in get_null()
274 ptu_int_eq(errcode, -pte_internal); in get_null()
281 int errcode; in put_null() local
283 errcode = pt_section_put(NULL); in put_null()
284 ptu_int_eq(errcode, -pte_internal); in put_null()
293 int errcode; in attach_null() local
295 errcode = pt_section_attach(NULL, &iscache); in attach_null()
296 ptu_int_eq(errcode, -pte_internal); in attach_null()
298 errcode = pt_section_attach(§ion, NULL); in attach_null()
299 ptu_int_eq(errcode, -pte_internal); in attach_null()
301 errcode = pt_section_attach(NULL, NULL); in attach_null()
302 ptu_int_eq(errcode, -pte_internal); in attach_null()
311 int errcode; in detach_null() local
313 errcode = pt_section_detach(NULL, &iscache); in detach_null()
314 ptu_int_eq(errcode, -pte_internal); in detach_null()
316 errcode = pt_section_detach(§ion, NULL); in detach_null()
317 ptu_int_eq(errcode, -pte_internal); in detach_null()
319 errcode = pt_section_detach(NULL, NULL); in detach_null()
320 ptu_int_eq(errcode, -pte_internal); in detach_null()
327 int errcode; in map_null() local
329 errcode = pt_section_map(NULL); in map_null()
330 ptu_int_eq(errcode, -pte_internal); in map_null()
337 int errcode; in unmap_null() local
339 errcode = pt_section_unmap(NULL); in unmap_null()
340 ptu_int_eq(errcode, -pte_internal); in unmap_null()
358 int errcode; in get_overflow() local
367 errcode = pt_section_get(sfix->section); in get_overflow()
368 ptu_int_eq(errcode, -pte_overflow); in get_overflow()
379 int errcode; in attach_overflow() local
388 errcode = pt_section_attach(sfix->section, &iscache); in attach_overflow()
389 ptu_int_eq(errcode, -pte_overflow); in attach_overflow()
400 int errcode; in attach_bad_ucount() local
409 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_ucount()
410 ptu_int_eq(errcode, -pte_internal); in attach_bad_ucount()
420 int errcode; in map_change() local
429 errcode = pt_section_map(sfix->section); in map_change()
430 ptu_int_eq(errcode, -pte_bad_image); in map_change()
438 int errcode; in map_put() local
445 errcode = pt_section_map(sfix->section); in map_put()
446 ptu_int_eq(errcode, 0); in map_put()
448 errcode = pt_section_put(sfix->section); in map_put()
449 ptu_int_eq(errcode, -pte_internal); in map_put()
451 errcode = pt_section_unmap(sfix->section); in map_put()
452 ptu_int_eq(errcode, 0); in map_put()
460 int errcode; in unmap_nomap() local
467 errcode = pt_section_unmap(sfix->section); in unmap_nomap()
468 ptu_int_eq(errcode, -pte_nomap); in unmap_nomap()
476 int errcode; in map_overflow() local
485 errcode = pt_section_map(sfix->section); in map_overflow()
486 ptu_int_eq(errcode, -pte_overflow); in map_overflow()
496 int errcode; in get_put() local
503 errcode = pt_section_get(sfix->section); in get_put()
504 ptu_int_eq(errcode, 0); in get_put()
506 errcode = pt_section_get(sfix->section); in get_put()
507 ptu_int_eq(errcode, 0); in get_put()
509 errcode = pt_section_put(sfix->section); in get_put()
510 ptu_int_eq(errcode, 0); in get_put()
512 errcode = pt_section_put(sfix->section); in get_put()
513 ptu_int_eq(errcode, 0); in get_put()
522 int errcode; in attach_detach() local
531 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
532 ptu_int_eq(errcode, 0); in attach_detach()
534 errcode = pt_section_attach(sfix->section, &iscache); in attach_detach()
535 ptu_int_eq(errcode, 0); in attach_detach()
537 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
538 ptu_int_eq(errcode, 0); in attach_detach()
540 errcode = pt_section_detach(sfix->section, &iscache); in attach_detach()
541 ptu_int_eq(errcode, 0); in attach_detach()
552 int errcode; in attach_bad_iscache() local
561 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_iscache()
562 ptu_int_eq(errcode, 0); in attach_bad_iscache()
564 errcode = pt_section_attach(sfix->section, &bad); in attach_bad_iscache()
565 ptu_int_eq(errcode, -pte_internal); in attach_bad_iscache()
567 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_iscache()
568 ptu_int_eq(errcode, 0); in attach_bad_iscache()
579 int errcode; in detach_bad_iscache() local
586 errcode = pt_section_attach(sfix->section, &iscache); in detach_bad_iscache()
587 ptu_int_eq(errcode, 0); in detach_bad_iscache()
589 errcode = pt_section_detach(sfix->section, &bad); in detach_bad_iscache()
590 ptu_int_eq(errcode, -pte_internal); in detach_bad_iscache()
592 errcode = pt_section_detach(sfix->section, &iscache); in detach_bad_iscache()
593 ptu_int_eq(errcode, 0); in detach_bad_iscache()
601 int errcode; in map_unmap() local
608 errcode = pt_section_map(sfix->section); in map_unmap()
609 ptu_int_eq(errcode, 0); in map_unmap()
611 errcode = pt_section_map(sfix->section); in map_unmap()
612 ptu_int_eq(errcode, 0); in map_unmap()
614 errcode = pt_section_unmap(sfix->section); in map_unmap()
615 ptu_int_eq(errcode, 0); in map_unmap()
617 errcode = pt_section_unmap(sfix->section); in map_unmap()
618 ptu_int_eq(errcode, 0); in map_unmap()
627 int errcode; in attach_map() local
636 errcode = pt_section_attach(sfix->section, &iscache); in attach_map()
637 ptu_int_eq(errcode, 0); in attach_map()
639 errcode = pt_section_map(sfix->section); in attach_map()
640 ptu_int_eq(errcode, 0); in attach_map()
642 errcode = pt_section_map(sfix->section); in attach_map()
643 ptu_int_eq(errcode, 0); in attach_map()
647 errcode = pt_section_unmap(sfix->section); in attach_map()
648 ptu_int_eq(errcode, 0); in attach_map()
650 errcode = pt_section_unmap(sfix->section); in attach_map()
651 ptu_int_eq(errcode, 0); in attach_map()
653 errcode = pt_section_detach(sfix->section, &iscache); in attach_map()
654 ptu_int_eq(errcode, 0); in attach_map()
663 int errcode; in attach_bad_map() local
672 errcode = pt_section_attach(sfix->section, &iscache); in attach_bad_map()
673 ptu_int_eq(errcode, 0); in attach_bad_map()
675 errcode = pt_section_map(sfix->section); in attach_bad_map()
676 ptu_int_eq(errcode, -pte_eos); in attach_bad_map()
678 errcode = pt_section_detach(sfix->section, &iscache); in attach_bad_map()
679 ptu_int_eq(errcode, 0); in attach_bad_map()
688 int errcode; in attach_map_overflow() local
697 errcode = pt_section_attach(sfix->section, &iscache); in attach_map_overflow()
698 ptu_int_eq(errcode, 0); in attach_map_overflow()
702 errcode = pt_section_map(sfix->section); in attach_map_overflow()
703 ptu_int_eq(errcode, -pte_overflow); in attach_map_overflow()
705 errcode = pt_section_detach(sfix->section, &iscache); in attach_map_overflow()
706 ptu_int_eq(errcode, 0); in attach_map_overflow()
976 int it, errcode; in worker_read() local
986 errcode = pt_section_get(sfix->section); in worker_read()
987 if (errcode < 0) in worker_read()
988 return errcode; in worker_read()
990 errcode = pt_section_map(sfix->section); in worker_read()
991 if (errcode < 0) in worker_read()
998 errcode = -pte_invalid; in worker_read()
1002 errcode = pt_section_unmap(sfix->section); in worker_read()
1003 if (errcode < 0) in worker_read()
1006 errcode = pt_section_put(sfix->section); in worker_read()
1007 if (errcode < 0) in worker_read()
1008 return errcode; in worker_read()
1018 return errcode; in worker_read()
1024 int it, errcode; in worker_bcache() local
1030 errcode = pt_section_get(sfix->section); in worker_bcache()
1031 if (errcode < 0) in worker_bcache()
1032 return errcode; in worker_bcache()
1037 errcode = pt_section_map(sfix->section); in worker_bcache()
1038 if (errcode < 0) in worker_bcache()
1041 errcode = pt_section_request_bcache(sfix->section); in worker_bcache()
1042 if (errcode < 0) in worker_bcache()
1047 errcode = -pte_nomem; in worker_bcache()
1051 errcode = pt_section_unmap(sfix->section); in worker_bcache()
1052 if (errcode < 0) in worker_bcache()
1063 return errcode; in worker_bcache()
1070 int errcode; in stress() local
1086 errcode = worker(sfix); in stress()
1087 ptu_int_eq(errcode, 0); in stress()
1096 int errcode; in init_no_bcache() local
1103 errcode = pt_section_map(sfix->section); in init_no_bcache()
1104 ptu_int_eq(errcode, 0); in init_no_bcache()
1109 errcode = pt_section_unmap(sfix->section); in init_no_bcache()
1110 ptu_int_eq(errcode, 0); in init_no_bcache()
1119 int errcode; in bcache_alloc_free() local
1126 errcode = pt_section_map(sfix->section); in bcache_alloc_free()
1127 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1129 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_free()
1130 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1136 errcode = pt_section_unmap(sfix->section); in bcache_alloc_free()
1137 ptu_int_eq(errcode, 0); in bcache_alloc_free()
1148 int errcode; in bcache_alloc_twice() local
1155 errcode = pt_section_map(sfix->section); in bcache_alloc_twice()
1156 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1158 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1159 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1161 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_twice()
1162 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1164 errcode = pt_section_unmap(sfix->section); in bcache_alloc_twice()
1165 ptu_int_eq(errcode, 0); in bcache_alloc_twice()
1173 int errcode; in bcache_alloc_nomap() local
1180 errcode = pt_section_alloc_bcache(sfix->section); in bcache_alloc_nomap()
1181 ptu_int_eq(errcode, -pte_internal); in bcache_alloc_nomap()
1190 int errcode; in memsize_nomap() local
1197 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_nomap()
1198 ptu_int_eq(errcode, 0); in memsize_nomap()
1208 int errcode; in memsize_unmap() local
1215 errcode = pt_section_map(sfix->section); in memsize_unmap()
1216 ptu_int_eq(errcode, 0); in memsize_unmap()
1218 errcode = pt_section_unmap(sfix->section); in memsize_unmap()
1219 ptu_int_eq(errcode, 0); in memsize_unmap()
1221 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_unmap()
1222 ptu_int_eq(errcode, 0); in memsize_unmap()
1232 int errcode; in memsize_map_nobcache() local
1239 errcode = pt_section_map(sfix->section); in memsize_map_nobcache()
1240 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1244 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_nobcache()
1245 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1249 errcode = pt_section_unmap(sfix->section); in memsize_map_nobcache()
1250 ptu_int_eq(errcode, 0); in memsize_map_nobcache()
1259 int errcode; in memsize_map_bcache() local
1266 errcode = pt_section_map(sfix->section); in memsize_map_bcache()
1267 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1269 errcode = pt_section_alloc_bcache(sfix->section); in memsize_map_bcache()
1270 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1272 errcode = pt_section_memsize(sfix->section, &memsize); in memsize_map_bcache()
1273 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1277 errcode = pt_section_unmap(sfix->section); in memsize_map_bcache()
1278 ptu_int_eq(errcode, 0); in memsize_map_bcache()
1285 int errcode; in sfix_init() local
1291 errcode = ptunit_mkfile(&sfix->file, &sfix->name, "wb"); in sfix_init()
1292 ptu_int_eq(errcode, 0); in sfix_init()