| /rk3399_rockchip-uboot/fs/ |
| H A D | fs_internal.c | 15 lbaint_t sector, int byte_offset, int byte_len, char *buf) in fs_devread() argument 27 if ((sector + ((byte_offset + byte_len - 1) >> log2blksz)) in fs_devread() 30 sector); in fs_devread() 35 sector += byte_offset >> log2blksz; in fs_devread() 38 debug(" <" LBAFU ", %d, %d>\n", sector, byte_offset, byte_len); in fs_devread() 43 if (blk_dread(blk, partition->start + sector, 1, in fs_devread() 53 sector++; in fs_devread() 66 blk_dread(blk, partition->start + sector, 1, in fs_devread() 72 if (blk_dread(blk, partition->start + sector, in fs_devread() 81 sector += block_len / blk->blksz; in fs_devread() [all …]
|
| /rk3399_rockchip-uboot/board/imgtec/malta/ |
| H A D | flash-malta-boot.tcl | 24 flash erase sector 0xbe000000; 25 flash erase sector 0xbe020000; 26 flash erase sector 0xbe040000; 27 flash erase sector 0xbe060000; 28 flash erase sector 0xbe080000; 29 flash erase sector 0xbe0a0000; 30 flash erase sector 0xbe0c0000; 31 flash erase sector 0xbe0e0000;
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | rkspi.c | 23 int sector; in rkspi_set_header() local 39 for (sector = size / RKSPI_SECT_LEN - 1; sector >= 0; sector--) { in rkspi_set_header() 40 debug("sector %u\n", sector); in rkspi_set_header() 41 memmove(buf + sector * RKSPI_SECT_LEN * 2, in rkspi_set_header() 42 buf + sector * RKSPI_SECT_LEN, in rkspi_set_header() 44 memset(buf + sector * RKSPI_SECT_LEN * 2 + RKSPI_SECT_LEN, in rkspi_set_header()
|
| H A D | rknand.c | 30 int sector; in rknand_set_header() local 46 for (sector = ninfo.tplsplsize / ninfo.itersize - 1; sector >= 0; in rknand_set_header() 47 sector--) { in rknand_set_header() 48 memmove(buf + ninfo.pagesize + sector * ninfo.itersize, in rknand_set_header() 49 buf + RK_SPL_HDR_START + sector * RKNAND_SECT_LEN, in rknand_set_header() 52 memset(buf + ninfo.pagesize + sector * ninfo.itersize + in rknand_set_header()
|
| /rk3399_rockchip-uboot/drivers/mtd/ |
| H A D | cfi_flash.c | 569 static int flash_status_check(flash_info_t *info, flash_sect_t sector, in flash_status_check() argument 588 while (flash_is_busy(info, sector)) { in flash_status_check() 591 prompt, info->start[sector], in flash_status_check() 592 flash_read_long(info, sector, 0)); in flash_status_check() 593 flash_write_cmd(info, sector, 0, info->cmd_reset); in flash_status_check() 608 static int flash_full_status_check(flash_info_t *info, flash_sect_t sector, in flash_full_status_check() argument 613 retcode = flash_status_check(info, sector, tout, prompt); in flash_full_status_check() 619 !flash_isset(info, sector, 0, FLASH_STATUS_DONE)) { in flash_full_status_check() 622 info->start[sector]); in flash_full_status_check() 623 if (flash_isset(info, sector, 0, FLASH_STATUS_ECLBS | in flash_full_status_check() [all …]
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_fit.c | 249 static int spl_load_fit_image(struct spl_load_info *info, ulong sector, in spl_load_fit_image() argument 322 sector + get_aligned_image_offset(info, offset), in spl_load_fit_image() 400 struct spl_load_info *info, ulong sector, in spl_fit_append_fdt() argument 418 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_fit_append_fdt() 446 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_fit_append_fdt() 490 ulong sector, void *fit_header, in spl_fit_load_blob() argument 528 count = info->read(info, sector, sectors, fit); in spl_fit_load_blob() 530 mtd_blk_map_fit(info->dev, sector, fit); in spl_fit_load_blob() 533 sector, sectors, fit, count); in spl_fit_load_blob() 590 int sector; in spl_load_kernel_fit() local [all …]
|
| H A D | spl_mmc.c | 25 ulong sector, struct image_header *header) in mmc_load_legacy() argument 40 count = blk_dread(mmc_get_blk_desc(mmc), sector, image_size_sectors, in mmc_load_legacy() 50 static ulong h_spl_load_read(struct spl_load_info *load, ulong sector, in h_spl_load_read() argument 53 return blk_dread(load->dev, sector, count, buf); in h_spl_load_read() 58 struct mmc *mmc, unsigned long sector) argument 68 count = blk_dread(mmc_get_blk_desc(mmc), sector, 1, header); 69 debug("hdr read sector %lx, count=%lu\n", sector, count); 91 ret = spl_load_simple_fit(spl_image, &load, sector, header); 93 ret = mmc_load_legacy(spl_image, mmc, sector, header);
|
| H A D | spl_ram.c | 21 static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, in spl_ram_load_read() argument 25 __func__, sector, count, (ulong)buf); in spl_ram_load_read() 26 memcpy(buf, (void *)(CONFIG_SPL_LOAD_FIT_ADDRESS + sector), count); in spl_ram_load_read()
|
| H A D | spl_net.c | 19 static ulong spl_net_load_read(struct spl_load_info *load, ulong sector, in spl_net_load_read() argument 23 __func__, sector, count, (ulong)buf); in spl_net_load_read() 24 memcpy(buf, (void *)(load_addr + sector), count); in spl_net_load_read()
|
| H A D | spl_ufs.c | 21 static ulong h_spl_load_read(struct spl_load_info *load, ulong sector, in h_spl_load_read() argument 24 return blk_dread(load->dev, sector, count, buf); in h_spl_load_read()
|
| H A D | spl_rknand.c | 46 static ulong h_spl_load_read(struct spl_load_info *load, ulong sector, in h_spl_load_read() argument 49 return blk_dread(load->dev, sector, count, buf); in h_spl_load_read()
|
| H A D | spl_spi.c | 54 static ulong spl_spi_fit_read(struct spl_load_info *load, ulong sector, in spl_spi_fit_read() argument 60 ret = spi_flash_read(flash, sector, count, buf); in spl_spi_fit_read()
|
| /rk3399_rockchip-uboot/disk/ |
| H A D | part_efi.c | 231 int sector; in part_print_efi() local 255 sector = dev_desc->rawblksz / dev_desc->blksz; in part_print_efi() 262 le64_to_cpu(gpt_pte[i].starting_lba * sector), in part_print_efi() 263 le64_to_cpu(gpt_pte[i].ending_lba * sector + sector - 1), in part_print_efi() 288 int sector, b_gpt_nsec = 0x22; in part_get_info_efi() local 344 sector = dev_desc->rawblksz / dev_desc->blksz; in part_get_info_efi() 350 info->start *= sector; in part_get_info_efi() 351 info->size *= sector; in part_get_info_efi() 410 int sector = dev_desc->rawblksz / dev_desc->blksz; in part_efi_repair() local 420 if (sector == 8) { in part_efi_repair() [all …]
|
| H A D | part_dos.h | 23 unsigned char sector; /* starting sector */ member
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/ |
| H A D | rk_meta.c | 35 ulong sector = part_info.start; in rk_meta_get_startup_part_info() local 37 if (info->read(info, sector, 1, meta_p) != 1) { in rk_meta_get_startup_part_info() 57 if (info->read(info, sector + i * (*per_part_size / info->bl_len), in rk_meta_get_startup_part_info() 107 ulong sector; in spl_load_meta() local 119 sector = part_info.start; in spl_load_meta() 137 if (info->read(info, sector + meta_startup_part_offset, in spl_load_meta() 157 sector + meta_startup_part_offset + (MAX_META_SEGMENT_SIZE / info->bl_len), in spl_load_meta() 177 sector + meta_startup_part_offset + (MAX_META_SEGMENT_SIZE / info->bl_len), in spl_load_meta()
|
| /rk3399_rockchip-uboot/tools/env/ |
| H A D | fw_env.config | 3 # environment sector is assumed present. 5 # Futhermore, if the Flash sector size is omitted, this value is assumed to 10 # MTD device name Device offset Env. size Flash sector size Number of sectors 15 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| /rk3399_rockchip-uboot/fs/reiserfs/ |
| H A D | dev.c | 25 int reiserfs_devread(int sector, int byte_offset, int byte_len, char *buf) in reiserfs_devread() argument 27 return fs_devread(reiserfs_blk_desc, part_info, sector, byte_offset, in reiserfs_devread()
|
| /rk3399_rockchip-uboot/fs/zfs/ |
| H A D | dev.c | 27 int zfs_devread(int sector, int byte_offset, int byte_len, char *buf) in zfs_devread() argument 29 return fs_devread(zfs_blk_desc, part_info, sector, byte_offset, in zfs_devread()
|
| /rk3399_rockchip-uboot/arch/arm/mach-at91/arm926ejs/ |
| H A D | eflash.c | 152 int flash_real_protect (flash_info_t *info, long sector, int prot) in flash_real_protect() argument 155 u32 pagenum = (info->start[sector]-ATMEL_BASE_FLASH)/pagesize; in flash_real_protect() 158 debug("protect sector=%ld prot=%d\n", sector, prot); in flash_real_protect() 161 if (sector < CONFIG_EFLASH_PROTSECTORS) { in flash_real_protect() 164 sector); in flash_real_protect()
|
| /rk3399_rockchip-uboot/test/rockchip/ |
| H A D | test-storage.c | 77 u32 blocks, round, sector; in do_test_storage() local 127 sector = part.start; in do_test_storage() 139 sector, sector + blocks, in do_test_storage() 173 devtype, (u32)(ulong)w_buf, sector, blocks); in do_test_storage() 183 ret = blk_dwrite(dev_desc, sector, blocks, w_buf); in do_test_storage() 200 devtype, (u32)(ulong)r_buf, sector, blocks); in do_test_storage() 211 ret = blk_dread(dev_desc, sector, blocks, r_buf); in do_test_storage()
|
| /rk3399_rockchip-uboot/env/ |
| H A D | sf.c | 89 u32 saved_size, saved_offset, sector; in env_sf_save() local 124 sector = DIV_ROUND_UP(CONFIG_ENV_SIZE, CONFIG_ENV_SECT_SIZE); in env_sf_save() 128 sector * CONFIG_ENV_SECT_SIZE); in env_sf_save() 256 u32 saved_size, saved_offset, sector; in env_sf_save() local 283 sector = DIV_ROUND_UP(CONFIG_ENV_SIZE, CONFIG_ENV_SECT_SIZE); in env_sf_save() 287 sector * CONFIG_ENV_SECT_SIZE); in env_sf_save()
|
| H A D | Kconfig | 91 a) The environment occupies one whole flash sector, which is 93 happens usually with "bottom boot sector" or "top boot 94 sector" type flash chips, which have several smaller 96 layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In 99 "top boot sector" type flash chips, you would put the 107 type flash chips the second sector can be used: the offset 108 for this sector is given here. 115 the flash sector containing the environment (instead of 120 Size of the sector containing the environment. 124 In such a case you don't want to spend a whole sector for [all …]
|
| /rk3399_rockchip-uboot/fs/ext4/ |
| H A D | dev.c | 50 int ext4fs_devread(lbaint_t sector, int byte_offset, int byte_len, in ext4fs_devread() argument 53 return fs_devread(get_fs()->dev_desc, part_info, sector, byte_offset, in ext4fs_devread()
|
| /rk3399_rockchip-uboot/drivers/rkflash/ |
| H A D | Kconfig | 30 It's block interface, 512Kb/sector. 42 It's block interface, 512Kb/sector. 52 It's block interface,512Kb/sector.
|
| /rk3399_rockchip-uboot/include/ |
| H A D | mtd_blk.h | 19 void mtd_blk_map_fit(struct blk_desc *desc, ulong sector, void *fit);
|