Home
last modified time | relevance | path

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

12

/freebsd-14.2/lib/libsecureboot/efi/
H A Defi_variables.c90 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()
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()
187 database = malloc(db_size); in efi_get_forbidden_digests()
197 db_size >= list->SignatureListSize && db_size > 0; in efi_get_forbidden_digests()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Ddmu_os.c105 ASSERT3U(db->db_size, >=, PAGESIZE); in dmu_write_pages()
108 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_pages()
112 if (tocpy == db->db_size) in dmu_write_pages()
128 if (tocpy == db->db_size) in dmu_write_pages()
165 ASSERT(ISP2(dbp[i]->db_size)); in dmu_read_pages()
167 ASSERT3U(dbp[i]->db_size, ==, dbp[0]->db_size); in dmu_read_pages()
189 ASSERT3U(db->db_size, >, PAGE_SIZE); in dmu_read_pages()
251 ASSERT3S(bufoff, <=, db->db_size); in dmu_read_pages()
252 if (bufoff == db->db_size) { in dmu_read_pages()
308 ASSERT3U(db->db_size, >, PAGE_SIZE); in dmu_read_pages()
[all …]
/freebsd-14.2/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_dbuf.h56 __field(uint64_t, db_size) \
77 __entry->db_size = db->db.db_size; \
89 __entry->db_size = 0; \
104 __entry->db_size, __entry->db_state, __entry->db_holds
/freebsd-14.2/contrib/ofed/libmlx4/
H A Ddbrec.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-14.2/sys/contrib/openzfs/module/zfs/
H A Ddbuf.c777 db->db.db_size); in dbuf_evict_one()
1181 db->db.db_size); in dbuf_verify()
2081 db->db.db_size = size; in dbuf_new_size()
3034 db->db.db_size, db); in dbuf_destroy()
3042 db->db.db_size); in dbuf_destroy()
3789 db->db.db_size); in dbuf_hold_impl()
4008 uint64_t db_size = db->db.db_size; in dbuf_rele_and_unlock() local
4023 db_size); in dbuf_rele_and_unlock()
4847 db->db.db_size); in dbuf_write_done()
5104 contents, db->db.db_size, db->db.db_size, &zp, in dbuf_write()
[all …]
H A Dspace_map.c114 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()
455 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_clear()
484 if (sm->sm_dbuf->db_size != sizeof (space_map_phys_t)) in space_map_histogram_add()
567 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg()
604 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_seg()
609 (db->db_size / sizeof (uint64_t)); in space_map_write_seg()
697 ASSERT3U(db->db_size, ==, sm->sm_blksz); in space_map_write_impl()
H A Ddmu.c595 db->db.db_size) { in dmu_buf_hold_array_by_dnode()
1100 tocpy = MIN(db->db_size - bufoff, size); in dmu_read_impl()
1150 tocpy = MIN(db->db_size - bufoff, size); in dmu_write_impl()
1154 if (tocpy == db->db_size) in dmu_write_impl()
1161 if (tocpy == db->db_size) in dmu_write_impl()
1283 tocpy = MIN(db->db_size - bufoff, size); in dmu_read_uio_dnode()
1372 tocpy = MIN(db->db_size - bufoff, size); in dmu_write_uio_dnode()
1376 if (tocpy == db->db_size) in dmu_write_uio_dnode()
1579 BP_SET_LSIZE(bp, db->db_size); in dmu_sync_ready()
1699 dmu_tx_hold_space(tx, zgd->zgd_db->db_size); in dmu_sync_late_arrival()
[all …]
H A Ddnode_sync.c84 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 Dbpobj.c131 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 Dzap_micro.c437 zap->zap_f.zap_block_shift = highbit64(db->db_size) - 1; in mzap_open()
460 zap->zap_m.zap_num_chunks = db->db_size / MZAP_ENT_LEN - 1; in mzap_open()
502 zap->zap_dbuf->db_size); in mzap_open()
577 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; in zap_lockdir_impl()
589 db->db_size / MZAP_ENT_LEN - 1; in zap_lockdir_impl()
656 int sz = zap->zap_dbuf->db_size; in mzap_upgrade()
1758 zs->zs_blocksize = zap->zap_dbuf->db_size; in zap_get_stats()
H A Ddbuf_stats.c89 (u_longlong_t)db->db.db_size, in __dbuf_stats_hash_table_data()
H A Dzap.c108 zap->zap_f.zap_block_shift = highbit64(zap->zap_dbuf->db_size) - 1; in fzap_upgrade()
115 memset(zap->zap_dbuf->db_data, 0, zap->zap_dbuf->db_size); in fzap_upgrade()
471 l->l_bs = highbit64(db->db_size) - 1; in zap_open_leaf()
503 (uintptr_t)zap_leaf_phys(l), ==, l->l_dbuf->db_size); in zap_open_leaf()
534 ASSERT3U(db->db_size, ==, 1 << bs); in zap_get_leaf_byblk()
H A Dzfs_sa.c85 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 Dsa.c711 hdl->sa_spill->db_size, &i, &spill_used, &dummy); in sa_build_layouts()
717 hdl->sa_spill->db_size) in sa_build_layouts()
1876 bonus_data_size = hdl->sa_bonus->db_size; in sa_modify_attrs()
1879 hdl->sa_bonus->db_size); in sa_modify_attrs()
1889 spill_data_size = hdl->sa_spill->db_size; in sa_modify_attrs()
1892 hdl->sa_spill->db_size); in sa_modify_attrs()
H A Ddnode.c433 (dn->dn_object % (dn->dn_dbuf->db.db_size >> DNODE_SHIFT))); in dnode_verify()
856 dn->dn_bonus->db.db_size = in dnode_reallocate()
859 ASSERT(dn->dn_bonuslen <= dn->dn_bonus->db.db_size); in dnode_reallocate()
1261 int epb = dn->dn_dbuf->db.db_size >> DNODE_SHIFT; in dnode_free_interior_slots()
1475 ASSERT3U(db->db.db_size, >=, 1<<DNODE_SHIFT); in dnode_hold_impl()
1476 epb = db->db.db_size >> DNODE_SHIFT; in dnode_hold_impl()
/freebsd-14.2/sys/dev/qlnx/qlnxr/
H A Dqlnxr_user.h39 u32 db_size; member
H A Dqlnxr_os.c815 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-14.2/sys/dev/ntb/
H A Dntb.h391 int ntb_peer_db_addr(device_t ntb, bus_addr_t *db_addr, vm_size_t *db_size);
H A Dntb.c502 ntb_peer_db_addr(device_t ntb, bus_addr_t *db_addr, vm_size_t *db_size) in ntb_peer_db_addr() argument
505 return (NTB_PEER_DB_ADDR(device_get_parent(ntb), db_addr, db_size)); in ntb_peer_db_addr()
H A Dntb_if.m203 vm_size_t *db_size;
/freebsd-14.2/sys/geom/part/
H A Dg_part_ldm.c122 uint64_t db_size; /* LDM database size */ member
429 hdr->db_size = be64dec(buf + LDM_PH_DBSIZE_OFF); in ldm_privhdr_parse()
493 hdr.db_size != LDM_DB_SIZE || in ldm_privhdr_check()
504 hdr.db_offset, hdr.db_size, hdr.th_offset[0], in ldm_privhdr_check()
/freebsd-14.2/sys/dev/ntb/ntb_hw/
H A Dntb_hw_plx.c1035 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
1040 KASSERT((db_addr != NULL && db_size != NULL), ("must be non-NULL")); in ntb_plx_peer_db_addr()
1049 *db_size = 4; in ntb_plx_peer_db_addr()
H A Dntb_hw_intel.c168 uint8_t db_size; member
520 .db_size = sizeof(uint64_t),
553 .db_size = sizeof(uint16_t),
602 .db_size = sizeof(uint32_t),
3395 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
3401 KASSERT((db_addr != NULL && db_size != NULL), ("must be non-NULL")); in intel_ntb_peer_db_addr()
3417 *db_size = ntb->reg->db_size; in intel_ntb_peer_db_addr()
/freebsd-14.2/sys/dev/qlnx/qlnxe/
H A Decore.h672 unsigned long db_size; member
895 unsigned long db_size; member
H A Decore_vfpf_if.h214 u16 db_size; member

12