Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 31) sorted by relevance

12

/lib/
Dfind_bit.c30 unsigned long idx, val, sz = (size); \
32 for (idx = 0; idx * BITS_PER_LONG < sz; idx++) { \
35 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(val)), sz); \
52 unsigned long mask, idx, tmp, sz = (size), __start = (start); \
58 idx = __start / BITS_PER_LONG; \
61 if ((idx + 1) * BITS_PER_LONG >= sz) \
63 idx++; \
66 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(tmp)), sz); \
73 unsigned long sz = (size), nr = (num), idx, w, tmp; \
75 for (idx = 0; (idx + 1) * BITS_PER_LONG <= sz; idx++) { \
[all …]
Dtest_kmod.c180 unsigned int idx) in kmod_test_done_check() argument
190 dev_info(test_dev->dev, "Last thread to run: %u\n", idx); in kmod_test_done_check()
295 unsigned int idx; in tally_up_work() local
303 for (idx=0; idx < config->num_threads; idx++) { in tally_up_work()
304 info = &test_dev->info[idx]; in tally_up_work()
319 static int try_one_request(struct kmod_test_device *test_dev, unsigned int idx) in try_one_request() argument
321 struct kmod_test_device_info *info = &test_dev->info[idx]; in try_one_request()
326 info->thread_idx = idx; in try_one_request()
329 KBUILD_MODNAME, idx); in try_one_request()
333 dev_err(test_dev->dev, "Setting up thread %u failed\n", idx); in try_one_request()
[all …]
Dtest_firmware.c43 u8 idx; member
900 req->idx, req->rc); in test_fw_run_batch_request()
906 req->idx, req->fw->size); in test_fw_run_batch_request()
950 req->idx = i; in trigger_batched_requests_store()
956 "%s-%u", KBUILD_MODNAME, req->idx); in trigger_batched_requests_store()
958 pr_err("Setting up thread %u failed\n", req->idx); in trigger_batched_requests_store()
1006 if (!req->idx) in trigger_batched_cb()
1059 req->idx = i; in trigger_batched_requests_async_store()
1397 u8 idx; in read_firmware_show() local
1402 idx = test_fw_config->read_fw_idx; in read_firmware_show()
[all …]
Dlogic_iomem.c139 unsigned int idx; in get_area() local
144 idx = (a & AREA_BITS) >> AREA_SHIFT; in get_area()
146 if (mapped_areas[idx].ops) in get_area()
147 return &mapped_areas[idx]; in get_area()
Ddynamic_debug.c65 int idx; member
153 int idx; in ddebug_find_valid_class() local
156 idx = match_string(map->class_names, map->length, class_string); in ddebug_find_valid_class()
157 if (idx >= 0) { in ddebug_find_valid_class()
158 *class_id = idx + map->base; in ddebug_find_valid_class()
1036 iter->idx = iter->table->num_ddebugs; in ddebug_iter_first()
1037 return &iter->table->ddebugs[--iter->idx]; in ddebug_iter_first()
1050 if (--iter->idx < 0) { in ddebug_iter_next()
1058 iter->idx = iter->table->num_ddebugs; in ddebug_iter_next()
1059 --iter->idx; in ddebug_iter_next()
[all …]
Dbitmap.c338 unsigned int __bits = (bits), idx, w = 0; \
340 for (idx = 0; idx < __bits / BITS_PER_LONG; idx++) \
351 return BITMAP_WEIGHT(bitmap[idx], bits); in __bitmap_weight()
358 return BITMAP_WEIGHT(bitmap1[idx] & bitmap2[idx], bits); in __bitmap_weight_and()
/lib/mpi/
Dmpiutil.c31 int idx; in mpi_init() local
34 for (idx = 0; idx < MPI_NUMBER_OF_CONSTANTS; idx++) { in mpi_init()
35 switch (idx) { in mpi_init()
55 pr_err("MPI: invalid mpi_const selector %d\n", idx); in mpi_init()
58 constants[idx] = mpi_alloc_set_ui(value); in mpi_init()
59 constants[idx]->flags = (16|32); in mpi_init()
/lib/zstd/compress/
Dzstd_lazy.c34 U32 idx = ms->nextToUpdate; in ZSTD_updateDUBT() local
36 if (idx != target) in ZSTD_updateDUBT()
38 idx, target, ms->window.dictLimit); in ZSTD_updateDUBT()
42 assert(idx >= ms->window.dictLimit); /* condition for valid base+idx */ in ZSTD_updateDUBT()
43 for ( ; idx < target ; idx++) { in ZSTD_updateDUBT()
44 … size_t const h = ZSTD_hashPtr(base + idx, hashLog, mls); /* assumption : ip + 8 <= iend */ in ZSTD_updateDUBT()
47 U32* const nextCandidatePtr = bt + 2*(idx&btMask); in ZSTD_updateDUBT()
50 DEBUGLOG(8, "ZSTD_updateDUBT: insert %u", idx); in ZSTD_updateDUBT()
51 hashTable[h] = idx; /* Update Hash Table */ in ZSTD_updateDUBT()
462 U32 idx = ms->nextToUpdate; in ZSTD_insertAndFindFirstIndex_internal() local
[all …]
Dzstd_compress.c4434 U32 idx; /* Index in array of ZSTD_Sequence */ member
4482 U32 idx = seqPos->idx; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim() local
4500 for (; (inSeqs[idx].matchLength != 0 || inSeqs[idx].offset != 0) && idx < inSeqsSize; ++idx) { in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4501 litLength = inSeqs[idx].litLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4502 matchLength = inSeqs[idx].matchLength; in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4504 offCode = ZSTD_finalizeOffCode(inSeqs[idx].offset, updatedRepcodes.rep, ll0); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4515 RETURN_ERROR_IF(idx - seqPos->idx > cctx->seqStore.maxNbSeq, memory_allocation, in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4522 if (inSeqs[idx].litLength) { in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4523 DEBUGLOG(6, "Storing last literals of size: %u", inSeqs[idx].litLength); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4524 ZSTD_storeLastLiterals(&cctx->seqStore, ip, inSeqs[idx].litLength); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
[all …]
/lib/fonts/
Dfonts.c122 if (MACH_IS_AMIGA && f->idx == PEARL8x8_IDX) in get_default_font()
126 if (MACH_IS_MAC && xres < 640 && f->idx == VGA6x11_IDX) in get_default_font()
Dfont_6x11.c3345 .idx = VGA6x11_IDX,
Dfont_6x8.c2570 .idx = FONT6x8_IDX,
Dfont_7x14.c4112 .idx = FONT7x14_IDX,
Dfont_pearl_8x8.c2581 .idx = PEARL8x8_IDX,
Dfont_6x10.c3082 .idx = FONT6x10_IDX,
Dfont_8x8.c2577 .idx = VGA8x8_IDX,
Dfont_mini_4x6.c2151 .idx = MINI4x6_IDX,
Dfont_10x18.c5136 .idx = FONT10x18_IDX,
Dfont_sun12x22.c6155 .idx = SUN12x22_IDX,
Dfont_ter16x32.c2061 .idx = TER16x32_IDX,
Dfont_sun8x16.c267 .idx = SUN8x16_IDX,
Dfont_8x16.c4626 .idx = VGA8x16_IDX,
Dfont_acorn_8x8.c269 .idx = ACORN8x8_IDX,
/lib/lz4/
Dlz4hc_compress.c81 U32 idx = hc4->nextToUpdate; in LZ4HC_Insert() local
83 while (idx < target) { in LZ4HC_Insert()
84 U32 const h = LZ4HC_hashPtr(base + idx); in LZ4HC_Insert()
85 size_t delta = idx - hashTable[h]; in LZ4HC_Insert()
90 DELTANEXTU16(idx) = (U16)delta; in LZ4HC_Insert()
92 hashTable[h] = idx; in LZ4HC_Insert()
93 idx++; in LZ4HC_Insert()
/lib/zstd/decompress/
Dzstd_decompress.c100 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_emplaceDDict() local
103 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx); in ZSTD_DDictHashSet_emplaceDDict()
104 while (hashSet->ddictPtrTable[idx] != NULL) { in ZSTD_DDictHashSet_emplaceDDict()
106 if (ZSTD_getDictID_fromDDict(hashSet->ddictPtrTable[idx]) == dictID) { in ZSTD_DDictHashSet_emplaceDDict()
108 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()
111 idx &= idxRangeMask; in ZSTD_DDictHashSet_emplaceDDict()
112 idx++; in ZSTD_DDictHashSet_emplaceDDict()
114 DEBUGLOG(4, "Final idx after probing for dictID %u is: %zu", dictID, idx); in ZSTD_DDictHashSet_emplaceDDict()
115 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()
150 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_getDDict() local
[all …]

12