Lines Matching refs:iwrc
67 IW_INLINE iwrc _exfile_wlock(IWFS_EXT *f) { in _exfile_wlock()
79 IW_INLINE iwrc _exfile_rlock(IWFS_EXT *f) { in _exfile_rlock()
91 IW_INLINE iwrc _exfile_unlock(IWFS_EXT *f) { in _exfile_unlock()
103 IW_INLINE iwrc _exfile_unlock2(EXF *impl) { in _exfile_unlock2()
114 static iwrc _exfile_destroylocks(EXF *impl) { in _exfile_destroylocks()
123 static iwrc _exfile_initmmap_slot_lw(struct IWFS_EXT *f, MMAPSLOT *s) { in _exfile_initmmap_slot_lw()
159 iwrc rc = iwrc_set_errno(IW_ERROR_ERRNO, errno); in _exfile_initmmap_slot_lw()
167 static iwrc _exfile_initmmap_lw(struct IWFS_EXT *f) { in _exfile_initmmap_lw()
169 iwrc rc = 0; in _exfile_initmmap_lw()
183 static iwrc _exfile_truncate_lw(struct IWFS_EXT *f, off_t size) { in _exfile_truncate_lw()
185 iwrc rc = 0; in _exfile_truncate_lw()
237 static iwrc _exfile_ensure_size_lw(struct IWFS_EXT *f, off_t sz) { in _exfile_ensure_size_lw()
256 static iwrc _exfile_sync(struct IWFS_EXT *f, iwfs_sync_flags flags) { in _exfile_sync()
257 iwrc rc = _exfile_rlock(f); in _exfile_sync()
275 static iwrc _exfile_write(struct IWFS_EXT *f, off_t off, const void *buf, size_t siz, size_t *sp) { in _exfile_write()
288 iwrc rc = _exfile_rlock(f); in _exfile_write()
339 static iwrc _exfile_read(struct IWFS_EXT *f, off_t off, void *buf, size_t siz, size_t *sp) { in _exfile_read()
348 iwrc rc = _exfile_rlock(f); in _exfile_read()
389 static iwrc _exfile_state(struct IWFS_EXT *f, IWFS_EXT_STATE *state) { in _exfile_state()
390 iwrc rc = _exfile_rlock(f); in _exfile_state()
399 static iwrc _exfile_copy(struct IWFS_EXT *f, off_t off, size_t siz, off_t noff) { in _exfile_copy()
400 iwrc rc = _exfile_rlock(f); in _exfile_copy()
419 static iwrc _exfile_remove_mmap_lw(struct IWFS_EXT *f, off_t off) { in _exfile_remove_mmap_lw()
420 iwrc rc = 0; in _exfile_remove_mmap_lw()
456 static iwrc _exfile_close(struct IWFS_EXT *f) { in _exfile_close()
460 iwrc rc = _exfile_wlock(f); in _exfile_close()
483 static iwrc _exfile_ensure_size(struct IWFS_EXT *f, off_t sz) { in _exfile_ensure_size()
484 iwrc rc = _exfile_rlock(f); in _exfile_ensure_size()
498 static iwrc _exfile_truncate(struct IWFS_EXT *f, off_t sz) { in _exfile_truncate()
499 iwrc rc = _exfile_wlock(f); in _exfile_truncate()
506 static iwrc _exfile_add_mmap_lw(struct IWFS_EXT *f, off_t off, size_t maxlen, iwfs_ext_mmap_opts_t … in _exfile_add_mmap_lw()
508 iwrc rc = 0; in _exfile_add_mmap_lw()
588 static iwrc _exfile_add_mmap(struct IWFS_EXT *f, off_t off, size_t maxlen, iwfs_ext_mmap_opts_t mmo… in _exfile_add_mmap()
590 iwrc rc = _exfile_wlock(f); in _exfile_add_mmap()
597 iwrc _exfile_acquire_mmap(struct IWFS_EXT *f, off_t off, uint8_t **mm, size_t *sp) { in _exfile_acquire_mmap()
599 iwrc rc = _exfile_rlock(f); in _exfile_acquire_mmap()
628 iwrc _exfile_probe_mmap_lr(struct IWFS_EXT *f, off_t off, uint8_t **mm, size_t *sp) { in _exfile_probe_mmap_lr()
634 iwrc rc = 0; in _exfile_probe_mmap_lr()
657 iwrc _exfile_probe_mmap(struct IWFS_EXT *f, off_t off, uint8_t **mm, size_t *sp) { in _exfile_probe_mmap()
658 iwrc rc = _exfile_rlock(f); in _exfile_probe_mmap()
665 iwrc _exfile_release_mmap(struct IWFS_EXT *f) { in _exfile_release_mmap()
670 static iwrc _exfile_remove_mmap(struct IWFS_EXT *f, off_t off) { in _exfile_remove_mmap()
672 iwrc rc = _exfile_wlock(f); in _exfile_remove_mmap()
679 static iwrc _exfile_sync_mmap_lr(struct IWFS_EXT *f, off_t off, iwfs_sync_flags flags) { in _exfile_sync_mmap_lr()
681 iwrc rc = 0; in _exfile_sync_mmap_lr()
707 static iwrc _exfile_sync_mmap(struct IWFS_EXT *f, off_t off, iwfs_sync_flags flags) { in _exfile_sync_mmap()
708 iwrc rc = _exfile_rlock(f); in _exfile_sync_mmap()
715 static iwrc _exfile_remap_all(struct IWFS_EXT *f) { in _exfile_remap_all()
717 iwrc rc = _exfile_wlock(f); in _exfile_remap_all()
779 static iwrc _exfile_initlocks(IWFS_EXT *f) { in _exfile_initlocks()
799 iwrc iwfs_exfile_open(IWFS_EXT *f, const IWFS_EXT_OPTS *opts) { in iwfs_exfile_open()
802 iwrc rc = 0; in iwfs_exfile_open()
910 iwrc iwfs_exfile_init(void) { in iwfs_exfile_init()
912 iwrc rc = iw_init(); in iwfs_exfile_init()