| /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/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/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/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/drivers/platform/x86/amd/pmf/ |
| H A D | sps.c | 62 int i, j; in amd_pmf_dump_sps_defaults() local 67 for (j = 0; j < POWER_MODE_MAX; j++) { in amd_pmf_dump_sps_defaults() 69 slider_as_str(j)); in amd_pmf_dump_sps_defaults() 70 pr_debug("SPL: %u mW\n", data->prop[i][j].spl); in amd_pmf_dump_sps_defaults() 71 pr_debug("SPPT: %u mW\n", data->prop[i][j].sppt); in amd_pmf_dump_sps_defaults() 72 pr_debug("SPPT_ApuOnly: %u mW\n", data->prop[i][j].sppt_apu_only); in amd_pmf_dump_sps_defaults() 73 pr_debug("FPPT: %u mW\n", data->prop[i][j].fppt); in amd_pmf_dump_sps_defaults() 74 pr_debug("STTMinLimit: %u mW\n", data->prop[i][j].stt_min); in amd_pmf_dump_sps_defaults() 76 data->prop[i][j].stt_skin_temp[STT_TEMP_APU]); in amd_pmf_dump_sps_defaults() 78 data->prop[i][j].stt_skin_temp[STT_TEMP_HS2]); in amd_pmf_dump_sps_defaults() [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 …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | nv30.c | 66 calc_bias(struct nvkm_fb *fb, int k, int i, int j) in calc_bias() argument 70 nvkm_rd32(device, 0x122c + 0x10 * k + 0x4 * j) >> in calc_bias() 80 int j, x = 0; in calc_ref() local 82 for (j = 0; j < 4; j++) { in calc_ref() 83 int m = (l >> (8 * i) & 0xff) + calc_bias(fb, k, i, j); in calc_ref() 85 x |= (0x80 | clamp(m, 0, 0x1f)) << (8 * j); in calc_ref() 95 int i, j; in nv30_fb_init() local 106 for (j = 0; j < 3; j++) in nv30_fb_init() 107 nvkm_wr32(device, 0x10037c + 0xc * i + 0x4 * j, in nv30_fb_init() 108 calc_ref(fb, l, 0, j)); in nv30_fb_init() [all …]
|
| /linux/drivers/platform/x86/ |
| H A D | uv_sysfs.c | 369 int j = 0, k = 0, ret, sz; in uv_ports_init() local 375 for (j = 0; j < uv_bios_obj_cnt; j++) { in uv_ports_init() 376 sz = hub_buf[j].ports * sizeof(*port_buf[j]); in uv_ports_init() 377 port_buf[j] = kzalloc(sz, GFP_KERNEL); in uv_ports_init() 378 if (!port_buf[j]) { in uv_ports_init() 380 j--; in uv_ports_init() 383 biosr = uv_bios_enum_ports((u64)uv_master_nasid, (u64)hub_buf[j].id, sz, in uv_ports_init() 384 (u64 *)port_buf[j]); in uv_ports_init() 390 for (j = 0; j < uv_bios_obj_cnt; j++) { in uv_ports_init() 391 uv_hubs[j]->ports = kcalloc(hub_buf[j].ports, in uv_ports_init() [all …]
|
| /linux/drivers/input/joystick/ |
| H A D | grip.c | 107 unsigned int i, j, buf, crc; in grip_xt_read_packet() local 116 status = buf = i = j = 0; in grip_xt_read_packet() 142 j++; in grip_xt_read_packet() 152 } while (status != 0xf && i < GRIP_MAX_BITS_XT && j < GRIP_MAX_CHUNKS_XT && t > 0); in grip_xt_read_packet() 168 int i, j; in grip_poll() local 190 for (j = 0; j < 12; j++) in grip_poll() 191 if (grip_btn_gpp[j]) in grip_poll() 192 input_report_key(dev, grip_btn_gpp[j], (*data >> j) & 1); in grip_poll() 210 for (j = 0; j < 5; j++) in grip_poll() 211 input_report_key(dev, grip_btn_bd[j], (data[3] >> (j + 4)) & 1); in grip_poll() [all …]
|