/u-boot/lib/ |
A D | rc4.c | 21 j = 0; in rc4_encode() 24 j &= 0x0f; in rc4_encode() 26 j++; in rc4_encode() 29 j = 0; in rc4_encode() 31 j = (j + s[i] + k[i]) % 256; in rc4_encode() 33 s[i] = s[j]; in rc4_encode() 34 s[j] = temp; in rc4_encode() 38 j = 0; in rc4_encode() 41 j = (j + s[i]) % 256; in rc4_encode() 43 s[i] = s[j]; in rc4_encode() [all …]
|
A D | hexdump.c | 58 int j, lx = 0; in hex_dump_to_buffer() local 84 for (j = 0; j < ngroups; 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() 106 for (j = 0; j < ngroups; j++) { in hex_dump_to_buffer() 108 "%s%4.4x", j ? " " : "", in hex_dump_to_buffer() 115 for (j = 0; j < len; j++) { in hex_dump_to_buffer() 118 ch = ptr[j]; in hex_dump_to_buffer() 127 if (j) in hex_dump_to_buffer() 138 for (j = 0; j < len; j++) { in hex_dump_to_buffer() [all …]
|
A D | bch.c | 408 for (j = 0; j < 2*t; j += 2) in compute_syndromes() 416 for (j = 0; j < t; j++) in compute_syndromes() 451 for (j = 0; j <= pelp->deg; j++) { in compute_error_locator_polynomial() 469 for (j = 1; j <= elp->deg; j++) in compute_error_locator_polynomial() 581 for (j = 8; j != 0; j >>= 1, mask ^= (mask << j)) { in find_affine4_roots() 777 for (j = a->deg; j >= d; j--) { in gf_poly_mod() 864 for (j = z->deg; j >= 0; j--) { in compute_trace_bk_mod() 1147 for (j = 0; j < ecclen; j++) { in build_mod8_tables() 1169 for (j = 0, sum = 0; j < m; j++) in build_deg2_base() 1234 for (j = 0, r = 2*i+1; j < m; j++) { in compute_generator_polynomial() [all …]
|
A D | oid_registry.c | 34 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()
|
/u-boot/drivers/dma/ |
A D | keystone_nav.c | 42 for (j = 0, num = 32; j < 15; j++, num *= 2) { in num_of_desc_to_reg() 52 u32 j; in _qm_init() local 69 for (j = 0; j < HDESC_NUM; j++) in _qm_init() 82 u32 j; in qm_close() local 92 for (j = 0; j < qm_cfg->region_num; j++) { in qm_close() 152 for (j = 0; j < pktdma->rx_ch_num; j++) { in ksnav_rx_disable() 168 for (j = 0; j < pktdma->rx_flow_num; j++) { in ksnav_rx_disable() 186 for (j = 0; j < pktdma->tx_ch_num; j++) { in ksnav_tx_disable() 219 for (j = 0; j < rx_buffers->num_buffs; j++) { in ksnav_init() 247 for (j = 0; j < pktdma->rx_ch_num; j++) in ksnav_init() [all …]
|
/u-boot/tools/ |
A D | file2include.c | 30 size_t count, i, j; in main() local 75 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main() 76 if (buf[j]) in main() 82 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) in main() 83 printf("\\x%02x", buf[j]); in main() 85 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main() 86 if (buf[j] != '*' && buf[j] >= 0x20 && buf[j] <= 0x7e) in main() 87 printf("%c", buf[j]); in main()
|
/u-boot/arch/arc/cpu/arcv1/ |
A D | ivt.S | 10 j _start /* 0 - 0x000 */ 11 j memory_error /* 1 - 0x008 */ 12 j instruction_error /* 2 - 0x010 */ 16 j interrupt_handler /* 3:31 - 0x018:0xF8 */ 19 j EV_MachineCheck /* 0x100, Fatal Machine check (0x20) */ 20 j EV_TLBMissI /* 0x108, Intruction TLB miss (0x21) */ 21 j EV_TLBMissD /* 0x110, Data TLB miss (0x22) */ 22 j EV_TLBProtV /* 0x118, Protection Violation (0x23) 24 j EV_PrivilegeV /* 0x120, Privilege Violation (0x24) */ 25 j EV_Trap /* 0x128, Trap exception (0x25) */ [all …]
|
/u-boot/examples/standalone/ |
A D | smc91111_eeprom.c | 167 j = 0; in smc91111_eeprom() 186 j = 0; in smc91111_eeprom() 263 for (j = 0x20; j < 0x23; j++) { in print_macaddr() 279 int j, k; in dump_eeprom() local 282 for (j = 0; j < 8; j++) { in dump_eeprom() 294 for (j = 0; j < 0x20; j += 4) { in dump_eeprom() 301 for (j = 0x20; j < 0x40; j++) { in dump_eeprom() 304 printf ("%02x:%04x ", j, read_eeprom_reg (dev, j)); in dump_eeprom() 357 int i, j; in dump_reg() local 360 for (j = 0; j < 4; j++) { in dump_reg() [all …]
|
/u-boot/lib/efi_selftest/ |
A D | efi_selftest_event_groups.c | 63 size_t i, j; in execute() local 82 for (j = 0; j < GROUP_SIZE; ++j) { in execute() 83 if (counter[j] != 2 * i + 1) { in execute() 85 (unsigned int)i, (unsigned int)j, in execute() 86 (unsigned int)counter[j]); in execute() 91 ret = boottime->check_event(events[j]); in execute() 96 if (counter[j] != 2 * i + 1) { in execute() 99 (unsigned int)counter[j]); in execute() 105 ret = boottime->check_event(events[j]); in execute() 111 if (counter[j] != 2 * i + 2) { in execute() [all …]
|
/u-boot/lib/bzip2/ |
A D | bzlib_blocksort.c | 87 for ( j = i+4; j <= hi && ec_tmp > eclass[fmap[j]]; j += 4 ) in fallbackSimpleSort() 96 for ( j = i+1; j <= hi && ec_tmp > eclass[fmap[j]]; j++ ) in fallbackSimpleSort() 97 fmap[j-1] = fmap[j]; in fallbackSimpleSort() 559 j = j - h; in mainSimpleSort() 573 j = j - h; in mainSimpleSort() 587 j = j - h; in mainSimpleSort() 894 j = j - h; in mainSort() 927 for (j = 0; j <= 255; j++) { in mainSort() 960 for (j = 0; j <= 255; j++) { in mainSort() 987 for (j = 0; j <= 255; j++) ftab[(j << 8) + ss] |= SETMASK; in mainSort() [all …]
|
A D | bzlib_huffman.c | 113 Int32 nNodes, nHeap, n1, n2, i, j, k; in BZ2_hbMakeCodeLengths() local 157 j = 0; in BZ2_hbMakeCodeLengths() 159 while (parent[k] >= 0) { k = parent[k]; j++; } in BZ2_hbMakeCodeLengths() 160 len[i-1] = j; in BZ2_hbMakeCodeLengths() 161 if (j > maxLen) tooLong = True; in BZ2_hbMakeCodeLengths() 167 j = weight[i] >> 8; in BZ2_hbMakeCodeLengths() 168 j = 1 + (j / 2); in BZ2_hbMakeCodeLengths() 169 weight[i] = j << 8; in BZ2_hbMakeCodeLengths() 202 Int32 pp, i, j, vec; in BZ2_hbCreateDecodeTables() local 206 for (j = 0; j < alphaSize; j++) in BZ2_hbCreateDecodeTables() [all …]
|
/u-boot/lib/libavb/ |
A D | avb_sha512.c | 232 j = 0; in SHA512_transform() 236 j++; in SHA512_transform() 238 j++; in SHA512_transform() 262 for (j = 0; j < 16; j++) { in SHA512_transform() 263 PACK64(&sub_block[j << 3], &w[j]); in SHA512_transform() 266 for (j = 16; j < 80; j++) { in SHA512_transform() 270 for (j = 0; j < 8; j++) { in SHA512_transform() 271 wv[j] = ctx->h[j]; in SHA512_transform() 274 for (j = 0; j < 80; j++) { in SHA512_transform() 288 for (j = 0; j < 8; j++) in SHA512_transform() [all …]
|
A D | avb_sha256.c | 119 size_t j; in SHA256_transform() local 126 for (j = 0; j < 16; j++) { in SHA256_transform() 127 PACK32(&sub_block[j << 2], &w[j]); in SHA256_transform() 130 for (j = 16; j < 64; j++) { in SHA256_transform() 131 SHA256_SCR(j); in SHA256_transform() 134 for (j = 0; j < 8; j++) { in SHA256_transform() 135 wv[j] = ctx->h[j]; in SHA256_transform() 138 for (j = 0; j < 64; j++) { in SHA256_transform() 140 w[j]; in SHA256_transform() 152 for (j = 0; j < 8; j++) { in SHA256_transform() [all …]
|
/u-boot/fs/reiserfs/ |
A D | mode_string.c | 55 int i, j, k; in bb_mode_string() local 60 j = k = 0; in bb_mode_string() 64 *p = mode_chars[j]; in bb_mode_string() 65 k = j; in bb_mode_string() 67 } while (++j < 3); in bb_mode_string() 68 if (mode & mode_flags[i+j]) { in bb_mode_string() 95 int i, j, k, m; in bb_mode_string() local 101 j = k = 0; in bb_mode_string() 105 *p = mode_chars[j]; in bb_mode_string() 106 k = j; in bb_mode_string() [all …]
|
/u-boot/drivers/sound/ |
A D | sound.c | 25 int i, j; in sound_create_square_wave() local 29 for (j = 0; j < channels; j++) in sound_create_square_wave() 34 for (j = 0; j < channels; j++) in sound_create_square_wave()
|
/u-boot/post/ |
A D | post.c | 134 int j; in post_output_backlog() local 136 for (j = 0; j < post_list_size; j++) { in post_output_backlog() 183 int i, j; in post_get_env_flags() local 189 for (j = 0; j < post_list_size; j++) in post_get_env_flags() 190 test_flags[j] &= ~flag[i]; in post_get_env_flags() 207 for (j = 0; j < post_list_size; j++) { in post_get_env_flags() 214 if (j == post_list_size) in post_get_env_flags() 225 int j; in post_get_flags() local 227 for (j = 0; j < post_list_size; j++) in post_get_flags() 228 test_flags[j] = post_list[j].flags; in post_get_flags() [all …]
|
/u-boot/drivers/ram/rockchip/ |
A D | sdram_phy_px30.c | 17 u32 i, j; in sdram_phy_dll_bypass_set() local 23 j = 0x26 + i * 0x10; in sdram_phy_dll_bypass_set() 46 j = 0x28 + i * 0x10; in sdram_phy_dll_bypass_set() 47 writel(tmp, PHY_REG(phy_base, j)); in sdram_phy_dll_bypass_set() 55 u32 i, j; in sdram_phy_set_ds_odt() local 78 j = 0x20 + i * 0x10; in sdram_phy_set_ds_odt() 79 writel(dqs_drv, PHY_REG(phy_base, j)); in sdram_phy_set_ds_odt() 121 u32 i, j; in phy_data_training() local 126 j = 0x20 + i * 0x10; in phy_data_training() 128 writel(0, PHY_REG(phy_base, j + 0xe)); in phy_data_training() [all …]
|
/u-boot/post/drivers/ |
A D | i2c.c | 61 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()
|
/u-boot/board/toradex/apalis_imx6/ |
A D | pf0100.c | 165 unsigned int i, j; in pmic_init() local 169 for (j = 0; j < 0x80; ) { in pmic_init() 170 printf("\n%2x", j); in pmic_init() 172 dm_i2c_read(dev, j + i, &val, 1); in pmic_init() 175 j += 0x10; in pmic_init() 185 for (j = 0x80; j < 0x100; ) { in pmic_init() 186 printf("\n%2x", j); in pmic_init() 191 j += 0x10; in pmic_init() 201 for (j = 0x80; j < 0x100; ) { in pmic_init() 202 printf("\n%2x", j); in pmic_init() [all …]
|
/u-boot/board/toradex/colibri_imx6/ |
A D | pf0100.c | 150 unsigned int i, j; in pmic_init() local 154 for (j = 0; j < 0x80; ) { in pmic_init() 155 printf("\n%2x", j); in pmic_init() 157 dm_i2c_read(dev, j + i, &val, 1); in pmic_init() 160 j += 0x10; in pmic_init() 170 for (j = 0x80; j < 0x100; ) { in pmic_init() 171 printf("\n%2x", j); in pmic_init() 176 j += 0x10; in pmic_init() 186 for (j = 0x80; j < 0x100; ) { in pmic_init() 187 printf("\n%2x", j); in pmic_init() [all …]
|
/u-boot/cmd/ |
A D | spi.c | 74 int j; in do_spi_xfer() local 76 for (j = 0; j < ((bitlen + 7) / 8); j++) in do_spi_xfer() 77 printf("%02X", din[j]); in do_spi_xfer() 104 int j; in do_spi() local 133 for(j = 0; *cp; j++, cp++) { in do_spi() 143 if((j % 2) == 0) in do_spi() 144 dout[j / 2] = (tmp << 4); in do_spi() 146 dout[j / 2] |= tmp; in do_spi()
|
/u-boot/drivers/ddr/fsl/ |
A D | main.c | 314 unsigned int i, j; in __step_assign_addresses() local 332 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in __step_assign_addresses() 349 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in __step_assign_addresses() 437 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in __step_assign_addresses() 461 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in __step_assign_addresses() 491 unsigned int i, j; in fsl_ddr_compute() local 527 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in fsl_ddr_compute() 535 if (!j && retval) { in fsl_ddr_compute() 540 i, j); in fsl_ddr_compute() 574 for (j = 0; j < CONFIG_DIMM_SLOTS_PER_CTLR; j++) { in fsl_ddr_compute() [all …]
|
/u-boot/arch/arc/lib/ |
A D | ints_low.S | 92 j do_memory_error 99 j do_instruction_error 118 j do_itlb_miss 124 j do_dtlb_miss 131 j do_tlb_prot_violation 143 j do_trap 149 j do_extension 156 j do_swi 163 j do_divzero 169 j do_dcerror [all …]
|
/u-boot/drivers/net/phy/ |
A D | miiphybb.c | 158 int j; in miiphy_pre() local 170 for (j = 0; j < 32; j++) { in miiphy_pre() 200 for (j = 0; j < 5; j++) { in miiphy_pre() 214 for (j = 0; j < 5; j++) { in miiphy_pre() 239 int j; /* counter */ in bb_miiphy_read() local 260 for (j = 0; j < 32; j++) { in bb_miiphy_read() 275 for (j = 0; j < 16; j++) { in bb_miiphy_read() 311 int j; /* counter */ in bb_miiphy_write() local 334 for (j = 0; j < 16; j++) { in bb_miiphy_write()
|
/u-boot/board/cobra5272/ |
A D | flash.c | 63 int i, j; in flash_init() local 80 for (j = 0; j < flash_info[i].sector_count; j++) { in flash_init() 81 if (j == 0) { in flash_init() 83 flash_info[i].start[j] = flashbase; in flash_init() 85 if ((j >= 1) && (j <= 2)) { in flash_init() 87 flash_info[i].start[j] = in flash_init() 88 flashbase + 0x4000 + 0x2000 * (j - 1); in flash_init() 90 if (j == 3) { in flash_init() 94 if ((j >= 4) && (j <= 10)) { in flash_init() 96 flash_info[i].start[j] = in flash_init() [all …]
|