Home
last modified time | relevance | path

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

/lib/
Dfind_bit.c100 unsigned long idx; in find_first_bit() local
102 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit()
103 if (addr[idx]) in find_first_bit()
104 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
118 unsigned long idx; in find_first_zero_bit() local
120 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit()
121 if (addr[idx] != ~0UL) in find_first_zero_bit()
122 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
135 unsigned long idx = (size-1) / BITS_PER_LONG; in find_last_bit() local
138 val &= addr[idx]; in find_last_bit()
[all …]
Diov_iter.c328 int idx = i->idx; in sanity() local
334 if (unlikely(idx != ((next - 1) & (pipe->buffers - 1)))) in sanity()
337 p = &pipe->bufs[idx]; in sanity()
341 if (idx != (next & (pipe->buffers - 1))) in sanity()
346 printk(KERN_ERR "idx = %d, offset = %zd\n", i->idx, i->iov_offset); in sanity()
349 for (idx = 0; idx < pipe->buffers; idx++) in sanity()
351 pipe->bufs[idx].ops, in sanity()
352 pipe->bufs[idx].page, in sanity()
353 pipe->bufs[idx].offset, in sanity()
354 pipe->bufs[idx].len); in sanity()
[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.c36 u8 idx; member
636 req->idx, req->rc); in test_fw_run_batch_request()
642 req->idx, req->fw->size); in test_fw_run_batch_request()
681 req->idx = i; in trigger_batched_requests_store()
686 "%s-%u", KBUILD_MODNAME, req->idx); in trigger_batched_requests_store()
688 pr_err("Setting up thread %u failed\n", req->idx); in trigger_batched_requests_store()
736 if (!req->idx) in trigger_batched_cb()
783 req->idx = i; in trigger_batched_requests_async_store()
849 u8 idx; in read_firmware_show() local
854 idx = test_fw_config->read_fw_idx; in read_firmware_show()
[all …]
Ddynamic_debug.c62 unsigned int idx; member
731 iter->idx = 0; in ddebug_iter_first()
736 iter->idx = 0; in ddebug_iter_first()
737 return &iter->table->ddebugs[iter->idx]; in ddebug_iter_first()
750 if (++iter->idx == iter->table->num_ddebugs) { in ddebug_iter_next()
752 iter->idx = 0; in ddebug_iter_next()
760 return &iter->table->ddebugs[iter->idx]; in ddebug_iter_next()
Dradix-tree.c164 unsigned idx; in any_tag_set() local
165 for (idx = 0; idx < RADIX_TREE_TAG_LONGS; idx++) { in any_tag_set()
166 if (node->tags[tag][idx]) in any_tag_set()
Dvsprintf.c346 int idx, len; in num_to_str() local
361 for (idx = 0; idx < width; idx++) in num_to_str()
362 buf[idx] = ' '; in num_to_str()
367 for (idx = 0; idx < len; ++idx) in num_to_str()
368 buf[idx + width] = tmp[len - idx - 1]; in num_to_str()
Dtest_xarray.c1163 static noinline void check_move_small(struct xarray *xa, unsigned long idx) in check_move_small() argument
1169 xa_store_index(xa, idx, GFP_KERNEL); in check_move_small()
1172 for (i = 0; i < idx * 4; i++) { in check_move_small()
1174 if (i <= idx) in check_move_small()
1177 if (i == 0 || i == idx) in check_move_small()
1188 if (i <= idx) in check_move_small()
1191 if (i == 0 || i == idx) in check_move_small()
1207 xa_erase_index(xa, idx); in check_move_small()
Dtest_bpf.c6753 int idx = find_test_index(test_name); in prepare_bpf_tests() local
6755 if (idx < 0) { in prepare_bpf_tests()
6760 test_range[0] = idx; in prepare_bpf_tests()
6761 test_range[1] = idx; in prepare_bpf_tests()
/lib/fonts/
Dfonts.c119 if (MACH_IS_AMIGA && f->idx == PEARL8x8_IDX) in get_default_font()
123 if (MACH_IS_MAC && xres < 640 && f->idx == VGA6x11_IDX) in get_default_font()
Dfont_6x10.c3081 .idx = FONT6x10_IDX,
Dfont_mini_4x6.c2151 .idx = MINI4x6_IDX,
Dfont_8x8.c2578 .idx = VGA8x8_IDX,
Dfont_acorn_8x8.c266 .idx = ACORN8x8_IDX,
Dfont_7x14.c4113 .idx = FONT7x14_IDX,
Dfont_pearl_8x8.c2582 .idx = PEARL8x8_IDX,
Dfont_6x11.c3346 .idx = VGA6x11_IDX,
Dfont_sun8x16.c266 .idx = SUN8x16_IDX,
Dfont_ter16x32.c2062 .idx = TER16x32_IDX,
Dfont_10x18.c5137 .idx = FONT10x18_IDX,
Dfont_sun12x22.c6156 .idx = SUN12x22_IDX,
Dfont_8x16.c4627 .idx = VGA8x16_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/
Dzstd_opt.h220 U32 idx = zc->nextToUpdate3; in ZSTD_insertAndFindFirstIndexHash3() local
224 while (idx < target) { in ZSTD_insertAndFindFirstIndexHash3()
225 hashTable3[ZSTD_hash3Ptr(base + idx, hashLog3)] = idx; in ZSTD_insertAndFindFirstIndexHash3()
226 idx++; in ZSTD_insertAndFindFirstIndexHash3()
Dcompress.c1728 U32 idx = zc->nextToUpdate; in ZSTD_updateTree() local
1730 while (idx < target) in ZSTD_updateTree()
1731 idx += ZSTD_insertBt1(zc, base + idx, mls, iend, nbCompares, 0); in ZSTD_updateTree()
1759 U32 idx = zc->nextToUpdate; in ZSTD_updateTree_extDict() local
1761 while (idx < target) in ZSTD_updateTree_extDict()
1762 idx += ZSTD_insertBt1(zc, base + idx, mls, iend, nbCompares, 1); in ZSTD_updateTree_extDict()
1804 U32 idx = zc->nextToUpdate; in ZSTD_insertAndFindFirstIndex() local
1806 while (idx < target) { /* catch up */ in ZSTD_insertAndFindFirstIndex()
1807 size_t const h = ZSTD_hashPtr(base + idx, hashLog, mls); in ZSTD_insertAndFindFirstIndex()
1808 NEXT_IN_CHAIN(idx, chainMask) = hashTable[h]; in ZSTD_insertAndFindFirstIndex()
[all …]