Home
last modified time | relevance | path

Searched refs:tableSize (Results 1 – 10 of 10) sorted by relevance

/openbmc/pldm/libpldmresponder/
H A Dbios_table.cpp112 auto tableSize = table.size(); in constructEntry() local
114 table.resize(tableSize + entryLength); in constructEntry()
116 pldm_bios_table_string_entry_encode(table.data() + tableSize, entryLength, in constructEntry()
119 table.data() + tableSize); in constructEntry()
154 auto tableSize = table.size(); in constructStringEntry() local
155 table.resize(tableSize + entryLength, 0); in constructStringEntry()
156 int rc = pldm_bios_table_attr_entry_string_encode(table.data() + tableSize, in constructStringEntry()
165 table.data() + tableSize); in constructStringEntry()
172 auto tableSize = table.size(); in constructIntegerEntry() local
173 table.resize(tableSize + entryLength, 0); in constructIntegerEntry()
[all …]
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_table.cpp36 size_t tableSize = 0; in FileTable() local
73 tableSize = fileTable.size(); in FileTable()
75 fileTable.resize(tableSize + sizeof(handle) + sizeof(fileNameLength) + in FileTable()
77 iter = fileTable.begin() + tableSize; in FileTable()
110 tableSize = fileTable.size(); in FileTable()
112 if ((tableSize % padWidth) != 0) in FileTable()
114 padCount = padWidth - (tableSize % padWidth); in FileTable()
115 fileTable.resize(tableSize + padCount, 0); in FileTable()
/openbmc/linux/lib/zstd/compress/
H A Dfse_compress.c71 U32 const tableSize = 1 << tableLog; in FSE_buildCTable_wksp() local
72 U32 const tableMask = tableSize - 1; in FSE_buildCTable_wksp()
75 void* const FSCT = ((U32*)ptr) + 1 /* header */ + (tableLog ? tableSize>>1 : 1) ; in FSE_buildCTable_wksp()
77 U32 const step = FSE_TABLESTEP(tableSize); in FSE_buildCTable_wksp()
83 U32 highThreshold = tableSize-1; in FSE_buildCTable_wksp()
96 …ZSTD_memset(tableSymbol, 0, sizeof(*tableSymbol) * tableSize); /* useless initialization, just t… in FSE_buildCTable_wksp()
111 cumul[maxSV1] = (U16)(tableSize+1); in FSE_buildCTable_wksp()
115 if (highThreshold == tableSize - 1) { in FSE_buildCTable_wksp()
119 …BYTE* const spread = tableSymbol + tableSize; /* size = tableSize + 8 (may write beyond tableSize)… in FSE_buildCTable_wksp()
142 assert(tableSize % unroll == 0); /* FSE_MIN_TABLELOG is 5 */ in FSE_buildCTable_wksp()
[all …]
/openbmc/linux/lib/zstd/common/
H A Dfse_decompress.c79 U32 const tableSize = 1 << tableLog; in FSE_buildDTable_internal() local
80 U32 highThreshold = tableSize-1; in FSE_buildDTable_internal()
105 if (highThreshold == tableSize - 1) { in FSE_buildDTable_internal()
106 size_t const tableMask = tableSize-1; in FSE_buildDTable_internal()
107 size_t const step = FSE_TABLESTEP(tableSize); in FSE_buildDTable_internal()
139 assert(tableSize % unroll == 0); /* FSE_MIN_TABLELOG is 5 */ in FSE_buildDTable_internal()
140 for (s = 0; s < (size_t)tableSize; s += unroll) { in FSE_buildDTable_internal()
151 U32 const tableMask = tableSize-1; in FSE_buildDTable_internal()
152 U32 const step = FSE_TABLESTEP(tableSize); in FSE_buildDTable_internal()
166 for (u=0; u<tableSize; u++) { in FSE_buildDTable_internal()
[all …]
H A Dfse.h575 { U32 const tableSize = 1 << tableLog; in FSE_bitCost() local
576 U32 const deltaFromThreshold = threshold - (symbolTT[symbolValue].deltaNbBits + tableSize); in FSE_bitCost()
579 assert(symbolTT[symbolValue].deltaNbBits + tableSize <= threshold); in FSE_bitCost()
706 #define FSE_TABLESTEP(tableSize) (((tableSize)>>1) + ((tableSize)>>3) + 3) argument
/openbmc/linux/arch/arc/kernel/
H A Dunwind.c257 unsigned long tableSize = table->size, hdrSize; in init_unwind_hdr() local
277 if (tableSize & (sizeof(*fde) - 1)) in init_unwind_hdr()
281 tableSize > sizeof(*fde) && tableSize - sizeof(*fde) >= *fde; in init_unwind_hdr()
282 tableSize -= sizeof(*fde) + *fde, fde += 1 + *fde / sizeof(*fde)) { in init_unwind_hdr()
307 if (tableSize || !n) in init_unwind_hdr()
328 for (fde = table->address, tableSize = table->size, n = 0; in init_unwind_hdr()
329 tableSize; in init_unwind_hdr()
330 tableSize -= sizeof(*fde) + *fde, fde += 1 + *fde / sizeof(*fde)) { in init_unwind_hdr()
934 unsigned long tableSize; in arc_unwind() local
940 tableSize = sizeof(unsigned long); in arc_unwind()
[all …]
/openbmc/pldm/common/
H A Dbios_utils.hpp115 tableData(data), tableSize(length) in BIOSTableIter()
124 return iterator(tableData, tableSize); in begin()
138 size_t tableSize; member in pldm::bios::utils::BIOSTableIter
/openbmc/linux/lib/zstd/decompress/
H A Dzstd_decompress_block.c451 U32 const tableSize = 1 << tableLog; in ZSTD_buildFSETable_body() local
455 U32 highThreshold = tableSize - 1; in ZSTD_buildFSETable_body()
482 assert(tableSize <= 512); in ZSTD_buildFSETable_body()
488 if (highThreshold == tableSize - 1) { in ZSTD_buildFSETable_body()
489 size_t const tableMask = tableSize-1; in ZSTD_buildFSETable_body()
490 size_t const step = FSE_TABLESTEP(tableSize); in ZSTD_buildFSETable_body()
522 assert(tableSize % unroll == 0); /* FSE_MIN_TABLELOG is 5 */ in ZSTD_buildFSETable_body()
523 for (s = 0; s < (size_t)tableSize; s += unroll) { in ZSTD_buildFSETable_body()
534 U32 const tableMask = tableSize-1; in ZSTD_buildFSETable_body()
535 U32 const step = FSE_TABLESTEP(tableSize); in ZSTD_buildFSETable_body()
[all …]
/openbmc/pldm/platform-mc/
H A Dterminus.cpp605 const size_t tableSize) in isTableEnd() argument
608 return (tableSize - offset) < sizeof(struct pldm_fru_record_data_format); in isTableEnd()
/openbmc/pldm/pldmtool/
H A Dpldm_bios_cmd.cpp236 auto tableSize = payloadLength - sizeof(nextTransferHandle) - in getBIOSTable() local
238 return std::make_optional<Table>(tableData, tableData + tableSize); in getBIOSTable()