Home
last modified time | relevance | path

Searched refs:table_size (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/qemu/block/
H A Dqcow2-cache.c42 int table_size; member
51 return (uint8_t *) c->table_array + (size_t) table * c->table_size; in qcow2_cache_get_table_addr()
57 int idx = table_offset / c->table_size; in qcow2_cache_get_table_idx()
58 assert(idx >= 0 && idx < c->size && table_offset % c->table_size == 0); in qcow2_cache_get_table_idx()
80 size_t mem_size = (size_t) c->table_size * num_tables; in qcow2_cache_table_release()
124 unsigned table_size) in qcow2_cache_create() argument
130 assert(is_power_of_2(table_size)); in qcow2_cache_create()
131 assert(table_size >= (1 << MIN_CLUSTER_BITS)); in qcow2_cache_create()
132 assert(table_size <= s->cluster_size); in qcow2_cache_create()
136 c->table_size = table_size; in qcow2_cache_create()
[all …]
H A Dqed.h90 uint32_t table_size; /* for L1 and L2 tables, in clusters */ member
288 uint64_t end_offset = offset + (s->header.table_size - 1) * in qed_check_table_offset()
H A Dqed-check.c119 s->header.table_size); in qed_check_l1_table()
143 if (!qed_set_used_clusters(check, offset, s->header.table_size)) { in qed_check_l1_table()
H A Dqed-table.c27 unsigned int bytes = s->header.cluster_size * s->header.table_size; in qed_read_table()
/openbmc/u-boot/arch/x86/lib/
H A Dtables.c59 u32 high_table, table_size; in write_tables() local
69 table_size = rom_table_end - rom_table_start; in write_tables()
70 high_table = (u32)high_table_malloc(table_size); in write_tables()
75 cfg_tables[i].size = table_size; in write_tables()
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dlayout.py364 table_size = int(ceil((max(blocks) + 1) / float(size)))
366 table_start = self._get_adjacent_clusters(data, table_size + 1)
368 table_clusters = set(range(table_start, table_start + table_size))
372 table_size + 1))
388 if int(ceil((max(blocks) + 1) / float(size))) > table_size:
389 new_block_id = (table_start + table_size) // block_size
394 table_clusters.add(table_start + table_size)
395 table_size += 1
/openbmc/qemu/hw/riscv/
H A Driscv-iommu-sys.c117 uint32_t table_size = n_vectors * PCI_MSIX_ENTRY_SIZE; in riscv_iommu_sysdev_init_msi() local
122 s->msix_table = g_malloc0(table_size); in riscv_iommu_sysdev_init_msi()
126 s, "msix-table", table_size); in riscv_iommu_sysdev_init_msi()
/openbmc/pldm/pldmtool/
H A Dpldm_fru_cmd.cpp88 explicit FRUTablePrint(const uint8_t* table, size_t table_size) : in FRUTablePrint() argument
89 table(table), table_size(table_size) in FRUTablePrint()
200 size_t table_size; member in pldmtool::fru::FRUTablePrint
205 return (table_size - offset) <= 7; in isTableEnd()
/openbmc/qemu/docs/interop/
H A Dqed_spec.rst33 uint32_t table_size; /* for L1 and L2 tables, in clusters */
52 - ``table_size`` must be a power of 2 in range [1, 16].
100 #define TABLE_NOFFSETS (table_size * cluster_size / sizeof(uint64_t))
120 A table is made up of one or more contiguous clusters. The ``table_size`` header
122 and ``table_size=4`` results in 256 KB tables.
214 - Table offsets must at least ``table_size`` * ``cluster_size`` bytes from the end
/openbmc/qemu/hw/pci/
H A Dmsix.c328 unsigned table_size, pba_size; in msix_init() local
342 table_size = nentries * PCI_MSIX_ENTRY_SIZE; in msix_init()
347 ranges_overlap(table_offset, table_size, pba_offset, pba_size)) || in msix_init()
348 table_offset + table_size > memory_region_size(table_bar) || in msix_init()
377 dev->msix_table = g_malloc0(table_size); in msix_init()
384 "msix-table", table_size); in msix_init()
/openbmc/libpldm/src/dsp/
H A Dfru.c220 const void *table, size_t table_size) in is_table_end()
224 table_size); in is_table_end()
228 int get_fru_record_by_option(const uint8_t *table, size_t table_size,
241 while (!is_table_end(record_data_src, table, table_size)) { in get_fru_record_by_option()
221 is_table_end(const struct pldm_fru_record_data_format * p,const void * table,size_t table_size) is_table_end() argument
229 get_fru_record_by_option(const uint8_t * table,size_t table_size,uint8_t * record_table,size_t * record_size,uint16_t rsi,uint8_t rt,uint8_t ft) get_fru_record_by_option() argument
/openbmc/u-boot/disk/
H A Dpart_amiga.h118 u32 table_size; member
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_bbt.c1026 u32 table_size; in verify_bbt_descr() local
1051 table_size = this->chipsize >> this->bbt_erase_shift; in verify_bbt_descr()
1053 table_size = mtd->size >> this->bbt_erase_shift; in verify_bbt_descr()
1054 table_size >>= 3; in verify_bbt_descr()
1055 table_size *= bits; in verify_bbt_descr()
1057 table_size += pattern_len; in verify_bbt_descr()
1058 BUG_ON(table_size > (1 << this->bbt_erase_shift)); in verify_bbt_descr()
H A Datmel_nand.c108 int table_size; in pmecc_get_alpha_to() local
110 table_size = host->pmecc_sector_size == 512 ? in pmecc_get_alpha_to()
115 table_size * sizeof(int16_t); in pmecc_get_alpha_to()
792 int table_size = (sector_size == 512) ? in create_lookup_table() local
796 int16_t *addr = kzalloc(2 * table_size * sizeof(uint16_t), GFP_KERNEL); in create_lookup_table()
797 if (addr && build_gf_tables(degree, poly, addr, addr + table_size)) in create_lookup_table()
/openbmc/qemu/hw/ppc/
H A Dspapr_iommu.c331 size_t table_size = tcet->nb_table * sizeof(uint64_t); in spapr_tce_set_need_vfio() local
351 memcpy(tcet->table, oldtable, table_size); in spapr_tce_set_need_vfio()
443 size_t table_size = tcet->nb_table * sizeof(uint64_t); in spapr_tce_reset() local
446 memset(tcet->table, 0, table_size); in spapr_tce_reset()
/openbmc/libpldm/include/libpldm/
H A Dfru.h457 * @param[in] table_size - Size of the source fru record table
467 int get_fru_record_by_option(const uint8_t *table, size_t table_size,
/openbmc/u-boot/include/linux/mtd/
H A Dspinand.h428 unsigned int table_size, u8 devid);
/openbmc/u-boot/board/freescale/lx2160a/
H A Deth_lx2160aqds.c161 u8 table_size) in get_phy_config() argument
165 for (i = 0; i < table_size; i++) { in get_phy_config()
/openbmc/u-boot/drivers/ddr/fsl/
H A Dinteractive.c37 int table_size, in print_option_table() argument
44 for (i = 0; i < table_size; i++) { in print_option_table()
69 int table_size, in handle_option_table() argument
78 for (i = 0; i < table_size; i++) { in handle_option_table()
/openbmc/qemu/tests/qtest/libqos/
H A Dahci.c1189 uint64_t table_size, table_ptr, remaining; in ahci_command_commit() local
1203 table_size = CMD_TBL_SIZ(prdtl); in ahci_command_commit()
1204 table_ptr = ahci_alloc(ahci, table_size); in ahci_command_commit()
/openbmc/libpldm/include/libpldm/oem/ibm/
H A Dfile_io.h247 size_t table_size, struct pldm_msg *msg);
/openbmc/u-boot/drivers/mtd/nand/spi/
H A Dcore.c923 unsigned int table_size, u8 devid) in spinand_match_and_init() argument
928 for (i = 0; i < table_size; i++) { in spinand_match_and_init()
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_io.cpp292 uint8_t transfer_flag, const uint8_t* table_data, size_t table_size, in encodeGetFileResponseHandler() argument
297 table_data, table_size, msg); in encodeGetFileResponseHandler()
/openbmc/libpldm/src/oem/ibm/
H A Dfile_io.c142 size_t table_size, struct pldm_msg *msg) in encode_get_file_table_resp() argument
166 memcpy(response->table_data, table_data, table_size); in encode_get_file_table_resp()
/openbmc/qemu/hw/i3c/
H A Ddw-i3c.c588 uint8_t table_size = ARRAY_FIELD_EX32(s->regs, DEVICE_ADDR_TABLE_POINTER, in dw_i3c_addr_table_index_from_addr() local
590 for (uint8_t i = 0; i < table_size; i++) { in dw_i3c_addr_table_index_from_addr()

12