Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 25 of 118) sorted by relevance

12345

/u-boot/fs/
A Dfs_internal.c18 lbaint_t sector, int byte_offset, int byte_len, char *buf) in fs_devread() argument
30 if ((sector + ((byte_offset + byte_len - 1) >> log2blksz)) in fs_devread()
32 log_debug("read outside partition " LBAFU "\n", sector); in fs_devread()
37 sector += byte_offset >> log2blksz; in fs_devread()
40 log_debug(" <" LBAFU ", %d, %d>\n", sector, byte_offset, byte_len); in fs_devread()
45 if (blk_dread(blk, partition->start + sector, 1, in fs_devread()
55 sector++; in fs_devread()
68 blk_dread(blk, partition->start + sector, 1, in fs_devread()
74 if (blk_dread(blk, partition->start + sector, in fs_devread()
83 sector += block_len / blk->blksz; in fs_devread()
[all …]
/u-boot/board/imgtec/malta/
A Dflash-malta-boot.tcl22 flash erase sector 0xbe000000;
23 flash erase sector 0xbe020000;
24 flash erase sector 0xbe040000;
25 flash erase sector 0xbe060000;
26 flash erase sector 0xbe080000;
27 flash erase sector 0xbe0a0000;
28 flash erase sector 0xbe0c0000;
29 flash erase sector 0xbe0e0000;
/u-boot/tools/
A Drkspi.c22 int sector; in rkspi_set_header() local
38 for (sector = size / RKSPI_SECT_LEN - 1; sector >= 0; sector--) { in rkspi_set_header()
39 debug("sector %u\n", sector); in rkspi_set_header()
40 memmove(buf + sector * RKSPI_SECT_LEN * 2, in rkspi_set_header()
41 buf + sector * RKSPI_SECT_LEN, in rkspi_set_header()
43 memset(buf + sector * RKSPI_SECT_LEN * 2 + RKSPI_SECT_LEN, in rkspi_set_header()
/u-boot/arch/arm/mach-imx/
A Dparse-container.c82 ulong sector; in read_auth_image() local
101 sector = images[image_index].offset / info->bl_len + in read_auth_image()
105 container, sector, sectors); in read_auth_image()
106 if (info->read(info, sector, sectors, in read_auth_image()
123 struct spl_load_info *info, ulong sector) in read_auth_container() argument
140 container, sector, sectors); in read_auth_container()
164 __func__, container, sector, sectors); in read_auth_container()
165 if (info->read(info, sector, sectors, container) != in read_auth_container()
185 sector); in read_auth_container()
207 struct spl_load_info *info, ulong sector) in spl_load_imx_container() argument
[all …]
/u-boot/board/armltd/vexpress64/
A Dvexpress64.c111 phys_addr_t sector = CFG_SYS_FLASH_BASE; in find_dtb_in_nor_flash() local
116 i++, sector += JUNO_FLASH_SEC_SIZE) { in find_dtb_in_nor_flash()
122 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x04); in find_dtb_in_nor_flash()
126 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x08); in find_dtb_in_nor_flash()
131 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x30 + offs); in find_dtb_in_nor_flash()
139 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x10); in find_dtb_in_nor_flash()
140 imginfo = sector + JUNO_FLASH_SEC_SIZE - 0x30 - reg; in find_dtb_in_nor_flash()
/u-boot/fs/btrfs/
A Ddev.c18 lbaint_t sector; in btrfs_devread() local
21 sector = address >> btrfs_blk_desc->log2blksz; in btrfs_devread()
24 return fs_devread(btrfs_blk_desc, btrfs_part_info, sector, byte_offset, in btrfs_devread()
A Dcompat.h58 lbaint_t sector; in __btrfs_devread() local
62 sector = offset >> desc->log2blksz; in __btrfs_devread()
66 ret = fs_devread(desc, part, sector, byte_offset, size, buf); in __btrfs_devread()
/u-boot/test/py/tests/
A Dtest_mmc_wr.py57 sector = env__mmc_wr_config.get('sector', 0)
90 cmd = 'mmc write %s %x %x' % (src_addr, sector, count_sectors)
92 …ite: dev # %d, block # %d, count %d ... %d blocks written: OK' % (devid, sector, count_sectors, co…
96 cmd = 'mmc read %s %x %x' % (dst_addr, sector, count_sectors)
98 …C read: dev # %d, block # %d, count %d ... %d blocks read: OK' % (devid, sector, count_sectors, co…
/u-boot/drivers/mtd/
A Dcfi_flash.c622 info->start[sector]); in flash_full_status_check()
767 sector = 0; in find_sector()
771 sector++; in find_sector()
772 while ((info->start[sector] > addr) && (sector > 0)) in find_sector()
777 sector--; in find_sector()
779 saved_sector = sector; in find_sector()
781 return sector; in find_sector()
876 flash_sect_t sector; in flash_write_cfibuffer() local
1585 info->protect[sector] = prot; in flash_real_protect()
2103 phys_addr_t sector; in flash_get_size() local
[all …]
/u-boot/common/spl/
A Dspl_mmc.c23 ulong sector, struct legacy_img_hdr *header) in mmc_load_legacy() argument
46 sector + image_offset_sectors, in mmc_load_legacy()
62 static ulong h_spl_load_read(struct spl_load_info *load, ulong sector, in h_spl_load_read() argument
67 return blk_dread(mmc_get_blk_desc(mmc), sector, count, buf); in h_spl_load_read()
83 struct mmc *mmc, unsigned long sector) in mmc_load_image_raw_sector() argument
93 count = blk_dread(bd, sector, 1, header); in mmc_load_image_raw_sector()
94 debug("hdr read sector %lx, count=%lu\n", sector, count); in mmc_load_image_raw_sector()
110 ret = spl_load_simple_fit(spl_image, &load, sector, header); in mmc_load_image_raw_sector()
120 ret = spl_load_imx_container(spl_image, &load, sector); in mmc_load_image_raw_sector()
122 ret = mmc_load_legacy(spl_image, bootdev, mmc, sector, header); in mmc_load_image_raw_sector()
[all …]
A Dspl_fit.c361 struct spl_load_info *info, ulong sector, in spl_fit_append_fdt() argument
388 ret = spl_load_fit_image(info, sector, ctx, node, in spl_fit_append_fdt()
428 ret = spl_load_fit_image(info, sector, ctx, in spl_fit_append_fdt()
604 struct spl_load_info *info, ulong sector) in spl_fit_load_fpga() argument
629 struct spl_load_info *info, ulong sector, in spl_simple_fit_read() argument
655 count = info->read(info, sector, sectors, buf); in spl_simple_fit_read()
658 sector, sectors, buf, count, size); in spl_simple_fit_read()
690 struct spl_load_info *info, ulong sector, void *fit) in spl_load_simple_fit() argument
699 ret = spl_simple_fit_read(&ctx, info, sector, fit); in spl_load_simple_fit()
714 spl_fit_load_fpga(&ctx, info, sector); in spl_load_simple_fit()
[all …]
A Dspl_ram.c20 static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, in spl_ram_load_read() argument
26 __func__, sector, count, (ulong)buf); in spl_ram_load_read()
28 addr = (ulong)CONFIG_SPL_LOAD_FIT_ADDRESS + sector; in spl_ram_load_read()
A Dspl_net.c19 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 *)(image_load_addr + sector), count); in spl_net_load_read()
A Dspl_sata.c22 struct blk_desc *stor_dev, unsigned long sector) in spl_sata_load_image_raw() argument
32 count = blk_dread(stor_dev, sector, 1, header); in spl_sata_load_image_raw()
43 count = blk_dread(stor_dev, sector + image_offset_sectors, in spl_sata_load_image_raw()
A Dspl_nand.c46 ulong sector; in spl_nand_fit_read() local
48 sector = *(int *)load->priv; in spl_nand_fit_read()
51 offs = sector + nand_spl_adjust_offset(sector, offs - sector); in spl_nand_fit_read()
A Dspl_nor.c11 static ulong spl_nor_load_read(struct spl_load_info *load, ulong sector, in spl_nor_load_read() argument
15 __func__, sector, count, buf); in spl_nor_load_read()
16 memcpy(buf, (void *)sector, count); in spl_nor_load_read()
/u-boot/fs/reiserfs/
A Ddev.c24 int reiserfs_devread(int sector, int byte_offset, int byte_len, char *buf) in reiserfs_devread() argument
26 return fs_devread(reiserfs_blk_desc, part_info, sector, byte_offset, in reiserfs_devread()
/u-boot/fs/zfs/
A Ddev.c26 int zfs_devread(int sector, int byte_offset, int byte_len, char *buf) in zfs_devread() argument
28 return fs_devread(zfs_blk_desc, part_info, sector, byte_offset, in zfs_devread()
/u-boot/drivers/bootcount/
A Dspi-flash.c24 u32 sector = offset - sector_offset; in bootcount_spi_flash_update() local
35 err = spi_flash_read_dm(dev, sector, sector_size, buffer); in bootcount_spi_flash_update()
41 err = spi_flash_erase_dm(dev, sector, sector_size); in bootcount_spi_flash_update()
45 err = spi_flash_write_dm(dev, sector, sector_size, buffer); in bootcount_spi_flash_update()
/u-boot/drivers/mmc/
A Dfsl_esdhc_spl.c74 u32 sector; in mmc_boot() local
102 sector = 0; in mmc_boot()
109 blk_start = (sector * 512) / mmc->read_bl_len; in mmc_boot()
110 blk_off = (sector * 512) % mmc->read_bl_len; in mmc_boot()
143 if (++sector < 24) in mmc_boot()
/u-boot/drivers/mtd/nand/raw/
A Dnand_spl_loaders.c53 u32 nand_spl_adjust_offset(u32 sector, u32 offs) in nand_spl_adjust_offset() argument
57 block = sector / CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_adjust_offset()
58 lastblock = (sector + offs) / CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_adjust_offset()
/u-boot/tools/env/
A Dfw_env.config3 # 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
/u-boot/arch/arm/mach-at91/arm926ejs/
A Deflash.c154 int flash_real_protect (flash_info_t *info, long sector, int prot) in flash_real_protect() argument
157 u32 pagenum = (info->start[sector]-ATMEL_BASE_FLASH)/pagesize; in flash_real_protect()
160 debug("protect sector=%ld prot=%d\n", sector, prot); in flash_real_protect()
163 if (sector < CONFIG_EFLASH_PROTSECTORS) { in flash_real_protect()
166 sector); in flash_real_protect()
/u-boot/fs/ext4/
A Ddev.c50 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()
/u-boot/drivers/mtd/nand/raw/atmel/
A Dpmecc.h88 int atmel_pmecc_correct_sector(struct atmel_pmecc_user *user, int sector,
92 int sector, void *ecc);

Completed in 51 milliseconds

12345