Lines Matching full:section
65 /* A lock protecting this section. */
75 extern int pt_section_get(struct pt_section *section);
76 extern int pt_section_put(struct pt_section *section);
77 extern int pt_section_attach(struct pt_section *section,
79 extern int pt_section_detach(struct pt_section *section,
82 extern int pt_section_map(struct pt_section *section);
83 extern int pt_section_map_share(struct pt_section *section);
84 extern int pt_section_unmap(struct pt_section *section);
85 extern int pt_section_request_bcache(struct pt_section *section);
87 extern const char *pt_section_filename(const struct pt_section *section);
88 extern uint64_t pt_section_offset(const struct pt_section *section);
89 extern uint64_t pt_section_size(const struct pt_section *section);
90 extern int pt_section_memsize(struct pt_section *section, uint64_t *size);
92 extern int pt_section_read(const struct pt_section *section, uint8_t *buffer,
99 struct pt_section *section; in pt_mk_section() local
102 section = malloc(sizeof(*section)); in pt_mk_section()
103 if (!section) in pt_mk_section()
106 memset(section, 0, sizeof(*section)); in pt_mk_section()
107 section->filename = filename; in pt_mk_section()
108 section->offset = offset; in pt_mk_section()
109 section->size = size; in pt_mk_section()
110 section->ucount = 1; in pt_mk_section()
112 for (idx = 0; idx < sizeof(section->content); ++idx) in pt_mk_section()
113 section->content[idx] = idx; in pt_mk_section()
119 errcode = mtx_init(§ion->lock, mtx_plain); in pt_mk_section()
121 free(section); in pt_mk_section()
125 errcode = mtx_init(§ion->alock, mtx_plain); in pt_mk_section()
127 mtx_destroy(§ion->lock); in pt_mk_section()
128 free(section); in pt_mk_section()
134 *psection = section; in pt_mk_section()
139 static int pt_section_lock(struct pt_section *section) in pt_section_lock() argument
141 if (!section) in pt_section_lock()
148 errcode = mtx_lock(§ion->lock); in pt_section_lock()
157 static int pt_section_unlock(struct pt_section *section) in pt_section_unlock() argument
159 if (!section) in pt_section_unlock()
166 errcode = mtx_unlock(§ion->lock); in pt_section_unlock()
175 static int pt_section_lock_attach(struct pt_section *section) in pt_section_lock_attach() argument
177 if (!section) in pt_section_lock_attach()
184 errcode = mtx_lock(§ion->alock); in pt_section_lock_attach()
193 static int pt_section_unlock_attach(struct pt_section *section) in pt_section_unlock_attach() argument
195 if (!section) in pt_section_unlock_attach()
202 errcode = mtx_unlock(§ion->alock); in pt_section_unlock_attach()
211 int pt_section_get(struct pt_section *section) in pt_section_get() argument
215 if (!section) in pt_section_get()
218 errcode = pt_section_lock(section); in pt_section_get()
222 ucount = ++section->ucount; in pt_section_get()
224 errcode = pt_section_unlock(section); in pt_section_get()
234 int pt_section_put(struct pt_section *section) in pt_section_put() argument
238 if (!section) in pt_section_put()
241 errcode = pt_section_lock(section); in pt_section_put()
245 ucount = --section->ucount; in pt_section_put()
247 errcode = pt_section_unlock(section); in pt_section_put()
253 mtx_destroy(§ion->alock); in pt_section_put()
254 mtx_destroy(§ion->lock); in pt_section_put()
256 free(section); in pt_section_put()
262 int pt_section_attach(struct pt_section *section, in pt_section_attach() argument
267 if (!section || !iscache) in pt_section_attach()
270 errcode = pt_section_lock_attach(section); in pt_section_attach()
274 ucount = section->ucount; in pt_section_attach()
275 acount = section->acount; in pt_section_attach()
277 if (section->iscache || !ucount) in pt_section_attach()
280 section->iscache = iscache; in pt_section_attach()
281 section->acount = 1; in pt_section_attach()
283 return pt_section_unlock_attach(section); in pt_section_attach()
288 (void) pt_section_unlock_attach(section); in pt_section_attach()
295 if (section->iscache != iscache) in pt_section_attach()
298 section->acount = acount; in pt_section_attach()
300 return pt_section_unlock_attach(section); in pt_section_attach()
303 (void) pt_section_unlock_attach(section); in pt_section_attach()
307 int pt_section_detach(struct pt_section *section, in pt_section_detach() argument
312 if (!section || !iscache) in pt_section_detach()
315 errcode = pt_section_lock_attach(section); in pt_section_detach()
319 if (section->iscache != iscache) in pt_section_detach()
322 acount = section->acount; in pt_section_detach()
327 ucount = section->ucount; in pt_section_detach()
331 section->acount = acount; in pt_section_detach()
333 section->iscache = NULL; in pt_section_detach()
335 return pt_section_unlock_attach(section); in pt_section_detach()
338 (void) pt_section_unlock_attach(section); in pt_section_detach()
342 int pt_section_map(struct pt_section *section) in pt_section_map() argument
347 if (!section) in pt_section_map()
350 errcode = pt_section_map_share(section); in pt_section_map()
354 errcode = pt_section_lock_attach(section); in pt_section_map()
359 iscache = section->iscache; in pt_section_map()
361 status = pt_iscache_notify_map(iscache, section); in pt_section_map()
363 errcode = pt_section_unlock_attach(section); in pt_section_map()
368 int pt_section_map_share(struct pt_section *section) in pt_section_map_share() argument
372 if (!section) in pt_section_map_share()
375 errcode = pt_section_lock(section); in pt_section_map_share()
379 mcount = ++section->mcount; in pt_section_map_share()
381 errcode = pt_section_unlock(section); in pt_section_map_share()
391 int pt_section_unmap(struct pt_section *section) in pt_section_unmap() argument
395 if (!section) in pt_section_unmap()
398 errcode = pt_section_lock(section); in pt_section_unmap()
402 section->bcsize = 0ull; in pt_section_unmap()
403 mcount = --section->mcount; in pt_section_unmap()
405 errcode = pt_section_unlock(section); in pt_section_unmap()
415 int pt_section_request_bcache(struct pt_section *section) in pt_section_request_bcache() argument
421 if (!section) in pt_section_request_bcache()
424 errcode = pt_section_lock_attach(section); in pt_section_request_bcache()
428 errcode = pt_section_lock(section); in pt_section_request_bcache()
432 if (section->bcsize) in pt_section_request_bcache()
435 section->bcsize = section->size * 3; in pt_section_request_bcache()
436 memsize = section->size + section->bcsize; in pt_section_request_bcache()
438 errcode = pt_section_unlock(section); in pt_section_request_bcache()
442 iscache = section->iscache; in pt_section_request_bcache()
444 errcode = pt_iscache_notify_resize(iscache, section, memsize); in pt_section_request_bcache()
449 return pt_section_unlock_attach(section); in pt_section_request_bcache()
453 (void) pt_section_unlock(section); in pt_section_request_bcache()
456 (void) pt_section_unlock_attach(section); in pt_section_request_bcache()
460 const char *pt_section_filename(const struct pt_section *section) in pt_section_filename() argument
462 if (!section) in pt_section_filename()
465 return section->filename; in pt_section_filename()
468 uint64_t pt_section_offset(const struct pt_section *section) in pt_section_offset() argument
470 if (!section) in pt_section_offset()
473 return section->offset; in pt_section_offset()
476 uint64_t pt_section_size(const struct pt_section *section) in pt_section_size() argument
478 if (!section) in pt_section_size()
481 return section->size; in pt_section_size()
484 int pt_section_memsize(struct pt_section *section, uint64_t *size) in pt_section_memsize() argument
486 if (!section || !size) in pt_section_memsize()
489 *size = section->mcount ? section->size + section->bcsize : 0ull; in pt_section_memsize()
494 int pt_section_read(const struct pt_section *section, uint8_t *buffer, in pt_section_read() argument
499 if (!section || !buffer) in pt_section_read()
504 max = sizeof(section->content); in pt_section_read()
515 memcpy(buffer, §ion->content[begin], (size_t) (end - begin)); in pt_section_read()
536 /* The image section cache under test. */
540 struct pt_section *section[num_sections]; member
553 memset(cfix->section, 0, sizeof(cfix->section)); in dfix_init()
556 struct pt_section *section; in dfix_init() local
559 errcode = pt_mk_section(§ion, "some-filename", in dfix_init()
563 ptu_ptr(section); in dfix_init()
565 cfix->section[idx] = section; in dfix_init()
592 status = pt_iscache_add(&cfix->iscache, cfix->section[idx], in sfix_init()
612 ptu_int_eq(cfix->section[idx]->ucount, 1); in cfix_fini()
613 ptu_int_eq(cfix->section[idx]->acount, 0); in cfix_fini()
614 ptu_int_eq(cfix->section[idx]->mcount, 0); in cfix_fini()
615 ptu_null(cfix->section[idx]->iscache); in cfix_fini()
617 errcode = pt_section_put(cfix->section[idx]); in cfix_fini()
655 struct pt_section section; in add_null() local
658 errcode = pt_iscache_add(NULL, §ion, 0ull); in add_null()
680 struct pt_section *section; in lookup_null() local
684 errcode = pt_iscache_lookup(NULL, §ion, &laddr, 0); in lookup_null()
690 errcode = pt_iscache_lookup(&iscache, §ion, NULL, 0); in lookup_null()
781 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add()
785 ptu_int_eq(cfix->section[0]->ucount, 2); in add()
786 ptu_int_eq(cfix->section[0]->acount, 1); in add()
788 /* The added section must be implicitly put in pt_iscache_fini. */ in add()
794 struct pt_section section; in add_no_name() local
797 memset(§ion, 0, sizeof(section)); in add_no_name()
799 errcode = pt_iscache_add(&cfix->iscache, §ion, 0ull); in add_no_name()
817 struct pt_section *section; in find() local
820 section = cfix->section[0]; in find()
821 ptu_ptr(section); in find()
823 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find()
826 found = pt_iscache_find(&cfix->iscache, section->filename, in find()
827 section->offset, section->size, 0ull); in find()
835 struct pt_section *section; in find_empty() local
838 section = cfix->section[0]; in find_empty()
839 ptu_ptr(section); in find_empty()
841 found = pt_iscache_find(&cfix->iscache, section->filename, in find_empty()
842 section->offset, section->size, 0ull); in find_empty()
850 struct pt_section *section; in find_bad_filename() local
853 section = cfix->section[0]; in find_bad_filename()
854 ptu_ptr(section); in find_bad_filename()
856 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_filename()
860 section->offset, section->size, 0ull); in find_bad_filename()
878 struct pt_section *section; in find_bad_offset() local
881 section = cfix->section[0]; in find_bad_offset()
882 ptu_ptr(section); in find_bad_offset()
884 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_offset()
887 found = pt_iscache_find(&cfix->iscache, section->filename, 0ull, in find_bad_offset()
888 section->size, 0ull); in find_bad_offset()
896 struct pt_section *section; in find_bad_size() local
899 section = cfix->section[0]; in find_bad_size()
900 ptu_ptr(section); in find_bad_size()
902 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_size()
905 found = pt_iscache_find(&cfix->iscache, section->filename, in find_bad_size()
906 section->offset, 0ull, 0ull); in find_bad_size()
914 struct pt_section *section; in find_bad_laddr() local
917 section = cfix->section[0]; in find_bad_laddr()
918 ptu_ptr(section); in find_bad_laddr()
920 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_laddr()
923 found = pt_iscache_find(&cfix->iscache, section->filename, in find_bad_laddr()
924 section->offset, section->size, 1ull); in find_bad_laddr()
932 struct pt_section *section; in lookup() local
936 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in lookup()
939 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, isid); in lookup()
941 ptu_ptr_eq(section, cfix->section[0]); in lookup()
944 errcode = pt_section_put(section); in lookup()
952 struct pt_section *section; in lookup_bad_isid() local
956 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in lookup_bad_isid()
959 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, 0); in lookup_bad_isid()
962 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, -isid); in lookup_bad_isid()
965 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, isid + 1); in lookup_bad_isid()
983 struct pt_section *section; in clear_find() local
986 section = cfix->section[0]; in clear_find()
987 ptu_ptr(section); in clear_find()
989 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in clear_find()
996 found = pt_iscache_find(&cfix->iscache, section->filename, in clear_find()
997 section->offset, section->size, 0ull); in clear_find()
1005 struct pt_section *section; in clear_lookup() local
1009 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in clear_lookup()
1015 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, isid); in clear_lookup()
1025 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_twice()
1028 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_twice()
1041 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_same()
1044 cfix->section[1]->offset = cfix->section[0]->offset; in add_same()
1045 cfix->section[1]->size = cfix->section[0]->size; in add_same()
1047 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 0ull); in add_same()
1061 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_twice_different_laddr()
1064 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[0], 1ull); in add_twice_different_laddr()
1071 ptu_int_eq(cfix->section[0]->ucount, 3); in add_twice_different_laddr()
1072 ptu_int_eq(cfix->section[0]->acount, 2); in add_twice_different_laddr()
1082 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_same_different_laddr()
1085 cfix->section[1]->offset = cfix->section[0]->offset; in add_same_different_laddr()
1086 cfix->section[1]->size = cfix->section[0]->size; in add_same_different_laddr()
1088 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 1ull); in add_same_different_laddr()
1102 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_different_same_laddr()
1105 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 0ull); in add_different_same_laddr()
1169 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read()
1186 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read_truncate()
1203 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read_bad_vaddr()
1218 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read_bad_isid()
1233 cfix->iscache.limit = cfix->section[0]->size; in lru_map()
1237 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map()
1240 status = pt_section_map(cfix->section[0]); in lru_map()
1243 status = pt_section_unmap(cfix->section[0]); in lru_map()
1247 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_map()
1249 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size); in lru_map()
1259 cfix->iscache.limit = cfix->section[0]->size; in lru_read()
1263 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_read()
1270 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_read()
1272 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size); in lru_read()
1281 cfix->iscache.limit = 2 * cfix->section[0]->size; in lru_map_nodup()
1285 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_nodup()
1288 status = pt_section_map(cfix->section[0]); in lru_map_nodup()
1291 status = pt_section_unmap(cfix->section[0]); in lru_map_nodup()
1294 status = pt_section_map(cfix->section[0]); in lru_map_nodup()
1297 status = pt_section_unmap(cfix->section[0]); in lru_map_nodup()
1301 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_map_nodup()
1303 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size); in lru_map_nodup()
1312 cfix->iscache.limit = cfix->section[0]->size - 1; in lru_map_too_big()
1316 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_too_big()
1319 status = pt_section_map(cfix->section[0]); in lru_map_too_big()
1322 status = pt_section_unmap(cfix->section[0]); in lru_map_too_big()
1335 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_map_add_front()
1339 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_add_front()
1342 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_map_add_front()
1345 status = pt_section_map(cfix->section[0]); in lru_map_add_front()
1348 status = pt_section_unmap(cfix->section[0]); in lru_map_add_front()
1351 status = pt_section_map(cfix->section[1]); in lru_map_add_front()
1354 status = pt_section_unmap(cfix->section[1]); in lru_map_add_front()
1358 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]); in lru_map_add_front()
1360 ptu_ptr_eq(cfix->iscache.lru->next->section, cfix->section[0]); in lru_map_add_front()
1363 cfix->section[0]->size + cfix->section[1]->size); in lru_map_add_front()
1372 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_map_move_front()
1376 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_move_front()
1379 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_map_move_front()
1382 status = pt_section_map(cfix->section[0]); in lru_map_move_front()
1385 status = pt_section_unmap(cfix->section[0]); in lru_map_move_front()
1388 status = pt_section_map(cfix->section[1]); in lru_map_move_front()
1391 status = pt_section_unmap(cfix->section[1]); in lru_map_move_front()
1394 status = pt_section_map(cfix->section[0]); in lru_map_move_front()
1397 status = pt_section_unmap(cfix->section[0]); in lru_map_move_front()
1401 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_map_move_front()
1403 ptu_ptr_eq(cfix->iscache.lru->next->section, cfix->section[1]); in lru_map_move_front()
1406 cfix->section[0]->size + cfix->section[1]->size); in lru_map_move_front()
1415 cfix->iscache.limit = cfix->section[0]->size + in lru_map_evict()
1416 cfix->section[1]->size - 1; in lru_map_evict()
1420 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_evict()
1423 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_map_evict()
1426 status = pt_section_map(cfix->section[0]); in lru_map_evict()
1429 status = pt_section_unmap(cfix->section[0]); in lru_map_evict()
1432 status = pt_section_map(cfix->section[1]); in lru_map_evict()
1435 status = pt_section_unmap(cfix->section[1]); in lru_map_evict()
1439 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]); in lru_map_evict()
1441 ptu_uint_eq(cfix->iscache.used, cfix->section[1]->size); in lru_map_evict()
1450 cfix->iscache.limit = 4 * cfix->section[0]->size + in lru_bcache_evict()
1451 cfix->section[1]->size - 1; in lru_bcache_evict()
1455 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_bcache_evict()
1458 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_bcache_evict()
1461 status = pt_section_map(cfix->section[0]); in lru_bcache_evict()
1464 status = pt_section_unmap(cfix->section[0]); in lru_bcache_evict()
1467 status = pt_section_map(cfix->section[1]); in lru_bcache_evict()
1470 status = pt_section_unmap(cfix->section[1]); in lru_bcache_evict()
1473 status = pt_section_request_bcache(cfix->section[0]); in lru_bcache_evict()
1477 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_bcache_evict()
1479 ptu_uint_eq(cfix->iscache.used, 4 * cfix->section[0]->size); in lru_bcache_evict()
1488 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_bcache_clear()
1492 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_bcache_clear()
1495 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_bcache_clear()
1498 status = pt_section_map(cfix->section[0]); in lru_bcache_clear()
1501 status = pt_section_unmap(cfix->section[0]); in lru_bcache_clear()
1504 status = pt_section_map(cfix->section[1]); in lru_bcache_clear()
1507 status = pt_section_unmap(cfix->section[1]); in lru_bcache_clear()
1510 status = pt_section_request_bcache(cfix->section[0]); in lru_bcache_clear()
1523 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_limit_evict()
1527 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_limit_evict()
1530 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_limit_evict()
1533 status = pt_section_map(cfix->section[0]); in lru_limit_evict()
1536 status = pt_section_unmap(cfix->section[0]); in lru_limit_evict()
1539 status = pt_section_map(cfix->section[1]); in lru_limit_evict()
1542 status = pt_section_unmap(cfix->section[1]); in lru_limit_evict()
1546 cfix->section[0]->size + in lru_limit_evict()
1547 cfix->section[1]->size - 1); in lru_limit_evict()
1551 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]); in lru_limit_evict()
1553 ptu_uint_eq(cfix->iscache.used, cfix->section[1]->size); in lru_limit_evict()
1562 cfix->iscache.limit = cfix->section[0]->size; in lru_clear()
1566 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_clear()
1569 status = pt_section_map(cfix->section[0]); in lru_clear()
1572 status = pt_section_unmap(cfix->section[0]); in lru_clear()
1600 struct pt_section *section; in worker_add() local
1605 cfix->section[sec], laddr); in worker_add()
1609 errcode = pt_iscache_lookup(&cfix->iscache, §ion, in worker_add()
1623 if (section->offset != cfix->section[sec]->offset) in worker_add()
1626 if (section->size != cfix->section[sec]->size) in worker_add()
1629 errcode = pt_section_put(section); in worker_add()
1656 struct pt_section *section; in worker_add_file() local
1665 errcode = pt_iscache_lookup(&cfix->iscache, §ion, in worker_add_file()
1673 if (section->offset != offset) in worker_add_file()
1676 if (section->size != size) in worker_add_file()
1679 errcode = pt_section_put(section); in worker_add_file()
1700 status = pt_section_map(cfix->section[sec]); in worker_map()
1704 status = pt_section_unmap(cfix->section[sec]); in worker_map()
1727 errcode = pt_section_map(cfix->section[sec]); in worker_map_limit()
1731 errcode = pt_section_unmap(cfix->section[sec]); in worker_map_limit()
1761 struct pt_section *section; in worker_map_bcache() local
1763 section = cfix->section[sec]; in worker_map_bcache()
1765 status = pt_section_map(section); in worker_map_bcache()
1770 status = pt_section_request_bcache(section); in worker_map_bcache()
1772 (void) pt_section_unmap(section); in worker_map_bcache()
1777 status = pt_section_unmap(section); in worker_map_bcache()
1789 struct pt_section *section; in worker_add_map() local
1796 section = cfix->section[0]; in worker_add_map()
1803 isid = pt_iscache_add(&cfix->iscache, section, laddr); in worker_add_map()
1807 errcode = pt_section_map(section); in worker_add_map()
1811 errcode = pt_section_unmap(section); in worker_add_map()
1822 struct pt_section *section; in worker_add_clear() local
1829 section = cfix->section[0]; in worker_add_clear()
1836 isid = pt_iscache_add(&cfix->iscache, section, laddr); in worker_add_clear()
1858 struct pt_section *section; in worker_add_file_map() local
1871 errcode = pt_iscache_lookup(&cfix->iscache, §ion, in worker_add_file_map()
1879 errcode = pt_section_map(section); in worker_add_file_map()
1883 errcode = pt_section_unmap(section); in worker_add_file_map()