/freebsd/lib/libsecureboot/efi/ |
H A D | efi_variables.c | 90 size_t db_size; in efi_get_certs() local 96 db_size = 0; in efi_get_certs() 102 status = efi_getenv(&ImageSecurityDatabaseGUID, name, database, &db_size); in efi_get_certs() 106 database = malloc(db_size); in efi_get_certs() 110 status = efi_getenv(&ImageSecurityDatabaseGUID, name, database, &db_size); in efi_get_certs() 115 db_size >= list->SignatureListSize && db_size > 0; in efi_get_certs() 116 db_size -= list->SignatureListSize, in efi_get_certs() 174 size_t db_size, header_size, hash_size; in efi_get_forbidden_digests() local 178 db_size = 0; in efi_get_forbidden_digests() 183 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 | 89 ASSERT3U(db->db_size, >=, PAGESIZE); in dmu_write_pages() 92 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_pages() 94 ASSERT(i == 0 || i == numbufs-1 || tocpy == db->db_size); in dmu_write_pages() 96 if (tocpy == db->db_size) in dmu_write_pages() 113 if (tocpy == db->db_size) in dmu_write_pages() 150 ASSERT(ISP2(dbp[i]->db_size)); in dmu_read_pages() 151 ASSERT3U((dbp[i]->db_offset % dbp[i]->db_size), ==, 0); in dmu_read_pages() 152 ASSERT3U(dbp[i]->db_size, ==, dbp[0]->db_size); in dmu_read_pages() 173 ASSERT3U(db->db_size, >, PAGE_SIZE); in dmu_read_pages() 174 bufoff = IDX_TO_OFF(m->pindex) % db->db_size; in dmu_read_pages() [all …]
|
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | trace_dbuf.h | 60 __field(uint64_t, db_size) \ 74 __entry->db_size = db->db.db_size; \ 84 __entry->db_size = 0; \ 97 __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 | 36 size_t buf_size = db->db.db_size; in make_abd_for_dbuf() 162 dr_head->dr_accounted = db->db.db_size; in dmu_write_direct() 196 db->db.db_size, db->db.db_size, &zp, in dmu_write_direct() 231 zfs_racct_write(spa, db->db.db_size, 1, flags); in dmu_write_abd() 299 size_t len = MIN(size - aoff, db->db.db_size - boff); in dmu_read_abd() 332 zio_t *cio = zio_read(rio, spa, bp, mbuf, db->db.db_size, in dmu_read_abd() 337 zfs_racct_read(spa, db->db.db_size, 1, flags); in dmu_read_abd()
|
H A D | dbuf.c | 793 uint64_t size = db->db.db_size; in dbuf_evict_one() 1121 ASSERT3U(db->db.db_size, >=, dn->dn_bonuslen); in dbuf_verify() 1127 ASSERT3U(db->db.db_offset, ==, db->db_blkid * db->db.db_size); in dbuf_verify() 1169 int epb __maybe_unused = db->db_parent->db.db_size >> in dbuf_verify() 1206 for (i = 0; i < db->db.db_size >> 3; i++) { in dbuf_verify() 1212 db->db.db_size); in dbuf_verify() 1221 i < db->db.db_size / sizeof (blkptr_t); in dbuf_verify() 1273 return (arc_alloc_buf(spa, db, DBUF_GET_BUFC_TYPE(db), db->db.db_size)); in dbuf_alloc_arcbuf() 1287 int blksz = db->db.db_size; in dbuf_loan_arcbuf() 1414 memset(buf->b_data, 0, db->db.db_size); in dbuf_read_done() [all …]
|
H A D | space_map.c | 114 ASSERT3U(blksz, ==, db->db_size); in space_map_iterate() 221 ASSERT3U(sm->sm_blksz, ==, db->db_size); in space_map_reversed_last_block_entries() 222 ASSERT3U(bufsz, >=, db->db_size); in space_map_reversed_last_block_entries() 457 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_clear() 486 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_add() 569 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg() 606 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg() 611 (db->db_size / sizeof (uint64_t)); in space_map_write_seg() 699 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_impl()
|
H A D | dmu.c | 285 if (newsize < 0 || newsize > db_fake->db_size) in dmu_set_bonus() 599 db->db.db_size) { in dmu_buf_hold_array_by_dnode() 1222 tocpy = MIN(db->db_size - bufoff, size); in dmu_read_impl() 1273 tocpy = MIN(db->db_size - bufoff, size); in dmu_write_impl() 1275 ASSERT(i == 0 || i == numbufs-1 || tocpy == db->db_size); in dmu_write_impl() 1277 if (tocpy == db->db_size) in dmu_write_impl() 1285 if (tocpy == db->db_size) in dmu_write_impl() 1429 tocpy = MIN(db->db_size - bufoff, size); in dmu_read_uio_dnode() 1547 tocpy = MIN(db->db_size - bufoff, write_size); in dmu_write_uio_dnode() 1549 ASSERT(i == 0 || i == numbufs-1 || tocpy == db->db_size); in dmu_write_uio_dnode() [all …]
|
H A D | dnode_sync.c | 84 ASSERT3U(sizeof (blkptr_t) * nblkptr, <=, db->db.db_size); in dnode_increase_indirection() 194 ASSERT3U(db->db.db_size, ==, 1 << dn->dn_phys->dn_indblkshift); in free_verify() 195 ASSERT3U(off+num, <=, db->db.db_size >> SPA_BLKPTRSHIFT); in free_verify() 218 for (j = 0; j < child->db.db_size >> 3; j++) { in free_verify() 238 for (j = 0; j < child->db.db_size >> 3; j++) { in free_verify() 357 memset(db->db.db_data, 0, db->db.db_size); in free_children()
|
H A D | bpobj.c | 131 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_free() 318 ASSERT3U(offset, <, dbuf->db_offset + dbuf->db_size); in bpobj_iterate_blkptrs() 744 VERIFY3U(subdb->db_size, >=, in bpobj_enqueue_subobj() 775 VERIFY3U(bps->db_size, >=, numbps * sizeof (blkptr_t)); in bpobj_enqueue_subobj() 913 bpo->bpo_cached_dbuf->db_size) { in bpobj_enqueue()
|
H A D | ddt_log.c | 277 if (db->db_size < (dlu->dlu_offset + dlu->dlu_reclen)) { in ddt_log_entry() 292 memset(db->db_data, 0, db->db_size); in ddt_log_entry() 601 while (boffset < db->db_size) { in ddt_log_load_one()
|
H A D | dbuf_stats.c | 89 (u_longlong_t)db->db.db_size, in __dbuf_stats_hash_table_data()
|
H A D | zap_micro.c | 537 zap->zap_f.zap_block_shift = highbit64(db->db_size) - 1; in mzap_open() 560 zap->zap_m.zap_num_chunks = db->db_size / MZAP_ENT_LEN - 1; in mzap_open() 602 zap->zap_dbuf->db_size); in mzap_open() 677 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; in zap_lockdir_impl() 689 db->db_size / MZAP_ENT_LEN - 1; in zap_lockdir_impl() 781 int sz = zap->zap_dbuf->db_size; in mzap_upgrade() 1981 zs->zs_blocksize = zap->zap_dbuf->db_size; in zap_get_stats()
|
H A D | zfs_sa.c | 85 if (bufsz + ZFS_OLD_ZNODE_PHYS_SIZE <= db->db_size) { in zfs_sa_readlink() 122 ASSERT3U(len, <=, dbp->db_size); in zfs_sa_symlink()
|
H A D | zap.c | 118 zap->zap_f.zap_block_shift = highbit64(zap->zap_dbuf->db_size) - 1; in fzap_upgrade() 125 memset(zap->zap_dbuf->db_data, 0, zap->zap_dbuf->db_size); in fzap_upgrade() 497 l->l_bs = highbit64(db->db_size) - 1; in zap_open_leaf() 529 (uintptr_t)zap_leaf_phys(l), ==, l->l_dbuf->db_size); in zap_open_leaf() 560 ASSERT3U(db->db_size, ==, 1 << bs); in zap_get_leaf_byblk()
|
H A D | sa.c | 712 hdl->sa_spill->db_size, &i, &spill_used, &dummy); in sa_build_layouts() 718 hdl->sa_spill->db_size) in sa_build_layouts() 1935 bonus_data_size = hdl->sa_bonus->db_size; in sa_modify_attrs() 1938 hdl->sa_bonus->db_size); in sa_modify_attrs() 1948 spill_data_size = hdl->sa_spill->db_size; in sa_modify_attrs() 1951 hdl->sa_spill->db_size); in sa_modify_attrs()
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_user.h | 39 u32 db_size; member
|
H A D | qlnxr_os.c | 815 dev->db_size = out_params.dpi_size; in qlnxr_init_hw() 823 (void *)ha->cdev.db_phys_addr, ha->cdev.db_size); in qlnxr_init_hw() 828 dev->db_size, dev->dpi); in qlnxr_init_hw()
|
/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_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()
|
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()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore.h | 672 unsigned long db_size; member 895 unsigned long db_size; member
|