Lines Matching refs:section

171 		const struct pt_section *section;  in pt_iscache_find_locked()  local
180 section = entry->section; in pt_iscache_find_locked()
181 sec_filename = pt_section_filename(section); in pt_iscache_find_locked()
182 sec_offset = pt_section_offset(section); in pt_iscache_find_locked()
183 sec_size = pt_section_size(section); in pt_iscache_find_locked()
216 errcode = pt_section_unmap(trash->section); in pt_iscache_lru_free()
264 struct pt_section *section) in pt_isache_lru_new() argument
273 errcode = pt_section_memsize(section, &memsize); in pt_isache_lru_new()
284 errcode = pt_section_map_share(section); in pt_isache_lru_new()
290 (void) pt_section_unmap(section); in pt_isache_lru_new()
294 lru->section = section; in pt_isache_lru_new()
317 struct pt_section *section) in pt_iscache_lru_add() argument
327 if (lru->section != section) in pt_iscache_lru_add()
339 return pt_isache_lru_new(iscache, section); in pt_iscache_lru_add()
348 const struct pt_section *section) in pt_iscache_lru_remove() argument
358 if (lru->section != section) in pt_iscache_lru_remove()
378 struct pt_section *section, uint64_t memsize) in pt_iscache_lru_resize() argument
387 status = pt_iscache_lru_add(iscache, section); in pt_iscache_lru_resize()
402 if (lru->section != section) { in pt_iscache_lru_resize()
463 const struct pt_section *section; in pt_iscache_find_section_locked() local
470 section = NULL; in pt_iscache_find_section_locked()
481 sec = entry->section; in pt_iscache_find_section_locked()
484 if (sec != section) { in pt_iscache_find_section_locked()
488 if (section) in pt_iscache_find_section_locked()
505 section = sec; in pt_iscache_find_section_locked()
521 struct pt_section *section, uint64_t laddr) in pt_iscache_add() argument
528 if (!iscache || !section) in pt_iscache_add()
532 filename = pt_section_filename(section); in pt_iscache_add()
536 offset = pt_section_offset(section); in pt_iscache_add()
537 size = pt_section_size(section); in pt_iscache_add()
564 errcode = pt_section_get(section); in pt_iscache_add()
568 errcode = pt_section_attach(section, iscache); in pt_iscache_add()
615 sec = entry->section; in pt_iscache_add()
616 if (sec == section) { in pt_iscache_add()
622 errcode = pt_section_detach(section, iscache); in pt_iscache_add()
626 errcode = pt_section_put(section); in pt_iscache_add()
653 errcode = pt_section_detach(section, iscache); in pt_iscache_add()
667 (void) pt_section_put(section); in pt_iscache_add()
669 section = sec; in pt_iscache_add()
679 errcode = pt_iscache_lru_remove(iscache, section); in pt_iscache_add()
681 (void) pt_section_put(section); in pt_iscache_add()
683 section = sec; in pt_iscache_add()
688 errcode = pt_section_put(section); in pt_iscache_add()
691 section = sec; in pt_iscache_add()
699 section = sec; in pt_iscache_add()
728 iscache->entries[idx].section = section; in pt_iscache_add()
741 (void) pt_section_detach(section, iscache); in pt_iscache_add()
747 (void) pt_section_put(section); in pt_iscache_add()
772 struct pt_section **section, uint64_t *laddr, int isid) in pt_iscache_lookup() argument
777 if (!iscache || !section || !laddr) in pt_iscache_lookup()
799 *section = entry->section; in pt_iscache_lookup()
802 status = pt_section_get(*section); in pt_iscache_lookup()
845 struct pt_section *section; in pt_iscache_clear() local
847 section = entries[idx].section; in pt_iscache_clear()
852 errcode = pt_section_detach(section, iscache); in pt_iscache_clear()
856 errcode = pt_section_put(section); in pt_iscache_clear()
924 struct pt_section *section; in pt_iscache_add_file() local
960 section = entry->section; in pt_iscache_add_file()
962 errcode = pt_section_get(section); in pt_iscache_add_file()
970 (void) pt_section_put(section); in pt_iscache_add_file()
978 section = pt_mk_section(filename, offset, size); in pt_iscache_add_file()
979 if (!section) in pt_iscache_add_file()
984 isid = pt_iscache_add(iscache, section, vaddr); in pt_iscache_add_file()
989 errcode = pt_section_put(section); in pt_iscache_add_file()
1000 struct pt_section *section; in pt_iscache_read() local
1007 errcode = pt_iscache_lookup(iscache, &section, &laddr, isid); in pt_iscache_read()
1012 (void) pt_section_put(section); in pt_iscache_read()
1018 errcode = pt_section_map(section); in pt_iscache_read()
1020 (void) pt_section_put(section); in pt_iscache_read()
1030 status = pt_section_read(section, buffer, (uint16_t) size, vaddr); in pt_iscache_read()
1032 errcode = pt_section_unmap(section); in pt_iscache_read()
1034 (void) pt_section_put(section); in pt_iscache_read()
1038 errcode = pt_section_put(section); in pt_iscache_read()
1046 struct pt_section *section) in pt_iscache_notify_map() argument
1057 status = pt_iscache_lru_add(iscache, section); in pt_iscache_notify_map()
1070 struct pt_section *section, uint64_t memsize) in pt_iscache_notify_resize() argument
1081 status = pt_iscache_lru_resize(iscache, section, memsize); in pt_iscache_notify_resize()