| /openbmc/qemu/block/ |
| H A D | qcow2-cache.c | 42 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 D | qed.c | 61 cpu->table_size = le32_to_cpu(le->table_size); in qed_header_le_to_cpu() 76 le->table_size = cpu_to_le32(cpu->table_size); in qed_header_cpu_to_le() 139 static uint64_t qed_max_image_size(uint32_t cluster_size, uint32_t table_size) in qed_max_image_size() argument 144 table_entries = (table_size * cluster_size) / sizeof(uint64_t); in qed_max_image_size() 162 static bool qed_is_table_size_valid(uint32_t table_size) in qed_is_table_size_valid() argument 164 if (table_size < QED_MIN_TABLE_SIZE || in qed_is_table_size_valid() 165 table_size > QED_MAX_TABLE_SIZE) { in qed_is_table_size_valid() 168 if (table_size & (table_size - 1)) { in qed_is_table_size_valid() 175 uint32_t table_size) in qed_is_image_size_valid() argument 180 if (image_size > qed_max_image_size(cluster_size, table_size)) { in qed_is_image_size_valid() [all …]
|
| H A D | qed.h | 90 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 D | qed-check.c | 119 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 D | qcow2-refcount.c | 539 int total_refblock_count, table_size, area_reftable_index, table_clusters; in qcow2_refcount_area() local 564 table_size = total_refblock_count; in qcow2_refcount_area() 566 table_size = total_refblock_count + in qcow2_refcount_area() 570 table_size = ROUND_UP(table_size, s->cluster_size / REFTABLE_ENTRY_SIZE); in qcow2_refcount_area() 571 table_clusters = (table_size * REFTABLE_ENTRY_SIZE) / s->cluster_size; in qcow2_refcount_area() 573 if (table_size > QCOW_MAX_REFTABLE_SIZE) { in qcow2_refcount_area() 577 new_table = g_try_new0(uint64_t, table_size); in qcow2_refcount_area() 579 assert(table_size > 0); in qcow2_refcount_area() 586 if (table_size > s->max_refcount_table_index) { in qcow2_refcount_area() 595 memcpy(new_table, s->refcount_table, table_size * REFTABLE_ENTRY_SIZE); in qcow2_refcount_area() [all …]
|
| H A D | qed-table.c | 27 unsigned int bytes = s->header.cluster_size * s->header.table_size; in qed_read_table()
|
| /openbmc/u-boot/arch/x86/lib/ |
| H A D | tables.c | 59 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 D | layout.py | 364 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 D | riscv-iommu-sys.c | 117 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 D | pldm_fru_cmd.cpp | 88 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 D | qed_spec.rst | 33 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 D | msix.c | 328 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 D | fru.c | 221 const void *table, size_t table_size) in is_table_end() argument 225 table_size); in is_table_end() 229 int get_fru_record_by_option(const uint8_t *table, size_t table_size, in get_fru_record_by_option() argument 242 while (!is_table_end(record_data_src, table, table_size)) { in get_fru_record_by_option()
|
| /openbmc/u-boot/disk/ |
| H A D | part_amiga.h | 118 u32 table_size; member
|
| /openbmc/u-boot/drivers/mtd/nand/raw/ |
| H A D | nand_bbt.c | 1026 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 D | atmel_nand.c | 108 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 D | spapr_iommu.c | 331 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()
|
| H A D | spapr_hcall.c | 1002 target_ulong table_size = args[3]; in h_register_process_table() local 1013 table_byte_size = 1ULL << (table_size + 12); in h_register_process_table() 1025 } else if (table_size > 24) { in h_register_process_table() 1028 cproc = PATE1_GR | proc_tbl | table_size; in h_register_process_table() 1039 } else if (table_size > 24) { in h_register_process_table() 1043 cproc = (proc_tbl << 25) | page_size << 5 | table_size; in h_register_process_table()
|
| /openbmc/libpldm/include/libpldm/ |
| H A D | fru.h | 468 int get_fru_record_by_option(const uint8_t *table, size_t table_size,
|
| /openbmc/u-boot/include/linux/mtd/ |
| H A D | spinand.h | 428 unsigned int table_size, u8 devid);
|
| /openbmc/u-boot/board/freescale/lx2160a/ |
| H A D | eth_lx2160aqds.c | 161 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 D | interactive.c | 37 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 D | ahci.c | 1189 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 D | file_io.h | 247 size_t table_size, struct pldm_msg *msg);
|
| /openbmc/u-boot/drivers/mtd/nand/spi/ |
| H A D | core.c | 923 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()
|