Lines Matching refs: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
101 section = malloc(sizeof(*section)); in pt_mk_section()
102 if (section) { in pt_mk_section()
105 memset(section, 0, sizeof(*section)); in pt_mk_section()
106 section->filename = filename; in pt_mk_section()
107 section->offset = offset; in pt_mk_section()
108 section->size = size; in pt_mk_section()
109 section->ucount = 1; in pt_mk_section()
111 for (idx = 0; idx < sizeof(section->content); ++idx) in pt_mk_section()
112 section->content[idx] = idx; in pt_mk_section()
118 errcode = mtx_init(§ion->lock, mtx_plain); in pt_mk_section()
120 free(section); in pt_mk_section()
121 section = NULL; in pt_mk_section()
124 errcode = mtx_init(§ion->alock, mtx_plain); in pt_mk_section()
126 mtx_destroy(§ion->lock); in pt_mk_section()
127 free(section); in pt_mk_section()
128 section = NULL; in pt_mk_section()
134 return section; in pt_mk_section()
137 static int pt_section_lock(struct pt_section *section) in pt_section_lock() argument
139 if (!section) in pt_section_lock()
146 errcode = mtx_lock(§ion->lock); in pt_section_lock()
155 static int pt_section_unlock(struct pt_section *section) in pt_section_unlock() argument
157 if (!section) in pt_section_unlock()
164 errcode = mtx_unlock(§ion->lock); in pt_section_unlock()
173 static int pt_section_lock_attach(struct pt_section *section) in pt_section_lock_attach() argument
175 if (!section) in pt_section_lock_attach()
182 errcode = mtx_lock(§ion->alock); in pt_section_lock_attach()
191 static int pt_section_unlock_attach(struct pt_section *section) in pt_section_unlock_attach() argument
193 if (!section) in pt_section_unlock_attach()
200 errcode = mtx_unlock(§ion->alock); in pt_section_unlock_attach()
209 int pt_section_get(struct pt_section *section) in pt_section_get() argument
213 if (!section) in pt_section_get()
216 errcode = pt_section_lock(section); in pt_section_get()
220 ucount = ++section->ucount; in pt_section_get()
222 errcode = pt_section_unlock(section); in pt_section_get()
232 int pt_section_put(struct pt_section *section) in pt_section_put() argument
236 if (!section) in pt_section_put()
239 errcode = pt_section_lock(section); in pt_section_put()
243 ucount = --section->ucount; in pt_section_put()
245 errcode = pt_section_unlock(section); in pt_section_put()
251 mtx_destroy(§ion->alock); in pt_section_put()
252 mtx_destroy(§ion->lock); in pt_section_put()
254 free(section); in pt_section_put()
260 int pt_section_attach(struct pt_section *section, in pt_section_attach() argument
265 if (!section || !iscache) in pt_section_attach()
268 errcode = pt_section_lock_attach(section); in pt_section_attach()
272 ucount = section->ucount; in pt_section_attach()
273 acount = section->acount; in pt_section_attach()
275 if (section->iscache || !ucount) in pt_section_attach()
278 section->iscache = iscache; in pt_section_attach()
279 section->acount = 1; in pt_section_attach()
281 return pt_section_unlock_attach(section); in pt_section_attach()
286 (void) pt_section_unlock_attach(section); in pt_section_attach()
293 if (section->iscache != iscache) in pt_section_attach()
296 section->acount = acount; in pt_section_attach()
298 return pt_section_unlock_attach(section); in pt_section_attach()
301 (void) pt_section_unlock_attach(section); in pt_section_attach()
305 int pt_section_detach(struct pt_section *section, in pt_section_detach() argument
310 if (!section || !iscache) in pt_section_detach()
313 errcode = pt_section_lock_attach(section); in pt_section_detach()
317 if (section->iscache != iscache) in pt_section_detach()
320 acount = section->acount; in pt_section_detach()
325 ucount = section->ucount; in pt_section_detach()
329 section->acount = acount; in pt_section_detach()
331 section->iscache = NULL; in pt_section_detach()
333 return pt_section_unlock_attach(section); in pt_section_detach()
336 (void) pt_section_unlock_attach(section); in pt_section_detach()
340 int pt_section_map(struct pt_section *section) in pt_section_map() argument
345 if (!section) in pt_section_map()
348 errcode = pt_section_map_share(section); in pt_section_map()
352 errcode = pt_section_lock_attach(section); in pt_section_map()
357 iscache = section->iscache; in pt_section_map()
359 status = pt_iscache_notify_map(iscache, section); in pt_section_map()
361 errcode = pt_section_unlock_attach(section); in pt_section_map()
366 int pt_section_map_share(struct pt_section *section) in pt_section_map_share() argument
370 if (!section) in pt_section_map_share()
373 errcode = pt_section_lock(section); in pt_section_map_share()
377 mcount = ++section->mcount; in pt_section_map_share()
379 errcode = pt_section_unlock(section); in pt_section_map_share()
389 int pt_section_unmap(struct pt_section *section) in pt_section_unmap() argument
393 if (!section) in pt_section_unmap()
396 errcode = pt_section_lock(section); in pt_section_unmap()
400 section->bcsize = 0ull; in pt_section_unmap()
401 mcount = --section->mcount; in pt_section_unmap()
403 errcode = pt_section_unlock(section); in pt_section_unmap()
413 int pt_section_request_bcache(struct pt_section *section) in pt_section_request_bcache() argument
419 if (!section) in pt_section_request_bcache()
422 errcode = pt_section_lock_attach(section); in pt_section_request_bcache()
426 errcode = pt_section_lock(section); in pt_section_request_bcache()
430 if (section->bcsize) in pt_section_request_bcache()
433 section->bcsize = section->size * 3; in pt_section_request_bcache()
434 memsize = section->size + section->bcsize; in pt_section_request_bcache()
436 errcode = pt_section_unlock(section); in pt_section_request_bcache()
440 iscache = section->iscache; in pt_section_request_bcache()
442 errcode = pt_iscache_notify_resize(iscache, section, memsize); in pt_section_request_bcache()
447 return pt_section_unlock_attach(section); in pt_section_request_bcache()
451 (void) pt_section_unlock(section); in pt_section_request_bcache()
454 (void) pt_section_unlock_attach(section); in pt_section_request_bcache()
458 const char *pt_section_filename(const struct pt_section *section) in pt_section_filename() argument
460 if (!section) in pt_section_filename()
463 return section->filename; in pt_section_filename()
466 uint64_t pt_section_offset(const struct pt_section *section) in pt_section_offset() argument
468 if (!section) in pt_section_offset()
471 return section->offset; in pt_section_offset()
474 uint64_t pt_section_size(const struct pt_section *section) in pt_section_size() argument
476 if (!section) in pt_section_size()
479 return section->size; in pt_section_size()
482 int pt_section_memsize(struct pt_section *section, uint64_t *size) in pt_section_memsize() argument
484 if (!section || !size) in pt_section_memsize()
487 *size = section->mcount ? section->size + section->bcsize : 0ull; in pt_section_memsize()
492 int pt_section_read(const struct pt_section *section, uint8_t *buffer, in pt_section_read() argument
497 if (!section || !buffer) in pt_section_read()
502 max = sizeof(section->content); in pt_section_read()
513 memcpy(buffer, §ion->content[begin], (size_t) (end - begin)); in pt_section_read()
538 struct pt_section *section[num_sections]; member
551 memset(cfix->section, 0, sizeof(cfix->section)); in dfix_init()
554 struct pt_section *section; in dfix_init() local
556 section = pt_mk_section("some-filename", in dfix_init()
559 ptu_ptr(section); in dfix_init()
561 cfix->section[idx] = section; in dfix_init()
588 status = pt_iscache_add(&cfix->iscache, cfix->section[idx], in sfix_init()
608 ptu_int_eq(cfix->section[idx]->ucount, 1); in cfix_fini()
609 ptu_int_eq(cfix->section[idx]->acount, 0); in cfix_fini()
610 ptu_int_eq(cfix->section[idx]->mcount, 0); in cfix_fini()
611 ptu_null(cfix->section[idx]->iscache); in cfix_fini()
613 errcode = pt_section_put(cfix->section[idx]); in cfix_fini()
651 struct pt_section section; in add_null() local
654 errcode = pt_iscache_add(NULL, §ion, 0ull); in add_null()
676 struct pt_section *section; in lookup_null() local
680 errcode = pt_iscache_lookup(NULL, §ion, &laddr, 0); in lookup_null()
686 errcode = pt_iscache_lookup(&iscache, §ion, NULL, 0); in lookup_null()
777 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add()
781 ptu_int_eq(cfix->section[0]->ucount, 2); in add()
782 ptu_int_eq(cfix->section[0]->acount, 1); in add()
790 struct pt_section section; in add_no_name() local
793 memset(§ion, 0, sizeof(section)); in add_no_name()
795 errcode = pt_iscache_add(&cfix->iscache, §ion, 0ull); in add_no_name()
813 struct pt_section *section; in find() local
816 section = cfix->section[0]; in find()
817 ptu_ptr(section); in find()
819 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find()
822 found = pt_iscache_find(&cfix->iscache, section->filename, in find()
823 section->offset, section->size, 0ull); in find()
831 struct pt_section *section; in find_empty() local
834 section = cfix->section[0]; in find_empty()
835 ptu_ptr(section); in find_empty()
837 found = pt_iscache_find(&cfix->iscache, section->filename, in find_empty()
838 section->offset, section->size, 0ull); in find_empty()
846 struct pt_section *section; in find_bad_filename() local
849 section = cfix->section[0]; in find_bad_filename()
850 ptu_ptr(section); in find_bad_filename()
852 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_filename()
856 section->offset, section->size, 0ull); in find_bad_filename()
874 struct pt_section *section; in find_bad_offset() local
877 section = cfix->section[0]; in find_bad_offset()
878 ptu_ptr(section); in find_bad_offset()
880 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_offset()
883 found = pt_iscache_find(&cfix->iscache, section->filename, 0ull, in find_bad_offset()
884 section->size, 0ull); in find_bad_offset()
892 struct pt_section *section; in find_bad_size() local
895 section = cfix->section[0]; in find_bad_size()
896 ptu_ptr(section); in find_bad_size()
898 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_size()
901 found = pt_iscache_find(&cfix->iscache, section->filename, in find_bad_size()
902 section->offset, 0ull, 0ull); in find_bad_size()
910 struct pt_section *section; in find_bad_laddr() local
913 section = cfix->section[0]; in find_bad_laddr()
914 ptu_ptr(section); in find_bad_laddr()
916 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in find_bad_laddr()
919 found = pt_iscache_find(&cfix->iscache, section->filename, in find_bad_laddr()
920 section->offset, section->size, 1ull); in find_bad_laddr()
928 struct pt_section *section; in lookup() local
932 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in lookup()
935 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, isid); in lookup()
937 ptu_ptr_eq(section, cfix->section[0]); in lookup()
940 errcode = pt_section_put(section); in lookup()
948 struct pt_section *section; in lookup_bad_isid() local
952 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in lookup_bad_isid()
955 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, 0); in lookup_bad_isid()
958 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, -isid); in lookup_bad_isid()
961 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, isid + 1); in lookup_bad_isid()
979 struct pt_section *section; in clear_find() local
982 section = cfix->section[0]; in clear_find()
983 ptu_ptr(section); in clear_find()
985 isid = pt_iscache_add(&cfix->iscache, section, 0ull); in clear_find()
992 found = pt_iscache_find(&cfix->iscache, section->filename, in clear_find()
993 section->offset, section->size, 0ull); in clear_find()
1001 struct pt_section *section; in clear_lookup() local
1005 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in clear_lookup()
1011 errcode = pt_iscache_lookup(&cfix->iscache, §ion, &laddr, isid); in clear_lookup()
1021 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_twice()
1024 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_twice()
1037 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_same()
1040 cfix->section[1]->offset = cfix->section[0]->offset; in add_same()
1041 cfix->section[1]->size = cfix->section[0]->size; in add_same()
1043 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 0ull); in add_same()
1057 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_twice_different_laddr()
1060 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[0], 1ull); in add_twice_different_laddr()
1067 ptu_int_eq(cfix->section[0]->ucount, 3); in add_twice_different_laddr()
1068 ptu_int_eq(cfix->section[0]->acount, 2); in add_twice_different_laddr()
1078 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_same_different_laddr()
1081 cfix->section[1]->offset = cfix->section[0]->offset; in add_same_different_laddr()
1082 cfix->section[1]->size = cfix->section[0]->size; in add_same_different_laddr()
1084 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 1ull); in add_same_different_laddr()
1098 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull); in add_different_same_laddr()
1101 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 0ull); in add_different_same_laddr()
1165 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read()
1182 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read_truncate()
1199 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read_bad_vaddr()
1214 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in read_bad_isid()
1229 cfix->iscache.limit = cfix->section[0]->size; in lru_map()
1233 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map()
1236 status = pt_section_map(cfix->section[0]); in lru_map()
1239 status = pt_section_unmap(cfix->section[0]); in lru_map()
1243 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_map()
1245 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size); in lru_map()
1255 cfix->iscache.limit = cfix->section[0]->size; in lru_read()
1259 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_read()
1266 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_read()
1268 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size); in lru_read()
1277 cfix->iscache.limit = 2 * cfix->section[0]->size; in lru_map_nodup()
1281 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_nodup()
1284 status = pt_section_map(cfix->section[0]); in lru_map_nodup()
1287 status = pt_section_unmap(cfix->section[0]); in lru_map_nodup()
1290 status = pt_section_map(cfix->section[0]); in lru_map_nodup()
1293 status = pt_section_unmap(cfix->section[0]); in lru_map_nodup()
1297 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_map_nodup()
1299 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size); in lru_map_nodup()
1308 cfix->iscache.limit = cfix->section[0]->size - 1; in lru_map_too_big()
1312 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_too_big()
1315 status = pt_section_map(cfix->section[0]); in lru_map_too_big()
1318 status = pt_section_unmap(cfix->section[0]); in lru_map_too_big()
1331 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_map_add_front()
1335 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_add_front()
1338 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_map_add_front()
1341 status = pt_section_map(cfix->section[0]); in lru_map_add_front()
1344 status = pt_section_unmap(cfix->section[0]); in lru_map_add_front()
1347 status = pt_section_map(cfix->section[1]); in lru_map_add_front()
1350 status = pt_section_unmap(cfix->section[1]); in lru_map_add_front()
1354 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]); in lru_map_add_front()
1356 ptu_ptr_eq(cfix->iscache.lru->next->section, cfix->section[0]); in lru_map_add_front()
1359 cfix->section[0]->size + cfix->section[1]->size); in lru_map_add_front()
1368 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_map_move_front()
1372 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_move_front()
1375 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_map_move_front()
1378 status = pt_section_map(cfix->section[0]); in lru_map_move_front()
1381 status = pt_section_unmap(cfix->section[0]); in lru_map_move_front()
1384 status = pt_section_map(cfix->section[1]); in lru_map_move_front()
1387 status = pt_section_unmap(cfix->section[1]); in lru_map_move_front()
1390 status = pt_section_map(cfix->section[0]); in lru_map_move_front()
1393 status = pt_section_unmap(cfix->section[0]); in lru_map_move_front()
1397 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_map_move_front()
1399 ptu_ptr_eq(cfix->iscache.lru->next->section, cfix->section[1]); in lru_map_move_front()
1402 cfix->section[0]->size + cfix->section[1]->size); in lru_map_move_front()
1411 cfix->iscache.limit = cfix->section[0]->size + in lru_map_evict()
1412 cfix->section[1]->size - 1; in lru_map_evict()
1416 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_map_evict()
1419 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_map_evict()
1422 status = pt_section_map(cfix->section[0]); in lru_map_evict()
1425 status = pt_section_unmap(cfix->section[0]); in lru_map_evict()
1428 status = pt_section_map(cfix->section[1]); in lru_map_evict()
1431 status = pt_section_unmap(cfix->section[1]); in lru_map_evict()
1435 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]); in lru_map_evict()
1437 ptu_uint_eq(cfix->iscache.used, cfix->section[1]->size); in lru_map_evict()
1446 cfix->iscache.limit = 4 * cfix->section[0]->size + in lru_bcache_evict()
1447 cfix->section[1]->size - 1; in lru_bcache_evict()
1451 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_bcache_evict()
1454 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_bcache_evict()
1457 status = pt_section_map(cfix->section[0]); in lru_bcache_evict()
1460 status = pt_section_unmap(cfix->section[0]); in lru_bcache_evict()
1463 status = pt_section_map(cfix->section[1]); in lru_bcache_evict()
1466 status = pt_section_unmap(cfix->section[1]); in lru_bcache_evict()
1469 status = pt_section_request_bcache(cfix->section[0]); in lru_bcache_evict()
1473 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]); in lru_bcache_evict()
1475 ptu_uint_eq(cfix->iscache.used, 4 * cfix->section[0]->size); in lru_bcache_evict()
1484 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_bcache_clear()
1488 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_bcache_clear()
1491 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_bcache_clear()
1494 status = pt_section_map(cfix->section[0]); in lru_bcache_clear()
1497 status = pt_section_unmap(cfix->section[0]); in lru_bcache_clear()
1500 status = pt_section_map(cfix->section[1]); in lru_bcache_clear()
1503 status = pt_section_unmap(cfix->section[1]); in lru_bcache_clear()
1506 status = pt_section_request_bcache(cfix->section[0]); in lru_bcache_clear()
1519 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size; in lru_limit_evict()
1523 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_limit_evict()
1526 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull); in lru_limit_evict()
1529 status = pt_section_map(cfix->section[0]); in lru_limit_evict()
1532 status = pt_section_unmap(cfix->section[0]); in lru_limit_evict()
1535 status = pt_section_map(cfix->section[1]); in lru_limit_evict()
1538 status = pt_section_unmap(cfix->section[1]); in lru_limit_evict()
1542 cfix->section[0]->size + in lru_limit_evict()
1543 cfix->section[1]->size - 1); in lru_limit_evict()
1547 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]); in lru_limit_evict()
1549 ptu_uint_eq(cfix->iscache.used, cfix->section[1]->size); in lru_limit_evict()
1558 cfix->iscache.limit = cfix->section[0]->size; in lru_clear()
1562 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull); in lru_clear()
1565 status = pt_section_map(cfix->section[0]); in lru_clear()
1568 status = pt_section_unmap(cfix->section[0]); in lru_clear()
1596 struct pt_section *section; in worker_add() local
1601 cfix->section[sec], laddr); in worker_add()
1605 errcode = pt_iscache_lookup(&cfix->iscache, §ion, in worker_add()
1619 if (section->offset != cfix->section[sec]->offset) in worker_add()
1622 if (section->size != cfix->section[sec]->size) in worker_add()
1625 errcode = pt_section_put(section); in worker_add()
1652 struct pt_section *section; in worker_add_file() local
1661 errcode = pt_iscache_lookup(&cfix->iscache, §ion, in worker_add_file()
1669 if (section->offset != offset) in worker_add_file()
1672 if (section->size != size) in worker_add_file()
1675 errcode = pt_section_put(section); in worker_add_file()
1696 status = pt_section_map(cfix->section[sec]); in worker_map()
1700 status = pt_section_unmap(cfix->section[sec]); in worker_map()
1723 errcode = pt_section_map(cfix->section[sec]); in worker_map_limit()
1727 errcode = pt_section_unmap(cfix->section[sec]); in worker_map_limit()
1757 struct pt_section *section; in worker_map_bcache() local
1759 section = cfix->section[sec]; in worker_map_bcache()
1761 status = pt_section_map(section); in worker_map_bcache()
1766 status = pt_section_request_bcache(section); in worker_map_bcache()
1768 (void) pt_section_unmap(section); in worker_map_bcache()
1773 status = pt_section_unmap(section); in worker_map_bcache()
1785 struct pt_section *section; in worker_add_map() local
1792 section = cfix->section[0]; in worker_add_map()
1799 isid = pt_iscache_add(&cfix->iscache, section, laddr); in worker_add_map()
1803 errcode = pt_section_map(section); in worker_add_map()
1807 errcode = pt_section_unmap(section); in worker_add_map()
1818 struct pt_section *section; in worker_add_clear() local
1825 section = cfix->section[0]; in worker_add_clear()
1832 isid = pt_iscache_add(&cfix->iscache, section, laddr); in worker_add_clear()
1854 struct pt_section *section; in worker_add_file_map() local
1867 errcode = pt_iscache_lookup(&cfix->iscache, §ion, in worker_add_file_map()
1875 errcode = pt_section_map(section); in worker_add_file_map()
1879 errcode = pt_section_unmap(section); in worker_add_file_map()