Lines Matching refs:section
175 const struct pt_section *section; in pt_iscache_find_locked() local
184 section = entry->section; in pt_iscache_find_locked()
185 sec_filename = pt_section_filename(section); in pt_iscache_find_locked()
186 sec_offset = pt_section_offset(section); in pt_iscache_find_locked()
187 sec_size = pt_section_size(section); in pt_iscache_find_locked()
220 errcode = pt_section_unmap(trash->section); in pt_iscache_lru_free()
268 struct pt_section *section) in pt_isache_lru_new() argument
277 errcode = pt_section_memsize(section, &memsize); in pt_isache_lru_new()
288 errcode = pt_section_map_share(section); in pt_isache_lru_new()
294 (void) pt_section_unmap(section); in pt_isache_lru_new()
298 lru->section = section; in pt_isache_lru_new()
321 struct pt_section *section) in pt_iscache_lru_add() argument
331 if (lru->section != section) in pt_iscache_lru_add()
343 return pt_isache_lru_new(iscache, section); in pt_iscache_lru_add()
352 const struct pt_section *section) in pt_iscache_lru_remove() argument
362 if (lru->section != section) in pt_iscache_lru_remove()
382 struct pt_section *section, uint64_t memsize) in pt_iscache_lru_resize() argument
391 status = pt_iscache_lru_add(iscache, section); in pt_iscache_lru_resize()
406 if (lru->section != section) { in pt_iscache_lru_resize()
467 const struct pt_section *section; in pt_iscache_find_section_locked() local
474 section = NULL; in pt_iscache_find_section_locked()
485 sec = entry->section; in pt_iscache_find_section_locked()
488 if (sec != section) { in pt_iscache_find_section_locked()
492 if (section) in pt_iscache_find_section_locked()
509 section = sec; in pt_iscache_find_section_locked()
525 struct pt_section *section, uint64_t laddr) in pt_iscache_add() argument
532 if (!iscache || !section) in pt_iscache_add()
536 filename = pt_section_filename(section); in pt_iscache_add()
540 offset = pt_section_offset(section); in pt_iscache_add()
541 size = pt_section_size(section); in pt_iscache_add()
568 errcode = pt_section_get(section); in pt_iscache_add()
572 errcode = pt_section_attach(section, iscache); in pt_iscache_add()
619 sec = entry->section; in pt_iscache_add()
620 if (sec == section) { in pt_iscache_add()
626 errcode = pt_section_detach(section, iscache); in pt_iscache_add()
630 errcode = pt_section_put(section); in pt_iscache_add()
657 errcode = pt_section_detach(section, iscache); in pt_iscache_add()
671 (void) pt_section_put(section); in pt_iscache_add()
673 section = sec; in pt_iscache_add()
683 errcode = pt_iscache_lru_remove(iscache, section); in pt_iscache_add()
685 (void) pt_section_put(section); in pt_iscache_add()
687 section = sec; in pt_iscache_add()
692 errcode = pt_section_put(section); in pt_iscache_add()
695 section = sec; in pt_iscache_add()
703 section = sec; in pt_iscache_add()
732 iscache->entries[idx].section = section; in pt_iscache_add()
745 (void) pt_section_detach(section, iscache); in pt_iscache_add()
751 (void) pt_section_put(section); in pt_iscache_add()
776 struct pt_section **section, uint64_t *laddr, int isid) in pt_iscache_lookup() argument
781 if (!iscache || !section || !laddr) in pt_iscache_lookup()
803 *section = entry->section; in pt_iscache_lookup()
806 status = pt_section_get(*section); in pt_iscache_lookup()
849 struct pt_section *section; in pt_iscache_clear() local
851 section = entries[idx].section; in pt_iscache_clear()
856 errcode = pt_section_detach(section, iscache); in pt_iscache_clear()
860 errcode = pt_section_put(section); in pt_iscache_clear()
928 struct pt_section *section; in pt_iscache_add_file() local
964 section = entry->section; in pt_iscache_add_file()
966 errcode = pt_section_get(section); in pt_iscache_add_file()
974 (void) pt_section_put(section); in pt_iscache_add_file()
982 section = NULL; in pt_iscache_add_file()
983 errcode = pt_mk_section(§ion, filename, offset, size); in pt_iscache_add_file()
989 isid = pt_iscache_add(iscache, section, vaddr); in pt_iscache_add_file()
994 errcode = pt_section_put(section); in pt_iscache_add_file()
1005 struct pt_section *section; in pt_iscache_read() local
1012 errcode = pt_iscache_lookup(iscache, §ion, &laddr, isid); in pt_iscache_read()
1017 (void) pt_section_put(section); in pt_iscache_read()
1023 errcode = pt_section_map(section); in pt_iscache_read()
1025 (void) pt_section_put(section); in pt_iscache_read()
1035 status = pt_section_read(section, buffer, (uint16_t) size, vaddr); in pt_iscache_read()
1037 errcode = pt_section_unmap(section); in pt_iscache_read()
1039 (void) pt_section_put(section); in pt_iscache_read()
1043 errcode = pt_section_put(section); in pt_iscache_read()
1051 struct pt_section *section) in pt_iscache_notify_map() argument
1062 status = pt_iscache_lru_add(iscache, section); in pt_iscache_notify_map()
1075 struct pt_section *section, uint64_t memsize) in pt_iscache_notify_resize() argument
1086 status = pt_iscache_lru_resize(iscache, section, memsize); in pt_iscache_notify_resize()