| /rk3399_rockchip-uboot/board/gdsys/mpc8308/ |
| H A D | mpc8308.c | 35 unsigned k; in board_early_init_f() local 37 for (k = 0; k < CONFIG_SYS_FPGA_COUNT; ++k) in board_early_init_f() 38 gd->arch.fpga_state[k] = 0; in board_early_init_f() 45 unsigned k; in board_early_init_r() local 48 for (k = 0; k < CONFIG_SYS_FPGA_COUNT; ++k) in board_early_init_r() 49 gd->arch.fpga_state[k] = 0; in board_early_init_r() 60 for (k = 0; k < CONFIG_SYS_FPGA_COUNT; ++k) { in board_early_init_r() 62 while (!mpc8308_get_fpga_done(k)) { in board_early_init_r() 65 gd->arch.fpga_state[k] |= in board_early_init_r() 76 for (k = 0; k < CONFIG_SYS_FPGA_COUNT; ++k) { in board_early_init_r() [all …]
|
| H A D | strider.c | 129 unsigned int k; in last_stage_init() local 151 for (k = 0; k < ARRAY_SIZE(mclink_controllers_dvi); ++k) { in last_stage_init() 156 if (i2c_probe(mclink_controllers[k])) { in last_stage_init() 158 if (i2c_probe(mclink_controllers[k])) in last_stage_init() 162 if (i2c_probe(mclink_controllers[k])) in last_stage_init() 165 while (!(pca953x_get_val(mclink_controllers[k]) in last_stage_init() 169 printf("no done for mclink_controller %d\n", k); in last_stage_init() 174 pca953x_set_dir(mclink_controllers[k], MCFPGA_RESET_N, 0); in last_stage_init() 175 pca953x_set_val(mclink_controllers[k], MCFPGA_RESET_N, 0); in last_stage_init() 177 pca953x_set_val(mclink_controllers[k], MCFPGA_RESET_N, in last_stage_init() [all …]
|
| H A D | hrcon.c | 126 unsigned int k; in last_stage_init() local 142 for (k = 0; k < ARRAY_SIZE(mclink_controllers); ++k) { in last_stage_init() 145 if (i2c_probe(mclink_controllers[k])) in last_stage_init() 148 while (!(pca953x_get_val(mclink_controllers[k]) in last_stage_init() 152 printf("no done for mclink_controller %d\n", k); in last_stage_init() 157 pca953x_set_dir(mclink_controllers[k], MCFPGA_RESET_N, 0); in last_stage_init() 158 pca953x_set_val(mclink_controllers[k], MCFPGA_RESET_N, 0); in last_stage_init() 160 pca953x_set_val(mclink_controllers[k], MCFPGA_RESET_N, in last_stage_init() 202 for (k = 1; k <= slaves; ++k) { in last_stage_init() 203 FPGA_GET_REG(k, fpga_features, &fpga_features); in last_stage_init() [all …]
|
| /rk3399_rockchip-uboot/lib/optee_clientApi/ |
| H A D | OpteeClientMem.c | 48 uint8_t k; in write_usedblock() local 49 for (k = 0; k < 50; k++) { in write_usedblock() 50 if (alloc_flags[k].used == 0) { in write_usedblock() 51 alloc_flags[k].used = 1; in write_usedblock() 52 alloc_flags[k].addrBlock = addr; in write_usedblock() 53 alloc_flags[k].sizeBlock = size; in write_usedblock() 61 uint8_t k; in find_sizeblock() local 62 for (k = 0; k < 50; k++) in find_sizeblock() 63 if (alloc_flags[k].used == 1 && in find_sizeblock() 64 alloc_flags[k].addrBlock == addr) in find_sizeblock() [all …]
|
| /rk3399_rockchip-uboot/board/gdsys/a38x/ |
| H A D | controlcenterdc.c | 82 uint k; in board_pex_config() local 99 for (k = 0; k < 20; ++k) { in board_pex_config() 101 printf("FPGA done after %u rounds\n", k); in board_pex_config() 116 for (k = 0; k < 2; ++k) { in board_pex_config() 170 uint k; in init_host_phys() local 172 for (k = 0; k < 2; ++k) { in init_host_phys() 175 phydev = phy_find_by_mask(bus, 1 << k, in init_host_phys() 185 uint k; in ccdc_eth_init() local 219 for (k = 0; k < 80; ++k) in ccdc_eth_init() 220 writel(1 << 31, get_fpga()->qsgmii_port_state[k]); in ccdc_eth_init() [all …]
|
| H A D | ihs_phys.c | 66 uint k; in calculate_octo_phy_mask() local 75 for (k = 0; k < 5; ++k) { in calculate_octo_phy_mask() 76 snprintf(gpio_name, 64, "cat-gpio-%u", k); in calculate_octo_phy_mask() 78 if (request_gpio_by_name(&gpio, dev_name[k], 0x20, gpio_name)) in calculate_octo_phy_mask() 83 octo_phy_mask |= (1 << (k * 2)); in calculate_octo_phy_mask() 88 snprintf(gpio_name, 64, "second-octo-gpio-%u", k); in calculate_octo_phy_mask() 90 if (request_gpio_by_name(&gpio, dev_name[k], 0x27, gpio_name)) { in calculate_octo_phy_mask() 92 octo_phy_mask |= (1 << (k * 2 + 1)); in calculate_octo_phy_mask() 97 octo_phy_mask |= (1 << (k * 2 + 1)); in calculate_octo_phy_mask() 103 int register_miiphy_bus(uint k, struct mii_dev **bus) in register_miiphy_bus() argument [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-sunxi/ |
| H A D | clock_sun6i.c | 116 int k = 1; in clock_set_pll1() local 120 k = 2; in clock_set_pll1() 122 k = 3; in clock_set_pll1() 137 CCM_PLL1_CTRL_N(clk / (24000000 * k / m)) | in clock_set_pll1() 138 CCM_PLL1_CTRL_K(k) | CCM_PLL1_CTRL_M(m), &ccm->pll1_cfg); in clock_set_pll1() 187 int k = 1, m = 2; in clock_set_pll5() local 199 if (clk > 24000000 * k * max_n / m) { in clock_set_pll5() 201 if (clk > 24000000 * k * max_n / m) in clock_set_pll5() 202 k = 2; in clock_set_pll5() 207 CCM_PLL5_CTRL_N(clk / (24000000 * k / m)) | in clock_set_pll5() [all …]
|
| /rk3399_rockchip-uboot/drivers/gpio/ |
| H A D | sh_pfc.c | 113 int k; in config_reg_helper() local 123 for (k = 0; k <= in_pos; k++) in config_reg_helper() 124 *posp -= crp->var_field_width[k]; in config_reg_helper() 176 int k, n; in setup_data_reg() local 181 k = 0; in setup_data_reg() 183 data_reg = gpioc->data_regs + k; in setup_data_reg() 193 gpiop->flags |= (k << PINMUX_FLAG_DREG_SHIFT); in setup_data_reg() 199 k++; in setup_data_reg() 210 int k; in setup_data_regs() local 212 for (k = gpioc->first_gpio; k <= gpioc->last_gpio; k++) in setup_data_regs() [all …]
|
| /rk3399_rockchip-uboot/board/gdsys/common/ |
| H A D | mclink.c | 26 unsigned int k; in mclink_probe() local 29 for (k = 0; k < CONFIG_SYS_MCLINK_MAX; ++k) { in mclink_probe() 34 FPGA_GET_REG(k, mc_status, &mc_status); in mclink_probe() 39 FPGA_SET_REG(k, mc_control, 0x8000); in mclink_probe() 41 FPGA_GET_REG(k, mc_status, &mc_status); in mclink_probe() 48 FPGA_GET_REG(k, mc_status, &mc_status); in mclink_probe() 53 printf("waited %d us for mclink %d to come up\n", ctr * 100, k); in mclink_probe()
|
| H A D | cmd_ioloop.c | 91 unsigned int k; in io_send() local 99 for (k = 0; k < sizeof(packet) / 2; ++k) in io_send() 102 for (k = 0; k < (size + 1) / 2; ++k) in io_send() 103 FPGA_SET_REG(fpga, ep.transmit_data, k); in io_send() 113 unsigned int k = 0; in io_receive() local 128 ++k; in io_receive() 136 unsigned int k = 0; in io_reflect() local 143 FPGA_GET_REG(fpga, ep.receive_data, &buffer[k++]); in io_reflect() 150 if (!k) in io_reflect() 153 for (n = 0; n < k; ++n) in io_reflect()
|
| H A D | osd.c | 242 unsigned int k; in osd_write_videomem() local 244 for (k = 0; k < charcount; ++k) { in osd_write_videomem() 245 if (offset + k >= bufsize) in osd_write_videomem() 250 videomem1[offset + k], data[k]); in osd_write_videomem() 252 FPGA_SET_REG(screen, videomem0[offset + k], data[k]); in osd_write_videomem() 254 FPGA_SET_REG(screen, videomem0[offset + k], data[k]); in osd_write_videomem() 276 unsigned int k; in osd_print() local 290 for (k = 0; k < len; ++k) in osd_print() 291 buf[k] = (text[k] << 8) | color; in osd_print() 410 unsigned k; in osd_write() local [all …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | fpgad.c | 31 unsigned int k; in do_fpga_md() local 73 for (k = 0; k < linebytes / sizeof(u16); ++k) in do_fpga_md() 76 / sizeof(u16) + k, in do_fpga_md() 77 addr + k * sizeof(u16), in do_fpga_md() 78 &linebuf[k]); in do_fpga_md()
|
| /rk3399_rockchip-uboot/fs/jffs2/ |
| H A D | mergesort.c | 17 int k, psize, qsize; in sort_list() local 22 for (k = 1; k < list->listCount; k *= 2) { in sort_list() 26 for (psize = 0; q && psize < k; psize++) in sort_list() 28 qsize = k; in sort_list()
|
| /rk3399_rockchip-uboot/fs/reiserfs/ |
| H A D | mode_string.c | 56 int i, j, k; in bb_mode_string() local 61 j = k = 0; in bb_mode_string() 66 k = j; in bb_mode_string() 70 *p = mode_chars[3 + (k & 2) + ((i&8) >> 3)]; in bb_mode_string() 96 int i, j, k, m; in bb_mode_string() local 102 j = k = 0; in bb_mode_string() 107 k = j; in bb_mode_string() 113 *p = mode_chars[3 + (k & 2) + (i == 3)]; in bb_mode_string()
|
| /rk3399_rockchip-uboot/board/nokia/rx51/ |
| H A D | rx51.c | 552 static void rx51_kp_fill(u8 k, u8 mods) in rx51_kp_fill() argument 555 if (!(mods & 2) && (k == 18 || k == 31 || k == 33 || k == 34)) { in rx51_kp_fill() 560 if (k == 18) /* up */ in rx51_kp_fill() 562 else if (k == 31) /* left */ in rx51_kp_fill() 564 else if (k == 33) /* down */ in rx51_kp_fill() 566 else if (k == 34) /* right */ in rx51_kp_fill() 573 k = keymap[k+64]; in rx51_kp_fill() 575 k = keymap[k]; in rx51_kp_fill() 577 if (k >= 'a' && k <= 'z') in rx51_kp_fill() 578 k -= 'a' - 1; in rx51_kp_fill() [all …]
|
| /rk3399_rockchip-uboot/fs/ubifs/ |
| H A D | key.h | 98 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() argument 101 union ubifs_key *key = k; in ino_key_init_flash() 105 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in ino_key_init_flash() 176 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() argument 179 union ubifs_key *key = k; in dent_key_init_flash() 186 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in dent_key_init_flash() 227 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash() argument 230 union ubifs_key *key = k; in xent_key_init_flash() 237 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in xent_key_init_flash() 327 static inline int key_type_flash(const struct ubifs_info *c, const void *k) in key_type_flash() argument [all …]
|
| /rk3399_rockchip-uboot/examples/standalone/ |
| H A D | smc91111_eeprom.c | 252 int i, j, k, mac[6]; in print_macaddr() local 264 k = read_eeprom_reg (dev, j); in print_macaddr() 265 mac[i] = k & 0xFF; in print_macaddr() 267 mac[i] = k >> 8; in print_macaddr() 279 int j, k; in dump_eeprom() local 287 for (k = 0; k < 4; k++) { in dump_eeprom() 288 if (k == 0) in dump_eeprom() 290 if (k == 1) in dump_eeprom() 292 if ((k == 2) || (k == 3)) in dump_eeprom() 295 printf ("%02x:%04x ", j + k, in dump_eeprom() [all …]
|
| /rk3399_rockchip-uboot/board/shmin/ |
| H A D | shmin.c | 52 int i, j, k; in board_flash_get_legacy() local 81 for (k = 0, i = 0; i < CONFIG_SYS_ATMEL_REGION; i++) { in board_flash_get_legacy() 83 for (j = 0; j < sect[i]; j++, k++) { in board_flash_get_legacy() 84 info->start[k + 1] = info->start[k] + sectsz[i]; in board_flash_get_legacy() 85 info->protect[k] = 0; in board_flash_get_legacy()
|
| /rk3399_rockchip-uboot/arch/sandbox/include/asm/ |
| H A D | bitops.h | 124 int k; in ffz() local 127 k = 31; in ffz() 129 k -= 16; word <<= 16; in ffz() 132 k -= 8; word <<= 8; in ffz() 135 k -= 4; word <<= 4; in ffz() 138 k -= 2; word <<= 2; in ffz() 141 k -= 1; in ffz() 142 return k; in ffz()
|
| /rk3399_rockchip-uboot/arch/nds32/include/asm/ |
| H A D | bitops.h | 133 int k; in ffz() local 136 k = 31; in ffz() 138 k -= 16; word <<= 16; in ffz() 141 k -= 8; word <<= 8; in ffz() 144 k -= 4; word <<= 4; in ffz() 147 k -= 2; word <<= 2; in ffz() 150 k -= 1; in ffz() 152 return k; in ffz()
|
| /rk3399_rockchip-uboot/drivers/power/battery/ |
| H A D | bat_trats.c | 21 int k; in power_battery_charge() local 26 for (k = 0; bat->chrg->chrg_bat_present(p_bat->chrg) && in power_battery_charge() 28 battery->state_of_chrg < 100; k++) { in power_battery_charge() 30 if (!(k % 5)) in power_battery_charge() 34 if (k == 200) { in power_battery_charge() 37 k = 0; in power_battery_charge()
|
| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc8xx/ |
| H A D | cpu.c | 40 uint k; in check_CPU() local 48 k = (immr << 16) | in check_CPU() 55 switch (k) { in check_CPU() 68 printf("unknown MPC86x (0x%08x)", k); in check_CPU() 110 u32 k = in_be32(&memctl->memc_br0) & ~0x00007fff; in checkicache() local 120 wr_ic_adr(k); in checkicache() 125 k += 0x10; /* the number of bytes in a cacheline */ in checkicache() 151 u32 k = in_be32(&memctl->memc_br0) & ~0x00007fff; in checkdcache() local 160 wr_dc_adr(k); in checkdcache() 163 k += 0x10; /* the number of bytes in a cacheline */ in checkdcache()
|
| /rk3399_rockchip-uboot/common/eeprom/ |
| H A D | eeprom_field.c | 32 int k, j, i = reverse ? len - 1 : 0; in __eeprom_field_update_bin() local 50 for (k = 0; k < 2; k++) { in __eeprom_field_update_bin() 52 tmp[k] = value[i]; in __eeprom_field_update_bin() 56 tmp[k] = value[reverse ? i - 1 + k : i + k]; in __eeprom_field_update_bin()
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/ |
| H A D | bitops.h | 117 int k; in ffz() local 120 k = 31; in ffz() 121 if (word & 0x0000ffff) { k -= 16; word <<= 16; } in ffz() 122 if (word & 0x00ff0000) { k -= 8; word <<= 8; } in ffz() 123 if (word & 0x0f000000) { k -= 4; word <<= 4; } in ffz() 124 if (word & 0x30000000) { k -= 2; word <<= 2; } in ffz() 125 if (word & 0x40000000) { k -= 1; } in ffz() 126 return k; in ffz()
|
| /rk3399_rockchip-uboot/configs/ |
| H A D | at91sam9g20ek_2mmc_defconfig | 10 …200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),…
|