/u-boot/drivers/mtd/ |
A D | cfi_flash.c | 196 if (info->size && info->start[0] <= base && in flash_get_info() 197 base <= info->start[0] + info->size - 1) in flash_get_info() 210 return info->start[0] + info->size - info->start[sect]; in flash_sector_size() 991 info, sector, info->buffer_write_tout, in flash_write_cfibuffer() 1723 info->ext_addr, info->cfi_version); in cmdset_amd_read_jedec_ids() 1733 info->device_id = flash_read_uchar(info, in cmdset_amd_read_jedec_ids() 1737 info->device_id2 = flash_read_uchar(info, in cmdset_amd_read_jedec_ids() 1745 info->device_id = flash_read_word(info, in cmdset_amd_read_jedec_ids() 1926 info->portwidth, info->chipwidth); in __flash_detect_cfi() 1964 info->chipwidth <= info->portwidth; in flash_detect_cfi() [all …]
|
/u-boot/drivers/mtd/nand/raw/ |
A D | pxa3xx_nand.c | 610 if (info->ecc_bch && !info->force_raw) { in drain_fifo() 662 info->oob_buff + info->oob_buff_pos, in handle_data_pio() 772 nand_writel(info, NDCB0, info->ndcb0); in pxa3xx_nand_irq() 773 nand_writel(info, NDCB0, info->ndcb1); in pxa3xx_nand_irq() 774 nand_writel(info, NDCB0, info->ndcb2); in pxa3xx_nand_irq() 873 host = info->host[info->cs]; in prepare_set_command() 917 info->ndcb3 = info->step_chunk_size + in prepare_set_command() 925 info->ndcb3 = info->step_chunk_size + in prepare_set_command() 975 info->ndcb3 = info->step_chunk_size + in prepare_set_command() 1380 if (info->buf_start < info->buf_count) in pxa3xx_nand_read_byte() [all …]
|
A D | cortina_nand.c | 92 struct nand_drv *info; in read_byte() local 103 ret_v = readl(&info->reg->flash_nf_data) >> (8 * info->fifo_index++); in read_byte() 104 info->fifo_index %= 4; in read_byte() 123 struct nand_drv *info = in read_buf() local 136 info->fifo_index %= 4; in read_buf() 192 if (!info->rx_desc && info->tx_desc) { in init_nand_dma() 194 kfree(info->tx_desc); in init_nand_dma() 196 } else if (info->rx_desc && !info->tx_desc) { in init_nand_dma() 198 kfree(info->tx_desc); in init_nand_dma() 277 info->fifo_index = 0; in ca_nand_command() [all …]
|
/u-boot/tools/ |
A D | sunxi-spl-image-builder.c | 117 int steps = info->usable_page_size / info->ecc_step_size; in write_page() 126 memset(buffer, 0xff, info->page_size + info->oob_size); in write_page() 138 fwrite(buffer, info->page_size + info->oob_size, 1, dst); in write_page() 160 cnt = info->page_size + info->oob_size - offs; in write_page() 169 cnt = info->page_size + info->oob_size - offs; in write_page() 200 if (info->scramble && info->boot0) { in write_page() 240 off_t page = info->offset / info->page_size; in create_image() 251 buffer = malloc(info->page_size + info->oob_size); in create_image() 388 if (info->page_size + info->oob_size < in check_image_info() 402 memset(&info, 0, sizeof(info)); in main() [all …]
|
/u-boot/arch/x86/cpu/coreboot/ |
A D | tables.c | 43 info->n_memranges = 0; in cb_parse_memory() 49 info->memrange[info->n_memranges].base = in cb_parse_memory() 52 info->memrange[info->n_memranges].size = in cb_parse_memory() 55 info->memrange[info->n_memranges].type = range->type; in cb_parse_memory() 57 info->n_memranges++; in cb_parse_memory() 64 info->serial = ser; in cb_parse_serial() 152 info->vbnv_start = info->vbnv_size = (uint32_t)(-1); in cb_parse_header() 163 len, info); in cb_parse_header() 209 cb_parse_gpios(ptr, info); in cb_parse_header() 212 cb_parse_vdat(ptr, info); in cb_parse_header() [all …]
|
/u-boot/board/gateworks/gw_ventana/ |
A D | eeprom.c | 30 memset(info, 0, sizeof(*info)); in read_eeprom() 51 if (info->model[0] != 'G' || info->model[1] != 'W') { in read_eeprom() 108 if (info->model[4] == '0' && info->model[5] == '1') in read_eeprom() 110 else if (info->model[4] == '0' && info->model[5] == '2') in read_eeprom() 112 else if (info->model[4] == '0' && info->model[5] == '3') in read_eeprom() 114 else if (info->model[4] == '0' && info->model[5] == '4') in read_eeprom() 116 else if (info->model[4] == '0' && info->model[5] == '5') in read_eeprom() 118 else if (info->model[4] == '0' && info->model[5] == '6') in read_eeprom() 120 else if (info->model[4] == '0' && info->model[5] == '7') in read_eeprom() 122 else if (info->model[4] == '0' && info->model[5] == '8') in read_eeprom() [all …]
|
/u-boot/common/ |
A D | flash.c | 36 if (!info || info->sector_count == 0 || info->size == 0 || to < from) { in flash_protect() 41 b_end = info->start[0] + info->size - 1; /* bank end address */ in flash_protect() 91 flash_info_t *info; in addr2info() local 94 for (i=0, info = &flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) { in addr2info() 102 addr <= info->start[0] + info->size - 1) { in addr2info() 103 return (info); in addr2info() 130 flash_info_t *info; in flash_write() local 143 for (info = info_first; info <= info_last; ++info) { in flash_write() 144 ulong b_end = info->start[0] + info->size; /* bank end addr */ in flash_write() 157 for (info = info_first; info <= info_last && cnt>0; ++info) { in flash_write() [all …]
|
A D | fdt_region.c | 178 reg = info->region ? &info->region[info->count - 1] : NULL; in fdt_add_region() 179 if (info->can_merge && info->count && in fdt_add_region() 180 info->count <= info->max_regions && in fdt_add_region() 183 } else if (info->count++ < info->max_regions) { in fdt_add_region() 364 info->fdt = fdt; in fdt_first_region() 463 info->count = 0; in fdt_next_region() 499 p = info->ptrs; in fdt_next_region() 636 if (fdt_add_region(info, base + info->start, in fdt_next_region() 644 info->ptrs = p; in fdt_next_region() 652 if (fdt_add_region(info, base + info->start, in fdt_next_region() [all …]
|
A D | image-cipher.c | 93 if (!info->keyname) { in fit_image_setup_decrypt() 101 if (!info->iv && !info->ivname) { in fit_image_setup_decrypt() 106 info->fit = fit; in fit_image_setup_decrypt() 108 info->name = algo_name; in fit_image_setup_decrypt() 110 if (!info->cipher) { in fit_image_setup_decrypt() 126 if (info->ivname) in fit_image_setup_decrypt() 128 FIT_CIPHER_NODENAME, algo_name, info->keyname, info->ivname); in fit_image_setup_decrypt() 141 if (!info->key) { in fit_image_setup_decrypt() 147 if (!info->iv) { in fit_image_setup_decrypt() 149 if (!info->iv) { in fit_image_setup_decrypt() [all …]
|
/u-boot/include/configs/ |
A D | tam3517-common.h | 254 (void *)info, sizeof(*info))) \ 267 (info)->eth_addr[i][5], \ 268 (info)->eth_addr[i][4], \ 269 (info)->eth_addr[i][3], \ 270 (info)->eth_addr[i][2], \ 286 #define TAM3517_week_of_year(info) (((info)->sequence_number >> 48) % 0x100) argument 287 #define TAM3517_year(info) ((info)->sequence_number >> 56) argument 288 #define TAM3517_revision_fixed(info) ((info)->revision % 0x100) argument 289 #define TAM3517_revision_major(info) (((info)->revision >> 8) % 0x100) argument 290 #define TAM3517_revision_tn(info) ((info)->revision >> 16) argument [all …]
|
/u-boot/lib/ |
A D | tiny-printf.c | 27 *info->bf++ = c; in out() 33 info->zs = 1; in out_dgt() 47 out_dgt(info, dgt); in div_out() 56 out(info, ch); in string() 209 info->putc(info, ch); in _vprintf() 237 p = info->bf; in _vprintf() 238 info->zs = 0; in _vprintf() 313 *info->bf = 0; in _vprintf() 314 info->bf = p; in _vprintf() 318 info->putc(info, lz ? '0' : ' '); in _vprintf() [all …]
|
A D | image-sparse.c | 85 if (!info->mssg) in write_sparse_image() 86 info->mssg = default_log; in write_sparse_image() 113 blk = info->start; in write_sparse_image() 136 blkcnt = chunk_data_sz / info->blksz; in write_sparse_image() 146 if (blk + blkcnt > info->start + info->size) { in write_sparse_image() 155 blks = info->write(info, blk, blkcnt, data); in write_sparse_image() 180 info->blksz * fill_buf_num_blks, in write_sparse_image() 197 if (blk + blkcnt > info->start + info->size) { in write_sparse_image() 210 blks = info->write(info, blk, j, fill_buf); in write_sparse_image() 217 info->mssg("flash write failure", in write_sparse_image() [all …]
|
/u-boot/test/lib/ |
A D | rsa.c | 142 struct image_sign_info info; in lib_rsa_verify_valid() local 146 memset(&info, '\0', sizeof(info)); in lib_rsa_verify_valid() 147 info.name = "sha256,rsa2048"; in lib_rsa_verify_valid() 150 info.crypto = image_get_crypto_algo(info.name); in lib_rsa_verify_valid() 152 info.key = public_key; in lib_rsa_verify_valid() 153 info.keylen = public_key_len; in lib_rsa_verify_valid() 175 struct image_sign_info info; in lib_rsa_verify_invalid() local 180 memset(&info, '\0', sizeof(info)); in lib_rsa_verify_invalid() 181 info.name = "sha256,rsa2048"; in lib_rsa_verify_invalid() 184 info.crypto = image_get_crypto_algo(info.name); in lib_rsa_verify_invalid() [all …]
|
/u-boot/arch/arm/mach-uniphier/boot-device/ |
A D | boot-device.c | 149 if (info->boot_is_swapped && info->boot_is_swapped()) in UNIPHIER_DEFINE_SOCDATA_FUNC() 154 if (info->boot_device_is_sd && info->boot_device_is_sd(pinmon)) in UNIPHIER_DEFINE_SOCDATA_FUNC() 157 if (info->boot_device_is_usb && info->boot_device_is_usb(pinmon)) in UNIPHIER_DEFINE_SOCDATA_FUNC() 173 if (!info) { in uniphier_boot_device_raw() 187 if (!info) { in spl_boot_device() 203 if (!info) { in uniphier_have_internal_stm() 208 return info->have_internal_stm; in uniphier_have_internal_stm() 227 if (!info) { in do_pinmon() 236 if (info->boot_is_swapped) in do_pinmon() 242 if (info->boot_device_is_sd) in do_pinmon() [all …]
|
/u-boot/drivers/net/ |
A D | mcffec.c | 51 info->rxbd = (cbd_t *)((u32)info->rxbd + tmp); in init_eth_info() 53 info->txbd = in init_eth_info() 62 info->rxbd = in init_eth_info() 65 info->txbd = in init_eth_info() 398 info->txbd[info->tx_idx].cbd_datlen = length; in mcffec_send() 431 info->txbd[info->tx_idx].cbd_sc, in mcffec_send() 437 info->tx_idx = (info->tx_idx + 1) % TX_BUF_CNT; in mcffec_send() 456 length = info->rxbd[info->rx_idx].cbd_datlen; in mcffec_recv() 458 if (info->rxbd[info->rx_idx].cbd_sc & 0x003f) { in mcffec_recv() 461 info->rxbd[info->rx_idx].cbd_sc); in mcffec_recv() [all …]
|
A D | fsl_mcdmafec.c | 54 info->rxbd = (cbd_t *)((u32)info->rxbd + tmp); in init_eth_info() 56 info->txbd = in init_eth_info() 60 info->txbuf = in init_eth_info() 65 info->rxbd = in init_eth_info() 68 info->txbd = in init_eth_info() 71 info->txbuf = in init_eth_info() 364 p_used_tbd = &info->txbd[info->used_tbd_idx]; in mcdmafec_send() 381 info->used_tbd_idx = (info->used_tbd_idx + 1) in mcdmafec_send() 396 p_tbd = &info->txbd[info->tx_idx]; in mcdmafec_send() 419 cbd_t *prbd = &info->rxbd[info->rx_idx]; in mcdmafec_recv() [all …]
|
A D | mcfmii.c | 97 fec_info_t *info; in mii_send() local 107 info = dev->priv; in mii_send() 143 if (info->phyname_init) in mii_discover_phy() 144 return info->phy_addr; in mii_discover_phy() 216 fec_info_t *info; in __mii_init() local 227 info = dev->priv; in __mii_init() 234 mii_reset(info); in __mii_init() 247 info->phy_addr = mii_discover_phy(info); in __mii_init() 273 if (i >= info->to_loop) in __mii_init() 277 info->dup_spd = miiphy_duplex(dev->name, info->phy_addr) << 16; in __mii_init() [all …]
|
/u-boot/drivers/pinctrl/mscc/ |
A D | mscc-common.c | 64 return info->num_func; in mscc_get_functions_count() 130 return info->num_pins; in mscc_pctl_get_groups_count() 160 info->func[f].groups[i] = info->mscc_pins[pins[i]].name; in mscc_create_group_func_map() 184 if (mscc_readl(offset, info->regs + info->mscc_gpios[MSCC_GPIO_OE]) & in mscc_gpio_get() 187 info->regs + info->mscc_gpios[MSCC_GPIO_OUT]); in mscc_gpio_get() 190 info->regs + info->mscc_gpios[MSCC_GPIO_IN]); in mscc_gpio_get() 201 info->regs + info->mscc_gpios[MSCC_GPIO_OUT_SET]); in mscc_gpio_set() 204 info->regs + info->mscc_gpios[MSCC_GPIO_OUT_CLR]); in mscc_gpio_set() 214 val = mscc_readl(offset, info->regs + info->mscc_gpios[MSCC_GPIO_OE]); in mscc_gpio_get_direction() 223 mscc_clrbits(offset, info->regs + info->mscc_gpios[MSCC_GPIO_OE]); in mscc_gpio_direction_input() [all …]
|
/u-boot/board/freescale/m5253demo/ |
A D | flash.c | 65 info->start[0] = base; in flash_get_offsets() 66 info->protect[0] = 0; in flash_get_offsets() 68 info->start[i] = info->start[i - 1] in flash_get_offsets() 70 info->protect[i] = 0; in flash_get_offsets() 116 info->size >> 10, info->sector_count); in flash_print_info() 123 info->start[i], info->protect[i] ? " (RO)" : " "); in flash_print_info() 147 info->sector_count = 0; in flash_get_size() 148 info->size = 0; in flash_get_size() 163 info->sector_count = 0; in flash_get_size() 164 info->size = 0; in flash_get_size() [all …]
|
/u-boot/drivers/power/ |
A D | exynos-tmu.c | 129 cur_temp = cur_temp - info->te1 + info->dc_value; in get_cur_temp() 211 info->tmu_mux = fdtdec_get_int(blob, in get_tmu_fdt_values() 214 if (info->tmu_mux == -1) in get_tmu_fdt_values() 215 info->tmu_mux = 0x6; in get_tmu_fdt_values() 243 error |= (info->data.slope == -1); in get_tmu_fdt_values() 246 error |= (info->dc_value == -1); in get_tmu_fdt_values() 285 || (info->te2 != 0)) in tmu_setup_parameters() 286 info->te1 = data->efuse_value; in tmu_setup_parameters() 290 + info->te1 - info->dc_value; in tmu_setup_parameters() 292 + info->te1 - info->dc_value; in tmu_setup_parameters() [all …]
|
/u-boot/drivers/pinctrl/nxp/ |
A D | pinctrl-imx.c | 25 struct imx_pinctrl_soc_info *info = priv->info; in imx_pinctrl_set_state() local 32 u32 mux_shift = info->mux_mask ? ffs(info->mux_mask) - 1 : 0; in imx_pinctrl_set_state() 116 info->mux_mask, in imx_pinctrl_set_state() 180 ~info->mux_mask, in imx_pinctrl_set_state() 211 if (!info) { in imx_pinctrl_probe() 217 priv->info = info; in imx_pinctrl_probe() 227 if (!info->base) in imx_pinctrl_probe() 229 priv->info = info; in imx_pinctrl_probe() 263 struct imx_pinctrl_soc_info *info = priv->info; in imx_pinctrl_remove() local 268 if (info->input_sel_base) in imx_pinctrl_remove() [all …]
|
/u-boot/lib/at91/ |
A D | at91.c | 13 void atmel_logo_info(vidinfo_t *info) in atmel_logo_info() argument 15 info->logo_width = ATMEL_LOGO_8BPP_WIDTH; in atmel_logo_info() 16 info->logo_height = ATMEL_LOGO_8BPP_HEIGHT; in atmel_logo_info() 17 info->logo_x_offset = ATMEL_LOGO_8BPP_X_OFFSET; in atmel_logo_info() 18 info->logo_y_offset = ATMEL_LOGO_8BPP_X_OFFSET; in atmel_logo_info() 19 info->logo_addr = (u_long)atmel_logo_8bpp; in atmel_logo_info() 22 void microchip_logo_info(vidinfo_t *info) in microchip_logo_info() argument 24 info->logo_width = MICROCHIP_LOGO_8BPP_WIDTH; in microchip_logo_info() 25 info->logo_height = MICROCHIP_LOGO_8BPP_HEIGHT; in microchip_logo_info() 26 info->logo_x_offset = MICROCHIP_LOGO_8BPP_X_OFFSET; in microchip_logo_info() [all …]
|
/u-boot/board/gdsys/common/ |
A D | ihs_mdio.c | 58 val = read_reg(info->fpga, info->base, REG_MDIO_CONTROL); in read_control() 68 write_reg(info->fpga, info->base, REG_MDIO_CONTROL, val); in write_control() 77 write_reg(info->fpga, info->base, REG_MDIO_ADDR_DATA, val); in write_addr_data() 87 val = read_reg(info->fpga, info->base, REG_MDIO_RX_DATA); in read_rx_data() 94 struct ihs_mdio_info *info = bus->priv; in ihs_mdio_idle() local 99 val = read_control(info); in ihs_mdio_idle() 123 write_control(info, in ihs_mdio_read() 129 val = read_rx_data(info); in ihs_mdio_read() 141 write_addr_data(info, value); in ihs_mdio_write() 159 strcpy(bus->name, info->name); in ihs_mdio_init() [all …]
|
/u-boot/drivers/ram/aspeed/ |
A D | sdram_ast2500.c | 69 struct ram_info info; member 100 writel(0x4040, &info->phy->phy[51]); in ast2500_ddr_phy_init_process() 111 writel(0, &info->regs->phy_ctrl[0]); in ast2500_sdrammc_set_vref() 113 ast2500_ddr_phy_init_process(info); in ast2500_sdrammc_set_vref() 166 ast2500_sdrammc_set_vref(info, i); in ast2500_sdrammc_ddr4_calibrate_vref() 167 res = ast2500_ddr_cbr_test(info); in ast2500_sdrammc_ddr4_calibrate_vref() 234 info->info.base = CONFIG_SYS_SDRAM_BASE; in ast2500_sdrammc_calc_size() 235 info->info.size = ram_size - ast2500_sdrammc_get_vga_mem_size(info); in ast2500_sdrammc_calc_size() 257 writel(conf, &info->regs->config); in ast2500_sdrammc_init_ddr4() 288 ast2500_sdrammc_calc_size(info); in ast2500_sdrammc_init_ddr4() [all …]
|
/u-boot/board/freescale/m54455evb/ |
A D | m54455evb.c | 182 info->portwidth = 1; in board_flash_get_legacy() 183 info->chipwidth = 1; in board_flash_get_legacy() 184 info->buffer_size = 1; in board_flash_get_legacy() 186 info->write_tout = 2; in board_flash_get_legacy() 187 info->buffer_write_tout = 5; in board_flash_get_legacy() 191 info->legacy_unlock = 0; in board_flash_get_legacy() 194 info->device_id2 = 0; in board_flash_get_legacy() 196 info->ext_addr = 0; in board_flash_get_legacy() 205 info->start[0] = base; in board_flash_get_legacy() 210 info->start[k + 1] = info->start[k] + sectsz[i]; in board_flash_get_legacy() [all …]
|