Home
last modified time | relevance | path

Searched refs:j (Results 1 – 200 of 2165) sorted by relevance

1234567891011

/linux-4.1.27/drivers/scsi/
Du14-34f.c687 int j, tqd, utqd; in u14_34f_slave_configure() local
691 j = ((struct hostdata *) host->hostdata)->board_number; in u14_34f_slave_configure()
744 static int board_inquiry(unsigned int j) { in board_inquiry() argument
750 id_dma_addr = pci_map_single(HD(j)->pdev, HD(j)->board_id, in board_inquiry()
751 sizeof(HD(j)->board_id), PCI_DMA_BIDIRECTIONAL); in board_inquiry()
752 cpp = &HD(j)->cp[0]; in board_inquiry()
753 cpp->cp_dma_addr = pci_map_single(HD(j)->pdev, cpp, sizeof(struct mscp), in board_inquiry()
759 cpp->data_len = H2DEV(sizeof(HD(j)->board_id)); in board_inquiry()
763 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { in board_inquiry()
764 printk("%s: board_inquiry, adapter busy.\n", BN(j)); in board_inquiry()
[all …]
Datp870u.c51 unsigned char i, j, c, target_id, lun,cmdp; in atp870u_intr_handle() local
65 j = inb(tmport); in atp870u_intr_handle()
66 if ((j & 0x80) != 0) in atp870u_intr_handle()
126 if ((j & 0x40) != 0) { in atp870u_intr_handle()
133 dev->r1f[c][target_id] |= j; in atp870u_intr_handle()
277 j = inb(dev->baseport + 0x29) & 0xfe; in atp870u_intr_handle()
278 outb(j, dev->baseport + 0x29); in atp870u_intr_handle()
321 j = target_id; in atp870u_intr_handle()
323 j = (j & 0x07) | 0x40; in atp870u_intr_handle()
326 j |= dev->id[c][target_id].dirct; in atp870u_intr_handle()
[all …]
Dqlogicfas408.c98 int j; in ql_pdma() local
100 j = 0; in ql_pdma()
110 while (reqlen >= 84 && !(j & 0xc0)) /* 2/3 */ in ql_pdma()
111 if ((j = inb(qbase + 8)) & 4) in ql_pdma()
125 j = 0; in ql_pdma()
126 while (reqlen && !((j & 0x10) && (j & 0xc0))) in ql_pdma()
129 j &= 0xc0; in ql_pdma()
130 while (reqlen && !((j = inb(qbase + 8)) & 0x10)) in ql_pdma()
135 if (j & 0x10) in ql_pdma()
136 j = inb(qbase + 8); in ql_pdma()
[all …]
Dsd_dif.c128 unsigned int j; in sd_dif_prepare() local
139 for (j = 0; j < iv.bv_len; j += tuple_sz, pi++) { in sd_dif_prepare()
165 unsigned int j, intervals; in sd_dif_complete() local
186 for (j = 0; j < iv.bv_len; j += tuple_sz, pi++) { in sd_dif_complete()
/linux-4.1.27/tools/perf/util/
Dlevenshtein.c48 int i, j; in levenshtein() local
50 for (j = 0; j <= len2; j++) in levenshtein()
51 row1[j] = j * a; in levenshtein()
56 for (j = 0; j < len2; j++) { in levenshtein()
58 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); in levenshtein()
60 if (i > 0 && j > 0 && string1[i - 1] == string2[j] && in levenshtein()
61 string1[i] == string2[j - 1] && in levenshtein()
62 row2[j + 1] > row0[j - 1] + w) in levenshtein()
63 row2[j + 1] = row0[j - 1] + w; in levenshtein()
65 if (row2[j + 1] > row1[j + 1] + d) in levenshtein()
[all …]
Dvalues.c133 int i, j; in perf_read_values__display_pretty() local
142 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty()
143 counterwidth[j] = strlen(values->countername[j]); in perf_read_values__display_pretty()
153 for (j = 0; j < values->counters; j++) { in perf_read_values__display_pretty()
154 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty()
155 if (width > counterwidth[j]) in perf_read_values__display_pretty()
156 counterwidth[j] = width; in perf_read_values__display_pretty()
161 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty()
162 fprintf(fp, " %*s", counterwidth[j], values->countername[j]); in perf_read_values__display_pretty()
168 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty()
[all …]
Ddebug.c112 int i, j; in trace_event() local
131 for (j = 0; j < 15-(i & 15); j++) in trace_event()
133 for (j = i & ~15; j <= i; j++) { in trace_event()
135 isprint(raw_event[j]) ? in trace_event()
136 raw_event[j] : '.'); in trace_event()
/linux-4.1.27/lib/raid6/
Dmktables.c58 int i, j, k; in main() local
71 for (j = 0; j < 256; j += 8) { in main()
74 printf("0x%02x,%c", gfmul(i, j + k), in main()
90 for (j = 0; j < 16; j += 8) { in main()
93 printf("0x%02x,%c", gfmul(i, j + k), in main()
96 for (j = 0; j < 16; j += 8) { in main()
99 printf("0x%02x,%c", gfmul(i, (j + k) << 4), in main()
115 for (j = 0; j < 8; j++) { in main()
116 exptbl[i + j] = v; in main()
117 printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); in main()
[all …]
/linux-4.1.27/drivers/acpi/acpica/
Dutbuffer.c71 u32 j; in acpi_ut_dump_buffer() local
94 for (j = 0; j < 16;) { in acpi_ut_dump_buffer()
95 if (i + j >= count) { in acpi_ut_dump_buffer()
100 j += display; in acpi_ut_dump_buffer()
109 buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer()
115 &buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer()
122 &buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer()
129 &buffer[(acpi_size) i + j]); in acpi_ut_dump_buffer()
133 &buffer[(acpi_size) i + j + in acpi_ut_dump_buffer()
139 j += display; in acpi_ut_dump_buffer()
[all …]
Dutownerid.c67 u32 j; in acpi_ut_allocate_owner_id() local
93 for (i = 0, j = acpi_gbl_last_owner_id_index; in acpi_ut_allocate_owner_id()
94 i < (ACPI_NUM_OWNERID_MASKS + 1); i++, j++) { in acpi_ut_allocate_owner_id()
95 if (j >= ACPI_NUM_OWNERID_MASKS) { in acpi_ut_allocate_owner_id()
96 j = 0; /* Wraparound to start of mask array */ in acpi_ut_allocate_owner_id()
100 if (acpi_gbl_owner_id_mask[j] == ACPI_UINT32_MAX) { in acpi_ut_allocate_owner_id()
107 if (!(acpi_gbl_owner_id_mask[j] & (1 << k))) { in acpi_ut_allocate_owner_id()
113 acpi_gbl_owner_id_mask[j] |= (1 << k); in acpi_ut_allocate_owner_id()
115 acpi_gbl_last_owner_id_index = (u8)j; in acpi_ut_allocate_owner_id()
125 (acpi_owner_id) ((k + 1) + ACPI_MUL_32(j)); in acpi_ut_allocate_owner_id()
/linux-4.1.27/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 …]
Dnamespace.pl346 my ($i, $j);
351 for ($j = 0; $j < $#{$def{$name}}; ++$j) {
352 if ($def{$name}[$j] eq $object) {
353 splice(@{$def{$name}}, $j, 1);
401 for (my $j = 0; $j <= $#{$nmdata}; ++$j) {
402 if ($nmdata->[$j] eq $kstrtab ||
403 $nmdata->[$j] eq $ksymtab) {
/linux-4.1.27/lib/
Dgen_crc32table.c38 unsigned i, j; in crc32init_le_generic() local
45 for (j = 0; j < LE_TABLE_SIZE; j += 2 * i) in crc32init_le_generic()
46 tab[0][i + j] = crc ^ tab[0][j]; in crc32init_le_generic()
50 for (j = 1; j < LE_TABLE_ROWS; j++) { in crc32init_le_generic()
52 tab[j][i] = crc; in crc32init_le_generic()
72 unsigned i, j; in crc32init_be() local
79 for (j = 0; j < i; j++) in crc32init_be()
80 crc32table_be[0][i + j] = crc ^ crc32table_be[0][j]; in crc32init_be()
84 for (j = 1; j < BE_TABLE_ROWS; j++) { in crc32init_be()
86 crc32table_be[j][i] = crc; in crc32init_be()
[all …]
Drbtree_test.c177 int i, j; in rbtree_test_init() local
188 for (j = 0; j < NODES; j++) in rbtree_test_init()
189 insert(nodes + j, &root); in rbtree_test_init()
190 for (j = 0; j < NODES; j++) in rbtree_test_init()
191 erase(nodes + j, &root); in rbtree_test_init()
202 for (j = 0; j < NODES; j++) { in rbtree_test_init()
203 check(j); in rbtree_test_init()
204 insert(nodes + j, &root); in rbtree_test_init()
206 for (j = 0; j < NODES; j++) { in rbtree_test_init()
207 check(NODES - j); in rbtree_test_init()
[all …]
Dhexdump.c113 int j, lx = 0; in hex_dump_to_buffer() local
139 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
141 "%s%16.16llx", j ? " " : "", in hex_dump_to_buffer()
142 (unsigned long long)*(ptr8 + j)); in hex_dump_to_buffer()
150 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
152 "%s%8.8x", j ? " " : "", in hex_dump_to_buffer()
153 *(ptr4 + j)); in hex_dump_to_buffer()
161 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
163 "%s%4.4x", j ? " " : "", in hex_dump_to_buffer()
164 *(ptr2 + j)); in hex_dump_to_buffer()
[all …]
Dinterval_tree_test.c49 int i, j; in interval_tree_test_init() local
61 for (j = 0; j < NODES; j++) in interval_tree_test_init()
62 interval_tree_insert(nodes + j, &root); in interval_tree_test_init()
63 for (j = 0; j < NODES; j++) in interval_tree_test_init()
64 interval_tree_remove(nodes + j, &root); in interval_tree_test_init()
75 for (j = 0; j < NODES; j++) in interval_tree_test_init()
76 interval_tree_insert(nodes + j, &root); in interval_tree_test_init()
82 for (j = 0; j < SEARCHES; j++) in interval_tree_test_init()
83 results += search(queries[j], &root); in interval_tree_test_init()
Ducs2_string.c57 unsigned long j = 0; in ucs2_utf8size() local
63 j += 3; in ucs2_utf8size()
65 j += 2; in ucs2_utf8size()
67 j += 1; in ucs2_utf8size()
70 return j; in ucs2_utf8size()
85 unsigned long j = 0; in ucs2_as_utf8() local
95 dest[j++] = 0xe0 | (c & 0xf000) >> 12; in ucs2_as_utf8()
96 dest[j++] = 0x80 | (c & 0x0fc0) >> 6; in ucs2_as_utf8()
97 dest[j++] = 0x80 | (c & 0x003f); in ucs2_as_utf8()
102 dest[j++] = 0xc0 | (c & 0x7c0) >> 6; in ucs2_as_utf8()
[all …]
Dcrc8.c31 int i, j; in crc8_populate_msb() local
39 for (j = 0; j < i; j++) in crc8_populate_msb()
40 table[i+j] = table[j] ^ t; in crc8_populate_msb()
53 int i, j; in crc8_populate_lsb() local
60 for (j = 0; j < CRC8_TABLE_SIZE; j += 2*i) in crc8_populate_lsb()
61 table[i+j] = table[j] ^ t; in crc8_populate_lsb()
Dinflate.c341 register unsigned j; /* counter */ in huft_build() local
393 for (j = 1; j <= BMAX; j++) in huft_build()
394 if (c[j]) in huft_build()
396 k = j; /* minimum code length */ in huft_build()
397 if ((unsigned)l < j) in huft_build()
398 l = j; in huft_build()
410 for (y = 1 << j; j < i; j++, y <<= 1) in huft_build()
411 if ((y -= c[j]) < 0) { in huft_build()
424 x[1] = j = 0; in huft_build()
427 *xp++ = (j += *p++); in huft_build()
[all …]
Dbch.c340 int i, j, s; in compute_syndromes() local
359 for (j = 0; j < 2*t; j += 2) in compute_syndromes()
360 syn[j] ^= a_pow(bch, (j+1)*(i+s)); in compute_syndromes()
367 for (j = 0; j < t; j++) in compute_syndromes()
368 syn[2*j+1] = gf_sqr(bch, syn[j]); in compute_syndromes()
381 unsigned int i, j, tmp, l, pd = 1, d = syn[0]; in compute_error_locator_polynomial() local
402 for (j = 0; j <= pelp->deg; j++) { in compute_error_locator_polynomial()
403 if (pelp->c[j]) { in compute_error_locator_polynomial()
404 l = a_log(bch, pelp->c[j]); in compute_error_locator_polynomial()
405 elp->c[j+k] ^= a_pow(bch, tmp+l); in compute_error_locator_polynomial()
[all …]
Ddecompress_bunzip2.c161 i, j, k, t, runPos, symCount, symTotal, nSelectors, *byteCount; in get_next_block() local
175 j = get_bits(bd, 24); in get_next_block()
177 if ((i == 0x177245) && (j == 0x385090)) in get_next_block()
179 if ((i != 0x314159) || (j != 0x265359)) in get_next_block()
199 for (j = 0; j < 16; j++) in get_next_block()
200 if (k&(1 << (15-j))) in get_next_block()
201 symToByte[symTotal++] = (16*i)+j; in get_next_block()
220 for (j = 0; get_bits(bd, 1); j++) in get_next_block()
221 if (j >= groupCount) in get_next_block()
224 uc = mtfSymbol[j]; in get_next_block()
[all …]
Doid_registry.c34 unsigned i, j, k, hash; in look_up_OID() local
52 j = (i + k) / 2; in look_up_OID()
54 xhash = oid_search_table[j].hash; in look_up_OID()
56 k = j; in look_up_OID()
60 i = j + 1; in look_up_OID()
64 oid = oid_search_table[j].oid; in look_up_OID()
67 k = j; in look_up_OID()
71 i = j + 1; in look_up_OID()
82 k = j; in look_up_OID()
86 i = j + 1; in look_up_OID()
Dseq_buf.c222 int i, j; local
229 for (i = 0, j = 0; i < start_len; i++) {
231 for (i = start_len-1, j = 0; i >= 0; i--) {
233 hex[j++] = hex_asc_hi(data[i]);
234 hex[j++] = hex_asc_lo(data[i]);
236 if (WARN_ON_ONCE(j == 0 || j/2 > len))
240 len -= j / 2;
241 hex[j++] = ' ';
243 seq_buf_putmem(s, hex, j);
Dts_bm.c100 static int subpattern(u8 *pattern, int i, int j, int g) in subpattern() argument
102 int x = i+g-1, y = j+g-1, ret = 0; in subpattern()
110 ret = pattern[i-1] != pattern[j-1]; in subpattern()
120 int i, j, g; in compute_prefix_tbl() local
137 for (j = i-1; j >= 1-g ; j--) in compute_prefix_tbl()
138 if (subpattern(bm->pattern, i, j, g)) { in compute_prefix_tbl()
139 bm->good_shift[g] = bm->patlen-j-g; in compute_prefix_tbl()
/linux-4.1.27/lib/reed_solomon/
Ddecode_rs.c21 int i, j, r, k, pad; variable
53 for (j = 1; j < len; j++) {
56 syn[i] = (((uint16_t) data[j]) ^
59 syn[i] = ((((uint16_t) data[j]) ^
67 for (j = 0; j < nroots; j++) {
70 syn[i] = ((uint16_t) par[j]) & msk;
72 syn[i] = (((uint16_t) par[j]) & msk) ^
105 for (j = i + 1; j > 0; j--) {
106 tmp = index_of[lambda[j - 1]];
108 lambda[j] ^=
[all …]
Dencode_rs.c21 int i, j, pad; variable
39 for (j = 1; j < nroots; j++) {
40 par[j] ^= alpha_to[rs_modnn(rs, fb +
41 genpoly[nroots - j])];
/linux-4.1.27/kernel/
Drange.c65 int i, j; in subtract_range() local
70 for (j = 0; j < az; j++) { in subtract_range()
71 if (!range[j].end) in subtract_range()
74 if (start <= range[j].start && end >= range[j].end) { in subtract_range()
75 range[j].start = 0; in subtract_range()
76 range[j].end = 0; in subtract_range()
80 if (start <= range[j].start && end < range[j].end && in subtract_range()
81 range[j].start < end) { in subtract_range()
82 range[j].start = end; in subtract_range()
87 if (start > range[j].start && end >= range[j].end && in subtract_range()
[all …]
/linux-4.1.27/lib/raid6/test/
Dtest.c33 int i, j; in makedata() local
36 for (j = 0; j < PAGE_SIZE; j++) in makedata()
37 data[i][j] = rand(); in makedata()
55 static int test_disks(int i, int j) in test_disks() argument
63 dataptrs[j] = recovj; in test_disks()
65 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks()
68 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
70 if (i < NDISKS-2 && j == NDISKS-1) { in test_disks()
78 j, disk_type(j), in test_disks()
85 dataptrs[j] = data[j]; in test_disks()
[all …]
/linux-4.1.27/drivers/staging/wlan-ng/
Dp80211wep.c154 u32 i, j, k, crc, keylen; in wep_decrypt() local
192 j = 0; in wep_decrypt()
194 j = (j + s[i] + key[i % keylen]) & 0xff; in wep_decrypt()
195 swap(i, j); in wep_decrypt()
200 i = j = 0; in wep_decrypt()
203 j = (j + s[i]) & 0xff; in wep_decrypt()
204 swap(i, j); in wep_decrypt()
205 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
218 j = (j + s[i]) & 0xff; in wep_decrypt()
219 swap(i, j); in wep_decrypt()
[all …]
/linux-4.1.27/drivers/net/wireless/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-4.1.27/crypto/
Dgf128mul.c269 int i, j, k; in gf128mul_init_64k_lle() local
285 for (j = 64; j > 0; j >>= 1) in gf128mul_init_64k_lle()
286 gf128mul_x_lle(&t->t[0]->t[j], &t->t[0]->t[j + j]); in gf128mul_init_64k_lle()
289 for (j = 2; j < 256; j += j) in gf128mul_init_64k_lle()
290 for (k = 1; k < j; ++k) in gf128mul_init_64k_lle()
291 be128_xor(&t->t[i]->t[j + k], in gf128mul_init_64k_lle()
292 &t->t[i]->t[j], &t->t[i]->t[k]); in gf128mul_init_64k_lle()
297 for (j = 128; j > 0; j >>= 1) { in gf128mul_init_64k_lle()
298 t->t[i]->t[j] = t->t[i - 1]->t[j]; in gf128mul_init_64k_lle()
299 gf128mul_x8_lle(&t->t[i]->t[j]); in gf128mul_init_64k_lle()
[all …]
Dtwofish_common.c543 #define CALC_K_2(a, b, c, d, j) \ argument
544 mds[0][q0[a ^ key[(j) + 8]] ^ key[j]] \
545 ^ mds[1][q0[b ^ key[(j) + 9]] ^ key[(j) + 1]] \
546 ^ mds[2][q1[c ^ key[(j) + 10]] ^ key[(j) + 2]] \
547 ^ mds[3][q1[d ^ key[(j) + 11]] ^ key[(j) + 3]]
549 #define CALC_K(a, j, k, l, m, n) \ argument
553 x += y; y += x; ctx->a[j] = x; \
554 ctx->a[(j) + 1] = rol32(y, 9)
556 #define CALC_K192_2(a, b, c, d, j) \ argument
557 CALC_K_2 (q0[a ^ key[(j) + 16]], \
[all …]
Dblowfish_common.c354 short i, j, count; in blowfish_setkey() local
359 for (j = 0; j < 4; j++, count++) in blowfish_setkey()
367 for (j = 0, i = 0; i < 16 + 2; i++) { in blowfish_setkey()
368 temp = (((u32)key[j] << 24) | in blowfish_setkey()
369 ((u32)key[(j + 1) % keylen] << 16) | in blowfish_setkey()
370 ((u32)key[(j + 2) % keylen] << 8) | in blowfish_setkey()
371 ((u32)key[(j + 3) % keylen])); in blowfish_setkey()
374 j = (j + 4) % keylen; in blowfish_setkey()
388 for (j = 0, count = i * 256; j < 256; j += 2, count += 2) { in blowfish_setkey()
/linux-4.1.27/drivers/staging/sm750fb/
Dsm750_cursor.c98 int i,j,count,pitch,offset; in hw_cursor_setData() local
140 for(j=0;j<8;j++) in hw_cursor_setData()
143 if(opr & (0x80 >> j)) in hw_cursor_setData()
145 data |= 2 << (j*2); in hw_cursor_setData()
148 data |= 1 << (j*2); in hw_cursor_setData()
152 for(j=0;j<8;j++){ in hw_cursor_setData()
153 if(mask & (0x80>>j)){ in hw_cursor_setData()
160 data |= ((opr & (0x80>>j))?2:1)<<(j*2); in hw_cursor_setData()
189 int i,j,count,pitch,offset; in hw_cursor_setData2() local
220 for(j=0;j<8;j++) in hw_cursor_setData2()
[all …]
/linux-4.1.27/Documentation/auxdisplay/
Dcfag12864b-example.c167 unsigned char i, j, n; in cfag12864b_format() local
170 for (j = 0; j < CFAG12864B_WIDTH / CFAG12864B_BPB; j++) { in cfag12864b_format()
172 j] = 0; in cfag12864b_format()
175 j * CFAG12864B_BPB + n]) in cfag12864b_format()
177 CFAG12864B_BPB + j] |= in cfag12864b_format()
202 unsigned short i, j; in example() local
215 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example()
216 cfag12864b_set(i, j); in example()
228 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example()
229 matrix[j * CFAG12864B_WIDTH + i] = 1; in example()
[all …]
/linux-4.1.27/drivers/md/bcache/
Dbset.c367 static unsigned inorder_next(unsigned j, unsigned size) in inorder_next() argument
369 if (j * 2 + 1 < size) { in inorder_next()
370 j = j * 2 + 1; in inorder_next()
372 while (j * 2 < size) in inorder_next()
373 j *= 2; in inorder_next()
375 j >>= ffz(j) + 1; in inorder_next()
377 return j; in inorder_next()
380 static unsigned inorder_prev(unsigned j, unsigned size) in inorder_prev() argument
382 if (j * 2 < size) { in inorder_prev()
383 j = j * 2; in inorder_prev()
[all …]
Djournal.c40 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket() local
73 j = data; in journal_read_bucket()
76 size_t blocks, bytes = set_bytes(j); in journal_read_bucket()
78 if (j->magic != jset_magic(&ca->sb)) { in journal_read_bucket()
93 if (j->csum != csum_set(j)) { in journal_read_bucket()
99 blocks = set_blocks(j, block_bytes(ca->set)); in journal_read_bucket()
104 if (i->j.seq >= j->last_seq) in journal_read_bucket()
111 if (j->seq == i->j.seq) in journal_read_bucket()
114 if (j->seq < i->j.last_seq) in journal_read_bucket()
117 if (j->seq > i->j.seq) { in journal_read_bucket()
[all …]
/linux-4.1.27/arch/arm/common/
Dedma.c168 static inline void edma_or_array2(unsigned ctlr, int offset, int i, int j, in edma_or_array2() argument
171 edma_or(ctlr, offset + ((i*2 + j) << 2), or); in edma_or_array2()
173 static inline void edma_write_array2(unsigned ctlr, int offset, int i, int j, in edma_write_array2() argument
176 edma_write(ctlr, offset + ((i*2 + j) << 2), val); in edma_write_array2()
443 int j = -1; in dma_ccerr_handler() local
445 j = 0; in dma_ccerr_handler()
447 j = 1; in dma_ccerr_handler()
448 if (j >= 0) { in dma_ccerr_handler()
449 dev_dbg(data, "EMR%d %08x\n", j, in dma_ccerr_handler()
450 edma_read_array(ctlr, EDMA_EMR, j)); in dma_ccerr_handler()
[all …]
/linux-4.1.27/arch/frv/include/uapi/asm/
Dptrace.h33 #define PT_GR(j) ( 14 + (j)) /* GRj for 0<=j<=63 */ argument
34 #define PT_FR(j) ( 78 + (j)) /* FRj for 0<=j<=63 */ argument
35 #define PT_FNER(j) (142 + (j)) /* FNERj for 0<=j<=1 */ argument
36 #define PT_MSR(j) (144 + (j)) /* MSRj for 0<=j<=2 */ argument
37 #define PT_ACC(j) (146 + (j)) /* ACCj for 0<=j<=7 */ argument
39 #define PT_FSR(j) (156 + (j)) /* FSRj for 0<=j<=0 */ argument
/linux-4.1.27/drivers/video/console/
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-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv30.c67 calc_bias(struct nv04_fb_priv *priv, int k, int i, int j) in calc_bias() argument
71 nv_rd32(priv, 0x122c + 0x10 * k + 0x4 * j) >> (4 * (i ^ 1)) : 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(priv, k, i, j); in calc_ref()
85 x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j); in calc_ref()
96 int ret, i, j; in nv30_fb_init() local
111 for (j = 0; j < 3; j++) in nv30_fb_init()
112 nv_wr32(priv, 0x10037c + 0xc * i + 0x4 * j, in nv30_fb_init()
113 calc_ref(priv, l, 0, j)); in nv30_fb_init()
[all …]
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_security.c130 sint i, j; in crc32_init() local
138 for (c = ((u32)k) << 24, j = 8; j > 0; --j) in crc32_init()
1031 uint qc_exists, a4_exists, i, j, payload_remainder; in aes_cipher() local
1103 for (j = 0; j < 16; j++) in aes_cipher()
1104 padded_buffer[j] = 0x00; in aes_cipher()
1105 for (j = 0; j < payload_remainder; j++) in aes_cipher()
1106 padded_buffer[j] = pframe[payload_index++]; in aes_cipher()
1110 for (j = 0; j < 8; j++) in aes_cipher()
1111 mic[j] = aes_out[j]; in aes_cipher()
1113 for (j = 0; j < 8; j++) in aes_cipher()
[all …]
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_security.c102 int i, j; in crc32_init() local
116 for (c = ((u32)k) << 24, j = 8; j > 0; --j) in crc32_init()
1140 uint qc_exists, a4_exists, i, j, payload_remainder, in aes_cipher() local
1223 for (j = 0; j < 16; j++) in aes_cipher()
1224 padded_buffer[j] = 0x00; in aes_cipher()
1225 for (j = 0; j < payload_remainder; j++) in aes_cipher()
1226 padded_buffer[j] = pframe[payload_index++]; in aes_cipher()
1231 for (j = 0; j < 8; j++) in aes_cipher()
1232 mic[j] = aes_out[j]; in aes_cipher()
1235 for (j = 0; j < 8; j++) in aes_cipher()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_conntrack_sane.c177 int i, j; in nf_conntrack_sane_fini() local
180 for (j = 0; j < 2; j++) { in nf_conntrack_sane_fini()
183 sane[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_sane_fini()
184 nf_conntrack_helper_unregister(&sane[i][j]); in nf_conntrack_sane_fini()
193 int i, j = -1, ret = 0; in nf_conntrack_sane_init() local
207 for (j = 0; j < 2; j++) { in nf_conntrack_sane_init()
208 sane[i][j].data_len = sizeof(struct nf_ct_sane_master); in nf_conntrack_sane_init()
209 sane[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_sane_init()
210 sane[i][j].tuple.dst.protonum = IPPROTO_TCP; in nf_conntrack_sane_init()
211 sane[i][j].expect_policy = &sane_exp_policy; in nf_conntrack_sane_init()
[all …]
Dnf_conntrack_tftp.c107 int i, j; in nf_conntrack_tftp_fini() local
110 for (j = 0; j < 2; j++) in nf_conntrack_tftp_fini()
111 nf_conntrack_helper_unregister(&tftp[i][j]); in nf_conntrack_tftp_fini()
117 int i, j, ret; in nf_conntrack_tftp_init() local
127 for (j = 0; j < 2; j++) { in nf_conntrack_tftp_init()
128 tftp[i][j].tuple.dst.protonum = IPPROTO_UDP; in nf_conntrack_tftp_init()
129 tftp[i][j].tuple.src.u.udp.port = htons(ports[i]); in nf_conntrack_tftp_init()
130 tftp[i][j].expect_policy = &tftp_exp_policy; in nf_conntrack_tftp_init()
131 tftp[i][j].me = THIS_MODULE; in nf_conntrack_tftp_init()
132 tftp[i][j].help = tftp_help; in nf_conntrack_tftp_init()
[all …]
Dnf_conntrack_ftp.c583 int i, j; in nf_conntrack_ftp_fini() local
585 for (j = 0; j < 2; j++) { in nf_conntrack_ftp_fini()
586 if (ftp[i][j].me == NULL) in nf_conntrack_ftp_fini()
591 ftp[i][j].tuple.src.l3num, ports[i]); in nf_conntrack_ftp_fini()
592 nf_conntrack_helper_unregister(&ftp[i][j]); in nf_conntrack_ftp_fini()
601 int i, j = -1, ret = 0; in nf_conntrack_ftp_init() local
615 for (j = 0; j < 2; j++) { in nf_conntrack_ftp_init()
616 ftp[i][j].data_len = sizeof(struct nf_ct_ftp_master); in nf_conntrack_ftp_init()
617 ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]); in nf_conntrack_ftp_init()
618 ftp[i][j].tuple.dst.protonum = IPPROTO_TCP; in nf_conntrack_ftp_init()
[all …]
/linux-4.1.27/drivers/input/joystick/
Dgrip.c126 unsigned int i, j, buf, crc; in grip_xt_read_packet() local
135 status = buf = i = j = 0; in grip_xt_read_packet()
161 j++; in grip_xt_read_packet()
171 } while (status != 0xf && i < GRIP_MAX_BITS_XT && j < GRIP_MAX_CHUNKS_XT && t > 0); in grip_xt_read_packet()
187 int i, j; in grip_poll() local
209 for (j = 0; j < 12; j++) in grip_poll()
210 if (grip_btn_gpp[j]) in grip_poll()
211 input_report_key(dev, grip_btn_gpp[j], (*data >> j) & 1); in grip_poll()
229 for (j = 0; j < 5; j++) in grip_poll()
230 input_report_key(dev, grip_btn_bd[j], (data[3] >> (j + 4)) & 1); in grip_poll()
[all …]
Dsidewinder.c198 int j; in sw_read_packet() local
200 for (j = 0; j < i; j++) printk("%d", buf[j]); in sw_read_packet()
303 int hat, i, j; in sw_parse() local
323 for (j = 0; j < 7; j++) in sw_parse()
324 input_report_key(dev, sw_btn[SW_ID_3DP][j], !GB(j+8,1)); in sw_parse()
343 for (j = 0; j < 10; j++) in sw_parse()
344 input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1)); in sw_parse()
366 for (j = 0; j < 9; j++) in sw_parse()
367 input_report_key(dev, sw_btn[SW_ID_PP][j], !GB(j,1)); in sw_parse()
386 for (j = 0; j < 6; j++) in sw_parse()
[all …]
Ddb9.c208 int i, j; in db9_saturn_read_packet() local
248 for (j = 0; j < (data[i] & 0x0f); j++) in db9_saturn_read_packet()
249 data[i + j + 1] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
276 int tmp, i, j; in db9_saturn_report() local
279 for (j = 0; j < tmp && n < max_pads; j += 10, n++) { in db9_saturn_report()
281 switch (data[j]) { in db9_saturn_report()
283 input_report_abs(dev, db9_abs[5], data[j + 6]); in db9_saturn_report()
285 input_report_abs(dev, db9_abs[3], data[j + 4]); in db9_saturn_report()
286 input_report_abs(dev, db9_abs[4], data[j + 5]); in db9_saturn_report()
288 input_report_abs(dev, db9_abs[2], data[j + 3]); in db9_saturn_report()
[all …]
Dcobra.c62 int i, j, ret; in cobra_read_packet() local
96 for (j = 0; j < COBRA_LENGTH && (buf[i] & 0x04104107f) ^ 0x041041040; j++) in cobra_read_packet()
99 if (j < COBRA_LENGTH) ret |= (1 << i); in cobra_read_packet()
115 int i, j, r; in cobra_poll() local
132 for (j = 0; cobra_btn[j]; j++) in cobra_poll()
133 input_report_key(dev, cobra_btn[j], data[i] & (0x20 << j)); in cobra_poll()
160 int i, j; in cobra_connect() local
221 for (j = 0; cobra_btn[j]; j++) in cobra_connect()
222 set_bit(cobra_btn[j], input_dev->keybit); in cobra_connect()
Djoydump.c54 int i, j, t, timeout; in joydump_connect() local
127 for (j = 7; j >= 0; j--) in joydump_connect()
128 printk("%d", (dump->data >> j) & 1); in joydump_connect()
135 for (j = 7; j >= 0; j--) in joydump_connect()
136 printk("%d", (dump->data >> j) & 1); in joydump_connect()
Dgamecon.c224 int i, j, s; in gc_n64_process_packet() local
241 for (j = 0; j < 8; j++) { in gc_n64_process_packet()
242 if (data[23 - j] & s) in gc_n64_process_packet()
243 x |= 1 << j; in gc_n64_process_packet()
244 if (data[31 - j] & s) in gc_n64_process_packet()
245 y |= 1 << j; in gc_n64_process_packet()
256 for (j = 0; j < 10; j++) in gc_n64_process_packet()
257 input_report_key(dev, gc_n64_btn[j], in gc_n64_process_packet()
258 s & data[gc_n64_bytes[j]]); in gc_n64_process_packet()
378 int i, j, s, len; in gc_nes_process_packet() local
[all …]
Danalog.c205 int i, j; in analog_decode() local
214 for (i = j = 0; i < 6; i++) in analog_decode()
216 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode()
220 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode()
231 for (i = j = 0; i < 4; i++) in analog_decode()
233 input_report_abs(dev, analog_axes[j++], axes[i]); in analog_decode()
235 for (i = j = 0; i < 3; i++) in analog_decode()
237 input_report_abs(dev, analog_hats[j++], in analog_decode()
239 input_report_abs(dev, analog_hats[j++], in analog_decode()
257 int i, j; in analog_cooked_read() local
[all …]
/linux-4.1.27/scripts/selinux/genheaders/
Dgenheaders.c43 int i, j, k; in main() local
64 for (j = 0; map->perms[j]; j++) in main()
65 map->perms[j] = stoupperx(map->perms[j]); in main()
78 for (j = 0; j < max(1, 40 - strlen(map->name)); j++) in main()
88 for (j = 0; j < max(1, 40 - strlen(s)); j++) in main()
126 for (j = 0; map->perms[j]; j++) { in main()
128 map->perms[j]); in main()
129 for (k = 0; k < max(1, 40 - strlen(map->name) - strlen(map->perms[j])); k++) in main()
131 fprintf(fout, "0x%08xUL\n", (1<<j)); in main()
/linux-4.1.27/arch/x86/kernel/
Dirq.c57 int j; in arch_show_interrupts() local
60 for_each_online_cpu(j) in arch_show_interrupts()
61 seq_printf(p, "%10u ", irq_stats(j)->__nmi_count); in arch_show_interrupts()
65 for_each_online_cpu(j) in arch_show_interrupts()
66 seq_printf(p, "%10u ", irq_stats(j)->apic_timer_irqs); in arch_show_interrupts()
70 for_each_online_cpu(j) in arch_show_interrupts()
71 seq_printf(p, "%10u ", irq_stats(j)->irq_spurious_count); in arch_show_interrupts()
74 for_each_online_cpu(j) in arch_show_interrupts()
75 seq_printf(p, "%10u ", irq_stats(j)->apic_perf_irqs); in arch_show_interrupts()
78 for_each_online_cpu(j) in arch_show_interrupts()
[all …]
/linux-4.1.27/drivers/char/agp/
Dsgi-agp.c132 off_t j; in sgi_tioca_insert_memory() local
176 j = pg_start; in sgi_tioca_insert_memory()
178 while (j < (pg_start + mem->page_count)) { in sgi_tioca_insert_memory()
179 if (table[j]) in sgi_tioca_insert_memory()
181 j++; in sgi_tioca_insert_memory()
189 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in sgi_tioca_insert_memory()
190 table[j] = in sgi_tioca_insert_memory()
274 unsigned int j; in agp_sgi_init() local
289 j = 0; in agp_sgi_init()
302 sgi_tioca_agp_bridges[j] = agp_alloc_bridge(); in agp_sgi_init()
[all …]
/linux-4.1.27/drivers/scsi/isci/
Dprobe_roms.c46 int j; in isci_request_oprom() local
80 for (j = 0, sum = 0; j < sizeof(oem_hdr); j++, tmp++) in isci_request_oprom()
84 for (j = 0; j < sizeof(*rom); j++, tmp++) in isci_request_oprom()
117 int i, j; in isci_request_firmware() local
145 for (j = 0; j < ARRAY_SIZE(orom->ctrl[i].phys); j++) { in isci_request_firmware()
146 orom->ctrl[i].phys[j].afe_tx_amp_control0 = 0xe7c03; in isci_request_firmware()
147 orom->ctrl[i].phys[j].afe_tx_amp_control1 = 0xe7c03; in isci_request_firmware()
148 orom->ctrl[i].phys[j].afe_tx_amp_control2 = 0xe7c03; in isci_request_firmware()
149 orom->ctrl[i].phys[j].afe_tx_amp_control3 = 0xe7c03; in isci_request_firmware()
172 int j; in isci_get_efi_var() local
[all …]
/linux-4.1.27/drivers/sh/intc/
Dhandle.c22 unsigned int i, j; in intc_grp_id() local
27 for (j = 0; g->enum_ids[j]; j++) { in intc_grp_id()
28 if (g->enum_ids[j] != enum_id) in intc_grp_id()
93 unsigned int j = 0; in intc_get_mask_handle() local
96 ret = _intc_mask_data(desc, d, enum_id, &i, &j); in intc_get_mask_handle()
162 unsigned int j = 0; in intc_get_prio_handle() local
165 ret = _intc_prio_data(desc, d, enum_id, &i, &j); in intc_get_prio_handle()
179 unsigned int i, j, fn, mode; in intc_ack_data() local
185 for (j = 0; j < ARRAY_SIZE(mr->enum_ids); j++) { in intc_ack_data()
186 if (mr->enum_ids[j] != enum_id) in intc_ack_data()
[all …]
Dbalancing.c45 unsigned int i, j, fn, mode; in intc_dist_data() local
58 for (j = 0; j < ARRAY_SIZE(mr->enum_ids); j++) { in intc_dist_data()
59 if (mr->enum_ids[j] != enum_id) in intc_dist_data()
72 (mr->reg_width - 1) - j); in intc_dist_data()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_security.c102 int i, j; in crc32_init() local
111 for (c = ((u32)k) << 24, j = 8; j > 0; --j) in crc32_init()
1065 uint qc_exists, a4_exists, i, j, payload_remainder, in aes_cipher() local
1143 for (j = 0; j < 16; j++) in aes_cipher()
1144 padded_buffer[j] = 0x00; in aes_cipher()
1145 for (j = 0; j < payload_remainder; j++) in aes_cipher()
1146 padded_buffer[j] = pframe[payload_index++];/* padded_buffer[j] = message[payload_index++]; */ in aes_cipher()
1151 for (j = 0; j < 8; j++) in aes_cipher()
1152 mic[j] = aes_out[j]; in aes_cipher()
1155 for (j = 0; j < 8; j++) in aes_cipher()
[all …]
/linux-4.1.27/arch/x86/boot/
Dmkcpustr.c25 int i, j; in main() local
31 for (j = 0; j < 32; j++) { in main()
32 str = x86_cap_flags[i*32+j]; in main()
34 if (i == NCAPINTS-1 && j == 31) { in main()
41 i, j, str); in main()
46 i, j, i, j, str); in main()
Dcpu.c39 int i, j; in show_cap_strs() local
44 for (j = 0; j < 32; j++) { in show_cap_strs()
46 (msg_strs[0] == i && msg_strs[1] < j)) { in show_cap_strs()
54 msg_strs[1] == j && in show_cap_strs()
58 printf("%d:%d ", i, j); in show_cap_strs()
66 for (j = 0; j < 32; j++) { in show_cap_strs()
68 printf("%d:%d ", i, j); in show_cap_strs()
/linux-4.1.27/drivers/tty/ipwireless/
Dtty.c447 static int add_tty(int j, in add_tty() argument
452 ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL); in add_tty()
453 if (!ttys[j]) in add_tty()
455 ttys[j]->index = j; in add_tty()
456 ttys[j]->hardware = hardware; in add_tty()
457 ttys[j]->channel_idx = channel_idx; in add_tty()
458 ttys[j]->secondary_channel_idx = secondary_channel_idx; in add_tty()
459 ttys[j]->network = network; in add_tty()
460 ttys[j]->tty_type = tty_type; in add_tty()
461 mutex_init(&ttys[j]->ipw_tty_mutex); in add_tty()
[all …]
/linux-4.1.27/drivers/isdn/mISDN/
Ddsp_blowfish.c371 int i = 0, j = dsp->bf_crypt_pos; in dsp_bf_encrypt() local
382 if (j < 9) { in dsp_bf_encrypt()
383 bf_data_in[j] = *data; in dsp_bf_encrypt()
384 *data++ = bf_crypt_out[j++]; in dsp_bf_encrypt()
388 j = 0; in dsp_bf_encrypt()
448 dsp->bf_crypt_pos = j; in dsp_bf_encrypt()
461 u8 j = dsp->bf_decrypt_in_pos; in dsp_bf_decrypt() local
478 bf_crypt_inring[j++ & 15] = *data; in dsp_bf_decrypt()
486 j -= 9; in dsp_bf_decrypt()
488 yl = bf_crypt_inring[j++ & 15]; in dsp_bf_decrypt()
[all …]
Ddsp_audio.c142 int z, j; in reverse_bits() local
145 for (j = 0; j < 8; j++) { in reverse_bits()
146 if ((i & (1 << j)) != 0) in reverse_bits()
147 z |= 1 << (7 - j); in reverse_bits()
205 int i, j, k; in dsp_audio_generate_seven() local
211 j = 0; in dsp_audio_generate_seven()
215 j++; in dsp_audio_generate_seven()
217 sorted_alaw[j] = i; in dsp_audio_generate_seven()
227 for (j = 0; j < 256; j++) { in dsp_audio_generate_seven()
228 if (sorted_alaw[j] == spl) in dsp_audio_generate_seven()
[all …]
/linux-4.1.27/drivers/devfreq/exynos/
Dexynos_ppmu.c80 int i, j; in exynos_read_ppmu() local
90 for (j = PPMU_PMNCNT0; j < PPMU_PMNCNT_MAX; j++) { in exynos_read_ppmu()
91 if (ppmu_data->ppmu[i].event[j] == 0) in exynos_read_ppmu()
92 ppmu_data->ppmu[i].count[j] = 0; in exynos_read_ppmu()
94 ppmu_data->ppmu[i].count[j] = in exynos_read_ppmu()
95 exynos_ppmu_read(ppmu_base, j); in exynos_read_ppmu()
106 int i, j, busy = 0; in exynos_get_busier_ppmu() local
109 for (j = PPMU_PMNCNT0; j < PPMU_PMNCNT_MAX; j++) { in exynos_get_busier_ppmu()
110 if (ppmu_data->ppmu[i].count[j] > count) { in exynos_get_busier_ppmu()
111 count = ppmu_data->ppmu[i].count[j]; in exynos_get_busier_ppmu()
/linux-4.1.27/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c62 unsigned long j; in testcase() local
65 for (j = 0; j < SIZE; j++) in testcase()
66 s1[j] = random(); in testcase()
80 unsigned long j; in testcase() local
83 for (j = 0; j < SIZE; j++) in testcase()
84 s1[j] = random(); in testcase()
89 for (j = 0; j < SIZE / 8; j++) { in testcase()
/linux-4.1.27/drivers/iio/imu/
Dadis_buffer.c29 unsigned int i, j; in adis_update_scan_mode() local
50 for (j = 0; j <= scan_count; j++) { in adis_update_scan_mode()
51 adis->xfer[j].bits_per_word = 8; in adis_update_scan_mode()
52 if (j != scan_count) in adis_update_scan_mode()
53 adis->xfer[j].cs_change = 1; in adis_update_scan_mode()
54 adis->xfer[j].len = 2; in adis_update_scan_mode()
55 adis->xfer[j].delay_usecs = adis->data->read_delay; in adis_update_scan_mode()
56 if (j < scan_count) in adis_update_scan_mode()
57 adis->xfer[j].tx_buf = &tx[j]; in adis_update_scan_mode()
58 if (j >= 1) in adis_update_scan_mode()
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Dsyscall.h101 unsigned int j; in syscall_get_arguments() local
108 for (j = 0; j < n; j++) { in syscall_get_arguments()
109 unsigned long val = regs->u_regs[UREG_I0 + i + j]; in syscall_get_arguments()
112 args[j] = (u32) val; in syscall_get_arguments()
114 args[j] = val; in syscall_get_arguments()
123 unsigned int j; in syscall_set_arguments() local
125 for (j = 0; j < n; j++) in syscall_set_arguments()
126 regs->u_regs[UREG_I0 + i + j] = args[j]; in syscall_set_arguments()
/linux-4.1.27/lib/mpi/
Dgeneric_mpih-add1.c38 mpi_size_t j; in mpihelp_add_n() local
42 j = -size; in mpihelp_add_n()
45 s1_ptr -= j; in mpihelp_add_n()
46 s2_ptr -= j; in mpihelp_add_n()
47 res_ptr -= j; in mpihelp_add_n()
51 y = s2_ptr[j]; in mpihelp_add_n()
52 x = s1_ptr[j]; in mpihelp_add_n()
57 res_ptr[j] = y; in mpihelp_add_n()
58 } while (++j); in mpihelp_add_n()
Dgeneric_mpih-sub1.c37 mpi_size_t j; in mpihelp_sub_n() local
41 j = -size; in mpihelp_sub_n()
44 s1_ptr -= j; in mpihelp_sub_n()
45 s2_ptr -= j; in mpihelp_sub_n()
46 res_ptr -= j; in mpihelp_sub_n()
50 y = s2_ptr[j]; in mpihelp_sub_n()
51 x = s1_ptr[j]; in mpihelp_sub_n()
56 res_ptr[j] = y; in mpihelp_sub_n()
57 } while (++j); in mpihelp_sub_n()
Dgeneric_mpih-mul2.c37 mpi_size_t j; in mpihelp_addmul_1() local
43 j = -s1_size; in mpihelp_addmul_1()
44 res_ptr -= j; in mpihelp_addmul_1()
45 s1_ptr -= j; in mpihelp_addmul_1()
49 umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); in mpihelp_addmul_1()
54 x = res_ptr[j]; in mpihelp_addmul_1()
57 res_ptr[j] = prod_low; in mpihelp_addmul_1()
58 } while (++j); in mpihelp_addmul_1()
Dgeneric_mpih-mul3.c37 mpi_size_t j; in mpihelp_submul_1() local
43 j = -s1_size; in mpihelp_submul_1()
44 res_ptr -= j; in mpihelp_submul_1()
45 s1_ptr -= j; in mpihelp_submul_1()
49 umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); in mpihelp_submul_1()
54 x = res_ptr[j]; in mpihelp_submul_1()
57 res_ptr[j] = prod_low; in mpihelp_submul_1()
58 } while (++j); in mpihelp_submul_1()
Dgeneric_mpih-mul1.c37 mpi_size_t j; in mpihelp_mul_1() local
42 j = -s1_size; in mpihelp_mul_1()
45 s1_ptr -= j; in mpihelp_mul_1()
46 res_ptr -= j; in mpihelp_mul_1()
50 umul_ppmm(prod_high, prod_low, s1_ptr[j], s2_limb); in mpihelp_mul_1()
53 res_ptr[j] = prod_low; in mpihelp_mul_1()
54 } while (++j); in mpihelp_mul_1()
/linux-4.1.27/drivers/misc/cb710/
Ddebug.c36 unsigned i, j; \
42 for (j = 0; j < 0x10/(t/8); ++j) { \
43 if (!allow_reg_read(i, j, t)) \
45 reg[j] = ioread##t(iobase \
46 + (i << 4) + (j * (t/8))); \
64 unsigned i, j; \
70 for (j = 0; j < 0x10/(t/8); ++j) { \
72 if (j == 8/(t/8)) \
74 if (allow_reg_read(i, j, t)) \
75 p += sprintf(p, format, reg[j]); \
/linux-4.1.27/arch/powerpc/perf/
Dpower6-pmu.c345 int i, j; in find_alternatives_list() local
351 for (j = 0; j < MAX_ALT; ++j) { in find_alternatives_list()
352 alt = event_alternatives[i][j]; in find_alternatives_list()
364 int i, j, nlim; in p6_get_alternatives() local
376 for (j = 0; j < MAX_ALT; ++j) { in p6_get_alternatives()
377 aevent = event_alternatives[i][j]; in p6_get_alternatives()
411 j = nalt; in p6_get_alternatives()
415 alt[j++] = 0x600005; /* PM_RUN_CYC */ in p6_get_alternatives()
419 alt[j++] = 0x1e; /* PM_CYC */ in p6_get_alternatives()
422 alt[j++] = 0x500009; /* PM_RUN_INST_CMPL */ in p6_get_alternatives()
[all …]
Dpower5+-pmu.c220 int i, j; in find_alternative() local
225 for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) in find_alternative()
226 if (event == event_alternatives[i][j]) in find_alternative()
247 int pmc, altpmc, pp, j; in find_alternative_bdecode() local
254 for (j = 0; j < 4; ++j) { in find_alternative_bdecode()
255 if (bytedecode_alternatives[pmc - 1][j] == pp) { in find_alternative_bdecode()
258 bytedecode_alternatives[altpmc - 1][j]; in find_alternative_bdecode()
278 int i, j, nalt = 1; in power5p_get_alternatives() local
287 for (j = 0; j < MAX_ALT; ++j) { in power5p_get_alternatives()
288 ae = event_alternatives[i][j]; in power5p_get_alternatives()
[all …]
Dpower7-pmu.c134 int i, j; in find_alternative() local
139 for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) in find_alternative()
140 if (event == event_alternatives[i][j]) in find_alternative()
162 int i, j, nalt = 1; in power7_get_alternatives() local
169 for (j = 0; j < MAX_ALT; ++j) { in power7_get_alternatives()
170 ae = event_alternatives[i][j]; in power7_get_alternatives()
188 j = nalt; in power7_get_alternatives()
192 alt[j++] = 0x600f4; /* PM_RUN_CYC */ in power7_get_alternatives()
195 alt[j++] = 0x1e; in power7_get_alternatives()
198 alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ in power7_get_alternatives()
[all …]
Dmpc7450-pmu.c214 int i, j; in find_alternative() local
219 for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) in find_alternative()
220 if (event == event_alternatives[i][j]) in find_alternative()
228 int i, j, nalt = 1; in mpc7450_get_alternatives() local
235 for (j = 0; j < MAX_ALT; ++j) { in mpc7450_get_alternatives()
236 ae = event_alternatives[i][j]; in mpc7450_get_alternatives()
269 int i, j, class, tuse; in mpc7450_compute_mmcr() local
284 j = n_classevent[class]++; in mpc7450_compute_mmcr()
285 event_index[class][j] = i; in mpc7450_compute_mmcr()
Dpower5-pmu.c229 int i, j; in find_alternative() local
234 for (j = 0; j < MAX_ALT && event_alternatives[i][j]; ++j) in find_alternative()
235 if (event == event_alternatives[i][j]) in find_alternative()
255 int pmc, altpmc, pp, j; in find_alternative_bdecode() local
262 for (j = 0; j < 4; ++j) { in find_alternative_bdecode()
263 if (bytedecode_alternatives[pmc - 1][j] == pp) { in find_alternative_bdecode()
266 bytedecode_alternatives[altpmc - 1][j]; in find_alternative_bdecode()
274 int i, j, nalt = 1; in power5_get_alternatives() local
281 for (j = 0; j < MAX_ALT; ++j) { in power5_get_alternatives()
282 ae = event_alternatives[i][j]; in power5_get_alternatives()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dacl.c177 int count, i, j, rc = 0; in lustre_posix_acl_xattr_filter() local
192 for (i = 0, j = 0; i < count; i++) { in lustre_posix_acl_xattr_filter()
204 memcpy(&new->a_entries[j++], &header->a_entries[i], in lustre_posix_acl_xattr_filter()
209 memcpy(&new->a_entries[j++], in lustre_posix_acl_xattr_filter()
215 memcpy(&new->a_entries[j++], in lustre_posix_acl_xattr_filter()
226 rc = lustre_posix_acl_xattr_reduce_space(&new, count, j); in lustre_posix_acl_xattr_filter()
265 int once, start, end, i, j, count = le32_to_cpu(header->a_count); in lustre_ext_acl_xattr_search() local
275 j = i; in lustre_ext_acl_xattr_search()
279 return &header->a_entries[j]; in lustre_ext_acl_xattr_search()
300 int posix_count, posix_size, i, j; in lustre_acl_xattr_merge2posix() local
[all …]
/linux-4.1.27/tools/thermal/tmon/
Dtui.c210 int i, j, x, y = 0; in show_cooling_device() local
220 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device()
224 mvwprintw(cooling_device_window, j + 2, 1, in show_cooling_device()
226 ptdata.cdi[j].instance, in show_cooling_device()
227 ptdata.cdi[j].type, in show_cooling_device()
228 ptdata.cdi[j].cur_state, in show_cooling_device()
229 ptdata.cdi[j].max_state); in show_cooling_device()
235 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device()
237 y = j; in show_cooling_device()
246 cdev_inst = ptdata.cdi[j].instance; in show_cooling_device()
[all …]
Dtmon.c183 int j; in prepare_logging() local
186 for (j = 0; j < 32; j++) in prepare_logging()
187 binding_str[j] = (ptdata.tzi[i].cdev_binding & 1<<j) ? in prepare_logging()
194 for (j = 0; j < ptdata.tzi[i].nr_trip_pts; j++) { in prepare_logging()
195 fprintf(tmon_log, "#\tTP%02d type:%s, temp:%lu\n", j, in prepare_logging()
196 trip_type_name[ptdata.tzi[i].tp[j].type], in prepare_logging()
197 ptdata.tzi[i].tp[j].temp); in prepare_logging()
/linux-4.1.27/drivers/misc/mic/host/
Dmic_debugfs.c203 int i, j; in mic_dp_show() local
236 for (j = 0; j < d->num_vq; j++) { in mic_dp_show()
237 vqconfig = mic_vq_config(d) + j; in mic_dp_show()
238 seq_printf(s, "vqconfig[%d]: ", j); in mic_dp_show()
250 for (j = 0; j < d->config_len; j++) in mic_dp_show()
251 seq_printf(s, "config[%d]=%d\n", j, config[j]); in mic_dp_show()
291 int i, j; in mic_vdev_info_show() local
320 for (j = 0; j < num; j++) { in mic_vdev_info_show()
322 j, desc->addr, desc->len); in mic_vdev_info_show()
334 for (j = 0; j < num; j++) in mic_vdev_info_show()
[all …]
/linux-4.1.27/drivers/staging/iio/accel/
Dlis3l02dq_ring.c62 int ret, i, j = 0; in lis3l02dq_read_all() local
75 xfers[j].tx_buf = st->tx + 2*j; in lis3l02dq_read_all()
76 st->tx[2*j] = read_all_tx_array[i*4]; in lis3l02dq_read_all()
77 st->tx[2*j + 1] = 0; in lis3l02dq_read_all()
79 xfers[j].rx_buf = rx_array + j*2; in lis3l02dq_read_all()
80 xfers[j].bits_per_word = 8; in lis3l02dq_read_all()
81 xfers[j].len = 2; in lis3l02dq_read_all()
82 xfers[j].cs_change = 1; in lis3l02dq_read_all()
83 j++; in lis3l02dq_read_all()
86 xfers[j].tx_buf = st->tx + 2*j; in lis3l02dq_read_all()
[all …]
/linux-4.1.27/drivers/tty/vt/
Dconsolemap.c188 int j, glyph; in set_inverse_transl() local
201 for (j = 0; j < E_TABSZ; j++) { in set_inverse_transl()
202 glyph = conv_uni_to_pc(conp, t[j]); in set_inverse_transl()
205 q[glyph] = j; in set_inverse_transl()
213 int i, j, k, glyph; in set_inverse_trans_unicode() local
231 for (j = 0; j < 32; j++) { in set_inverse_trans_unicode()
232 p2 = p1[j]; in set_inverse_trans_unicode()
239 q[glyph] = (i << 11) + (j << 6) + k; in set_inverse_trans_unicode()
396 int i, j; in con_release_unimap() local
401 for (j = 0; j < 32; j++) in con_release_unimap()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_scatter.c87 unsigned long pages, i, j; in drm_legacy_sg_alloc() local
139 for (i = (unsigned long)entry->virtual, j = 0; j < pages; in drm_legacy_sg_alloc()
140 i += PAGE_SIZE, j++) { in drm_legacy_sg_alloc()
141 entry->pagelist[j] = vmalloc_to_page((void *)i); in drm_legacy_sg_alloc()
142 if (!entry->pagelist[j]) in drm_legacy_sg_alloc()
144 SetPageReserved(entry->pagelist[j]); in drm_legacy_sg_alloc()
162 for (j = 0; in drm_legacy_sg_alloc()
163 j < PAGE_SIZE / sizeof(unsigned long); in drm_legacy_sg_alloc()
164 j++, tmp++) { in drm_legacy_sg_alloc()
169 for (j = 0; in drm_legacy_sg_alloc()
[all …]
Ddrm_dma.c81 int i, j; in drm_legacy_dma_takedown() local
99 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown()
100 if (dma->bufs[i].seglist[j]) { in drm_legacy_dma_takedown()
101 drm_pci_free(dev, dma->bufs[i].seglist[j]); in drm_legacy_dma_takedown()
107 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_legacy_dma_takedown()
108 kfree(dma->bufs[i].buflist[j].dev_private); in drm_legacy_dma_takedown()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dmanage.c205 u16 remaining, i, j, prev_bytes; in e1000_mng_host_if_write() local
218 for (j = prev_bytes; j < sizeof(u32); j++) { in e1000_mng_host_if_write()
219 *(tmp + j) = *bufptr++; in e1000_mng_host_if_write()
220 *sum += *(tmp + j); in e1000_mng_host_if_write()
223 length -= j - prev_bytes; in e1000_mng_host_if_write()
237 for (j = 0; j < sizeof(u32); j++) { in e1000_mng_host_if_write()
238 *(tmp + j) = *bufptr++; in e1000_mng_host_if_write()
239 *sum += *(tmp + j); in e1000_mng_host_if_write()
245 for (j = 0; j < sizeof(u32); j++) { in e1000_mng_host_if_write()
246 if (j < remaining) in e1000_mng_host_if_write()
[all …]
/linux-4.1.27/fs/ufs/
Dcylinder.c35 unsigned i, j; in ufs_read_cylinder() local
72 for (j = 1; j < i; j++) in ufs_read_cylinder()
73 brelse (sbi->s_ucg[j]); in ufs_read_cylinder()
132 unsigned cg, i, j; in ufs_load_cylinder() local
176 for (j = i; j > 0; j--) { in ufs_load_cylinder()
177 sbi->s_cgno[j] = sbi->s_cgno[j-1]; in ufs_load_cylinder()
178 sbi->s_ucpi[j] = sbi->s_ucpi[j-1]; in ufs_load_cylinder()
192 for (j = sbi->s_cg_loaded - 1; j > 0; j--) { in ufs_load_cylinder()
193 sbi->s_cgno[j] = sbi->s_cgno[j-1]; in ufs_load_cylinder()
194 sbi->s_ucpi[j] = sbi->s_ucpi[j-1]; in ufs_load_cylinder()
/linux-4.1.27/arch/cris/arch-v10/kernel/
Dfasttimer.c686 int j; in fast_timer_test() local
693 for (j = 0; j < 1000; j++) in fast_timer_test()
695 j_u[j] = GET_JIFFIES_USEC(); in fast_timer_test()
697 for (j = 0; j < 100; j++) in fast_timer_test()
699 do_gettimeofday_fast(&tv_exp[j]); in fast_timer_test()
704 for (j = 0; j < 1000; j++) in fast_timer_test()
706 printk("%i %i %i %i %i\n",j_u[j], j_u[j+1], j_u[j+2], j_u[j+3], j_u[j+4]); in fast_timer_test()
707 j += 4; in fast_timer_test()
709 for (j = 0; j < 100; j++) in fast_timer_test()
712 tv_exp[j].tv_jiff, tv_exp[j].tv_usec, in fast_timer_test()
[all …]
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c223 int i, j; in vmxnet3_get_strings() local
224 for (j = 0; j < adapter->num_tx_queues; j++) { in vmxnet3_get_strings()
238 for (j = 0; j < adapter->num_rx_queues; j++) { in vmxnet3_get_strings()
306 int j = 0; in vmxnet3_get_ethtool_stats() local
313 for (j = 0; j < adapter->num_tx_queues; j++) { in vmxnet3_get_ethtool_stats()
314 base = (u8 *)&adapter->tqd_start[j].stats; in vmxnet3_get_ethtool_stats()
315 *buf++ = (u64)j; in vmxnet3_get_ethtool_stats()
320 base = (u8 *)&adapter->tx_queue[j].stats; in vmxnet3_get_ethtool_stats()
326 for (j = 0; j < adapter->num_rx_queues; j++) { in vmxnet3_get_ethtool_stats()
327 base = (u8 *)&adapter->rqd_start[j].stats; in vmxnet3_get_ethtool_stats()
[all …]
/linux-4.1.27/arch/x86/tools/
Dgen-insn-attr-x86.awk235 function convert_operands(count,opnd, i,j,imm,mod)
239 for (j = 1; j <= count; j++) {
240 i = opnd[j]
364 for (j = 0; j < max_lprefix; j++)
365 if (etable[i,j])
366 print " ["i"]["j"] = "etable[i,j]","
373 for (j = 0; j < max_lprefix; j++)
374 if (gtable[i,j])
375 print " ["i"]["j"] = "gtable[i,j]","
382 for (j = 0; j < max_lprefix; j++)
[all …]
/linux-4.1.27/net/mac80211/
Drc80211_minstrel_ht_debugfs.c22 unsigned int j, tp_max, tp_avg, prob, eprob, tx_time; in minstrel_ht_stats_dump() local
40 for (j = 0; j < MCS_GROUP_RATES; j++) { in minstrel_ht_stats_dump()
41 struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; in minstrel_ht_stats_dump()
43 int idx = i * MCS_GROUP_RATES + j; in minstrel_ht_stats_dump()
45 if (!(mi->groups[i].supported & BIT(j))) in minstrel_ht_stats_dump()
58 p += sprintf(p, "%cP ", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_dump()
69 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump()
71 p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); in minstrel_ht_stats_dump()
73 int r = bitrates[j % 4]; in minstrel_ht_stats_dump()
81 tx_time = DIV_ROUND_CLOSEST(mg->duration[j], 1000); in minstrel_ht_stats_dump()
[all …]
/linux-4.1.27/arch/alpha/kernel/
Dperf_event.c392 int j; in maybe_change_configuration() local
398 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
399 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
401 if (cpuc->current_idx[j] != PMC_NO_INDEX && in maybe_change_configuration()
402 cpuc->current_idx[j] != pe->hw.idx) { in maybe_change_configuration()
403 alpha_perf_event_update(pe, &pe->hw, cpuc->current_idx[j], 0); in maybe_change_configuration()
404 cpuc->current_idx[j] = PMC_NO_INDEX; in maybe_change_configuration()
410 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
411 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
415 if (cpuc->current_idx[j] == PMC_NO_INDEX) { in maybe_change_configuration()
[all …]
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dfasttimer.c659 int j; in fast_timer_test() local
666 for (j = 0; j < 1000; j++) in fast_timer_test()
668 j_u[j] = GET_JIFFIES_USEC(); in fast_timer_test()
670 for (j = 0; j < 100; j++) in fast_timer_test()
672 do_gettimeofday_fast(&tv_exp[j]); in fast_timer_test()
676 for (j = 0; j < 1000; j++) in fast_timer_test()
679 j_u[j], j_u[j+1], j_u[j+2], j_u[j+3], j_u[j+4]); in fast_timer_test()
680 j += 4; in fast_timer_test()
682 for (j = 0; j < 100; j++) in fast_timer_test()
685 tv_exp[j].tv_jiff, tv_exp[j].tv_usec, in fast_timer_test()
[all …]
/linux-4.1.27/arch/mips/kvm/
Dstats.c73 int i, j; in kvm_mips_dump_stats() local
77 for (j = 0; j < N_MIPS_COPROC_SEL; j++) { in kvm_mips_dump_stats()
78 if (vcpu->arch.cop0->stat[i][j]) in kvm_mips_dump_stats()
79 kvm_info("%s[%d]: %lu\n", kvm_cop0_str[i], j, in kvm_mips_dump_stats()
80 vcpu->arch.cop0->stat[i][j]); in kvm_mips_dump_stats()
/linux-4.1.27/arch/mips/netlogic/xlr/
Dfmn-config.c122 int i, j, num_core, n, credits_per_cpu; in setup_fmn_cc() local
139 for (j = 0; j < num_core; j++) in setup_fmn_cc()
140 cpu[j].credit_config[i] = credits_per_cpu; in setup_fmn_cc()
146 for (j = 0; (j < num_core) && (credits_per_cpu >= 4); j++) { in setup_fmn_cc()
147 cpu[j].credit_config[i] += 4; in setup_fmn_cc()
154 for (j = 0; j < FMN_CORE_NBUCKETS; j++) in setup_fmn_cc()
155 dev_info->credit_config[(i * 8) + j] = cpu_credits; in setup_fmn_cc()
165 int i, j; in setup_cpu_fmninfo() local
171 for (j = cpu[i].start_stn_id; j < cpu[i].end_stn_id; j++) in setup_cpu_fmninfo()
172 xlr_board_fmn_config.bucket_size[j] = 32; in setup_cpu_fmninfo()
Dwakeup.c54 unsigned int i, j, boot_cpu; in xlr_wakeup_secondary_cpus() local
73 for (j = 1000000; j > 0; j--) { in xlr_wakeup_secondary_cpus()
78 if (j != 0) in xlr_wakeup_secondary_cpus()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tracefile.c57 int j; in cfs_tracefile_init_arch() local
74 cfs_tcd_for_each(tcd, i, j) { in cfs_tracefile_init_arch()
78 tcd->tcd_cpu = j; in cfs_tracefile_init_arch()
82 for (j = 0; j < 3; j++) { in cfs_tracefile_init_arch()
83 cfs_trace_console_buffers[i][j] = in cfs_tracefile_init_arch()
87 if (cfs_trace_console_buffers[i][j] == NULL) in cfs_tracefile_init_arch()
102 int j; in cfs_tracefile_fini_arch() local
105 for (j = 0; j < 3; j++) in cfs_tracefile_fini_arch()
106 if (cfs_trace_console_buffers[i][j] != NULL) { in cfs_tracefile_fini_arch()
107 kfree(cfs_trace_console_buffers[i][j]); in cfs_tracefile_fini_arch()
[all …]
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c547 int i, j, q_num; in bnad_get_strings() local
623 for (j = 0; j < bnad->num_rxp_per_rx; j++) { in bnad_get_strings()
649 for (j = 0; j < bnad->num_rxp_per_rx; j++) { in bnad_get_strings()
664 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_get_strings()
665 bnad->rx_info[i].rx_ctrl[j].ccb-> in bnad_get_strings()
667 bnad->rx_info[i].rx_ctrl[j].ccb-> in bnad_get_strings()
694 for (j = 0; j < bnad->num_txq_per_tx; j++) { in bnad_get_strings()
723 int i, j, count = 0, rxf_active_num = 0, txf_active_num = 0; in bnad_get_stats_count_locked() local
747 for (j = 0; j < bnad->num_rxp_per_rx; j++) in bnad_get_stats_count_locked()
748 if (bnad->rx_info[i].rx_ctrl[j].ccb && in bnad_get_stats_count_locked()
[all …]
/linux-4.1.27/drivers/media/platform/omap/
Domap_vout_vrfb.c34 int i, j; in omap_vout_allocate_vrfb_buffers() local
47 for (j = 0; j < i; j++) { in omap_vout_allocate_vrfb_buffers()
49 vout->smsshado_virt_addr[j], in omap_vout_allocate_vrfb_buffers()
51 vout->smsshado_virt_addr[j] = 0; in omap_vout_allocate_vrfb_buffers()
52 vout->smsshado_phy_addr[j] = 0; in omap_vout_allocate_vrfb_buffers()
79 int j; in omap_vout_free_vrfb_buffers() local
81 for (j = 0; j < VRFB_NUM_BUFS; j++) { in omap_vout_free_vrfb_buffers()
82 omap_vout_free_buffer(vout->smsshado_virt_addr[j], in omap_vout_free_vrfb_buffers()
84 vout->smsshado_virt_addr[j] = 0; in omap_vout_free_vrfb_buffers()
85 vout->smsshado_phy_addr[j] = 0; in omap_vout_free_vrfb_buffers()
[all …]
/linux-4.1.27/arch/blackfin/kernel/
Ddumpstack.c41 unsigned int i, j, ret_addr, frame_no = 0; in show_stack() local
106 for (j = 0; j <= 1; j++) { in show_stack()
107 if (j) in show_stack()
119 if (!j && i % 8 == 0) in show_stack()
132 if (!j && stack == (unsigned long *)addr) in show_stack()
135 if (j) { in show_stack()
145 if (j) in show_stack()
153 } else if (!j) in show_stack()
156 if (!j) in show_stack()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Dpeer.c49 int j; in lnet_peer_tables_create() local
69 for (j = 0; j < LNET_PEER_HASH_SIZE; j++) in lnet_peer_tables_create()
70 INIT_LIST_HEAD(&hash[j]); in lnet_peer_tables_create()
83 int j; in lnet_peer_tables_destroy() local
96 for (j = 0; j < LNET_PEER_HASH_SIZE; j++) in lnet_peer_tables_destroy()
97 LASSERT(list_empty(&hash[j])); in lnet_peer_tables_destroy()
111 int j; in lnet_peer_tables_cleanup() local
118 for (j = 0; j < LNET_PEER_HASH_SIZE; j++) { in lnet_peer_tables_cleanup()
119 struct list_head *peers = &ptable->pt_hash[j]; in lnet_peer_tables_cleanup()
140 for (j = 3; ptable->pt_number != 0; j++) { in lnet_peer_tables_cleanup()
[all …]
/linux-4.1.27/arch/x86/crypto/sha-mb/
Dsha1_mb_mgr_init_avx2.c58 unsigned int j; in sha1_mb_mgr_init_avx2() local
60 for (j = 0; j < 8; j++) { in sha1_mb_mgr_init_avx2()
61 state->lens[j] = 0xFFFFFFFF; in sha1_mb_mgr_init_avx2()
62 state->ldata[j].job_in_lane = NULL; in sha1_mb_mgr_init_avx2()
/linux-4.1.27/arch/s390/appldata/
Dappldata_os.c99 int i, j, rc; in appldata_get_os_data() local
113 j = 0; in appldata_get_os_data()
115 os_data->os_cpu[j].per_cpu_user = in appldata_get_os_data()
117 os_data->os_cpu[j].per_cpu_nice = in appldata_get_os_data()
119 os_data->os_cpu[j].per_cpu_system = in appldata_get_os_data()
121 os_data->os_cpu[j].per_cpu_idle = in appldata_get_os_data()
123 os_data->os_cpu[j].per_cpu_irq = in appldata_get_os_data()
125 os_data->os_cpu[j].per_cpu_softirq = in appldata_get_os_data()
127 os_data->os_cpu[j].per_cpu_iowait = in appldata_get_os_data()
129 os_data->os_cpu[j].per_cpu_steal = in appldata_get_os_data()
[all …]
/linux-4.1.27/fs/minix/
Dbitmap.c78 int j; in minix_new_block() local
81 j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); in minix_new_block()
82 if (j < bits_per_zone) { in minix_new_block()
83 minix_set_bit(j, bh->b_data); in minix_new_block()
86 j += i * bits_per_zone + sbi->s_firstdatazone-1; in minix_new_block()
87 if (j < sbi->s_firstdatazone || j >= sbi->s_nzones) in minix_new_block()
89 return j; in minix_new_block()
219 unsigned long j; in minix_new_inode() local
226 j = bits_per_zone; in minix_new_inode()
232 j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); in minix_new_inode()
[all …]
/linux-4.1.27/drivers/net/can/softing/
Dsofting_main.c127 int j; in softing_netdev_start_xmit() local
128 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_netdev_start_xmit()
129 if (card->net[j]) in softing_netdev_start_xmit()
130 netif_stop_queue(card->net[j]); in softing_netdev_start_xmit()
176 int j; in softing_handle_1() local
187 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_handle_1()
188 netdev = card->net[j]; in softing_handle_1()
334 int j, offset, work_done; in softing_irq_thread() local
345 for (j = 0; j < ARRAY_SIZE(card->net); ++j) { in softing_irq_thread()
348 netdev = card->net[(j + offset + 1) % card->pdat->nbus]; in softing_irq_thread()
[all …]
/linux-4.1.27/drivers/xen/
Dfeatures.c24 int i, j; in xen_setup_features() local
30 for (j = 0; j < 32; j++) in xen_setup_features()
31 xen_features[i * 32 + j] = !!(fi.submap & 1<<j); in xen_setup_features()
/linux-4.1.27/drivers/pinctrl/spear/
Dpinctrl-spear.c35 u32 val, temp, j; in muxregs_endisable() local
37 for (j = 0; j < count; j++) { in muxregs_endisable()
38 muxreg = &muxregs[j]; in muxregs_endisable()
88 int i, j; in pmx_init_gpio_pingroup_addr() local
91 for (j = 0; j < gpio_pingroup[i].nmuxregs; j++) in pmx_init_gpio_pingroup_addr()
92 gpio_pingroup[i].muxregs[j].reg = reg; in pmx_init_gpio_pingroup_addr()
99 int i, j, group; in pmx_init_addr() local
107 for (j = 0; j < modemux->nmuxregs; j++) in pmx_init_addr()
108 if (modemux->muxregs[j].reg == 0xFFFF) in pmx_init_addr()
109 modemux->muxregs[j].reg = reg; in pmx_init_addr()
[all …]
/linux-4.1.27/Documentation/filesystems/cifs/
Dwinucase_convert.pl35 for ($j = 0; $j < 256; $j++) {
36 if (($j % 8) == 0) {
41 printf("0x%4.4x,", $top[$i][$j] ? $top[$i][$j] : 0);
/linux-4.1.27/drivers/input/keyboard/
Damikbd.c152 int i, j; in amikbd_init_console_keymaps() local
158 for (j = 0; j < 0x78; j++) { in amikbd_init_console_keymaps()
159 if (!amikbd_keycode[j]) in amikbd_init_console_keymaps()
161 temp_map[j] = key_maps[i][amikbd_keycode[j]]; in amikbd_init_console_keymaps()
163 for (j = 0; j < NR_KEYS; j++) { in amikbd_init_console_keymaps()
164 if (!temp_map[j]) in amikbd_init_console_keymaps()
165 temp_map[j] = 0xf200; in amikbd_init_console_keymaps()
Dgoldfish_events.c62 int i, j; in events_import_bits() local
75 for (j = 0; j < 8; j++) in events_import_bits()
76 if (val & 1 << j) in events_import_bits()
77 set_bit(i + j, bits); in events_import_bits()
87 int i, j; in events_import_abs_params() local
99 for (j = 0; j < ARRAY_SIZE(val); j++) { in events_import_abs_params()
100 int offset = (i * ARRAY_SIZE(val) + j) * sizeof(u32); in events_import_abs_params()
101 val[j] = __raw_readl(edev->addr + REG_DATA + offset); in events_import_abs_params()
/linux-4.1.27/drivers/cpufreq/
Dpowernow-k8.c507 unsigned int j; in check_pst_table() local
510 for (j = 0; j < data->numps; j++) { in check_pst_table()
511 if (pst[j].vid > LEAST_VID) { in check_pst_table()
512 pr_err(FW_BUG "vid %d invalid : 0x%x\n", j, in check_pst_table()
513 pst[j].vid); in check_pst_table()
516 if (pst[j].vid < data->rvo) { in check_pst_table()
518 pr_err(FW_BUG "0 vid exceeded with pstate %d\n", j); in check_pst_table()
521 if (pst[j].vid < maxvid + data->rvo) { in check_pst_table()
523 pr_err(FW_BUG "maxvid exceeded with pstate %d\n", j); in check_pst_table()
526 if (pst[j].fid > MAX_FID) { in check_pst_table()
[all …]
Dqoriq-cpufreq.c150 int i, j; in freq_table_redup() local
153 for (j = 0; j < i; j++) { in freq_table_redup()
154 if (freq_table[j].frequency == CPUFREQ_ENTRY_INVALID || in freq_table_redup()
155 freq_table[j].frequency != in freq_table_redup()
169 int i, j, ind; in freq_table_sort() local
176 for (j = i + 1; j < count; j++) { in freq_table_sort()
177 freq = freq_table[j].frequency; in freq_table_sort()
181 ind = j; in freq_table_sort()
Dlonghaul.c429 unsigned int i, j, k = 0; in longhaul_get_ranges() local
485 for (j = 0; j < numscales; j++) { in longhaul_get_ranges()
486 ratio = mults[j]; in longhaul_get_ranges()
492 longhaul_table[k].driver_data = j; in longhaul_get_ranges()
500 for (j = 0; j < k - 1; j++) { in longhaul_get_ranges()
502 min_f = longhaul_table[j].frequency; in longhaul_get_ranges()
503 min_i = j; in longhaul_get_ranges()
504 for (i = j + 1; i < k; i++) { in longhaul_get_ranges()
510 if (min_i != j) { in longhaul_get_ranges()
511 swap(longhaul_table[j].frequency, in longhaul_get_ranges()
[all …]
/linux-4.1.27/sound/drivers/
Dpcm-indirect2.c45 int j; in snd_pcm_indirect2_stat() local
76 for (j = 0; j < 8; j++) { in snd_pcm_indirect2_stat()
77 for (i = j * 8; i < (j + 1) * 8; i++) in snd_pcm_indirect2_stat()
90 for (j = 0; j < 8; j++) { in snd_pcm_indirect2_stat()
92 for (i = j * 8; i < (j + 1) * 8; i++) in snd_pcm_indirect2_stat()
103 for (j = 0; j < 8; j++) { in snd_pcm_indirect2_stat()
104 if (rec->min_adds[j] != 0) in snd_pcm_indirect2_stat()
105 snd_printk(KERN_DEBUG "%u: %u", j, rec->min_adds[j]); in snd_pcm_indirect2_stat()
109 for (j = 0; j < 8; j++) { in snd_pcm_indirect2_stat()
110 if (rec->mul_adds[j] != 0) in snd_pcm_indirect2_stat()
[all …]
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dscan.c144 int i, j; in wlcore_scan_get_channels() local
185 for (i = 0, j = start; in wlcore_scan_get_channels()
186 i < n_channels && j < max_channels; in wlcore_scan_get_channels()
200 channels[j].flags |= SCAN_CHANNEL_FLAGS_DFS; in wlcore_scan_get_channels()
202 channels[j].passive_duration = in wlcore_scan_get_channels()
205 channels[j].passive_duration = in wlcore_scan_get_channels()
209 channels[j].min_duration = in wlcore_scan_get_channels()
211 channels[j].max_duration = in wlcore_scan_get_channels()
214 channels[j].tx_power_att = req_channels[i]->max_power; in wlcore_scan_get_channels()
215 channels[j].channel = req_channels[i]->hw_value; in wlcore_scan_get_channels()
[all …]
/linux-4.1.27/drivers/isdn/hisax/
Dst5481_usb.c180 int j; in usb_int_complete() local
223 for (j = 0; j < 2; j++) in usb_int_complete()
224 adapter->bcs[j].b_out.flow_event |= data[FFINT_B1 + j]; in usb_int_complete()
434 int j, retval; in st5481_setup_isocpipes() local
437 for (j = 0; j < 2; j++) { in st5481_setup_isocpipes()
439 urb[j] = usb_alloc_urb(num_packets, GFP_KERNEL); in st5481_setup_isocpipes()
440 if (!urb[j]) in st5481_setup_isocpipes()
449 fill_isoc_urb(urb[j], dev, pipe, buf, in st5481_setup_isocpipes()
456 for (j = 0; j < 2; j++) { in st5481_setup_isocpipes()
457 if (urb[j]) { in st5481_setup_isocpipes()
[all …]
/linux-4.1.27/crypto/async_tx/
Draid6test.c130 static int test_disks(int i, int j, int disks) in test_disks() argument
138 dataptrs[j] = recovj; in test_disks()
140 raid6_dual_recov(disks, PAGE_SIZE, i, j, dataptrs); in test_disks()
143 errb = memcmp(page_address(data[j]), page_address(recovj), PAGE_SIZE); in test_disks()
146 __func__, i, j, i, disk_type(i, disks), j, disk_type(j, disks), in test_disks()
150 dataptrs[j] = data[j]; in test_disks()
161 int i, j; in test() local
186 for (j = i+1; j < disks; j++) { in test()
188 err += test_disks(i, j, disks); in test()
Dasync_pq.c201 int i, j; in async_gen_syndrome() local
211 for (i = 0, j = 0; i < src_cnt; i++) { in async_gen_syndrome()
214 unmap->addr[j] = dma_map_page(device->dev, blocks[i], offset, in async_gen_syndrome()
216 coefs[j] = raid6_gfexp[i]; in async_gen_syndrome()
218 j++; in async_gen_syndrome()
227 unmap->addr[j++] = dma_map_page(device->dev, P(blocks, disks), in async_gen_syndrome()
230 unmap->addr[j++] = 0; in async_gen_syndrome()
236 unmap->addr[j++] = dma_map_page(device->dev, Q(blocks, disks), in async_gen_syndrome()
239 unmap->addr[j++] = 0; in async_gen_syndrome()
243 tx = do_async_gen_syndrome(chan, coefs, j, unmap, dma_flags, submit); in async_gen_syndrome()
[all …]
/linux-4.1.27/fs/xfs/
Dxfs_stats.c34 int i, j; in xfs_stat_proc_show() local
68 for (i = j = 0; i < ARRAY_SIZE(xstats); i++) { in xfs_stat_proc_show()
71 for (; j < xstats[i].endpoint; j++) in xfs_stat_proc_show()
72 seq_printf(m, " %u", counter_val(j)); in xfs_stat_proc_show()
135 int j; in xqmstat_proc_show() local
138 for (j = XFSSTAT_END_IBT_V2; j < XFSSTAT_END_XQMSTAT; j++) in xqmstat_proc_show()
139 seq_printf(m, " %u", counter_val(j)); in xqmstat_proc_show()
/linux-4.1.27/arch/arm/mach-davinci/
Dirq.c75 unsigned i, j; in davinci_irq_init() local
108 for (j = 0, pri = 0; j < 32; j += 4, davinci_def_priorities++) in davinci_irq_init()
109 pri |= (*davinci_def_priorities & 0x07) << j; in davinci_irq_init()
113 for (i = 0, j = 0; i < davinci_soc_info.intc_irq_num; i += 32, j += 0x04) in davinci_irq_init()
114 davinci_alloc_gc(davinci_intc_base + j, i, 32); in davinci_irq_init()
/linux-4.1.27/drivers/media/pci/cx23885/
Dnetup-eeprom.c94 int i, j; in netup_get_card_info() local
98 for (i = 64, j = 0; i < 70; i++, j++) in netup_get_card_info()
99 cinfo->port[0].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info()
101 for (i = 70, j = 0; i < 76; i++, j++) in netup_get_card_info()
102 cinfo->port[1].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info()
/linux-4.1.27/drivers/video/fbdev/core/
Dfb_ddc.c58 int i, j; in fb_ddc_read() local
70 for (j = 0; j < 5; j++) { in fb_ddc_read()
75 if (j == 5) in fb_ddc_read()
92 for (j = 0; j < 10; j++) { in fb_ddc_read()
/linux-4.1.27/drivers/hid/
Dhid-axff.c50 int i, j; in axff_play() local
61 for (j = 0; j < report->field[i]->report_count; j++) { in axff_play()
62 report->field[i]->value[j] = in axff_play()
82 int i, j; in axff_init() local
92 for (j = 0; j < report->field[i]->report_count; j++) { in axff_init()
93 report->field[i]->value[j] = 0x00; in axff_init()
Dhid-picolcd_core.c84 int i, j, k; in picolcd_send_and_wait() local
102 for (j = 0; j < report->field[i]->report_count; j++) { in picolcd_send_and_wait()
103 hid_set_field(report->field[i], j, k < size ? raw_data[k] : 0); in picolcd_send_and_wait()
133 int i, j; in picolcd_raw_keypad() local
140 for (j = 0; j < sizeof(data->pressed_keys); j++) in picolcd_raw_keypad()
141 if (data->pressed_keys[j] == raw_data[i]) in picolcd_raw_keypad()
143 for (j = 0; j < sizeof(data->pressed_keys); j++) in picolcd_raw_keypad()
144 if (data->pressed_keys[j] == 0) { in picolcd_raw_keypad()
145 data->pressed_keys[j] = raw_data[i]; in picolcd_raw_keypad()
164 for (j = 0; j < sizeof(data->pressed_keys); j++) { in picolcd_raw_keypad()
[all …]
Dhid-lg4ff.c578 u8 j; in lg4ff_switch_compatibility_mode() local
580 for (j = 0; j < 7; j++) in lg4ff_switch_compatibility_mode()
581 value[j] = s->cmd[j + (7*i)]; in lg4ff_switch_compatibility_mode()
998 int error, i, j; in lg4ff_init() local
1043 for (j = 0; lg4ff_devices[i].ff_effects[j] >= 0; j++) in lg4ff_init()
1044 set_bit(lg4ff_devices[i].ff_effects[j], dev->ffbit); in lg4ff_init()
1113 for (j = 0; j < 5; j++) in lg4ff_init()
1114 entry->led[j] = NULL; in lg4ff_init()
1125 for (j = 0; j < 5; j++) { in lg4ff_init()
1128 hid_err(hid, "can't allocate memory for LED %d\n", j); in lg4ff_init()
[all …]
/linux-4.1.27/drivers/edac/
Die31200_edac.c331 int i, j, ret; in ie31200_probe1() local
383 for (j = 0; j < IE31200_DIMMS_PER_CHANNEL; j++) { in ie31200_probe1()
384 dimm_info[i][j].size = (addr_decode >> (j * 8)) & in ie31200_probe1()
386 dimm_info[i][j].dual_rank = (addr_decode & in ie31200_probe1()
387 (IE31200_MAD_DIMM_A_RANK << j)) ? 1 : 0; in ie31200_probe1()
388 dimm_info[i][j].x16_width = (addr_decode & in ie31200_probe1()
389 (IE31200_MAD_DIMM_A_WIDTH << j)) ? 1 : 0; in ie31200_probe1()
391 dimm_info[i][j].size, in ie31200_probe1()
392 dimm_info[i][j].dual_rank, in ie31200_probe1()
393 dimm_info[i][j].x16_width); in ie31200_probe1()
[all …]
Di5100_edac.c373 int j; in i5100_rank_to_slot() local
376 for (j = 0; j < numrank; j++) in i5100_rank_to_slot()
377 if (priv->dimm_csmap[i][j] == rank) in i5100_rank_to_slot()
686 int j; in i5100_init_mtr() local
689 for (j = 0; j < I5100_MAX_RANKS_PER_CHAN; j++) { in i5100_init_mtr()
691 (j < 4) ? I5100_MTR_0 + j * 2 : in i5100_init_mtr()
692 I5100_MTR_4 + (j - 4) * 2; in i5100_init_mtr()
697 priv->mtr[i][j].present = i5100_mtr_present(w); in i5100_init_mtr()
698 priv->mtr[i][j].ethrottle = i5100_mtr_ethrottle(w); in i5100_init_mtr()
699 priv->mtr[i][j].width = 4 + 4 * i5100_mtr_width(w); in i5100_init_mtr()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dcalib.c28 int i, j; in ath9k_hw_get_nf_hist_mid() local
34 for (j = 1; j < ATH9K_NF_CAL_HIST_MAX - i; j++) { in ath9k_hw_get_nf_hist_mid()
35 if (sort[j] > sort[j - 1]) { in ath9k_hw_get_nf_hist_mid()
36 nfval = sort[j]; in ath9k_hw_get_nf_hist_mid()
37 sort[j] = sort[j - 1]; in ath9k_hw_get_nf_hist_mid()
38 sort[j - 1] = nfval; in ath9k_hw_get_nf_hist_mid()
240 unsigned i, j; in ath9k_hw_loadnf() local
283 for (j = 0; j < 10000; j++) { in ath9k_hw_loadnf()
299 if (j == 10000) { in ath9k_hw_loadnf()
404 int i, j; in ath9k_init_nfcal_hist_buffer() local
[all …]
/linux-4.1.27/drivers/media/usb/dvb-usb/
Ddvb-usb-init.c178 int i, j; in dvb_usb_find_device() local
185 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].cold_ids[j] != NULL; j++) { in dvb_usb_find_device()
186 …o("check for cold %x %x\n", props->devices[i].cold_ids[j]->idVendor, props->devices[i].cold_ids[j]… in dvb_usb_find_device()
187 if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && in dvb_usb_find_device()
188 props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { in dvb_usb_find_device()
198 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].warm_ids[j] != NULL; j++) { in dvb_usb_find_device()
199 …o("check for warm %x %x\n", props->devices[i].warm_ids[j]->idVendor, props->devices[i].warm_ids[j]… in dvb_usb_find_device()
200 if (props->devices[i].warm_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && in dvb_usb_find_device()
201 props->devices[i].warm_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { in dvb_usb_find_device()
Dusb-urb.c139 int i, j; in usb_bulk_urb_init() local
150 for (j = 0; j < i; j++) in usb_bulk_urb_init()
151 usb_free_urb(stream->urb_list[j]); in usb_bulk_urb_init()
169 int i,j; in usb_isoc_urb_init() local
183 for (j = 0; j < i; j++) in usb_isoc_urb_init()
184 usb_free_urb(stream->urb_list[j]); in usb_isoc_urb_init()
201 for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { in usb_isoc_urb_init()
202 urb->iso_frame_desc[j].offset = frame_offset; in usb_isoc_urb_init()
203 urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize; in usb_isoc_urb_init()
Ddw2102.c395 int len, i, j, ret; in dw2104_i2c_transfer() local
402 for (j = 0; j < num; j++) { in dw2104_i2c_transfer()
403 switch (msg[j].addr) { in dw2104_i2c_transfer()
408 memcpy(msg[j].buf, ibuf , 2); in dw2104_i2c_transfer()
414 obuf[1] = msg[j].buf[0]; in dw2104_i2c_transfer()
424 if (msg[j].flags == I2C_M_RD) { in dw2104_i2c_transfer()
428 if (2 + msg[j].len > sizeof(ibuf)) { in dw2104_i2c_transfer()
430 msg[j].len); in dw2104_i2c_transfer()
436 (msg[j].addr << 1) + 1, 0, in dw2104_i2c_transfer()
437 ibuf, msg[j].len + 2, in dw2104_i2c_transfer()
[all …]
/linux-4.1.27/drivers/s390/block/
Ddcssblk.c212 int i, j, rc; in dcssblk_is_continuous() local
231 for (j = 0; j < dev_info->num_of_segments; j++) in dcssblk_is_continuous()
232 if (sort_list[j].start > sort_list[i].start) { in dcssblk_is_continuous()
235 memcpy(&sort_list[i], &sort_list[j], in dcssblk_is_continuous()
237 memcpy(&sort_list[j], &temp, in dcssblk_is_continuous()
523 int rc, i, j, num_of_segments; in dcssblk_add_store() local
551 for (j = i; (buf[j] != ':') && in dcssblk_add_store()
552 (buf[j] != '\0') && in dcssblk_add_store()
553 (buf[j] != '\n') && in dcssblk_add_store()
554 j < count; j++) { in dcssblk_add_store()
[all …]
/linux-4.1.27/arch/ia64/kernel/
Dpalinfo.c128 int i,j; in bitvector_process() local
131 for (i=0, j=0; i < 64; i++ , j=i/10) { in bitvector_process()
133 seq_printf(m, "%d%s ", 1 << (i-j*10), units[j]); in bitvector_process()
215 int j, k; in cache_info() local
227 for (j=2; j >0 ; j--) { in cache_info()
229 if ((status=ia64_pal_cache_config_info(i,j, &cci)) != 0) in cache_info()
236 cache_types[j+cci.pcci_unified], i+1, in cache_info()
251 if (j == 1) in cache_info()
298 int i, j; in vm_info() local
378 for (j=2; j>0 ; j--) { in vm_info()
[all …]
Dtopology.c147 unsigned int j; in cache_shared_cpu_map_setup() local
163 for_each_possible_cpu(j) in cache_shared_cpu_map_setup()
164 if (cpu_data(cpu)->socket_id == cpu_data(j)->socket_id in cache_shared_cpu_map_setup()
165 && cpu_data(j)->core_id == csi.log1_cid in cache_shared_cpu_map_setup()
166 && cpu_data(j)->thread_id == csi.log1_tid) in cache_shared_cpu_map_setup()
167 cpumask_set_cpu(j, &this_leaf->shared_cpu_map); in cache_shared_cpu_map_setup()
312 int j; in cpu_cache_sysfs_init() local
328 for (j=2; j >0 ; j--) { in cpu_cache_sysfs_init()
329 if ((status=ia64_pal_cache_config_info(i,j, &cci)) != in cpu_cache_sysfs_init()
335 this_cache[num_cache_leaves].type = j; in cpu_cache_sysfs_init()
[all …]
/linux-4.1.27/drivers/staging/unisys/uislib/
Duisqueue.c232 unsigned long long j; in uisqueue_interlocked_or() local
234 j = readq(tgt); in uisqueue_interlocked_or()
236 i = j; in uisqueue_interlocked_or()
237 j = cmpxchg((__force unsigned long long *)tgt, i, i | set); in uisqueue_interlocked_or()
239 } while (i != j); in uisqueue_interlocked_or()
241 return j; in uisqueue_interlocked_or()
250 unsigned long long j; in uisqueue_interlocked_and() local
252 j = readq(tgt); in uisqueue_interlocked_and()
254 i = j; in uisqueue_interlocked_and()
255 j = cmpxchg((__force unsigned long long *)tgt, i, i & set); in uisqueue_interlocked_and()
[all …]
/linux-4.1.27/arch/blackfin/mm/
Disram-driver.c284 int i, j, thisret, ret = 0; in isram_memcpy_test() local
302 for (j = 1; j <= 32; ++j) { in isram_memcpy_test()
304 isram_memcpy(cmp, l1inst + i, j); in isram_memcpy_test()
305 if (memcmp(cmp, sdram + i, j)) { in isram_memcpy_test()
307 hex_dump(cmp, j); in isram_memcpy_test()
309 hex_dump(sdram + i, j); in isram_memcpy_test()
330 for (j = 1; j <= 32; ++j) { in isram_memcpy_test()
331 isram_memcpy(l1inst + i, sdram + i, j); in isram_memcpy_test()
332 dma_memcpy(cmp, l1inst + i, j); in isram_memcpy_test()
333 if (memcmp(cmp, sdram + i, j)) { in isram_memcpy_test()
[all …]
/linux-4.1.27/sound/pci/pcxhr/
Dpcxhr_hwdep.c244 int err, i, j; in pcxhr_config_pipes() local
256 for(j = 0; j < chip->nb_streams_play; j++) in pcxhr_config_pipes()
257 chip->playback_stream[j].pipe = pipe; in pcxhr_config_pipes()
259 for (j = 0; j < chip->nb_streams_capt; j++) { in pcxhr_config_pipes()
260 pipe = &chip->capture_pipe[j]; in pcxhr_config_pipes()
261 err = pcxhr_dsp_allocate_pipe(mgr, pipe, 1, i*2 + j); in pcxhr_config_pipes()
264 chip->capture_stream[j].pipe = pipe; in pcxhr_config_pipes()
272 int i, j; in pcxhr_start_pipes() local
282 for (j = 0; j < chip->nb_streams_capt; j++) in pcxhr_start_pipes()
283 capture_mask |= 1 << chip->capture_pipe[j].first_audio; in pcxhr_start_pipes()
/linux-4.1.27/arch/arm64/kernel/
Dsetup.c511 int i, j; in c_show() local
539 for (j = 0; compat_hwcap_str[j]; j++) in c_show()
540 if (compat_elf_hwcap & (1 << j)) in c_show()
541 seq_printf(m, " %s", compat_hwcap_str[j]); in c_show()
543 for (j = 0; compat_hwcap2_str[j]; j++) in c_show()
544 if (compat_elf_hwcap2 & (1 << j)) in c_show()
545 seq_printf(m, " %s", compat_hwcap2_str[j]); in c_show()
548 for (j = 0; hwcap_str[j]; j++) in c_show()
549 if (elf_hwcap & (1 << j)) in c_show()
550 seq_printf(m, " %s", hwcap_str[j]); in c_show()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/
Dmxms.c153 int i, j; in mxms_foreach() local
156 for (j = headerlen - 1; j >= 0; j--) in mxms_foreach()
157 pr_cont("%02x", dump[j]); in mxms_foreach()
163 for (j = recordlen - 1; j >= 0; j--) in mxms_foreach()
164 pr_cont("%02x", dump[j]); in mxms_foreach()
/linux-4.1.27/arch/blackfin/mach-common/
Dscb-init.c38 unsigned int i, j; in init_scb() local
48 for (j = 0; j < scb_data[i].scb_mi_slots; ++j) in init_scb()
49 pr_debug("slot %d = %d\n", j, scb_tmp_prio[j]); in init_scb()
/linux-4.1.27/fs/affs/
Dsymlink.c20 int i, j; in affs_symlink_readpage() local
31 j = 0; in affs_symlink_readpage()
43 while (i < 1023 && lf->symname[j] != ':') in affs_symlink_readpage()
44 link[i++] = lf->symname[j++]; in affs_symlink_readpage()
47 j++; in affs_symlink_readpage()
50 while (i < 1023 && (c = lf->symname[j])) { in affs_symlink_readpage()
57 j++; in affs_symlink_readpage()
/linux-4.1.27/drivers/isdn/hardware/eicon/
Dcapidtmf.c187 int i, j; in capidtmf_goertzel_loop() local
198 for (j = 0; j < count; j++) in capidtmf_goertzel_loop()
200 … q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15); in capidtmf_goertzel_loop()
209 for (j = 0; j < count; j++) in capidtmf_goertzel_loop()
211 …q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15)); in capidtmf_goertzel_loop()
224 for (j = 0; j < count; j++) in capidtmf_goertzel_loop()
226 …q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >>… in capidtmf_goertzel_loop()
235 for (j = 0; j < count; j++) in capidtmf_goertzel_loop()
237 …q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword)(c >> 1)) * ((dword)(q1 & 0xffff)))) >… in capidtmf_goertzel_loop()
466 word i, j, k, flags; in capidtmf_recv_indication() local
[all …]
Dmessage.c388 word i, j, k, l, n; in api_put() local
431 j = plci->msg_in_write_pos; in api_put()
432 if (j >= i) in api_put()
434 if (j + msg->header.length + MSG_IN_OVERHEAD <= MSG_IN_QUEUE_SIZE) in api_put()
435 i += MSG_IN_QUEUE_SIZE - j; in api_put()
437 j = 0; in api_put()
446 i -= j; in api_put()
527 if (j == 0) in api_put()
529 m = (CAPI_MSG *)(&((byte *)(plci->msg_in_queue))[j]); in api_put()
531 ((byte *)(plci->msg_in_queue))[j++] = ((byte *) msg)[i]; in api_put()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Datafb_iplan2p2.c42 int w, l , i, j; in atafb_iplan2p2_copyarea() local
65 for (j = height; j > 0; j--) { in atafb_iplan2p2_copyarea()
91 for (j = height; j > 0; j--) { in atafb_iplan2p2_copyarea()
108 int i, j, w, f; in atafb_iplan2p2_copyarea() local
133 for (j = w; j > 0; j--) { in atafb_iplan2p2_copyarea()
150 int i, j, w, f; in atafb_iplan2p2_copyarea() local
175 for (j = w; j > 0; j--) { in atafb_iplan2p2_copyarea()
Datafb_iplan2p4.c42 int w, l , i, j; in atafb_iplan2p4_copyarea() local
65 for (j = height; j > 0; j--) { in atafb_iplan2p4_copyarea()
91 for (j = height; j > 0; j--) { in atafb_iplan2p4_copyarea()
108 int i, j, w, f; in atafb_iplan2p4_copyarea() local
135 for (j = w; j > 0; j--) { in atafb_iplan2p4_copyarea()
157 int i, j, w, f; in atafb_iplan2p4_copyarea() local
184 for (j = w; j > 0; j--) { in atafb_iplan2p4_copyarea()
Dtgafb.c373 int j = color_table[i]; local
375 TGA_WRITE_REG(par, default_red[j], TGA_RAMDAC_REG);
376 TGA_WRITE_REG(par, default_grn[j], TGA_RAMDAC_REG);
377 TGA_WRITE_REG(par, default_blu[j], TGA_RAMDAC_REG);
625 unsigned long i, j; local
714 for (j = 0; j < bwidth; ++j)
715 mask |= bitrev8(data[j]) << (j * 8);
740 for (j = 0; j < bwidth; j += 4) {
742 mask |= bitrev8(data[j+0]) << (0 * 8);
743 mask |= bitrev8(data[j+1]) << (1 * 8);
[all …]
Datafb_iplan2p8.c49 int w, l , i, j; in atafb_iplan2p8_copyarea() local
72 for (j = height; j > 0; j--) { in atafb_iplan2p8_copyarea()
98 for (j = height; j > 0; j--) { in atafb_iplan2p8_copyarea()
115 int i, j, w, f; in atafb_iplan2p8_copyarea() local
146 for (j = w; j > 0; j--) { in atafb_iplan2p8_copyarea()
178 int i, j, w, f; in atafb_iplan2p8_copyarea() local
209 for (j = w; j > 0; j--) { in atafb_iplan2p8_copyarea()
/linux-4.1.27/arch/powerpc/kernel/
Dirq.c348 int j; in arch_show_interrupts() local
353 for_each_online_cpu(j) in arch_show_interrupts()
354 seq_printf(p, "%10u ", tau_interrupts(j)); in arch_show_interrupts()
360 for_each_online_cpu(j) in arch_show_interrupts()
361 seq_printf(p, "%10u ", per_cpu(irq_stat, j).timer_irqs_event); in arch_show_interrupts()
365 for_each_online_cpu(j) in arch_show_interrupts()
366 seq_printf(p, "%10u ", per_cpu(irq_stat, j).timer_irqs_others); in arch_show_interrupts()
370 for_each_online_cpu(j) in arch_show_interrupts()
371 seq_printf(p, "%10u ", per_cpu(irq_stat, j).spurious_irqs); in arch_show_interrupts()
375 for_each_online_cpu(j) in arch_show_interrupts()
[all …]
Dbtext.c314 int i,j; in btext_clearscreen() local
320 for(j=width; j; --j) in btext_clearscreen()
332 int i,j; in btext_flushscreen() local
337 for(j = width; j > 0; j -= 8) { in btext_flushscreen()
351 int i,j; in btext_flushline() local
356 for(j = width; j > 0; j -= 8) { in btext_flushline()
373 int i,j; in scrollscreen() local
381 for(j=width; j; --j) in scrollscreen()
389 for(j=width; j; --j) in scrollscreen()
/linux-4.1.27/tools/perf/
Dperf-completion.sh6 local exclude i j first
16 for ((i=0, j=0; i < ${#COMP_WORDS[@]}; i++, j++)); do
28 if [ $j -ge 2 ] && [ -n "$first" ]; then
29 ((j--))
32 words_[$j]=${words_[j]}${COMP_WORDS[i]}
34 cword_=$j
43 words_[$j]=${words_[j]}${COMP_WORDS[i]}
45 cword_=$j
Dbuiltin-script.c125 int j; in output_set_by_user() local
126 for (j = 0; j < PERF_TYPE_MAX; ++j) { in output_set_by_user()
127 if (output[j].user_set) in output_set_by_user()
271 int j; in perf_session__check_output_opt() local
274 for (j = 0; j < PERF_TYPE_MAX; ++j) { in perf_session__check_output_opt()
275 evsel = perf_session__find_first_evtype(session, j); in perf_session__check_output_opt()
281 if (!evsel && output[j].user_set && !output[j].wildcard_set) { in perf_session__check_output_opt()
284 event_type(j)); in perf_session__check_output_opt()
288 if (evsel && output[j].fields && in perf_session__check_output_opt()
319 j = PERF_TYPE_TRACEPOINT; in perf_session__check_output_opt()
[all …]
/linux-4.1.27/fs/reiserfs/
Dhashes.c130 int j, pow; in yura_hash() local
144 for (pow = 1, j = i; j < len - 1; j++) in yura_hash()
151 for (pow = 1, j = i; j < len - 1; j++) in yura_hash()
158 for (pow = 1, j = i; j < len - 1; j++) in yura_hash()
/linux-4.1.27/drivers/atm/
Dnicstarmac.c125 int32_t i, j;
140 for (i = 7, j = 0; i >= 0; i--) {
142 (val | clocktab[j++]));
146 (val | clocktab[j++]));
164 int i, j = 0; in read_eprom_byte() local
179 (val | clocktab[j++] | ((offset >> i) & 1))); in read_eprom_byte()
182 (val | clocktab[j++] | ((offset >> i) & 1))); in read_eprom_byte()
186 j = 0; in read_eprom_byte()
191 (val | clocktab[j++])); in read_eprom_byte()
197 (val | clocktab[j++])); in read_eprom_byte()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_debugfs.c107 loff_t i = *spos, j; in _opcode_stats_seq_show() local
112 for (j = 0; j < dd->first_user_ctxt; j++) { in _opcode_stats_seq_show()
113 if (!dd->rcd[j]) in _opcode_stats_seq_show()
115 n_packets += dd->rcd[j]->opstats->stats[i].n_packets; in _opcode_stats_seq_show()
116 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; in _opcode_stats_seq_show()
163 loff_t i, j; in _ctx_stats_seq_show() local
179 for (j = 0; j < ARRAY_SIZE(dd->rcd[i]->opstats->stats); j++) in _ctx_stats_seq_show()
180 n_packets += dd->rcd[i]->opstats->stats[j].n_packets; in _ctx_stats_seq_show()
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
Dsym_malloc.c64 int j; in ___sym_malloc() local
76 j = i; in ___sym_malloc()
77 while (!h[j].next) { in ___sym_malloc()
79 h[j].next = (m_link_p) M_GET_MEM_CLUSTER(); in ___sym_malloc()
80 if (h[j].next) in ___sym_malloc()
81 h[j].next->next = NULL; in ___sym_malloc()
84 ++j; in ___sym_malloc()
87 a = h[j].next; in ___sym_malloc()
89 h[j].next = h[j].next->next; in ___sym_malloc()
90 while (j > i) { in ___sym_malloc()
[all …]
/linux-4.1.27/arch/parisc/kernel/
Dirq.c163 int j; in arch_show_interrupts() local
167 for_each_online_cpu(j) in arch_show_interrupts()
168 seq_printf(p, "%10u ", irq_stats(j)->kernel_stack_usage); in arch_show_interrupts()
172 for_each_online_cpu(j) in arch_show_interrupts()
173 seq_printf(p, "%10u ", irq_stats(j)->irq_stack_usage); in arch_show_interrupts()
179 for_each_online_cpu(j) in arch_show_interrupts()
180 seq_printf(p, "%10u ", irq_stats(j)->irq_resched_count); in arch_show_interrupts()
184 for_each_online_cpu(j) in arch_show_interrupts()
185 seq_printf(p, "%10u ", irq_stats(j)->irq_unaligned_count); in arch_show_interrupts()
188 for_each_online_cpu(j) in arch_show_interrupts()
[all …]
/linux-4.1.27/kernel/time/
Dtimer.c131 static unsigned long round_jiffies_common(unsigned long j, int cpu, in round_jiffies_common() argument
135 unsigned long original = j; in round_jiffies_common()
145 j += cpu * 3; in round_jiffies_common()
147 rem = j % HZ; in round_jiffies_common()
157 j = j - rem; in round_jiffies_common()
159 j = j - rem + HZ; in round_jiffies_common()
162 j -= cpu * 3; in round_jiffies_common()
168 return time_is_after_jiffies(j) ? j : original; in round_jiffies_common()
191 unsigned long __round_jiffies(unsigned long j, int cpu) in __round_jiffies() argument
193 return round_jiffies_common(j, cpu, false); in __round_jiffies()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c116 int i, j; in i40evf_get_ethtool_stats() local
123 for (j = 0; j < adapter->num_active_queues; j++) { in i40evf_get_ethtool_stats()
124 data[i++] = adapter->tx_rings[j]->stats.packets; in i40evf_get_ethtool_stats()
125 data[i++] = adapter->tx_rings[j]->stats.bytes; in i40evf_get_ethtool_stats()
127 for (j = 0; j < adapter->num_active_queues; j++) { in i40evf_get_ethtool_stats()
128 data[i++] = adapter->rx_rings[j]->stats.packets; in i40evf_get_ethtool_stats()
129 data[i++] = adapter->rx_rings[j]->stats.bytes; in i40evf_get_ethtool_stats()
637 int i, j; in i40evf_get_rxfh() local
645 for (i = 0, j = 0; i <= I40E_VFQF_HLUT_MAX_INDEX; i++) { in i40evf_get_rxfh()
647 indir[j++] = hlut_val & 0xff; in i40evf_get_rxfh()
[all …]
/linux-4.1.27/drivers/ide/
Dide.c181 int a, b, i, j = 1; in ide_set_dev_param_mask() local
185 if (sscanf(s, "%d.%d:%d", &a, &b, &j) != 3 && in ide_set_dev_param_mask()
191 if (i >= MAX_HWIFS * MAX_DRIVES || j < 0 || j > 1) in ide_set_dev_param_mask()
194 if (j) in ide_set_dev_param_mask()
249 int a, b, c = 0, h = 0, s = 0, i, j = 1; in ide_set_disk_chs() local
254 sscanf(str, "%d.%d:%d", &a, &b, &j) != 3) in ide_set_disk_chs()
259 if (i >= MAX_HWIFS * MAX_DRIVES || j < 0 || j > 1) in ide_set_disk_chs()
265 if (j) in ide_set_disk_chs()
333 int i, j = 1; in ide_set_ignore_cable() local
337 if (sscanf(s, "%d:%d", &i, &j) != 2 && sscanf(s, "%d", &i) != 1) in ide_set_ignore_cable()
[all …]
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-firmware.c104 int i, j; in load_cpu_fw_direct() local
119 for (j = i; j < fw->size && j < i + 4096; j += 4) { in load_cpu_fw_direct()
144 int i, j; in load_apu_fw_direct() local
188 for (j = i; j < seghdr.size && j < i + 4096; j += 4) { in load_apu_fw_direct()
190 cx18_raw_writel(cx, src[(offset + j) / 4], in load_apu_fw_direct()
191 dst + seghdr.addr + j); in load_apu_fw_direct()
192 if (cx18_raw_readl(cx, dst + seghdr.addr + j) in load_apu_fw_direct()
193 != src[(offset + j) / 4]) { in load_apu_fw_direct()
195 offset + j); in load_apu_fw_direct()
/linux-4.1.27/drivers/mtd/
Dredboot.c137 int j; in parse_redboot_partitions() local
140 for (j = 0; j < numslots; ++j) { in parse_redboot_partitions()
145 if (buf[j].name[0] == 0xff) { in parse_redboot_partitions()
146 if (buf[j].name[1] == 0xff) { in parse_redboot_partitions()
156 swab32s(&buf[j].flash_base); in parse_redboot_partitions()
157 swab32s(&buf[j].mem_base); in parse_redboot_partitions()
158 swab32s(&buf[j].size); in parse_redboot_partitions()
159 swab32s(&buf[j].entry_point); in parse_redboot_partitions()
160 swab32s(&buf[j].data_length); in parse_redboot_partitions()
161 swab32s(&buf[j].desc_cksum); in parse_redboot_partitions()
[all …]
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dusb_ops_linux.c214 int j; in rtl8723au_write_port_cancel() local
222 for (j = 0; j < 8; j++) { in rtl8723au_write_port_cancel()
223 if (pxmitbuf->pxmit_urb[j]) in rtl8723au_write_port_cancel()
224 usb_kill_urb(pxmitbuf->pxmit_urb[j]); in rtl8723au_write_port_cancel()
229 for (j = 0; j < 8; j++) { in rtl8723au_write_port_cancel()
230 if (pxmitbuf->pxmit_urb[j]) in rtl8723au_write_port_cancel()
231 usb_kill_urb(pxmitbuf->pxmit_urb[j]); in rtl8723au_write_port_cancel()
/linux-4.1.27/net/netfilter/ipset/
Dip_set_hash_gen.h298 int i, j; in mtype_add_cidr() local
301 for (i = 0, j = -1; i < nets_length && h->nets[i].cidr[n]; i++) { in mtype_add_cidr()
302 if (j != -1) in mtype_add_cidr()
305 j = i; in mtype_add_cidr()
311 if (j != -1) { in mtype_add_cidr()
312 for (; i > j; i--) in mtype_add_cidr()
322 u8 i, j, net_end = nets_length - 1; in mtype_del_cidr() local
330 for (j = i; j < net_end && h->nets[j].cidr[n]; j++) in mtype_del_cidr()
331 h->nets[j].cidr[n] = h->nets[j + 1].cidr[n]; in mtype_del_cidr()
332 h->nets[j].cidr[n] = 0; in mtype_del_cidr()
[all …]
/linux-4.1.27/arch/arm/mach-omap2/
Dsr_device.c39 int i, j, count = 0; in sr_set_nvalues() local
55 for (i = 0, j = 0; i < count; i++) { in sr_set_nvalues()
84 nvalue_table[j].nvalue = v; in sr_set_nvalues()
85 nvalue_table[j].efuse_offs = volt_data[i].sr_efuse_offs; in sr_set_nvalues()
86 nvalue_table[j].errminlimit = volt_data[i].sr_errminlimit; in sr_set_nvalues()
87 nvalue_table[j].volt_nominal = volt_data[i].volt_nominal; in sr_set_nvalues()
89 j++; in sr_set_nvalues()
93 sr_data->nvalue_count = j; in sr_set_nvalues()
/linux-4.1.27/tools/testing/selftests/timers/
Dthreadtest.c55 int i, j; in checklist() local
75 for (j = 0; j < size; j++) { in checklist()
76 if (j == i) in checklist()
78 printf("%lu:%lu\n", list[j].tv_sec, list[j].tv_nsec); in checklist()
79 if (j == i+1) in checklist()
/linux-4.1.27/drivers/net/hamradio/
Dbaycom_epp.c376 int j; in encode_hdlc() local
401 for (j = 0; j < 8; j++) in encode_hdlc()
402 if (unlikely(!(notbitstream & (0x1f0 << j)))) { in encode_hdlc()
403 bitstream &= ~(0x100 << j); in encode_hdlc()
404 bitbuf = (bitbuf & (((2 << j) << numbit) - 1)) | in encode_hdlc()
405 ((bitbuf & ~(((2 << j) << numbit) - 1)) << 1); in encode_hdlc()
435 int i, j; in transmit() local
471 j = (i > sizeof(tmp)) ? sizeof(tmp) : i; in transmit()
472 if (j != pp->ops->epp_write_data(pp, tmp, j, 0)) in transmit()
474 i -= j; in transmit()
[all …]
/linux-4.1.27/drivers/misc/altera-stapl/
Daltera-jtag.c136 u32 j; in altera_set_dr_pre() local
150 j = i + start_index; in altera_set_dr_pre()
155 if (preamble_data[j >> 3] & (1 << (j & 7))) in altera_set_dr_pre()
174 u32 j; in altera_set_ir_pre() local
189 j = i + start_index; in altera_set_ir_pre()
193 if (preamble_data[j >> 3] & (1 << (j & 7))) in altera_set_ir_pre()
212 u32 j; in altera_set_dr_post() local
228 j = i + start_index; in altera_set_dr_post()
233 if (postamble_data[j >> 3] & (1 << (j & 7))) in altera_set_dr_post()
252 u32 j; in altera_set_ir_post() local
[all …]
Daltera-comp.c82 u32 i, j, data_length = 0L; in altera_shrink() local
113 for (j = 0; j < DATA_BLOB_LENGTH; ++j) { in altera_shrink()
132 for (j = 0; j < length; ++j) { in altera_shrink()
/linux-4.1.27/arch/x86/mm/
Dnuma_emulation.c318 int i, j, ret; in numa_emulation() local
370 for (j = 0; j < numa_dist_cnt; j++) in numa_emulation()
371 phys_dist[i * numa_dist_cnt + j] = in numa_emulation()
372 node_distance(i, j); in numa_emulation()
404 for (j = 0; j < ARRAY_SIZE(emu_nid_to_phys); j++) in numa_emulation()
405 if (__apicid_to_node[i] == emu_nid_to_phys[j]) in numa_emulation()
407 __apicid_to_node[i] = j < ARRAY_SIZE(emu_nid_to_phys) ? j : 0; in numa_emulation()
418 for (j = 0; j < max_emu_nid + 1; j++) { in numa_emulation()
420 int physj = emu_nid_to_phys[j]; in numa_emulation()
431 numa_set_distance(i, j, dist); in numa_emulation()
/linux-4.1.27/drivers/auxdisplay/
Dcfag12864b.c206 unsigned char i, j; in cfag12864b_clear() local
212 for (j = 0; j < CFAG12864B_ADDRESSES; j++) in cfag12864b_clear()
274 unsigned short i, j, k, b; in cfag12864b_update() local
280 for (j = 0; j < CFAG12864B_PAGES; j++) { in cfag12864b_update()
281 cfag12864b_page(j); in cfag12864b_update()
289 + k / 8 + (j * 8 + b) * in cfag12864b_update()
/linux-4.1.27/net/atm/
Datm_sysfs.c36 int i, j, count = 0; in show_atmaddress() local
40 for (i = 0, j = 0; i < ATM_ESA_LEN; ++i, ++j) { in show_atmaddress()
41 if (j == *fmt) { in show_atmaddress()
45 j = 0; in show_atmaddress()
149 int i, j, err; in atm_register_sysfs() local
169 for (j = 0; j < i; j++) in atm_register_sysfs()
170 device_remove_file(cdev, atm_attrs[j]); in atm_register_sysfs()
/linux-4.1.27/arch/x86/crypto/
Dsha1_avx2_x86_64_asm.S493 .set j, 0 define
495 RR j
496 .set j, j+2 define
511 RR j
512 .set j, j+2 define
525 RR j
526 .set j, j+2 define
547 .set j, 0 define
549 RR j+80
550 .set j, j+2 define
[all …]
/linux-4.1.27/drivers/isdn/pcbit/
Dmodule.c96 int i, j, argc; in pcbit_setup() local
103 j = 1; in pcbit_setup()
108 mem[i] = ints[j]; in pcbit_setup()
109 j++; argc--; in pcbit_setup()
113 irq[i] = ints[j]; in pcbit_setup()
114 j++; argc--; in pcbit_setup()
/linux-4.1.27/drivers/media/i2c/s5c73m3/
Ds5c73m3-spi.c75 unsigned int i, j = 0; in s5c73m3_spi_write() local
82 r = spi_xmit(spi_dev, (void *)addr + j, tx_size, SPI_DIR_TX); in s5c73m3_spi_write()
85 j += tx_size; in s5c73m3_spi_write()
89 r = spi_xmit(spi_dev, (void *)addr + j, extra, SPI_DIR_TX); in s5c73m3_spi_write()
103 unsigned int i, j = 0; in s5c73m3_spi_read() local
107 r = spi_xmit(spi_dev, addr + j, tx_size, SPI_DIR_RX); in s5c73m3_spi_read()
110 j += tx_size; in s5c73m3_spi_read()
114 return spi_xmit(spi_dev, addr + j, extra, SPI_DIR_RX); in s5c73m3_spi_read()
/linux-4.1.27/arch/score/kernel/
Dentry.S75 j general_exception
84 j interrupt_exception
113 j do_IRQ
120 j restore_all
132 j ret_from_exception
141 j ret_from_exception
150 j ret_from_exception
159 j ret_from_exception
168 j ret_from_exception
177 j ret_from_exception
[all …]
/linux-4.1.27/fs/jbd2/
Drecovery.c177 static int jbd2_descr_block_csum_verify(journal_t *j, in jbd2_descr_block_csum_verify() argument
184 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_descr_block_csum_verify()
187 tail = (struct jbd2_journal_block_tail *)(buf + j->j_blocksize - in jbd2_descr_block_csum_verify()
191 calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); in jbd2_descr_block_csum_verify()
382 static int jbd2_commit_block_csum_verify(journal_t *j, void *buf) in jbd2_commit_block_csum_verify() argument
388 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_commit_block_csum_verify()
394 calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); in jbd2_commit_block_csum_verify()
400 static int jbd2_block_tag_csum_verify(journal_t *j, journal_block_tag_t *tag, in jbd2_block_tag_csum_verify() argument
407 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_block_tag_csum_verify()
411 csum32 = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&seq, sizeof(seq)); in jbd2_block_tag_csum_verify()
[all …]
/linux-4.1.27/arch/microblaze/kernel/
Dheartbeat.c49 int j; in microblaze_setup_heartbeat() local
55 for (j = 0; gpio_list[j] != NULL; j++) { in microblaze_setup_heartbeat()
56 gpio = of_find_compatible_node(NULL, NULL, gpio_list[j]); in microblaze_setup_heartbeat()
/linux-4.1.27/fs/cifs/
Dcifs_unicode.c448 int j = 0; in cifsConvertToUTF16() local
461 for (i = 0; i < srclen; j++) { in cifsConvertToUTF16()
511 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16()
516 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16()
518 j++; in cifsConvertToUTF16()
519 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16()
522 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16()
524 j++; in cifsConvertToUTF16()
525 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16()
527 j++; in cifsConvertToUTF16()
[all …]
/linux-4.1.27/drivers/misc/genwqe/
Dcard_utils.c147 int i, j; in genwqe_read_app_id() local
151 for (i = 0, j = 0; j < min(len, 4); j++) { in genwqe_read_app_id()
152 char ch = (char)((app_id >> (24 - j*8)) & 0xff); in genwqe_read_app_id()
174 int i, j; in genwqe_init_crc32() local
179 for (j = 0; j < 8; j++) { in genwqe_init_crc32()
371 int i = 0, j = 0, p; in genwqe_setup_sgl() local
387 j = 0; in genwqe_setup_sgl()
388 s[j].target_addr = cpu_to_be64(sgl->sgl_dma_addr + dma_offs); in genwqe_setup_sgl()
389 s[j].len = cpu_to_be32(128); in genwqe_setup_sgl()
390 s[j].flags = cpu_to_be32(SG_CHAINED); in genwqe_setup_sgl()
[all …]
/linux-4.1.27/drivers/md/
Draid0.c48 int j, k; in dump_zones() local
57 for (j = 0; j < conf->nr_strip_zones; j++) { in dump_zones()
58 printk(KERN_INFO "md: zone%d=[", j); in dump_zones()
59 for (k = 0; k < conf->strip_zone[j].nb_dev; k++) in dump_zones()
61 bdevname(conf->devlist[j*raid_disks in dump_zones()
65 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones()
69 (unsigned long long)conf->strip_zone[j].dev_start>>1, in dump_zones()
71 zone_start = conf->strip_zone[j].zone_end; in dump_zones()
172 int j = rdev1->raid_disk; in create_strip_zones() local
176 j /= 2; in create_strip_zones()
[all …]
/linux-4.1.27/drivers/staging/iio/
Diio_simple_dummy_buffer.c73 int i, j; in iio_simple_dummy_trigger_h() local
75 for (i = 0, j = 0; in iio_simple_dummy_trigger_h()
78 i++, j++) { in iio_simple_dummy_trigger_h()
79 j = find_next_bit(indio_dev->active_scan_mask, in iio_simple_dummy_trigger_h()
80 indio_dev->masklength, j); in iio_simple_dummy_trigger_h()
82 data[i] = fakedata[j]; in iio_simple_dummy_trigger_h()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Doffloading.c141 int j; in iwl_mvm_send_proto_offload() local
145 for (j = 0; j < c; j++) in iwl_mvm_send_proto_offload()
146 if (ipv6_addr_cmp(&nsc[j].dest_ipv6_addr, in iwl_mvm_send_proto_offload()
149 if (j == c) in iwl_mvm_send_proto_offload()
152 addrs[i].config_num = cpu_to_le32(j); in iwl_mvm_send_proto_offload()
153 nsc[j].dest_ipv6_addr = solicited_addr; in iwl_mvm_send_proto_offload()
154 memcpy(nsc[j].target_mac_addr, vif->addr, ETH_ALEN); in iwl_mvm_send_proto_offload()
/linux-4.1.27/drivers/usb/core/
Dconfig.c152 int n, i, j, retval; in usb_parse_endpoint() local
190 j = 255; in usb_parse_endpoint()
203 j = 16; in usb_parse_endpoint()
212 n = clamp(fls(d->bInterval), i, j); in usb_parse_endpoint()
213 i = j = n; in usb_parse_endpoint()
225 j = 16; in usb_parse_endpoint()
235 if (d->bInterval < i || d->bInterval > j) { in usb_parse_endpoint()
302 int j; in usb_release_interface_cache() local
304 for (j = 0; j < intfc->num_altsetting; j++) { in usb_release_interface_cache()
305 struct usb_host_interface *alt = &intfc->altsetting[j]; in usb_release_interface_cache()
[all …]
/linux-4.1.27/drivers/staging/gdm724x/
Dgdm_tty.c76 int j; in gdm_tty_install() local
78 j = GDM_TTY_MINOR; in gdm_tty_install()
81 j = tty->index; in gdm_tty_install()
86 if (j == GDM_TTY_MINOR) in gdm_tty_install()
90 gdm = gdm_table[i][j]; in gdm_tty_install()
225 int j; in register_lte_tty_device() local
234 for (j = 0; j < GDM_TTY_MINOR; j++) { in register_lte_tty_device()
235 if (!gdm_table[i][j]) in register_lte_tty_device()
239 if (j == GDM_TTY_MINOR) { in register_lte_tty_device()
245 gdm_table[i][j] = gdm; in register_lte_tty_device()
[all …]
/linux-4.1.27/arch/metag/include/asm/
Dsyscall.h72 unsigned int reg, j; in syscall_get_arguments() local
75 for (j = i, reg = 6 - i; j < (i + n); j++, reg--) { in syscall_get_arguments()
77 args[j] = regs->ctx.DX[(reg + 1) / 2].U0; in syscall_get_arguments()
79 args[j] = regs->ctx.DX[reg / 2].U1; in syscall_get_arguments()
/linux-4.1.27/drivers/block/xen-blkback/
Dxenbus.c128 int i, j; in xen_blkif_alloc() local
161 for (j = 0; j < MAX_INDIRECT_SEGMENTS; j++) { in xen_blkif_alloc()
162 req->segments[j] = kzalloc(sizeof(*req->segments[0]), in xen_blkif_alloc()
164 if (!req->segments[j]) in xen_blkif_alloc()
167 for (j = 0; j < MAX_INDIRECT_PAGES; j++) { in xen_blkif_alloc()
168 req->indirect_pages[j] = kzalloc(sizeof(*req->indirect_pages[0]), in xen_blkif_alloc()
170 if (!req->indirect_pages[j]) in xen_blkif_alloc()
183 for (j = 0; j < MAX_INDIRECT_SEGMENTS; j++) { in xen_blkif_alloc()
184 if (!req->segments[j]) in xen_blkif_alloc()
186 kfree(req->segments[j]); in xen_blkif_alloc()
[all …]
/linux-4.1.27/arch/mips/sni/
Dreset.c27 int i, j; in sni_machine_restart() local
35 for (j = 0; j < 100000 ; j++) in sni_machine_restart()
/linux-4.1.27/arch/parisc/mm/
Dinit.c139 int j; in setup_bootmem() local
141 for (j = i; j > 0; j--) { in setup_bootmem()
144 if (pmem_ranges[j-1].start_pfn < in setup_bootmem()
145 pmem_ranges[j].start_pfn) { in setup_bootmem()
149 tmp = pmem_ranges[j-1].start_pfn; in setup_bootmem()
150 pmem_ranges[j-1].start_pfn = pmem_ranges[j].start_pfn; in setup_bootmem()
151 pmem_ranges[j].start_pfn = tmp; in setup_bootmem()
152 tmp = pmem_ranges[j-1].pages; in setup_bootmem()
153 pmem_ranges[j-1].pages = pmem_ranges[j].pages; in setup_bootmem()
154 pmem_ranges[j].pages = tmp; in setup_bootmem()
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dbtext.c101 int i,j; in btext_clearscreen() local
106 for(j=width; j; --j) in btext_clearscreen()
119 int i,j; in scrollscreen() local
125 for(j=width; j; --j) in scrollscreen()
133 for(j=width; j; --j) in scrollscreen()
/linux-4.1.27/drivers/rtc/
Drtc-ds1216.c47 int i, j; in ds1216_read() local
51 for (j = 0; j < 8; j++) in ds1216_read()
52 c |= (readb(ioaddr) & 0x1) << j; in ds1216_read()
60 int i, j; in ds1216_write() local
64 for (j = 0; j < 8; j++) { in ds1216_write()
/linux-4.1.27/drivers/usb/host/
Dxhci-rcar.c83 int retval, index, j, time; in xhci_rcar_download_firmware() local
99 for (data = 0, j = 3; j >= 0; j--) { in xhci_rcar_download_firmware()
100 if ((j + index) < fw->size) in xhci_rcar_download_firmware()
101 data |= fw->data[index + j] << (8 * j); in xhci_rcar_download_firmware()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dtracefile.h186 #define cfs_tcd_for_each(tcd, i, j) \ argument
188 for (j = 0, ((tcd) = &(*cfs_trace_data[i])[j].tcd); \
189 j < num_possible_cpus(); \
190 j++, (tcd) = &(*cfs_trace_data[i])[j].tcd)
280 unsigned int j = cfs_trace_buf_idx_get(); in cfs_trace_get_console_buffer() local
282 return cfs_trace_console_buffers[i][j]; in cfs_trace_get_console_buffer()
/linux-4.1.27/arch/c6x/platforms/
Ddscr.c331 int f, i, j, err; in dscr_parse_mac_fuse() local
340 for (j = (f * 5) + 1, i = 24; i >= 0; i -= 8, j++) in dscr_parse_mac_fuse()
341 if (vals[j] && vals[j] <= 6) in dscr_parse_mac_fuse()
342 c6x_fuse_mac[vals[j] - 1] = fuse >> i; in dscr_parse_mac_fuse()
474 int i, j, size; in dscr_parse_devstate_ctl_regs() local
496 for (j = r->start_id; in dscr_parse_devstate_ctl_regs()
497 j < (r->start_id + r->num_ids); in dscr_parse_devstate_ctl_regs()
498 j++) in dscr_parse_devstate_ctl_regs()
499 dscr.devstate_info[j].ctl = r; in dscr_parse_devstate_ctl_regs()
530 int i, j, size; in dscr_parse_devstate_stat_regs() local
[all …]
/linux-4.1.27/drivers/nfc/st21nfca/
Di2c.c205 int r = -1, i, j; in st21nfca_hci_i2c_write() local
235 for (i = 1, j = 1; i < skb->len - 1; i++, j++) { in st21nfca_hci_i2c_write()
238 tmp[j] = ST21NFCA_ESCAPE_BYTE_STUFFING; in st21nfca_hci_i2c_write()
239 j++; in st21nfca_hci_i2c_write()
240 tmp[j] = skb->data[i] ^ ST21NFCA_BYTE_STUFFING_MASK; in st21nfca_hci_i2c_write()
242 tmp[j] = skb->data[i]; in st21nfca_hci_i2c_write()
245 tmp[j] = skb->data[i]; in st21nfca_hci_i2c_write()
246 j++; in st21nfca_hci_i2c_write()
254 r = i2c_master_send(client, tmp, j); in st21nfca_hci_i2c_write()
261 if (r != j) in st21nfca_hci_i2c_write()
[all …]
/linux-4.1.27/sound/pci/ac97/
Dac97_pcm.c450 int i, j, k; in snd_ac97_pcm_assign() local
473 for (j = 0; j < i; j++) { in snd_ac97_pcm_assign()
474 if (bus->codec[j]) in snd_ac97_pcm_assign()
475 avail_slots[1][i] &= ~avail_slots[1][j]; in snd_ac97_pcm_assign()
495 for (j = 0; j < 4 && slots; j++) { in snd_ac97_pcm_assign()
496 if (!bus->codec[j]) in snd_ac97_pcm_assign()
500 tmp = spdif_slots[j]; in snd_ac97_pcm_assign()
502 tmp = avail_slots[pcm->stream][j]; in snd_ac97_pcm_assign()
508 tmp &= ~rpcms[k].r[0].rslots[j]; in snd_ac97_pcm_assign()
515 rpcm->r[0].rslots[j] = tmp; in snd_ac97_pcm_assign()
[all …]
/linux-4.1.27/drivers/s390/cio/
Dqdio_setup.c108 int i, j; in set_impl_params() local
122 for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++) in set_impl_params()
123 q->slib->slibe[j].parms = in set_impl_params()
124 input_slib_elements[i * QDIO_MAX_BUFFERS_PER_Q + j]; in set_impl_params()
131 for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++) in set_impl_params()
132 q->slib->slibe[j].parms = in set_impl_params()
133 output_slib_elements[i * QDIO_MAX_BUFFERS_PER_Q + j]; in set_impl_params()
187 int j; in setup_storage_lists() local
193 for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; j++) in setup_storage_lists()
194 q->sbal[j] = *sbals_array++; in setup_storage_lists()
[all …]
/linux-4.1.27/tools/testing/selftests/ptrace/
Dpeeksiginfo.c107 int i, j, ret, exit_code = -1; in check_direct_path() local
130 for (j = 0; j < ret; j++, i++) { in check_direct_path()
131 if (siginfo[j].si_code == si_code && in check_direct_path()
132 siginfo[j].si_int == i) in check_direct_path()
136 shared, i, siginfo[j].si_code, siginfo[j].si_int); in check_direct_path()

1234567891011