Lines Matching refs:nOffset
50 storeError PageCache::lookupPageAt (PageHolder & rxPage, sal_uInt32 nOffset) in lookupPageAt() argument
52 OSL_PRECOND(!(nOffset == STORE_PAGE_NULL), "store::PageCache::lookupPageAt(): invalid Offset"); in lookupPageAt()
53 if (nOffset == STORE_PAGE_NULL) in lookupPageAt()
56 return lookupPageAt_Impl (rxPage, nOffset); in lookupPageAt()
59 storeError PageCache::insertPageAt (PageHolder const & rxPage, sal_uInt32 nOffset) in insertPageAt() argument
68 OSL_PRECOND(!(nOffset != offset), "store::PageCache::insertPageAt(): inconsistent Offset"); in insertPageAt()
69 if (nOffset != offset) in insertPageAt()
72 OSL_PRECOND(!(nOffset == STORE_PAGE_NULL), "store::PageCache::insertPageAt(): invalid Offset"); in insertPageAt()
73 if (nOffset == STORE_PAGE_NULL) in insertPageAt()
76 return insertPageAt_Impl (rxPage, nOffset); in insertPageAt()
79 storeError PageCache::updatePageAt (PageHolder const & rxPage, sal_uInt32 nOffset) in updatePageAt() argument
88 OSL_PRECOND(!(nOffset != offset), "store::PageCache::updatePageAt(): inconsistent Offset"); in updatePageAt()
89 if (nOffset != offset) in updatePageAt()
92 OSL_PRECOND(!(nOffset == STORE_PAGE_NULL), "store::PageCache::updatePageAt(): invalid Offset"); in updatePageAt()
93 if (nOffset == STORE_PAGE_NULL) in updatePageAt()
96 return updatePageAt_Impl (rxPage, nOffset); in updatePageAt()
99 storeError PageCache::removePageAt (sal_uInt32 nOffset) in removePageAt() argument
101 OSL_PRECOND(!(nOffset == STORE_PAGE_NULL), "store::PageCache::removePageAt(): invalid Offset"); in removePageAt()
102 if (nOffset == STORE_PAGE_NULL) in removePageAt()
105 return removePageAt_Impl (nOffset); in removePageAt()
131 explicit Entry (PageHolder const & rxPage = PageHolder(), sal_uInt32 nOffset = STORE_PAGE_NULL) in Entry()
132 : m_xPage(rxPage), m_nOffset(nOffset), m_pNext(0) in Entry()
157 Entry * create (PageHolder const & rxPage, sal_uInt32 nOffset);
200 Entry * EntryCache::create (PageHolder const & rxPage, sal_uInt32 nOffset) in create() argument
206 return new(pAddr) Entry (rxPage, nOffset); in create()
283 inline int hash_index_Impl (sal_uInt32 nOffset) in hash_index_Impl() argument
285 return hash_Impl(nOffset, m_hash_shift, m_page_shift, m_hash_size - 1); in hash_index_Impl()
288 Entry * lookup_Impl (Entry * entry, sal_uInt32 nOffset);
295 sal_uInt32 nOffset);
299 sal_uInt32 nOffset);
303 sal_uInt32 nOffset);
306 sal_uInt32 nOffset);
427 Entry * PageCache_Impl::lookup_Impl (Entry * entry, sal_uInt32 nOffset) in lookup_Impl() argument
432 if (entry->m_nOffset == nOffset) in lookup_Impl()
451 sal_uInt32 nOffset) in lookupPageAt_Impl() argument
453 int index = hash_index_Impl(nOffset); in lookupPageAt_Impl()
454 Entry const * entry = lookup_Impl (m_hash_table[index], nOffset); in lookupPageAt_Impl()
472 sal_uInt32 nOffset) in insertPageAt_Impl() argument
474 Entry * entry = EntryCache::get().create (rxPage, nOffset); in insertPageAt_Impl()
478 int index = hash_index_Impl(nOffset); in insertPageAt_Impl()
490 sal_uInt32 nOffset) in updatePageAt_Impl() argument
492 int index = hash_index_Impl(nOffset); in updatePageAt_Impl()
493 Entry * entry = lookup_Impl (m_hash_table[index], nOffset); in updatePageAt_Impl()
502 return insertPageAt_Impl (rxPage, nOffset); in updatePageAt_Impl()
506 sal_uInt32 nOffset) in removePageAt_Impl() argument
508 Entry ** ppEntry = &(m_hash_table[hash_index_Impl(nOffset)]); in removePageAt_Impl()
511 if ((*ppEntry)->m_nOffset == nOffset) in removePageAt_Impl()