Lines Matching refs:chk_proxy

84     H5O_chunk_proxy_t *chk_proxy = NULL; /* Proxy for chunk, to mark it dirty in the cache */  in H5O__chunk_add()  local
98 if (NULL == (chk_proxy = H5FL_CALLOC(H5O_chunk_proxy_t))) in H5O__chunk_add()
106 chk_proxy->f = f; in H5O__chunk_add()
107 chk_proxy->oh = oh; in H5O__chunk_add()
108 chk_proxy->chunkno = idx; in H5O__chunk_add()
114 chk_proxy->fd_parent = cont_chk_proxy; in H5O__chunk_add()
118 if (H5AC_insert_entry(f, H5AC_OHDR_CHK, oh->chunk[idx].addr, chk_proxy, H5AC__NO_FLAGS_SET) < 0) in H5O__chunk_add()
121 chk_proxy = NULL; in H5O__chunk_add()
126 if (chk_proxy && H5O__chunk_dest(chk_proxy) < 0) in H5O__chunk_add()
152 H5O_chunk_proxy_t *chk_proxy = NULL; /* Proxy for protected chunk */ in H5O__chunk_protect() local
166 if (NULL == (chk_proxy = H5FL_CALLOC(H5O_chunk_proxy_t))) in H5O__chunk_protect()
174 chk_proxy->f = f; in H5O__chunk_protect()
175 chk_proxy->oh = oh; in H5O__chunk_protect()
176 chk_proxy->chunkno = idx; in H5O__chunk_protect()
189 … if (NULL == (chk_proxy = (H5O_chunk_proxy_t *)H5AC_protect(f, H5AC_OHDR_CHK, oh->chunk[idx].addr, in H5O__chunk_protect()
194 HDassert(chk_proxy->oh == oh); in H5O__chunk_protect()
195 HDassert(chk_proxy->chunkno == idx); in H5O__chunk_protect()
199 ret_value = chk_proxy; in H5O__chunk_protect()
204 if (0 == idx && chk_proxy && H5O__chunk_dest(chk_proxy) < 0) in H5O__chunk_protect()
223 H5O__chunk_unprotect(H5F_t *f, H5O_chunk_proxy_t *chk_proxy, hbool_t dirtied) in H5O__chunk_unprotect() argument
231 HDassert(chk_proxy); in H5O__chunk_unprotect()
234 if (0 == chk_proxy->chunkno) { in H5O__chunk_unprotect()
238 if (H5AC_mark_entry_dirty(chk_proxy->oh) < 0) in H5O__chunk_unprotect()
243 if (H5O__dec_rc(chk_proxy->oh) < 0) in H5O__chunk_unprotect()
247 chk_proxy = H5FL_FREE(H5O_chunk_proxy_t, chk_proxy); in H5O__chunk_unprotect()
251 … if (H5AC_unprotect(f, H5AC_OHDR_CHK, chk_proxy->oh->chunk[chk_proxy->chunkno].addr, chk_proxy, in H5O__chunk_unprotect()
273 H5O__chunk_resize(H5O_t *oh, H5O_chunk_proxy_t *chk_proxy) in H5O__chunk_resize() argument
281 HDassert(chk_proxy); in H5O__chunk_resize()
284 if (0 == chk_proxy->chunkno) { in H5O__chunk_resize()
291 if (H5AC_resize_entry(chk_proxy, oh->chunk[chk_proxy->chunkno].size) < 0) in H5O__chunk_resize()
314 H5O_chunk_proxy_t *chk_proxy = NULL; /* Proxy for chunk, to mark it dirty in the cache */ in H5O__chunk_update_idx() local
334 … if (NULL == (chk_proxy = (H5O_chunk_proxy_t *)H5AC_protect(f, H5AC_OHDR_CHK, oh->chunk[idx].addr, in H5O__chunk_update_idx()
339 chk_proxy->chunkno = idx; in H5O__chunk_update_idx()
342 if (H5AC_unprotect(f, H5AC_OHDR_CHK, oh->chunk[idx].addr, chk_proxy, H5AC__DIRTIED_FLAG) < 0) in H5O__chunk_update_idx()
364 …H5O_chunk_proxy_t *chk_proxy = NULL; /* Proxy for chunk, to mark it dirty in the c… in H5O__chunk_delete() local
377 if (NULL == (chk_proxy = H5O__chunk_protect(f, oh, idx))) in H5O__chunk_delete()
386 …if (chk_proxy && H5AC_unprotect(f, H5AC_OHDR_CHK, oh->chunk[idx].addr, chk_proxy, cache_flags) < 0) in H5O__chunk_delete()
405 H5O__chunk_dest(H5O_chunk_proxy_t *chk_proxy) in H5O__chunk_dest() argument
412 HDassert(chk_proxy); in H5O__chunk_dest()
415 if (chk_proxy->oh && H5O__dec_rc(chk_proxy->oh) < 0) in H5O__chunk_dest()
419 chk_proxy = H5FL_FREE(H5O_chunk_proxy_t, chk_proxy); in H5O__chunk_dest()