Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 26) sorted by relevance

12

/lib/crc/
A Dcrc8.c30 void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_msb()
36 table[0] = 0; in crc8_populate_msb()
41 table[i+j] = table[j] ^ t; in crc8_populate_msb()
52 void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_lsb()
57 table[0] = 0; in crc8_populate_lsb()
62 table[i+j] = table[j] ^ t; in crc8_populate_lsb()
75 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc) in crc8()
79 crc = table[(crc ^ *pdata++) & 0xff]; in crc8()
A Dgen_crc64table.c18 static void generate_reflected_crc64_table(uint64_t table[256], uint64_t poly) in generate_reflected_crc64_table()
32 table[i] = crc; in generate_reflected_crc64_table()
36 static void generate_crc64_table(uint64_t table[256], uint64_t poly) in generate_crc64_table()
52 table[i] = crc; in generate_crc64_table()
56 static void output_table(uint64_t table[256]) in output_table()
61 printf("\t0x%016" PRIx64 "ULL", table[i]); in output_table()
A Dgen_crc32table.c59 static void output_table(const uint32_t table[256]) in output_table()
65 table[i], table[i + 1], table[i + 2], table[i + 3]); in output_table()
/lib/
A Dsys_info.c59 struct ctl_table table; in sysctl_sys_info_handler() local
68 table = *ro_table; in sysctl_sys_info_handler()
69 table.data = names; in sysctl_sys_info_handler()
70 table.maxlen = sizeof(names); in sysctl_sys_info_handler()
71 ret = proc_dostring(&table, write, buffer, lenp, ppos); in sysctl_sys_info_handler()
92 table = *ro_table; in sysctl_sys_info_handler()
93 table.data = names; in sysctl_sys_info_handler()
94 table.maxlen = sizeof(names); in sysctl_sys_info_handler()
95 return proc_dostring(&table, write, buffer, lenp, ppos); in sysctl_sys_info_handler()
A Dsg_pool.c84 void sg_free_table_chained(struct sg_table *table, in sg_free_table_chained() argument
87 if (table->orig_nents <= nents_first_chunk) in sg_free_table_chained()
93 __sg_free_table(table, SG_CHUNK_SIZE, nents_first_chunk, sg_pool_free, in sg_free_table_chained()
94 table->orig_nents); in sg_free_table_chained()
112 int sg_alloc_table_chained(struct sg_table *table, int nents, in sg_alloc_table_chained() argument
121 table->nents = table->orig_nents = nents; in sg_alloc_table_chained()
122 sg_init_table(table->sgl, nents); in sg_alloc_table_chained()
133 ret = __sg_alloc_table(table, nents, SG_CHUNK_SIZE, in sg_alloc_table_chained()
137 sg_free_table_chained(table, nents_first_chunk); in sg_alloc_table_chained()
A Dscatterlist.c180 if (unlikely(!table->sgl)) in __sg_free_table()
183 sgl = table->sgl; in __sg_free_table()
212 table->sgl = NULL; in __sg_free_table()
224 table->total_nents); in sg_free_append_table()
237 table->orig_nents); in sg_free_table()
273 memset(table, 0, sizeof(*table)); in __sg_alloc_table()
309 table->nents = ++table->orig_nents; in __sg_alloc_table()
315 table->nents = table->orig_nents += sg_size; in __sg_alloc_table()
324 table->sgl = sg; in __sg_alloc_table()
359 sg_free_table(table); in sg_alloc_table()
[all …]
A Ddynamic_debug.c64 struct ddebug_table *table; member
1038 iter->table = NULL; in ddebug_iter_first()
1041 iter->table = list_entry(ddebug_tables.next, in ddebug_iter_first()
1043 iter->idx = iter->table->num_ddebugs; in ddebug_iter_first()
1044 return &iter->table->ddebugs[--iter->idx]; in ddebug_iter_first()
1055 if (iter->table == NULL) in ddebug_iter_next()
1060 iter->table = NULL; in ddebug_iter_next()
1063 iter->table = list_entry(iter->table->link.next, in ddebug_iter_next()
1065 iter->idx = iter->table->num_ddebugs; in ddebug_iter_next()
1068 return &iter->table->ddebugs[iter->idx]; in ddebug_iter_next()
[all …]
A Dparser.c115 int match_token(char *s, const match_table_t table, substring_t args[]) in match_token() argument
119 for (p = table; !match_one(s, p->pattern, args) ; p++) in match_token()
A Drhashtable.c33 union nested_table __rcu *table; member
81 ntbl = rcu_dereference_protected(ntbl->table, 1); in nested_table_free()
1198 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, tbl, hash); in __rht_bucket_nested()
1203 ntbl = rht_dereference_bucket_rcu(ntbl[index].table, in __rht_bucket_nested()
1238 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
1245 ntbl = nested_table_alloc(ht, &ntbl[index].table, in rht_bucket_nested_insert()
/lib/zlib_inflate/
A Dinftrees.c24 code **table, unsigned *bits, unsigned short *work) in zlib_inflate_table() argument
107 *(*table)++ = this; /* make a table to force an error */ in zlib_inflate_table()
108 *(*table)++ = this; in zlib_inflate_table()
190 next = *table; /* current table to fill in */ in zlib_inflate_table()
271 (*table)[low].op = (unsigned char)curr; in zlib_inflate_table()
272 (*table)[low].bits = (unsigned char)root; in zlib_inflate_table()
273 (*table)[low].val = (unsigned short)(next - *table); in zlib_inflate_table()
292 next = *table; in zlib_inflate_table()
312 *table += used; in zlib_inflate_table()
A Dinftrees.h57 unsigned codes, code **table,
/lib/zstd/compress/
A Dhuf_compress.c1275 HUF_CElt* table, in HUF_optimalTableLog() argument
1347 if (wkspSize < sizeof(*table)) return ERROR(workSpace_tooSmall); in HUF_compress_internal()
1380 …_F(largest, HIST_count_wksp (table->count, &maxSymbolValue, (const BYTE*)src, srcSize, table->wksp… in HUF_compress_internal()
1389 && !HUF_validateCTable(oldHufTable, table->count, maxSymbolValue)) { in HUF_compress_internal()
1400 …imalTableLog(huffLog, srcSize, maxSymbolValue, &table->wksps, sizeof(table->wksps), table->CTable,… in HUF_compress_internal()
1401 { size_t const maxBits = HUF_buildCTable_wksp(table->CTable, table->count, in HUF_compress_internal()
1403 … &table->wksps.buildCTable_wksp, sizeof(table->wksps.buildCTable_wksp)); in HUF_compress_internal()
1411 … &table->wksps.writeCTable_wksp, sizeof(table->wksps.writeCTable_wksp)) ); in HUF_compress_internal()
1415 … size_t const newSize = HUF_estimateCompressedSize(table->CTable, table->count, maxSymbolValue); in HUF_compress_internal()
1427 ZSTD_memcpy(oldHufTable, table->CTable, sizeof(table->CTable)); /* Save new table */ in HUF_compress_internal()
[all …]
A Dzstd_opt.c93 static U32 sum_u32(const unsigned table[], size_t nbElts) in sum_u32() argument
98 total += table[n]; in sum_u32()
106 ZSTD_downscaleStats(unsigned* table, U32 lastEltIndex, U32 shift, base_directive_e base1) in ZSTD_downscaleStats() argument
113 unsigned const base = base1 ? 1 : (table[s]>0); in ZSTD_downscaleStats()
114 unsigned const newStat = base + (table[s] >> shift); in ZSTD_downscaleStats()
116 table[s] = newStat; in ZSTD_downscaleStats()
124 static U32 ZSTD_scaleStats(unsigned* table, U32 lastEltIndex, U32 logTarget) in ZSTD_scaleStats() argument
126 U32 const prevsum = sum_u32(table, lastEltIndex+1); in ZSTD_scaleStats()
1057 listStats(const U32* table, int lastEltID)
1062 (void)table;
[all …]
A Dzstd_ldm.c517 static void ZSTD_ldm_reduceTable(ldmEntry_t* const table, U32 const size, in ZSTD_ldm_reduceTable() argument
522 if (table[u].offset < reducerValue) table[u].offset = 0; in ZSTD_ldm_reduceTable()
523 else table[u].offset -= reducerValue; in ZSTD_ldm_reduceTable()
A Dzstd_lazy.h36 void ZSTD_preserveUnsortedMark (U32* const table, U32 const size, U32 const reducerValue); /*! use…
A Dzstd_compress_internal.h1444 MEM_STATIC void ZSTD_debugTable(const U32* table, U32 max) in ZSTD_debugTable() argument
1447 for (u=0, sum=0; u<=max; u++) sum += table[u]; in ZSTD_debugTable()
1451 u, table[u], ZSTD_fWeight(sum) - ZSTD_fWeight(table[u]) ); in ZSTD_debugTable()
A Dzstd_compress.c2539 ZSTD_reduceTable_internal (U32* const table, U32 const size, U32 const reducerValue, int const pres… in ZSTD_reduceTable_internal() argument
2554 if (preserveMark && table[cellNb] == ZSTD_DUBT_UNSORTED_MARK) { in ZSTD_reduceTable_internal()
2558 } else if (table[cellNb] < reducerThreshold) { in ZSTD_reduceTable_internal()
2561 newVal = table[cellNb] - reducerValue; in ZSTD_reduceTable_internal()
2563 table[cellNb] = newVal; in ZSTD_reduceTable_internal()
2568 static void ZSTD_reduceTable(U32* const table, U32 const size, U32 const reducerValue) in ZSTD_reduceTable() argument
2570 ZSTD_reduceTable_internal(table, size, reducerValue, 0); in ZSTD_reduceTable()
2573 static void ZSTD_reduceTable_btlazy2(U32* const table, U32 const size, U32 const reducerValue) in ZSTD_reduceTable_btlazy2() argument
2575 ZSTD_reduceTable_internal(table, size, reducerValue, 1); in ZSTD_reduceTable_btlazy2()
/lib/zstd/common/
A Dfse.h354 const void* table; /* precise table may vary, depending on U16 */ member
524 DStatePtr->table = dt + 1; in FSE_initDState()
529 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_peekSymbol()
535 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_updateState()
543 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbol()
556 FSE_decode_t const DInfo = ((const FSE_decode_t*)(DStatePtr->table))[DStatePtr->state]; in FSE_decodeSymbolFast()
A Dhuf.h134 …size_t wkspSize, HUF_CElt* table, const unsigned* count, int flags); /* table is used as scratch s…
/lib/crc/arm64/
A Dcrc32-core.S150 .macro crc4way, insn, table, order=le
167 adr_l x5, \table - 12 // entry 0 omitted
/lib/zstd/decompress/
A Dzstd_decompress_block.c787 const ZSTD_seqSymbol* table; member
1201 DStatePtr->table = dt + 1; in ZSTD_initFseState()
1246 ZSTD_memcpy(llDInfo, seqState->stateLL.table + seqState->stateLL.state, sizeof(ZSTD_seqSymbol)); in ZSTD_decodeSequence()
1247 ZSTD_memcpy(mlDInfo, seqState->stateML.table + seqState->stateML.state, sizeof(ZSTD_seqSymbol)); in ZSTD_decodeSequence()
1248 …ZSTD_memcpy(ofDInfo, seqState->stateOffb.table + seqState->stateOffb.state, sizeof(ZSTD_seqSymbol)… in ZSTD_decodeSequence()
1250 const ZSTD_seqSymbol* const llDInfo = seqState->stateLL.table + seqState->stateLL.state; in ZSTD_decodeSequence()
1251 const ZSTD_seqSymbol* const mlDInfo = seqState->stateML.table + seqState->stateML.state; in ZSTD_decodeSequence()
1252 const ZSTD_seqSymbol* const ofDInfo = seqState->stateOffb.table + seqState->stateOffb.state; in ZSTD_decodeSequence()
2023 const ZSTD_seqSymbol* table = offTable + 1; in ZSTD_getOffsetInfo() local
2030 info.maxNbAdditionalBits = MAX(info.maxNbAdditionalBits, table[u].nbAdditionalBits); in ZSTD_getOffsetInfo()
[all …]
A Dhuf_decompress.c140 static DTableDesc HUF_getDTableDesc(const HUF_DTable* table) in HUF_getDTableDesc() argument
143 ZSTD_memcpy(&dtd, table, sizeof(dtd)); in HUF_getDTableDesc()
/lib/crypto/x86/
A Dsha512-avx-asm.S374 # Mergeable 640-byte rodata section. This allows linker to merge the table
A Dsha512-ssse3-asm.S373 # Mergeable 640-byte rodata section. This allows linker to merge the table
A Dsha512-avx2-asm.S689 # Mergeable 640-byte rodata section. This allows linker to merge the table

Completed in 69 milliseconds

12