Searched refs:oaddr (Results 1 – 4 of 4) sorted by relevance
/third_party/iowow/src/fs/tests/ |
D | iwfs_test2.c | 617 off_t oaddr = 0; in test_block_allocation1_impl() local 628 rc = fsm.allocate(&fsm, 3 * bsize, &oaddr, &olen, 0); in test_block_allocation1_impl() 630 CU_ASSERT_EQUAL(oaddr, hoff + 0); in test_block_allocation1_impl() 633 rc = fsm.allocate(&fsm, 4 * bsize, &oaddr, &olen, 0); in test_block_allocation1_impl() 635 CU_ASSERT_EQUAL(oaddr, hoff + 3 * bsize); in test_block_allocation1_impl() 649 rc = fsm.allocate(&fsm, 1 * bsize, &oaddr, &olen, 0); in test_block_allocation1_impl() 651 CU_ASSERT_EQUAL(oaddr, hoff + 1 * bsize); in test_block_allocation1_impl() 656 rc = fsm.deallocate(&fsm, oaddr, 2 * bsize); in test_block_allocation1_impl() 664 oaddr = hoff + 5 * bsize; /* Test a free block location suggestion */ in test_block_allocation1_impl() 665 rc = fsm.allocate(&fsm, 2 * bsize, &oaddr, &olen, 0); in test_block_allocation1_impl() [all …]
|
/third_party/iowow/src/fs/ |
D | iwfsmfile.h | 219 struct IWFS_FSM *f, off_t len, off_t *oaddr, off_t *olen, 239 struct IWFS_FSM *f, off_t nlen, off_t *oaddr, off_t *olen,
|
D | iwfsmfile.c | 1603 static iwrc _fsm_allocate(struct IWFS_FSM *f, off_t len, off_t *oaddr, off_t *olen, iwfs_fsm_aflags… in _fsm_allocate() argument 1617 sbnum = (uint64_t) *oaddr >> fsm->bpow; in _fsm_allocate() 1625 *oaddr = (sbnum << fsm->bpow); in _fsm_allocate() 1631 static iwrc _fsm_reallocate(struct IWFS_FSM *f, off_t nlen, off_t *oaddr, off_t *olen, iwfs_fsm_afl… in _fsm_reallocate() argument 1639 if ((*oaddr & ((1ULL << fsm->bpow) - 1)) || (*olen & ((1ULL << fsm->bpow) - 1))) { in _fsm_reallocate() 1645 uint64_t oaddr_blk = (uint64_t) *oaddr >> fsm->bpow; in _fsm_reallocate() 1656 *oaddr = oaddr_blk << fsm->bpow; in _fsm_reallocate() 1662 RCC(rc, finish, fsm->pool.copy(&fsm->pool, *oaddr, (size_t) *olen, naddr_blk << fsm->bpow)); in _fsm_reallocate() 1665 *oaddr = naddr_blk << fsm->bpow; in _fsm_reallocate()
|
/third_party/iowow/src/kv/ |
D | iwkv.c | 3541 off_t oaddr = 0; in iwkv_db_set_meta() local 3547 rc = fsm->allocate(fsm, asz, &oaddr, &olen, IWKV_FSM_ALLOC_FLAGS); in iwkv_db_set_meta() 3549 db->meta_blk = ADDR2BLK(oaddr); in iwkv_db_set_meta()
|