| /freebsd/lib/libsecureboot/efi/ |
| H A D | efi_variables.c | 91 size_t db_size; in efi_get_certs() local 97 db_size = 0; in efi_get_certs() 103 status = efi_getenv(&ImageSecurityDatabaseGUID, name, database, &db_size); in efi_get_certs() 107 database = malloc(db_size); in efi_get_certs() 111 status = efi_getenv(&ImageSecurityDatabaseGUID, name, database, &db_size); in efi_get_certs() 116 db_size >= list->SignatureListSize && db_size > 0; in efi_get_certs() 117 db_size -= list->SignatureListSize, in efi_get_certs() 175 size_t db_size, header_size, hash_size; in efi_get_forbidden_digests() local 179 db_size = 0; in efi_get_forbidden_digests() 184 status = efi_getenv(&ImageSecurityDatabaseGUID, "dbx", database, &db_size); in efi_get_forbidden_digests() [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | dmu_os.c | 90 ASSERT3U(db->db_size, >=, PAGESIZE); in dmu_write_pages() 93 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_pages() 95 ASSERT(i == 0 || i == numbufs-1 || tocpy == db->db_size); in dmu_write_pages() 97 if (tocpy == db->db_size) { in dmu_write_pages() 100 if (i == numbufs - 1 && bufoff + tocpy < db->db_size) { in dmu_write_pages() 121 if (tocpy == db->db_size) in dmu_write_pages() 159 ASSERT(ISP2(dbp[i]->db_size)); in dmu_read_pages() 160 ASSERT0((dbp[i]->db_offset % dbp[i]->db_size)); in dmu_read_pages() 161 ASSERT3U(dbp[i]->db_size, ==, dbp[0]->db_size); in dmu_read_pages() 182 ASSERT3U(db->db_size, >, PAGE_SIZE); in dmu_read_pages() [all …]
|
| /freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
| H A D | trace_dbuf.h | 51 __field(uint64_t, db_size) \ 65 __entry->db_size = db->db.db_size; \ 75 __entry->db_size = 0; \ 88 __entry->db_size, __entry->db_state, __entry->db_holds
|
| /freebsd/contrib/ofed/libmlx4/ |
| H A D | dbrec.c | 49 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/sys/contrib/openzfs/module/zfs/ |
| H A D | dmu_direct.c | 27 size_t buf_size = db->db.db_size; in make_abd_for_dbuf() 159 dr_head->dr_accounted = db->db.db_size; in dmu_write_direct() 193 db->db.db_size, db->db.db_size, &zp, in dmu_write_direct() 228 zfs_racct_write(spa, db->db.db_size, 1, flags); in dmu_write_abd() 296 size_t len = MIN(size - aoff, db->db.db_size - boff); in dmu_read_abd() 329 zio_t *cio = zio_read(rio, spa, bp, mbuf, db->db.db_size, in dmu_read_abd() 334 zfs_racct_read(spa, db->db.db_size, 1, flags); in dmu_read_abd()
|
| H A D | space_map.c | 104 ASSERT3U(blksz, ==, db->db_size); in space_map_iterate() 211 ASSERT3U(sm->sm_blksz, ==, db->db_size); in space_map_reversed_last_block_entries() 212 ASSERT3U(bufsz, >=, db->db_size); in space_map_reversed_last_block_entries() 447 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_clear() 476 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_add() 559 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg() 596 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg() 601 (db->db_size / sizeof (uint64_t)); in space_map_write_seg() 689 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_impl()
|
| H A D | dbuf.c | 786 uint64_t size = db->db.db_size; in dbuf_evict_one() 1135 ASSERT3U(db->db.db_size, >=, dn->dn_bonuslen); in dbuf_verify() 1141 ASSERT3U(db->db.db_offset, ==, db->db_blkid * db->db.db_size); in dbuf_verify() 1183 int epb __maybe_unused = db->db_parent->db.db_size >> in dbuf_verify() 1213 for (i = 0; i < db->db.db_size >> 3; i++) { in dbuf_verify() 1219 db->db.db_size); in dbuf_verify() 1228 i < db->db.db_size / sizeof (blkptr_t); in dbuf_verify() 1278 return (arc_alloc_buf(spa, db, DBUF_GET_BUFC_TYPE(db), db->db.db_size)); in dbuf_alloc_arcbuf() 1392 memset(buf->b_data, 0, db->db.db_size); in dbuf_read_done() 1424 ASSERT3U(bonuslen, <=, db->db.db_size); in dbuf_read_bonus() [all …]
|
| H A D | dmu.c | 265 if (newsize < 0 || newsize > db_fake->db_size) in dmu_set_bonus() 566 db->db.db_size) { in dmu_buf_hold_array_by_dnode() 1413 tocpy = MIN(db->db_size - bufoff, size); in dmu_read_impl() 1464 tocpy = MIN(db->db_size - bufoff, size); in dmu_write_impl() 1466 ASSERT(i == 0 || i == numbufs-1 || tocpy == db->db_size); in dmu_write_impl() 1468 if (tocpy == db->db_size) { in dmu_write_impl() 1471 if (i == numbufs - 1 && bufoff + tocpy < db->db_size) { in dmu_write_impl() 1483 if (tocpy == db->db_size) in dmu_write_impl() 1598 tocpy = MIN(db->db_size - bufoff, size); in dmu_read_uio_dnode() 1722 tocpy = MIN(db->db_size - bufoff, write_size); in dmu_write_uio_dnode() [all …]
|
| H A D | zap_micro.c | 238 zap->zap_f.zap_block_shift = highbit64(db->db_size) - 1; in mzap_open() 260 zap->zap_m.zap_num_chunks = db->db_size / MZAP_ENT_LEN - 1; in mzap_open() 302 zap->zap_dbuf->db_size); in mzap_open() 324 int sz = zap->zap_dbuf->db_size; in mzap_upgrade()
|
| H A D | dnode_sync.c | 75 ASSERT3U(sizeof (blkptr_t) * nblkptr, <=, db->db.db_size); in dnode_increase_indirection() 185 ASSERT3U(db->db.db_size, ==, 1 << dn->dn_phys->dn_indblkshift); in free_verify() 186 ASSERT3U(off+num, <=, db->db.db_size >> SPA_BLKPTRSHIFT); in free_verify() 209 for (j = 0; j < child->db.db_size >> 3; j++) { in free_verify() 229 for (j = 0; j < child->db.db_size >> 3; j++) { in free_verify() 351 memset(db->db.db_data, 0, db->db.db_size); in free_children()
|
| H A D | bpobj.c | 122 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_free() 309 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_iterate_blkptrs() 735 VERIFY3U(subdb->db_size, >=, in bpobj_enqueue_subobj() 767 VERIFY3U(bps->db_size, >=, numbps * sizeof (blkptr_t)); in bpobj_enqueue_subobj() 905 bpo->bpo_cached_dbuf->db_size) { in bpobj_enqueue()
|
| H A D | zap_fat.c | 110 zap->zap_f.zap_block_shift = highbit64(zap->zap_dbuf->db_size) - 1; in fzap_upgrade() 117 memset(zap->zap_dbuf->db_data, 0, zap->zap_dbuf->db_size); in fzap_upgrade() 477 l->l_bs = highbit64(db->db_size) - 1; in zap_open_leaf() 509 (uintptr_t)zap_leaf_phys(l), ==, l->l_dbuf->db_size); in zap_open_leaf() 540 ASSERT3U(db->db_size, ==, 1 << bs); in zap_get_leaf_byblk()
|
| H A D | ddt_log.c | 283 if (db->db_size < (dlu->dlu_offset + dlu->dlu_reclen)) { in ddt_log_entry() 299 memset(db->db_data, 0, db->db_size); in ddt_log_entry() 610 while (boffset < db->db_size) { in ddt_log_load_one()
|
| H A D | zap_impl.c | 333 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; in zap_lock_impl() 345 db->db_size / MZAP_ENT_LEN - 1; in zap_lock_impl()
|
| H A D | dbuf_stats.c | 80 (u_longlong_t)db->db.db_size, in __dbuf_stats_hash_table_data()
|
| H A D | zfs_sa.c | 77 if (bufsz + ZFS_OLD_ZNODE_PHYS_SIZE <= db->db_size) { in zfs_sa_readlink() 114 ASSERT3U(len, <=, dbp->db_size); in zfs_sa_symlink()
|
| H A D | sa.c | 703 hdl->sa_spill->db_size, &i, &spill_used, &dummy); in sa_build_layouts() 709 hdl->sa_spill->db_size) in sa_build_layouts() 1933 bonus_data_size = hdl->sa_bonus->db_size; in sa_modify_attrs() 1936 hdl->sa_bonus->db_size); in sa_modify_attrs() 1946 spill_data_size = hdl->sa_spill->db_size; in sa_modify_attrs() 1949 hdl->sa_spill->db_size); in sa_modify_attrs()
|
| /freebsd/sys/contrib/openzfs/tests/unit/ |
| H A D | mock_dmu.c | 76 mdb->mdb_db.db_size = mdn->mdn_blksize; in mock_dnode_block_alloc() 139 kmem_free(mdb->mdb_data, mdb->mdb_db.db_size); in mock_dnode_destroy() 256 MIN(size, (size_t)mdb->mdb_db.db_size)); in dmu_object_set_blocksize() 257 kmem_free(mdb->mdb_data, mdb->mdb_db.db_size); in dmu_object_set_blocksize() 260 mdb->mdb_db.db_size = size; in dmu_object_set_blocksize()
|
| /freebsd/sys/dev/qlnx/qlnxr/ |
| H A D | qlnxr_user.h | 39 u32 db_size; member
|
| /freebsd/sys/dev/ntb/ |
| H A D | ntb.h | 391 int ntb_peer_db_addr(device_t ntb, bus_addr_t *db_addr, vm_size_t *db_size);
|
| H A D | ntb.c | 501 ntb_peer_db_addr(device_t ntb, bus_addr_t *db_addr, vm_size_t *db_size) in ntb_peer_db_addr() argument 504 return (NTB_PEER_DB_ADDR(device_get_parent(ntb), db_addr, db_size)); in ntb_peer_db_addr()
|
| H A D | ntb_if.m | 203 vm_size_t *db_size;
|
| /freebsd/sys/geom/part/ |
| H A D | g_part_ldm.c | 121 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/sys/dev/ntb/ntb_hw/ |
| H A D | ntb_hw_plx.c | 1034 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 1039 KASSERT((db_addr != NULL && db_size != NULL), ("must be non-NULL")); in ntb_plx_peer_db_addr() 1048 *db_size = 4; in ntb_plx_peer_db_addr()
|
| H A D | ntb_hw_intel.c | 168 uint8_t db_size; member 531 .db_size = sizeof(uint64_t), 564 .db_size = sizeof(uint16_t), 613 .db_size = sizeof(uint32_t), 644 .db_size = sizeof(uint32_t), 3788 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 3794 KASSERT((db_addr != NULL && db_size != NULL), ("must be non-NULL")); in intel_ntb_peer_db_addr() 3810 *db_size = ntb->reg->db_size; in intel_ntb_peer_db_addr()
|