| /linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
| H A D | ia_css_eed1_8.host.c | 85 unsigned int i, j, base; in ia_css_eed1_8_vmem_encode() local 121 for (j = 0; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 122 assert(from->dew_enhance_seg_x[j] > -1); in ia_css_eed1_8_vmem_encode() 123 assert(from->dew_enhance_seg_y[j] > -1); in ia_css_eed1_8_vmem_encode() 126 for (j = 1; j < IA_CSS_NUMBER_OF_DEW_ENHANCE_SEGMENTS; j++) { in ia_css_eed1_8_vmem_encode() 127 assert(from->dew_enhance_seg_x[j] > from->dew_enhance_seg_x[j - 1]); in ia_css_eed1_8_vmem_encode() 128 assert(from->dew_enhance_seg_y[j] > from->dew_enhance_seg_y[j - 1]); in ia_css_eed1_8_vmem_encode() 143 for (j = 1; j < NUMBER_OF_CHGRINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() 144 assert(chgrinv_x[j] > chgrinv_x[j - 1]); in ia_css_eed1_8_vmem_encode() 147 for (j = 1; j < NUMBER_OF_TCINV_POINTS; j++) { in ia_css_eed1_8_vmem_encode() [all …]
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_csr.c | 65 u32 i, j; in fbnic_csr_get_regs_rpc_ram() local 72 for (j = 0; j < FBNIC_RPC_TCAM_ACT_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 73 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_ACT(i, j)); in fbnic_csr_get_regs_rpc_ram() 78 for (j = 0; j < FBNIC_RPC_TCAM_MACDA_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 79 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_MACDA(i, j)); in fbnic_csr_get_regs_rpc_ram() 84 for (j = 0; j < FBNIC_RPC_TCAM_OUTER_IPSRC_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 85 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_OUTER_IPSRC(i, j)); in fbnic_csr_get_regs_rpc_ram() 90 for (j = 0; j < FBNIC_RPC_TCAM_OUTER_IPDST_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() 91 *(data++) = rd32(fbd, FBNIC_RPC_TCAM_OUTER_IPDST(i, j)); in fbnic_csr_get_regs_rpc_ram() 96 for (j = 0; j < FBNIC_RPC_TCAM_IPSRC_DW_PER_ENTRY; j++) in fbnic_csr_get_regs_rpc_ram() [all …]
|
| /linux/tools/perf/util/ |
| H A D | levenshtein.c | 25 * In other words, at the start of the big loop, row2[j + 1] contains the 27 * "i" and the substring of string2 of length "j + 1". 32 * i (in string1) and j (in string2), respectively, given that the last 51 int i, j; in levenshtein() local 53 for (j = 0; j <= len2; j++) in levenshtein() 54 row1[j] = j * a; in levenshtein() 59 for (j = 0; j < len2; j++) { in levenshtein() 61 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); in levenshtein() 63 if (i > 0 && j > 0 && string1[i - 1] == string2[j] && in levenshtein() 64 string1[i] == string2[j - 1] && in levenshtein() [all …]
|
| H A D | cs-etm-base.c | 64 int i = *offset, j, nr_params = 0, fmt_offset; in cs_etm__print_cpu_metadata_v0() local 84 for (j = fmt_offset; j < nr_params + fmt_offset; j++, i++) in cs_etm__print_cpu_metadata_v0() 85 fprintf(stdout, cs_etm_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v0() 90 for (j = fmt_offset; j < nr_params + fmt_offset; j++, i++) in cs_etm__print_cpu_metadata_v0() 91 fprintf(stdout, cs_etmv4_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v0() 99 int i = *offset, j, total_params = 0; in cs_etm__print_cpu_metadata_v1() local 107 for (j = 0; j < total_params; j++, i++) { in cs_etm__print_cpu_metadata_v1() 109 if (j >= CS_ETM_PRIV_MAX) in cs_etm__print_cpu_metadata_v1() 110 fprintf(stdout, param_unk_fmt, j, val[i]); in cs_etm__print_cpu_metadata_v1() 112 fprintf(stdout, cs_etm_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v1() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | reuseaddr_ports_exhausted.c | 84 int i, j, fd[2]; in TEST() local 89 for (j = 0; j < 2; j++) in TEST() 90 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST() 95 for (j = 0; j < 2; j++) in TEST() 96 if (fd[j] != -1) in TEST() 97 close(fd[j]); in TEST() 104 int i, j, fd[2]; in TEST() local 109 for (j = 0; j < 2; j++) in TEST() 110 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST() 120 for (j = 0; j < 2; j++) in TEST() [all …]
|
| /linux/drivers/md/bcache/ |
| H A D | bset.c | 368 * return array index next to j when does in-order traverse 371 static unsigned int inorder_next(unsigned int j, unsigned int size) in inorder_next() argument 373 if (j * 2 + 1 < size) { in inorder_next() 374 j = j * 2 + 1; in inorder_next() 376 while (j * 2 < size) in inorder_next() 377 j *= 2; in inorder_next() 379 j >>= ffz(j) + 1; in inorder_next() 381 return j; in inorder_next() 385 * return array index previous to j when does in-order traverse 388 static unsigned int inorder_prev(unsigned int j, unsigned int size) in inorder_prev() argument [all …]
|
| /linux/drivers/video/logo/ |
| H A D | pnmtologo.c | 124 unsigned int i, j; in read_image() local 174 for (j = 0; j < logo_width; j++) in read_image() 175 logo_data[i][j].red = logo_data[i][j].green = in read_image() 176 logo_data[i][j].blue = 255*(1-get_number(fp)); in read_image() 183 for (j = 0; j < logo_width; j++) in read_image() 184 logo_data[i][j].red = logo_data[i][j].green = in read_image() 185 logo_data[i][j].blue = get_number255(fp, maxval); in read_image() 192 for (j = 0; j < logo_width; j++) { in read_image() 193 logo_data[i][j].red = get_number255(fp, maxval); in read_image() 194 logo_data[i][j].green = get_number255(fp, maxval); in read_image() [all …]
|
| /linux/kernel/ |
| H A D | range.c | 67 int i, j; in subtract_range() local 72 for (j = 0; j < az; j++) { in subtract_range() 73 if (!range[j].end) in subtract_range() 76 if (start <= range[j].start && end >= range[j].end) { in subtract_range() 77 range[j].start = 0; in subtract_range() 78 range[j].end = 0; in subtract_range() 82 if (start <= range[j].start && end < range[j].end && in subtract_range() 83 range[j].start < end) { in subtract_range() 84 range[j].start = end; in subtract_range() 89 if (start > range[j].start && end >= range[j].end && in subtract_range() [all …]
|
| /linux/lib/raid6/ |
| H A D | mktables.c | 55 int i, j, k; in main() local 70 for (j = 0; j < 256; j += 8) { in main() 73 printf("0x%02x,%c", gfmul(i, j + k), in main() 89 for (j = 0; j < 16; j += 8) { in main() 92 printf("0x%02x,%c", gfmul(i, j + k), in main() 95 for (j = 0; j < 16; j += 8) { in main() 98 printf("0x%02x,%c", gfmul(i, (j + k) << 4), in main() 114 for (j = 0; j < 8; j++) { in main() 115 exptbl[i + j] = v; in main() 116 printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); in main() [all …]
|
| /linux/lib/reed_solomon/ |
| H A D | decode_rs.c | 15 int i, j, r, k, pad; variable 64 for (j = 1; j < len; j++) { 67 syn[i] = (((uint16_t) data[j]) ^ 70 syn[i] = ((((uint16_t) data[j]) ^ 78 for (j = 0; j < nroots; j++) { 81 syn[i] = ((uint16_t) par[j]) & msk; 83 syn[i] = (((uint16_t) par[j]) & msk) ^ 115 for (j = i + 1; j > 0; j--) { 116 tmp = index_of[lambda[j - 1]]; 118 lambda[j] ^= [all …]
|
| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | check_buffer_fill.c | 31 int i, j, item; in check_buffer_by_byte() local 43 for (j = 0; j < sizes[i]; j++) in check_buffer_by_byte() 44 ptr[j] = '1'; in check_buffer_by_byte() 48 for (j = 0; j < sizes[i] && !err; j++) { in check_buffer_by_byte() 49 if (ptr[j] != '1') in check_buffer_by_byte() 67 int i, j, item, last_index; in check_buffer_underflow_by_byte() local 83 for (j = sizes[i] - 1; (j >= -underflow_range) && in check_buffer_underflow_by_byte() 84 (!cur_mte_cxt.fault_valid); j--) { in check_buffer_underflow_by_byte() 85 ptr[j] = '1'; in check_buffer_underflow_by_byte() 86 last_index = j; in check_buffer_underflow_by_byte() [all …]
|
| /linux/drivers/net/ethernet/sunplus/ |
| H A D | spl2sw_desc.c | 17 u32 i, j; in spl2sw_rx_descs_flush() local 22 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_flush() 23 rx_desc[j].addr1 = rx_skbinfo[j].mapping; in spl2sw_rx_descs_flush() 24 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_flush() 28 rx_desc[j].cmd1 = RXD_OWN; in spl2sw_rx_descs_flush() 64 u32 i, j; in spl2sw_rx_descs_clean() local 72 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_clean() 73 rx_desc[j].cmd1 = 0; in spl2sw_rx_descs_clean() 75 rx_desc[j].cmd2 = 0; in spl2sw_rx_descs_clean() 76 rx_desc[j].addr1 = 0; in spl2sw_rx_descs_clean() [all …]
|
| /linux/net/ipv4/ |
| H A D | udp_tunnel_nic.c | 136 unsigned int i, j; in udp_tunnel_nic_is_empty() local 139 for (j = 0; j < info->tables[i].n_entries; j++) in udp_tunnel_nic_is_empty() 140 if (!udp_tunnel_nic_entry_is_free(&utn->entries[i][j])) in udp_tunnel_nic_is_empty() 149 unsigned int i, j; in udp_tunnel_nic_should_replay() local 159 for (j = 0; j < table->n_entries; j++) in udp_tunnel_nic_should_replay() 160 if (udp_tunnel_nic_entry_is_free(&utn->entries[i][j])) in udp_tunnel_nic_should_replay() 245 unsigned int i, j; udp_tunnel_nic_device_sync_by_port() local 257 unsigned int i, j; udp_tunnel_nic_device_sync_by_table() local 342 unsigned int i, j; udp_tunnel_nic_has_collision() local 425 unsigned int i, j; udp_tunnel_nic_try_existing() local 460 unsigned int i, j; udp_tunnel_nic_add_new() local 547 unsigned int i, j; __udp_tunnel_nic_reset_ntf() local 583 unsigned int j; __udp_tunnel_nic_dump_size() local 610 unsigned int j; __udp_tunnel_nic_dump_write() local 684 unsigned int i, j; udp_tunnel_nic_flush() local 708 unsigned int i, j; udp_tunnel_nic_replay() local [all...] |
| /linux/drivers/acpi/acpica/ |
| H A D | utbuffer.c | 37 u32 j; in acpi_ut_dump_buffer() local 64 for (j = 0; j < 16;) { in acpi_ut_dump_buffer() 65 if (i + j >= count) { in acpi_ut_dump_buffer() 70 j += display; in acpi_ut_dump_buffer() 79 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer() 85 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer() 92 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer() 99 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer() 103 &buffer[(acpi_size)i + j + in acpi_ut_dump_buffer() 109 j += display; in acpi_ut_dump_buffer() [all …]
|
| /linux/lib/raid6/test/ |
| H A D | test.c | 30 int i, j; in makedata() local 33 for (j = 0; j < PAGE_SIZE; j++) in makedata() 34 data[i][j] = rand(); in makedata() 52 static int test_disks(int i, int j) in test_disks() argument 60 dataptrs[j] = recovj; in test_disks() 62 raid6_dual_recov(NDISKS, PAGE_SIZE, i, j, (void **)&dataptrs); in test_disks() 65 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks() 67 if (i < NDISKS-2 && j == NDISKS-1) { in test_disks() 75 j, disk_type(j), in test_disks() 82 dataptrs[j] = data[j]; in test_disks() [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | irq.c | 70 int j; in arch_show_interrupts() local 73 for_each_online_cpu(j) in arch_show_interrupts() 74 seq_printf(p, "%10u ", irq_stats(j)->__nmi_count); in arch_show_interrupts() 78 for_each_online_cpu(j) in arch_show_interrupts() 79 seq_printf(p, "%10u ", irq_stats(j)->apic_timer_irqs); in arch_show_interrupts() 83 for_each_online_cpu(j) in arch_show_interrupts() 84 seq_printf(p, "%10u ", irq_stats(j)->irq_spurious_count); in arch_show_interrupts() 87 for_each_online_cpu(j) in arch_show_interrupts() 88 seq_printf(p, "%10u ", irq_stats(j)->apic_perf_irqs); in arch_show_interrupts() 91 for_each_online_cpu(j) in arch_show_interrupts() [all …]
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_job.c | 410 int j; in panfrost_job_enable_interrupts() local 415 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_enable_interrupts() 416 irq_mask |= MK_JS_MASK(j); in panfrost_job_enable_interrupts() 504 unsigned int i, j; in panfrost_job_handle_irq() local 510 for (j = 0; j < NUM_JOB_SLOTS; j++) { in panfrost_job_handle_irq() 511 if (status & MK_JS_MASK(j)) in panfrost_job_handle_irq() 512 js_state_mask |= MK_JS_MASK(j); in panfrost_job_handle_irq() 514 if (status & JOB_INT_MASK_DONE(j)) { in panfrost_job_handle_irq() 515 if (done[j][0]) in panfrost_job_handle_irq() 516 done[j][1] = panfrost_dequeue_job(pfdev, j); in panfrost_job_handle_irq() [all …]
|
| /linux/tools/testing/selftests/powerpc/math/ |
| H A D | vmx_signal.c | 52 int j; in signal_vmx_sig() local 61 for (j = 20; j < 32; j++) { in signal_vmx_sig() 62 printf("%d | 0x%04x%04x%04x%04x | 0x%04x%04x%04x%04x\n", j, mc->v_regs->vrregs[j][0], in signal_vmx_sig() 63 mc->v_regs->vrregs[j][1], mc->v_regs->vrregs[j][2], mc->v_regs->vrregs[j][3], in signal_vmx_sig() 64 varray[j - 20][0], varray[j - 20][1], varray[j - 20][2], varray[j - 20][3]); in signal_vmx_sig() 74 int i, j; in signal_vmx_c() local 85 for (j = 0; j < 4; j++) in signal_vmx_c() 86 varray[i][j] = rand(); in signal_vmx_c() 95 int i, j, rc, threads; in test_signal_vmx() local 124 for (j = 0; j < threads; j++) { in test_signal_vmx() [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbcon_rotate.h | 42 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/drivers/sh/intc/ |
| H A D | handle.c | 22 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 …]
|
| /linux/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 270 function convert_operands(count,opnd, i,j,imm,mod) 274 for (j = 1; j <= count; j++) { 275 i = opnd[j] 419 for (j = 0; j < max_lprefix; j++) 420 if (etable[i,j]) 421 print " ["i"]["j"] = "etable[i,j]"," 428 for (j = 0; j < max_lprefix; j++) 429 if (gtable[i,j]) 430 print " ["i"]["j"] = "gtable[i,j]"," 437 for (j = 0; j < max_lprefix; j++) [all …]
|
| /linux/tools/arch/x86/tools/ |
| H A D | gen-insn-attr-x86.awk | 270 function convert_operands(count,opnd, i,j,imm,mod) 274 for (j = 1; j <= count; j++) { 275 i = opnd[j] 419 for (j = 0; j < max_lprefix; j++) 420 if (etable[i,j]) 421 print " ["i"]["j"] = "etable[i,j]"," 428 for (j = 0; j < max_lprefix; j++) 429 if (gtable[i,j]) 430 print " ["i"]["j"] = "gtable[i,j]"," 437 for (j = 0; j < max_lprefix; j++) [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | fastops_test.c | 145 int i, j; \ 153 for (j = 0; j < ARRAY_SIZE(vals); j++) { \ 154 guest_test_fastop_2("add" suffix, type_t, vals[i], vals[j]); \ 155 guest_test_fastop_2("adc" suffix, type_t, vals[i], vals[j]); \ 156 guest_test_fastop_2("and" suffix, type_t, vals[i], vals[j]); \ 158 guest_test_fastop_2("bsf" suffix, type_t, vals[i], vals[j]); \ 159 guest_test_fastop_2("bsr" suffix, type_t, vals[i], vals[j]); \ 160 guest_test_fastop_2("bt" suffix, type_t, vals[i], vals[j]); \ 161 guest_test_fastop_2("btc" suffix, type_t, vals[i], vals[j]); \ 162 guest_test_fastop_2("btr" suffix, type_t, vals[i], vals[j]); \ [all …]
|
| /linux/samples/auxdisplay/ |
| H A D | cfag12864b-example.c | 153 unsigned char i, j, n; in cfag12864b_format() local 156 for (j = 0; j < CFAG12864B_WIDTH / CFAG12864B_BPB; j++) { in cfag12864b_format() 158 j] = 0; in cfag12864b_format() 161 j * CFAG12864B_BPB + n]) in cfag12864b_format() 163 CFAG12864B_BPB + j] |= in cfag12864b_format() 188 unsigned short i, j; in example() local 201 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example() 202 cfag12864b_set(i, j); in example() 214 for (j = 0; j < CFAG12864B_HEIGHT; j += 2) in example() 215 matrix[j * CFAG12864B_WIDTH + i] = 1; in example() [all …]
|
| /linux/drivers/tty/ipwireless/ |
| H A D | tty.c | 435 static int add_tty(int j, in add_tty() argument 440 ttys[j] = kzalloc(sizeof(struct ipw_tty), GFP_KERNEL); in add_tty() 441 if (!ttys[j]) in add_tty() 443 ttys[j]->index = j; in add_tty() 444 ttys[j]->hardware = hardware; in add_tty() 445 ttys[j]->channel_idx = channel_idx; in add_tty() 446 ttys[j]->secondary_channel_idx = secondary_channel_idx; in add_tty() 447 ttys[j]->network = network; in add_tty() 448 ttys[j]->tty_type = tty_type; in add_tty() 449 mutex_init(&ttys[j]->ipw_tty_mutex); in add_tty() [all …]
|