Lines Matching full:we
181 /* We do not zero-initialize the array - a NULL check is in pt_iscache_find_locked()
198 /* We should not have a section without a filename. */ in pt_iscache_find_locked()
257 /* We shouldn't prune the cache unnecessarily. */ in pt_iscache_lru_prune()
263 * Returns a positive integer if we need to prune the cache.
264 * Returns zero if we don't need to prune the cache.
281 /* Don't try to add the section if it is too big. We'd prune it again in pt_isache_lru_new()
316 * Returns a positive integer if we need to prune the cache.
317 * Returns zero if we don't need to prune the cache.
334 /* We found it in the cache. Move it to the front. */ in pt_iscache_lru_add()
342 /* We didn't find it in the cache. Add it. */ in pt_iscache_lru_add()
365 /* We found it in the cache. Remove it. */ in pt_iscache_lru_remove()
377 * Returns a positive integer if we need to prune the cache.
378 * Returns zero if we don't need to prune the cache.
404 * We may choose not to cache it, though, e.g. if it is too big. in pt_iscache_lru_resize()
416 /* If we need to prune anyway, we're done. */ in pt_iscache_lru_resize()
482 /* We do not zero-initialize the array - a NULL check is in pt_iscache_find_section_locked()
491 /* We don't have duplicates. Skip the check. */ in pt_iscache_find_section_locked()
513 /* If we didn't continue, @section == @sec and we have a match. in pt_iscache_find_section_locked()
515 * If we also find a matching load address, we're done. in pt_iscache_find_section_locked()
535 /* We must have a filename for @section. */ in pt_iscache_add()
546 * - in order to add a section, we need to attach to it, which in pt_iscache_add()
549 * - if we are already attached to it, we may receive on-map in pt_iscache_add()
553 * Hence we can't attach to a section while holding the iscache lock. in pt_iscache_add()
556 * We therefore attach to @section first and then lock @iscache. in pt_iscache_add()
559 * from @iscache and replaced by a new matching section. We would want in pt_iscache_add()
562 * After locking @iscache, we therefore check for existing matching in pt_iscache_add()
566 * And for this, we will have to temporarily unlock @iscache again. in pt_iscache_add()
580 /* We may need to repeat this step. in pt_iscache_add()
582 * Typically we don't and this takes only a single iteration. One in pt_iscache_add()
583 * scenario where we do repeat this is when adding a section with an in pt_iscache_add()
586 * We will not find a matching section in pt_iscache_add_file() so we in pt_iscache_add()
590 * For this reduced size, we may now find an existing section, and we in pt_iscache_add()
598 /* Find an existing section matching @section that we'd share in pt_iscache_add()
608 /* We're done if we have not found a matching section. */ in pt_iscache_add()
614 /* We're also done if we found the same section again. in pt_iscache_add()
616 * We further check for a perfect match. In that case, we don't in pt_iscache_add()
640 /* We update @section to share the existing @sec. in pt_iscache_add()
645 * We further need to remove @section from @iscache->lru. in pt_iscache_add()
677 /* We may have received on-map notifications for @section and we in pt_iscache_add()
680 * Since we're still holding a reference to it, no harm has been in pt_iscache_add()
681 * done. But we need to remove it before we drop our reference. in pt_iscache_add()
701 * We will try again in the next iteration. in pt_iscache_add()
708 /* We must never exceed the capacity. */ in pt_iscache_add()
727 * This hands both attach and reference over to @iscache. We will in pt_iscache_add()
853 /* We do not zero-initialize the array - a NULL check is in pt_iscache_clear()
945 /* If we found a perfect match, we will share the existing entry. in pt_iscache_add_file()
947 * If we found a section, we need to grab a reference before we unlock. in pt_iscache_add_file()
949 * If we didn't find a matching section, we create a new section, which in pt_iscache_add_file()
988 /* We unlocked @iscache and hold a reference to @section. */ in pt_iscache_add_file()
991 /* We grab a reference when we add the section. Drop the one we in pt_iscache_add_file()
1029 /* We truncate the read if it gets too big. The user is expected to in pt_iscache_read()