Home
last modified time | relevance | path

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

1234567891011

/rk3399_rockchip-uboot/drivers/dma/
H A Dkeystone_nav.c40 int j, num; in num_of_desc_to_reg() local
42 for (j = 0, num = 32; j < 15; j++, num *= 2) { in num_of_desc_to_reg()
44 return j; in num_of_desc_to_reg()
52 u32 j; in _qm_init() local
69 for (j = 0; j < HDESC_NUM; j++) in _qm_init()
70 qm_push(&desc_pool[j], qm_cfg->qpool_num); in _qm_init()
82 u32 j; in qm_close() local
92 for (j = 0; j < qm_cfg->region_num; j++) { in qm_close()
93 qm_cfg->desc_mem[j].base_addr = 0; in qm_close()
94 qm_cfg->desc_mem[j].start_idx = 0; in qm_close()
[all …]
/rk3399_rockchip-uboot/lib/
H A Drc4.c19 unsigned short i, j, t; in rc4_encode() local
22 j = 0; in rc4_encode()
25 j &= 0x0f; in rc4_encode()
26 k[i] = key[j]; in rc4_encode()
27 j++; in rc4_encode()
30 j = 0; in rc4_encode()
32 j = (j + s[i] + k[i]) % 256; in rc4_encode()
34 s[i] = s[j]; in rc4_encode()
35 s[j] = temp; in rc4_encode()
39 j = 0; in rc4_encode()
[all …]
H A Dhexdump.c58 int j, lx = 0; in hex_dump_to_buffer() local
84 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
86 "%s%16.16llx", j ? " " : "", in hex_dump_to_buffer()
87 get_unaligned(ptr8 + j)); in hex_dump_to_buffer()
95 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
97 "%s%8.8x", j ? " " : "", in hex_dump_to_buffer()
98 get_unaligned(ptr4 + j)); in hex_dump_to_buffer()
106 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer()
108 "%s%4.4x", j ? " " : "", in hex_dump_to_buffer()
109 get_unaligned(ptr2 + j)); in hex_dump_to_buffer()
[all …]
H A Dbch.c380 int i, j, s; in compute_syndromes() local
399 for (j = 0; j < 2*t; j += 2) in compute_syndromes()
400 syn[j] ^= a_pow(bch, (j+1)*(i+s)); in compute_syndromes()
407 for (j = 0; j < t; j++) in compute_syndromes()
408 syn[2*j+1] = gf_sqr(bch, syn[j]); in compute_syndromes()
421 unsigned int i, j, tmp, l, pd = 1, d = syn[0]; in compute_error_locator_polynomial() local
442 for (j = 0; j <= pelp->deg; j++) { in compute_error_locator_polynomial()
443 if (pelp->c[j]) { in compute_error_locator_polynomial()
444 l = a_log(bch, pelp->c[j]); in compute_error_locator_polynomial()
445 elp->c[j+k] ^= a_pow(bch, tmp+l); in compute_error_locator_polynomial()
[all …]
/rk3399_rockchip-uboot/examples/standalone/
H A Dsmc91111_eeprom.c37 int c, i, j, done, line, reg, value, start, what; in smc91111_eeprom() local
167 j = 0; in smc91111_eeprom()
169 j = input[i] - 0x30; in smc91111_eeprom()
170 if (j >= 0xA) { in smc91111_eeprom()
171 j -= 0x07; in smc91111_eeprom()
173 reg = (reg * 0x10) + j; in smc91111_eeprom()
186 j = 0; in smc91111_eeprom()
188 j = input[i] - 0x30; in smc91111_eeprom()
189 if (j >= 0xA) { in smc91111_eeprom()
190 j -= 0x07; in smc91111_eeprom()
[all …]
/rk3399_rockchip-uboot/arch/arc/cpu/arcv1/
H A Divt.S11 j _start /* 0 - 0x000 */
12 j memory_error /* 1 - 0x008 */
13 j instruction_error /* 2 - 0x010 */
17 j interrupt_handler /* 3:31 - 0x018:0xF8 */
20 j EV_MachineCheck /* 0x100, Fatal Machine check (0x20) */
21 j EV_TLBMissI /* 0x108, Intruction TLB miss (0x21) */
22 j EV_TLBMissD /* 0x110, Data TLB miss (0x22) */
23 j EV_TLBProtV /* 0x118, Protection Violation (0x23)
25 j EV_PrivilegeV /* 0x120, Privilege Violation (0x24) */
26 j EV_Trap /* 0x128, Trap exception (0x25) */
[all …]
/rk3399_rockchip-uboot/lib/bzip2/
H A Dbzlib_blocksort.c77 Int32 i, j, tmp; in fallbackSimpleSort() local
86 for ( j = i+4; j <= hi && ec_tmp > eclass[fmap[j]]; j += 4 ) in fallbackSimpleSort()
87 fmap[j-4] = fmap[j]; in fallbackSimpleSort()
88 fmap[j-4] = tmp; in fallbackSimpleSort()
95 for ( j = i+1; j <= hi && ec_tmp > eclass[fmap[j]]; j++ ) in fallbackSimpleSort()
96 fmap[j-1] = fmap[j]; in fallbackSimpleSort()
97 fmap[j-1] = tmp; in fallbackSimpleSort()
260 Int32 H, i, j, k, l, r, cc, cc1; in fallbackSort() local
277 j = eclass8[i]; in fallbackSort()
278 k = ftab[j] - 1; in fallbackSort()
[all …]
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/
H A Dtests.c72 unsigned int j; in test_stuck_address() local
78 for (j = 0; j < 16; j++) { in test_stuck_address()
81 printf("setting %3u", j); in test_stuck_address()
84 *p1 = ((j + i) % 2) == 0 ? (u32)(ul)p1 : ~((u32)(ul)p1); in test_stuck_address()
88 printf("testing %3u", j); in test_stuck_address()
92 if (*p1 != (((j + i) % 2) == 0 ? in test_stuck_address()
122 ul j = 0; in test_random_value() local
131 putc(progress[++j % PROGRESSLEN]); in test_random_value()
251 unsigned int j; in test_solidbits_comparison() local
258 for (j = 0; j < 64; j++) { in test_solidbits_comparison()
[all …]
H A Dmemtester.c67 ul loop, i, j; in doing_memtester() local
93 for (j = 0; j < test_banks; j++) { in doing_memtester()
94 if (!count[j]) in doing_memtester()
96 printf("testing:0x%lx - 0x%lx\n", (ul)bufa[j], in doing_memtester()
97 (ul)bufa[j] + count[j] * 2 * sizeof(u32)); in doing_memtester()
104 if (!test_stuck_address(bufa[j], count[j] * 2)) in doing_memtester()
119 if (!tests[i].fp(bufa[j], bufb[j], count[j], in doing_memtester()
/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_sha512.c86 #define SHA512_EXP(a, b, c, d, e, f, g, h, j) \ argument
88 t1 = wv[h] + SHA512_F2(wv[e]) + CH(wv[e], wv[f], wv[g]) + sha512_k[j] + \
89 w[j]; \
176 size_t i, j; in SHA512_transform() local
273 j = 0; in SHA512_transform()
276 SHA512_EXP(0, 1, 2, 3, 4, 5, 6, 7, j); in SHA512_transform()
277 j++; in SHA512_transform()
278 SHA512_EXP(7, 0, 1, 2, 3, 4, 5, 6, j); in SHA512_transform()
279 j++; in SHA512_transform()
280 SHA512_EXP(6, 7, 0, 1, 2, 3, 4, 5, j); in SHA512_transform()
[all …]
H A Davb_sha256.c101 #define SHA256_EXP(a, b, c, d, e, f, g, h, j) \ argument
103 t1 = wv[h] + SHA256_F2(wv[e]) + CH(wv[e], wv[f], wv[g]) + sha256_k[j] + \
104 w[j]; \
164 size_t j; in SHA256_transform() local
171 for (j = 0; j < 16; j++) { in SHA256_transform()
172 PACK32(&sub_block[j << 2], &w[j]); in SHA256_transform()
175 for (j = 16; j < 64; j++) { in SHA256_transform()
176 SHA256_SCR(j); in SHA256_transform()
179 for (j = 0; j < 8; j++) { in SHA256_transform()
180 wv[j] = ctx->h[j]; in SHA256_transform()
[all …]
/rk3399_rockchip-uboot/cmd/ddr_tool/
H A Dio_map.c22 u32 i, j; in data_cpu_2_io() local
29 for (j = 0; j < len; j++) { in data_cpu_2_io()
32 buf[i] = val[(i % 4) * 4 + i / 4 + j * sizeof(buf)]; in data_cpu_2_io()
33 memcpy(&val[j * sizeof(buf)], buf, sizeof(buf)); in data_cpu_2_io()
37 for (j = 0; j < len; j++) { in data_cpu_2_io()
40 buf[i] = val[(i % 4) * 2 + i / 4 + j * 8]; in data_cpu_2_io()
41 memcpy(&val[j * 8], buf, 8); in data_cpu_2_io()
H A Dddr_tool_common.c24 u32 i, j; in write_buf_to_ddr() local
28 for (i = 0, j = 0; i < length / sizeof(p[0]); i++) { in write_buf_to_ddr()
29 p[i] = buful[j]; in write_buf_to_ddr()
30 j++; in write_buf_to_ddr()
31 j &= buf_len; in write_buf_to_ddr()
40 u32 i, j; in cmp_buf_data() local
48 for (i = 0, j = 0; i < length / sizeof(p[0]); i++) { in cmp_buf_data()
50 if (val != buful[j]) { in cmp_buf_data()
55 wr_val = buful[j]; in cmp_buf_data()
58 j++; in cmp_buf_data()
[all …]
/rk3399_rockchip-uboot/drivers/rkflash/
H A Drkflash_debug.c96 u16 i, j, loop = 0; in blk_stress_test() local
127 for (j = 0; j < test_sec_count * 512; j++) { in blk_stress_test()
128 if (pwrite[j] != pread[j]) { in blk_stress_test()
140 j, in blk_stress_test()
141 pwrite[j], in blk_stress_test()
142 pread[j]); in blk_stress_test()
166 for (j = 0; j < test_sec_count * 512; j++) { in blk_stress_test()
167 if (pwrite[j] != pread[j]) { in blk_stress_test()
171 j, in blk_stress_test()
172 pwrite[j], in blk_stress_test()
[all …]
/rk3399_rockchip-uboot/board/toradex/colibri_imx6/
H A Dpf0100.c56 unsigned i, j; in pmic_init() local
60 for (j = 0; j < 0x80; ) { in pmic_init()
61 printf("\n%2x", j); in pmic_init()
63 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
66 j += 0x10; in pmic_init()
77 for (j = 0x80; j < 0x100; ) { in pmic_init()
78 printf("\n%2x", j); in pmic_init()
80 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
83 j += 0x10; in pmic_init()
94 for (j = 0x80; j < 0x100; ) { in pmic_init()
[all …]
/rk3399_rockchip-uboot/fs/reiserfs/
H A Dmode_string.c56 int i, j, k; in bb_mode_string() local
61 j = k = 0; in bb_mode_string()
64 if (mode & mode_flags[i+j]) { in bb_mode_string()
65 *p = mode_chars[j]; in bb_mode_string()
66 k = j; in bb_mode_string()
68 } while (++j < 3); in bb_mode_string()
69 if (mode & mode_flags[i+j]) { in bb_mode_string()
96 int i, j, k, m; in bb_mode_string() local
102 j = k = 0; in bb_mode_string()
106 *p = mode_chars[j]; in bb_mode_string()
[all …]
/rk3399_rockchip-uboot/board/toradex/apalis_imx6/
H A Dpf0100.c56 unsigned i, j; in pmic_init() local
60 for (j = 0; j < 0x80; ) { in pmic_init()
61 printf("\n%2x", j); in pmic_init()
63 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
66 j += 0x10; in pmic_init()
77 for (j = 0x80; j < 0x100; ) { in pmic_init()
78 printf("\n%2x", j); in pmic_init()
80 i2c_read(PFUZE100_I2C_ADDR, j+i, 1, &val, 1); in pmic_init()
83 j += 0x10; in pmic_init()
94 for (j = 0x80; j < 0x100; ) { in pmic_init()
[all …]
/rk3399_rockchip-uboot/post/
H A Dpost.c129 int j; in post_output_backlog() local
131 for (j = 0; j < post_list_size; j++) { in post_output_backlog()
132 if (gd->post_log_word & (post_list[j].testid)) { in post_output_backlog()
133 post_log("POST %s ", post_list[j].cmd); in post_output_backlog()
134 if (gd->post_log_res & post_list[j].testid) in post_output_backlog()
176 int i, j; in post_get_env_flags() local
182 for (j = 0; j < post_list_size; j++) in post_get_env_flags()
183 test_flags[j] &= ~flag[i]; in post_get_env_flags()
200 for (j = 0; j < post_list_size; j++) { in post_get_env_flags()
201 if (strcmp(post_list[j].cmd, name) == 0) { in post_get_env_flags()
[all …]
/rk3399_rockchip-uboot/drivers/ddr/fsl/
H A Dmain.c243 unsigned int i, j; in __step_assign_addresses() local
261 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in __step_assign_addresses()
263 if (!pinfo->dimm_params[i][j].n_ranks) in __step_assign_addresses()
265 dw = pinfo->dimm_params[i][j].primary_sdram_width; in __step_assign_addresses()
278 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in __step_assign_addresses()
280 dw = pinfo->dimm_params[i][j].data_width; in __step_assign_addresses()
281 if (pinfo->dimm_params[i][j].n_ranks in __step_assign_addresses()
366 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in __step_assign_addresses()
368 pinfo->dimm_params[i][j].capacity >> dbw_cap_adj[i]; in __step_assign_addresses()
369 pinfo->dimm_params[i][j].base_address = in __step_assign_addresses()
[all …]
/rk3399_rockchip-uboot/drivers/ram/rockchip/
H A Dsdram_phy_px30.c16 u32 i, j; in sdram_phy_dll_bypass_set() local
22 j = 0x26 + i * 0x10; in sdram_phy_dll_bypass_set()
23 setbits_le32(PHY_REG(phy_base, j), 1 << 4); in sdram_phy_dll_bypass_set()
24 clrbits_le32(PHY_REG(phy_base, j + 0x1), 1 << 3); in sdram_phy_dll_bypass_set()
45 j = 0x28 + i * 0x10; in sdram_phy_dll_bypass_set()
46 writel(tmp, PHY_REG(phy_base, j)); in sdram_phy_dll_bypass_set()
54 u32 i, j; in sdram_phy_set_ds_odt() local
77 j = 0x20 + i * 0x10; in sdram_phy_set_ds_odt()
78 writel(dqs_drv, PHY_REG(phy_base, j)); in sdram_phy_set_ds_odt()
79 writel(dqs_drv, PHY_REG(phy_base, j + 0xf)); in sdram_phy_set_ds_odt()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dspi.c81 int j; in do_spi_xfer() local
83 for (j = 0; j < ((bitlen + 7) / 8); j++) in do_spi_xfer()
84 printf("%02X", din[j]); in do_spi_xfer()
111 int j; in do_spi() local
136 for(j = 0; *cp; j++, cp++) { in do_spi()
146 if((j % 2) == 0) in do_spi()
147 dout[j / 2] = (tmp << 4); in do_spi()
149 dout[j / 2] |= tmp; in do_spi()
/rk3399_rockchip-uboot/post/drivers/
H A Di2c.c61 int j; in i2c_post_test() local
71 for (j = 0; j < sizeof(i2c_addr_list); ++j) { in i2c_post_test()
72 if (i == i2c_addr_list[j]) { in i2c_post_test()
73 i2c_addr_list[j] = 0xff; in i2c_post_test()
78 if (j == sizeof(i2c_addr_list)) { in i2c_post_test()
/rk3399_rockchip-uboot/drivers/net/phy/
H A Dmiiphybb.c156 int j; in miiphy_pre() local
168 for (j = 0; j < 32; j++) { in miiphy_pre()
198 for (j = 0; j < 5; j++) { in miiphy_pre()
212 for (j = 0; j < 5; j++) { in miiphy_pre()
237 int j; /* counter */ in bb_miiphy_read() local
258 for (j = 0; j < 32; j++) { in bb_miiphy_read()
273 for (j = 0; j < 16; j++) { in bb_miiphy_read()
309 int j; /* counter */ in bb_miiphy_write() local
332 for (j = 0; j < 16; j++) { in bb_miiphy_write()
/rk3399_rockchip-uboot/lib/optee_clientApi/
H A DOpteeClientMem.c86 uint32_t i, j, k, num; in my_malloc() local
93 for (j = 0; j < num; j++) { in my_malloc()
94 if (*(my_flag + i + j) != 0) in my_malloc()
97 if (j == num) { in my_malloc()
118 uint32_t i, j, num, size; in my_free() local
132 for (j = 0; j < num; j++) { in my_free()
133 *(my_flag + i + j) = 0; in my_free()
134 memset(my_mem_start + (i + j) * 4096, 0, 4096); in my_free()
/rk3399_rockchip-uboot/arch/arc/lib/
H A Dints_low.S93 j do_memory_error
100 j do_instruction_error
113 j do_machine_check_fault
119 j do_itlb_miss
125 j do_dtlb_miss
132 j do_tlb_prot_violation
138 j do_privilege_violation
144 j do_trap
150 j do_extension
157 j do_swi
[all …]

1234567891011