Home
last modified time | relevance | path

Searched refs:db_size (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDdmu.c262 } else if (newsize < 0 || newsize > db_fake->db_size) { in dmu_set_bonus()
941 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_read_impl()
991 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_impl()
993 ASSERT(i == 0 || i == numbufs-1 || tocpy == db->db_size); in dmu_write_impl()
995 if (tocpy == db->db_size) in dmu_write_impl()
1002 if (tocpy == db->db_size) in dmu_write_impl()
1353 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_read_uio_dnode()
1461 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_uio_dnode()
1463 ASSERT(i == 0 || i == numbufs-1 || tocpy == db->db_size); in dmu_write_uio_dnode()
1465 if (tocpy == db->db_size) in dmu_write_uio_dnode()
[all …]
HDdbuf.c554 db->db.db_size, db); in dbuf_evict_one()
758 ASSERT3U(db->db.db_size, >=, dn->dn_bonuslen); in dbuf_verify()
762 ASSERT3U(db->db.db_size, >=, dn->dn_bonuslen); in dbuf_verify()
765 ASSERT3U(db->db.db_offset, ==, db->db_blkid * db->db.db_size); in dbuf_verify()
802 int epb = db->db_parent->db.db_size >> SPA_BLKPTRSHIFT; in dbuf_verify()
838 for (i = 0; i < db->db.db_size >> 3; i++) { in dbuf_verify()
844 db->db.db_size); in dbuf_verify()
853 i < db->db.db_size / sizeof (blkptr_t); in dbuf_verify()
909 int blksz = db->db.db_size; in dbuf_loan_arcbuf()
985 db, DBUF_GET_BUFC_TYPE(db), db->db.db_size); in dbuf_read_done()
[all …]
HDspace_map.c117 ASSERT3U(blksz, ==, db->db_size); in space_map_iterate()
201 ASSERT3U(sm->sm_blksz, ==, db->db_size); in space_map_reversed_last_block_entries()
202 ASSERT3U(bufsz, >=, db->db_size); in space_map_reversed_last_block_entries()
434 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_clear()
462 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_add()
544 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg()
581 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg()
586 (db->db_size / sizeof (uint64_t)); in space_map_write_seg()
674 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_impl()
HDdnode_sync.c67 ASSERT3U(sizeof (blkptr_t) * nblkptr, <=, db->db.db_size); in dnode_increase_indirection()
171 ASSERT3U(db->db.db_size, ==, 1 << dn->dn_phys->dn_indblkshift); in free_verify()
172 ASSERT3U(off+num, <=, db->db.db_size >> SPA_BLKPTRSHIFT); in free_verify()
199 for (j = 0; j < child->db.db_size >> 3; j++) { in free_verify()
216 for (j = 0; j < child->db.db_size >> 3; j++) { in free_verify()
327 bzero(db->db.db_data, db->db.db_size); in free_children()
HDbpobj.c129 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_free()
244 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_iterate_impl()
303 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_iterate_impl()
445 VERIFY3U(subdb->db_size, >=, in bpobj_enqueue_subobj()
510 bpo->bpo_cached_dbuf->db_size) { in bpobj_enqueue()
HDsa.c562 full_space = (buftype == SA_BONUS) ? DN_MAX_BONUSLEN : db->db_size; in sa_find_sizes()
691 buf_space = hdl->sa_spill->db_size - spillhdrsize; in sa_build_layouts()
693 hdl->sa_spill->db_size) in sa_build_layouts()
707 buf_space = hdl->sa_bonus->db_size - hdrsize; in sa_build_layouts()
743 buf_space = hdl->sa_spill->db_size - spillhdrsize; in sa_build_layouts()
1663 bonus_data_size = hdl->sa_bonus->db_size; in sa_modify_attrs()
1666 hdl->sa_bonus->db_size); in sa_modify_attrs()
1676 spill_data_size = hdl->sa_spill->db_size; in sa_modify_attrs()
1679 hdl->sa_spill->db_size); in sa_modify_attrs()
HDzfs_sa.c78 if (bufsz + ZFS_OLD_ZNODE_PHYS_SIZE <= db->db_size) { in zfs_sa_readlink()
115 ASSERT3U(len, <=, dbp->db_size); in zfs_sa_symlink()
HDzap_micro.c402 zap->zap_f.zap_block_shift = highbit64(db->db_size) - 1; in mzap_open()
425 zap->zap_m.zap_num_chunks = db->db_size / MZAP_ENT_LEN - 1; in mzap_open()
467 zap->zap_dbuf->db_size); in mzap_open()
536 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; in zap_lockdir_impl()
548 db->db_size / MZAP_ENT_LEN - 1; in zap_lockdir_impl()
617 int sz = zap->zap_dbuf->db_size; in mzap_upgrade()
1534 zs->zs_blocksize = zap->zap_dbuf->db_size; in zap_get_stats()
HDzap.c81 zap->zap_f.zap_block_shift = highbit64(zap->zap_dbuf->db_size) - 1; in fzap_upgrade()
88 bzero(zap->zap_dbuf->db_data, zap->zap_dbuf->db_size); in fzap_upgrade()
451 l->l_bs = highbit64(db->db_size) - 1; in zap_open_leaf()
483 (uintptr_t)zap_leaf_phys(l), ==, l->l_dbuf->db_size); in zap_open_leaf()
506 ASSERT3U(db->db_size, ==, 1 << bs); in zap_get_leaf_byblk()
HDdnode.c277 (dn->dn_object % (dn->dn_dbuf->db.db_size >> DNODE_SHIFT))); in dnode_verify()
683 dn->dn_bonus->db.db_size = in dnode_reallocate()
685 ASSERT(dn->dn_bonuslen <= dn->dn_bonus->db.db_size); in dnode_reallocate()
1131 ASSERT3U(db->db.db_size, >=, 1<<DNODE_SHIFT); in dnode_hold_impl()
1132 epb = db->db.db_size >> DNODE_SHIFT; in dnode_hold_impl()
HDspa_history.c103 ASSERT(dbp->db_size >= sizeof (spa_history_phys_t)); in spa_history_create_obj()
HDzap_leaf.c164 l->l_bs = highbit64(l->l_dbuf->db_size) - 1; in zap_leaf_init()
/freebsd-11-stable/contrib/ofed/libmlx4/
HDdbrec.c49 static const int db_size[] = { variable
62 pp = ps / db_size[type]; in __add_page()
111 db = page->buf.buf + (i * 8 * sizeof (long) + (j - 1)) * db_size[type]; in mlx4_alloc_db()
134 i = ((void *) db - page->buf.buf) / db_size[type]; in mlx4_free_db()
/freebsd-11-stable/sys/dev/ntb/
HDntb.h350 int ntb_peer_db_addr(device_t ntb, bus_addr_t *db_addr, vm_size_t *db_size);
HDntb.c480 ntb_peer_db_addr(device_t ntb, bus_addr_t *db_addr, vm_size_t *db_size) in ntb_peer_db_addr() argument
483 return (NTB_PEER_DB_ADDR(device_get_parent(ntb), db_addr, db_size)); in ntb_peer_db_addr()
HDntb_if.m186 vm_size_t *db_size;
/freebsd-11-stable/sys/geom/part/
HDg_part_ldm.c121 uint64_t db_size; /* LDM database size */ member
428 hdr->db_size = be64dec(buf + LDM_PH_DBSIZE_OFF); in ldm_privhdr_parse()
492 hdr.db_size != LDM_DB_SIZE || in ldm_privhdr_check()
503 hdr.db_offset, hdr.db_size, hdr.th_offset[0], in ldm_privhdr_check()
/freebsd-11-stable/sys/dev/ntb/ntb_hw/
HDntb_hw_plx.c975 ntb_plx_peer_db_addr(device_t dev, bus_addr_t *db_addr, vm_size_t *db_size) in ntb_plx_peer_db_addr() argument
980 KASSERT((db_addr != NULL && db_size != NULL), ("must be non-NULL")); in ntb_plx_peer_db_addr()
989 *db_size = 4; in ntb_plx_peer_db_addr()
HDntb_hw_intel.c164 uint8_t db_size; member
505 .db_size = sizeof(uint64_t),
538 .db_size = sizeof(uint16_t),
3008 intel_ntb_peer_db_addr(device_t dev, bus_addr_t *db_addr, vm_size_t *db_size) in intel_ntb_peer_db_addr() argument
3014 KASSERT((db_addr != NULL && db_size != NULL), ("must be non-NULL")); in intel_ntb_peer_db_addr()
3030 *db_size = ntb->reg->db_size; in intel_ntb_peer_db_addr()
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
HDecore.h673 unsigned long db_size; member
895 unsigned long db_size; member
HDecore_vfpf_if.h217 u16 db_size; member
HDecore_sriov.c1619 u8 db_size = DB_ADDR_VF(1, DQ_DEMS_LEGACY) - in ecore_iov_vf_mbx_acquire_resc_cids() local
1649 if (bar_size / db_size < 256) in ecore_iov_vf_mbx_acquire_resc_cids()
1651 (u8)(bar_size / db_size)); in ecore_iov_vf_mbx_acquire_resc_cids()
1836 pfdev_info->db_size = 0; /* @@@ TBD MichalK Vf Doorbells */ in ecore_iov_vf_mbx_acquire()
1903 resp->pfdev_info.db_size, resp->pfdev_info.indices_per_sb, in ecore_iov_vf_mbx_acquire()
/freebsd-11-stable/sbin/fsck_ffs/
HDsuj.c104 int db_size; member
374 if (size != dblk->db_size) { in dblk_read()
378 dblk->db_size = size; in dblk_read()
402 if (dblk->db_dirty == 0 || dblk->db_size == 0) in dblk_write()
405 dblk->db_buf, dblk->db_size) == -1) in dblk_write()
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/ztest/
HDztest.c1321 ASSERT3U(doi.doi_bonus_size, <=, db->db_size); in ztest_bt_bonus()
1788 lr->lr_size = (ztest_random(db->db_size / sizeof (*bbt)) + 1) * in ztest_replay_setattr()
1803 ASSERT3U(lr->lr_size, <=, db->db_size); in ztest_replay_setattr()
1937 ASSERT(db->db_size == size); in ztest_get_data()
5339 ASSERT(db->db_size == blocksize); in ztest_ddt_repair()
5340 ASSERT(ztest_pattern_match(db->db_data, db->db_size, pattern) || in ztest_ddt_repair()
5341 ztest_pattern_match(db->db_data, db->db_size, 0ULL)); in ztest_ddt_repair()
5343 ztest_pattern_set(db->db_data, db->db_size, pattern); in ztest_ddt_repair()
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
HDdmu.h305 uint64_t db_size; /* size of buffer in bytes */ member

12