/lib/ |
D | find_bit.c | 30 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 …]
|
D | test_kmod.c | 180 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 …]
|
D | test_firmware.c | 43 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 …]
|
D | logic_iomem.c | 139 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()
|
D | dynamic_debug.c | 65 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 …]
|
D | bitmap.c | 338 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/ |
D | mpiutil.c | 31 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/ |
D | zstd_lazy.c | 34 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 …]
|
D | zstd_compress.c | 4434 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/ |
D | fonts.c | 122 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()
|
D | font_6x11.c | 3345 .idx = VGA6x11_IDX,
|
D | font_6x8.c | 2570 .idx = FONT6x8_IDX,
|
D | font_7x14.c | 4112 .idx = FONT7x14_IDX,
|
D | font_pearl_8x8.c | 2581 .idx = PEARL8x8_IDX,
|
D | font_6x10.c | 3082 .idx = FONT6x10_IDX,
|
D | font_8x8.c | 2577 .idx = VGA8x8_IDX,
|
D | font_mini_4x6.c | 2151 .idx = MINI4x6_IDX,
|
D | font_10x18.c | 5136 .idx = FONT10x18_IDX,
|
D | font_sun12x22.c | 6155 .idx = SUN12x22_IDX,
|
D | font_ter16x32.c | 2061 .idx = TER16x32_IDX,
|
D | font_sun8x16.c | 267 .idx = SUN8x16_IDX,
|
D | font_8x16.c | 4626 .idx = VGA8x16_IDX,
|
D | font_acorn_8x8.c | 269 .idx = ACORN8x8_IDX,
|
/lib/lz4/ |
D | lz4hc_compress.c | 81 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/ |
D | zstd_decompress.c | 100 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 …]
|