Home
last modified time | relevance | path

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

12345678910>>...97

/Linux-v5.4/tools/perf/util/
Dlevenshtein.c51 int i, j; in levenshtein() local
53 for (j = 0; j <= len2; j++) in levenshtein()
54 row1[j] = j * a; in levenshtein()
59 for (j = 0; j < len2; j++) { in levenshtein()
61 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); in levenshtein()
63 if (i > 0 && j > 0 && string1[i - 1] == string2[j] && in levenshtein()
64 string1[i] == string2[j - 1] && in levenshtein()
65 row2[j + 1] > row0[j - 1] + w) in levenshtein()
66 row2[j + 1] = row0[j - 1] + w; in levenshtein()
68 if (row2[j + 1] > row1[j + 1] + d) in levenshtein()
[all …]
Dvalues.c136 int j; in perf_read_values__enlarge_counters() local
143 for (j = values->counters_max; j < counters_max; j++) in perf_read_values__enlarge_counters()
144 value[j] = 0; in perf_read_values__enlarge_counters()
204 int i, j; in perf_read_values__display_pretty() local
215 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty()
216 counterwidth[j] = strlen(values->countername[j]); in perf_read_values__display_pretty()
226 for (j = 0; j < values->counters; j++) { in perf_read_values__display_pretty()
227 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty()
228 if (width > counterwidth[j]) in perf_read_values__display_pretty()
229 counterwidth[j] = width; in perf_read_values__display_pretty()
[all …]
/Linux-v5.4/lib/raid6/
Dmktables.c55 int i, j, k; in main() local
68 for (j = 0; j < 256; j += 8) { in main()
71 printf("0x%02x,%c", gfmul(i, j + k), in main()
87 for (j = 0; j < 16; j += 8) { in main()
90 printf("0x%02x,%c", gfmul(i, j + k), in main()
93 for (j = 0; j < 16; j += 8) { in main()
96 printf("0x%02x,%c", gfmul(i, (j + k) << 4), in main()
112 for (j = 0; j < 8; j++) { in main()
113 exptbl[i + j] = v; in main()
114 printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); in main()
[all …]
/Linux-v5.4/drivers/acpi/acpica/
Dutbuffer.c37 u32 j; in acpi_ut_dump_buffer() local
60 for (j = 0; j < 16;) { in acpi_ut_dump_buffer()
61 if (i + j >= count) { in acpi_ut_dump_buffer()
66 j += display; in acpi_ut_dump_buffer()
75 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
81 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
88 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
95 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
99 &buffer[(acpi_size)i + j + in acpi_ut_dump_buffer()
105 j += display; in acpi_ut_dump_buffer()
[all …]
/Linux-v5.4/scripts/
Dpnmtologo.c128 unsigned int i, j; in read_image() local
178 for (j = 0; j < logo_width; j++) in read_image()
179 logo_data[i][j].red = logo_data[i][j].green = in read_image()
180 logo_data[i][j].blue = 255*(1-get_number(fp)); in read_image()
187 for (j = 0; j < logo_width; j++) in read_image()
188 logo_data[i][j].red = logo_data[i][j].green = in read_image()
189 logo_data[i][j].blue = get_number255(fp, maxval); in read_image()
196 for (j = 0; j < logo_width; j++) { in read_image()
197 logo_data[i][j].red = get_number255(fp, maxval); in read_image()
198 logo_data[i][j].green = get_number255(fp, maxval); in read_image()
[all …]
/Linux-v5.4/lib/
Dgen_crc32table.c40 unsigned i, j; in crc32init_le_generic() local
47 for (j = 0; j < LE_TABLE_SIZE; j += 2 * i) in crc32init_le_generic()
48 tab[0][i + j] = crc ^ tab[0][j]; in crc32init_le_generic()
52 for (j = 1; j < LE_TABLE_ROWS; j++) { in crc32init_le_generic()
54 tab[j][i] = crc; in crc32init_le_generic()
74 unsigned i, j; in crc32init_be() local
81 for (j = 0; j < i; j++) in crc32init_be()
82 crc32table_be[0][i + j] = crc ^ crc32table_be[0][j]; in crc32init_be()
86 for (j = 1; j < BE_TABLE_ROWS; j++) { in crc32init_be()
88 crc32table_be[j][i] = crc; in crc32init_be()
[all …]
Dtest_string.c9 unsigned i, j, k; in memset16_selftest() local
17 for (j = 0; j < 256; j++) { in memset16_selftest()
19 memset16(p + i, 0xb1b2, j); in memset16_selftest()
25 } else if (k < i + j) { in memset16_selftest()
39 return (i << 24) | (j << 16) | k | 0x8000; in memset16_selftest()
45 unsigned i, j, k; in memset32_selftest() local
53 for (j = 0; j < 256; j++) { in memset32_selftest()
55 memset32(p + i, 0xb1b2b3b4, j); in memset32_selftest()
61 } else if (k < i + j) { in memset32_selftest()
75 return (i << 24) | (j << 16) | k | 0x8000; in memset32_selftest()
[all …]
Drbtree_test.c244 int i, j; in rbtree_test_init() local
260 for (j = 0; j < nnodes; j++) in rbtree_test_init()
261 insert(nodes + j, &root); in rbtree_test_init()
262 for (j = 0; j < nnodes; j++) in rbtree_test_init()
263 erase(nodes + j, &root); in rbtree_test_init()
276 for (j = 0; j < nnodes; j++) in rbtree_test_init()
277 insert_cached(nodes + j, &root); in rbtree_test_init()
278 for (j = 0; j < nnodes; j++) in rbtree_test_init()
279 erase_cached(nodes + j, &root); in rbtree_test_init()
335 for (j = 0; j < nnodes; j++) { in rbtree_test_init()
[all …]
Dhexdump.c111 int j, lx = 0; in hex_dump_to_buffer() local
137 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
139 "%s%16.16llx", j ? " " : "", in hex_dump_to_buffer()
140 get_unaligned(ptr8 + j)); in hex_dump_to_buffer()
148 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
150 "%s%8.8x", j ? " " : "", in hex_dump_to_buffer()
151 get_unaligned(ptr4 + j)); in hex_dump_to_buffer()
159 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
161 "%s%4.4x", j ? " " : "", in hex_dump_to_buffer()
162 get_unaligned(ptr2 + j)); in hex_dump_to_buffer()
[all …]
/Linux-v5.4/lib/reed_solomon/
Ddecode_rs.c15 int i, j, r, k, pad; variable
64 for (j = 1; j < len; j++) {
67 syn[i] = (((uint16_t) data[j]) ^
70 syn[i] = ((((uint16_t) data[j]) ^
78 for (j = 0; j < nroots; j++) {
81 syn[i] = ((uint16_t) par[j]) & msk;
83 syn[i] = (((uint16_t) par[j]) & msk) ^
115 for (j = i + 1; j > 0; j--) {
116 tmp = index_of[lambda[j - 1]];
118 lambda[j] ^=
[all …]
/Linux-v5.4/tools/testing/selftests/powerpc/math/
Dvmx_signal.c52 int j; in signal_vmx_sig() local
61 for (j = 20; j < 32; j++) { in signal_vmx_sig()
62 printf("%d | 0x%04x%04x%04x%04x | 0x%04x%04x%04x%04x\n", j, mc->v_regs->vrregs[j][0], in signal_vmx_sig()
63 mc->v_regs->vrregs[j][1], mc->v_regs->vrregs[j][2], mc->v_regs->vrregs[j][3], in signal_vmx_sig()
64 varray[j - 20][0], varray[j - 20][1], varray[j - 20][2], varray[j - 20][3]); in signal_vmx_sig()
74 int i, j; in signal_vmx_c() local
85 for (j = 0; j < 4; j++) in signal_vmx_c()
86 varray[i][j] = rand(); in signal_vmx_c()
95 int i, j, rc, threads; in test_signal_vmx() local
121 for (j = 0; j < threads; j++) { in test_signal_vmx()
[all …]
/Linux-v5.4/arch/x86/kernel/
Dirq.c61 int j; in arch_show_interrupts() local
64 for_each_online_cpu(j) in arch_show_interrupts()
65 seq_printf(p, "%10u ", irq_stats(j)->__nmi_count); in arch_show_interrupts()
69 for_each_online_cpu(j) in arch_show_interrupts()
70 seq_printf(p, "%10u ", irq_stats(j)->apic_timer_irqs); in arch_show_interrupts()
74 for_each_online_cpu(j) in arch_show_interrupts()
75 seq_printf(p, "%10u ", irq_stats(j)->irq_spurious_count); in arch_show_interrupts()
78 for_each_online_cpu(j) in arch_show_interrupts()
79 seq_printf(p, "%10u ", irq_stats(j)->apic_perf_irqs); in arch_show_interrupts()
82 for_each_online_cpu(j) in arch_show_interrupts()
[all …]
/Linux-v5.4/drivers/staging/wlan-ng/
Dp80211wep.c147 u32 i, j, k, crc, keylen; in wep_decrypt() local
180 j = 0; in wep_decrypt()
182 j = (j + s[i] + key[i % keylen]) & 0xff; in wep_decrypt()
183 swap(i, j); in wep_decrypt()
189 j = 0; in wep_decrypt()
192 j = (j + s[i]) & 0xff; in wep_decrypt()
193 swap(i, j); in wep_decrypt()
194 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
207 j = (j + s[i]) & 0xff; in wep_decrypt()
208 swap(i, j); in wep_decrypt()
[all …]
/Linux-v5.4/kernel/
Drange.c66 int i, j; in subtract_range() local
71 for (j = 0; j < az; j++) { in subtract_range()
72 if (!range[j].end) in subtract_range()
75 if (start <= range[j].start && end >= range[j].end) { in subtract_range()
76 range[j].start = 0; in subtract_range()
77 range[j].end = 0; in subtract_range()
81 if (start <= range[j].start && end < range[j].end && in subtract_range()
82 range[j].start < end) { in subtract_range()
83 range[j].start = end; in subtract_range()
88 if (start > range[j].start && end >= range[j].end && in subtract_range()
[all …]
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c233 int j; in brcms_c_channel_min_txpower_limits_with_local_constraint() local
236 for (j = 0; j < WL_TX_POWER_CCK_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
237 txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
240 for (j = 0; j < WL_TX_POWER_OFDM_NUM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
241 txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
244 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
245 txpwr->ofdm_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
246 min(txpwr->ofdm_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
249 for (j = 0; j < BRCMS_NUM_RATES_OFDM; j++) in brcms_c_channel_min_txpower_limits_with_local_constraint()
250 txpwr->ofdm_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
[all …]
/Linux-v5.4/lib/raid6/test/
Dtest.c31 int i, j; in makedata() local
34 for (j = 0; j < PAGE_SIZE; j++) in makedata()
35 data[i][j] = rand(); in makedata()
53 static int test_disks(int i, int j) in test_disks() argument
61 dataptrs[j] = recovj; in test_disks()
63 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks()
66 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
68 if (i < NDISKS-2 && j == NDISKS-1) { in test_disks()
76 j, disk_type(j), in test_disks()
83 dataptrs[j] = data[j]; in test_disks()
[all …]
/Linux-v5.4/fs/afs/
Dserver_list.c36 int ret = -ENOMEM, nr_servers = 0, i, j; in afs_alloc_server_list() local
64 for (j = 0; j < slist->nr_servers; j++) in afs_alloc_server_list()
65 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list()
69 if (j < slist->nr_servers) { in afs_alloc_server_list()
70 if (slist->servers[j].server == server) { in afs_alloc_server_list()
76 memmove(slist->servers + j + 1, in afs_alloc_server_list()
77 slist->servers + j, in afs_alloc_server_list()
78 (slist->nr_servers - j) * sizeof(struct afs_server_entry)); in afs_alloc_server_list()
81 slist->servers[j].server = server; in afs_alloc_server_list()
105 int i, j; in afs_annotate_server_list() local
[all …]
/Linux-v5.4/samples/auxdisplay/
Dcfag12864b-example.c153 unsigned char i, j, n; in cfag12864b_format() local
156 for (j = 0; j < CFAG12864B_WIDTH / CFAG12864B_BPB; j++) { in cfag12864b_format()
158 j] = 0; in cfag12864b_format()
161 j * CFAG12864B_BPB + n]) in cfag12864b_format()
163 CFAG12864B_BPB + j] |= in cfag12864b_format()
188 unsigned short i, j; in example() local
201 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example()
202 cfag12864b_set(i, j); in example()
214 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example()
215 matrix[j * CFAG12864B_WIDTH + i] = 1; in example()
[all …]
/Linux-v5.4/drivers/md/bcache/
Dbset.c372 static unsigned int inorder_next(unsigned int j, unsigned int size) in inorder_next() argument
374 if (j * 2 + 1 < size) { in inorder_next()
375 j = j * 2 + 1; in inorder_next()
377 while (j * 2 < size) in inorder_next()
378 j *= 2; in inorder_next()
380 j >>= ffz(j) + 1; in inorder_next()
382 return j; in inorder_next()
389 static unsigned int inorder_prev(unsigned int j, unsigned int size) in inorder_prev() argument
391 if (j * 2 < size) { in inorder_prev()
392 j = j * 2; in inorder_prev()
[all …]
/Linux-v5.4/crypto/
Dgf128mul.c263 int i, j, k; in gf128mul_init_64k_bbe() local
279 for (j = 1; j <= 64; j <<= 1) in gf128mul_init_64k_bbe()
280 gf128mul_x_bbe(&t->t[0]->t[j + j], &t->t[0]->t[j]); in gf128mul_init_64k_bbe()
283 for (j = 2; j < 256; j += j) in gf128mul_init_64k_bbe()
284 for (k = 1; k < j; ++k) in gf128mul_init_64k_bbe()
285 be128_xor(&t->t[i]->t[j + k], in gf128mul_init_64k_bbe()
286 &t->t[i]->t[j], &t->t[i]->t[k]); in gf128mul_init_64k_bbe()
291 for (j = 128; j > 0; j >>= 1) { in gf128mul_init_64k_bbe()
292 t->t[i]->t[j] = t->t[i - 1]->t[j]; in gf128mul_init_64k_bbe()
293 gf128mul_x8_bbe(&t->t[i]->t[j]); in gf128mul_init_64k_bbe()
[all …]
Dtwofish_common.c529 #define CALC_K_2(a, b, c, d, j) \ argument
530 mds[0][q0[a ^ key[(j) + 8]] ^ key[j]] \
531 ^ mds[1][q0[b ^ key[(j) + 9]] ^ key[(j) + 1]] \
532 ^ mds[2][q1[c ^ key[(j) + 10]] ^ key[(j) + 2]] \
533 ^ mds[3][q1[d ^ key[(j) + 11]] ^ key[(j) + 3]]
535 #define CALC_K(a, j, k, l, m, n) \ argument
539 x += y; y += x; ctx->a[j] = x; \
540 ctx->a[(j) + 1] = rol32(y, 9)
542 #define CALC_K192_2(a, b, c, d, j) \ argument
543 CALC_K_2 (q0[a ^ key[(j) + 16]], \
[all …]
/Linux-v5.4/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-chk-vmx.c58 int i, j; in signal_usr1() local
70 for (j = 0; j < 4; j++) in signal_usr1()
71 printf("%08x", ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); in signal_usr1()
74 for (j = 0; j < 4; j++) in signal_usr1()
75 printf("%08x", vms[i][j]); in signal_usr1()
88 for (j = 0; j < 4; j++) in signal_usr1()
89 printf("%08x", tm_ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); in signal_usr1()
92 for (j = 0; j < 4; j++) in signal_usr1()
93 printf("%08x", vms[NV_VMX_REGS + i][j]); in signal_usr1()
Dtm-signal-context-chk-vsx.c59 int i, j; in signal_usr1() local
114 for (j = 0; j < 16; j++) in signal_usr1()
115 printf("%02x", vsx[j]); in signal_usr1()
117 for (j = 0; j < 4; j++) in signal_usr1()
118 printf("%08x", vsxs[i][j]); in signal_usr1()
138 for (j = 0; j < 16; j++) in signal_usr1()
139 printf("%02x", vsx_tm[j]); in signal_usr1()
141 for (j = 0; j < 4; j++) in signal_usr1()
142 printf("%08x", vsxs[NV_VSX_REGS + i][j]); in signal_usr1()
/Linux-v5.4/drivers/video/fbdev/core/
Dfbcon_rotate.h42 int i, j; in rotate_ud() local
48 for (j = 0; j < width - shift; j++) { in rotate_ud()
49 if (pattern_test_bit(j, i, width, in)) in rotate_ud()
50 pattern_set_bit(width - (1 + j + shift), in rotate_ud()
60 int i, j, h = height, w = width; in rotate_cw() local
67 for (j = 0; j < w; j++) { in rotate_cw()
68 if (pattern_test_bit(j, i, width, in)) in rotate_cw()
69 pattern_set_bit(height - 1 - i - shift, j, in rotate_cw()
78 int i, j, h = height, w = width; in rotate_ccw() local
85 for (j = 0; j < w; j++) { in rotate_ccw()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv30.c66 calc_bias(struct nvkm_fb *fb, int k, int i, int j) in calc_bias() argument
70 nvkm_rd32(device, 0x122c + 0x10 * k + 0x4 * j) >> in calc_bias()
80 int j, x = 0; in calc_ref() local
82 for (j = 0; j < 4; j++) { in calc_ref()
83 int m = (l >> (8 * i) & 0xff) + calc_bias(fb, k, i, j); in calc_ref()
85 x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j); in calc_ref()
95 int i, j; in nv30_fb_init() local
106 for (j = 0; j < 3; j++) in nv30_fb_init()
107 nvkm_wr32(device, 0x10037c + 0xc * i + 0x4 * j, in nv30_fb_init()
108 calc_ref(fb, l, 0, j)); in nv30_fb_init()
[all …]

12345678910>>...97