Searched refs:sector (Results 1 - 25 of 49) sorted by relevance

12

/u-boot/board/imgtec/malta/
H 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/fs/btrfs/
H A Ddev.c18 lbaint_t sector; local
21 sector = address >> btrfs_blk_desc->log2blksz;
24 return fs_devread(btrfs_blk_desc, btrfs_part_info, sector, byte_offset,
H A Dcompat.h58 lbaint_t sector; local
62 sector = offset >> desc->log2blksz;
66 ret = fs_devread(desc, part, sector, byte_offset, size, buf);
/u-boot/fs/
H A Dfs_internal.c18 lbaint_t sector, int byte_offset, int byte_len, char *buf)
30 if ((sector + ((byte_offset + byte_len - 1) >> log2blksz))
32 log_debug("read outside partition " LBAFU "\n", sector);
37 sector += byte_offset >> log2blksz;
40 log_debug(" <" LBAFU ", %d, %d>\n", sector, byte_offset, byte_len);
44 /* read first part which isn't aligned with start of sector */
45 if (blk_dread(blk, partition->start + sector, 1,
55 sector++;
61 /* read sector aligned part */
68 blk_dread(blk, partition->start + sector,
17 fs_devread(struct blk_desc *blk, struct disk_partition *partition, lbaint_t sector, int byte_offset, int byte_len, char *buf) argument
[all...]
/u-boot/tools/
H A Drkspi.c22 int sector; local
38 for (sector = size / RKSPI_SECT_LEN - 1; sector >= 0; sector--) {
39 debug("sector %u\n", sector);
40 memmove(buf + sector * RKSPI_SECT_LEN * 2,
41 buf + sector * RKSPI_SECT_LEN,
43 memset(buf + sector * RKSPI_SECT_LEN * 2 + RKSPI_SECT_LEN,
57 * The SPI payload needs to make space for odd half-sector layou
[all...]
/u-boot/fs/zfs/
H A Ddev.c26 int zfs_devread(int sector, int byte_offset, int byte_len, char *buf) argument
28 return fs_devread(zfs_blk_desc, part_info, sector, byte_offset,
/u-boot/test/py/tests/
H A Dtest_mmc_wr.py21 "sector": 0x10,
30 "sector": 0x10,
57 sector = env__mmc_wr_config.get('sector', 0)
90 cmd = 'mmc write %s %x %x' % (src_addr, sector, count_sectors)
92 good_response = 'MMC write: dev # %d, block # %d, count %d ... %d blocks written: OK' % (devid, sector, count_sectors, count_sectors)
96 cmd = 'mmc read %s %x %x' % (dst_addr, sector, count_sectors)
98 good_response = 'MMC read: dev # %d, block # %d, count %d ... %d blocks read: OK' % (devid, sector, count_sectors, count_sectors)
H A Dtest_mmc_rd.py69 'sector': 0x10,
77 'sector': 0x10,
85 'sector': 0x10,
93 'sector': 0,
102 'sector': 0x10,
235 sector = env__mmc_rd_config.get('sector', 0)
264 cmd = 'mmc read %s %x %x' % (addr, sector, count_sectors)
269 devid, sector, count_sectors, count_sectors)
/u-boot/common/spl/
H A Dspl_nand.c46 __weak u32 nand_spl_adjust_offset(u32 sector, u32 offs) argument
55 ulong sector; local
60 sector = *(int *)load->priv;
61 offs = sector + nand_spl_adjust_offset(sector, offs - sector);
H A Dspl_nor.c13 static ulong spl_nor_load_read(struct spl_load_info *load, ulong sector, argument
16 debug("%s: sector %lx, count %lx, buf %p\n",
17 __func__, sector, count, buf);
18 memcpy(buf, map_sysmem(sector, count), count);
H A Dspl_net.c20 static ulong spl_net_load_read(struct spl_load_info *load, ulong sector, argument
23 debug("%s: sector %lx, count %lx, buf %lx\n",
24 __func__, sector, count, (ulong)buf);
25 memcpy(buf, map_sysmem(image_load_addr + sector, count), count);
H A Dspl_sata.c22 struct blk_desc *stor_dev, unsigned long sector)
32 count = blk_dread(stor_dev, sector, 1, header);
43 count = blk_dread(stor_dev, sector + image_offset_sectors,
20 spl_sata_load_image_raw(struct spl_image_info *spl_image, struct spl_boot_device *bootdev, struct blk_desc *stor_dev, unsigned long sector) argument
H A Dspl_ram.c20 static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, argument
25 debug("%s: sector %lx, count %lx, buf %lx\n",
26 __func__, sector, count, (ulong)buf);
32 addr += sector;
H A Dspl_spi.c24 static ulong spl_spi_fit_read(struct spl_load_info *load, ulong sector, argument
30 ret = spi_flash_read(flash, sector, count, buf);
/u-boot/drivers/mtd/nand/raw/atmel/
H A Dpmecc.h88 int atmel_pmecc_correct_sector(struct atmel_pmecc_user *user, int sector,
92 int sector, void *ecc);
/u-boot/disk/
H A Dpart_dos.h27 unsigned char sector; /* starting sector */ member in struct:dos_partition
31 unsigned char end_sector; /* end sector */
33 unsigned char start4[4]; /* starting sector counting from 0 */
/u-boot/drivers/mtd/nand/raw/
H A Dnand_spl_loaders.c48 * nand_spl_adjust_offset - Adjust offset from a starting sector
49 * @sector: Address of the sector
50 * @offs: Offset starting from @sector
52 * If one or more bad blocks are in the address space between @sector
53 * and @sector + @offs, @offs is increased by the NAND block size for
56 u32 nand_spl_adjust_offset(u32 sector, u32 offs) argument
60 block = sector / CONFIG_SYS_NAND_BLOCK_SIZE;
61 lastblock = (sector + offs) / CONFIG_SYS_NAND_BLOCK_SIZE;
/u-boot/board/armltd/vexpress64/
H A Dvexpress64.c111 phys_addr_t sector = CFG_SYS_FLASH_BASE; local
116 i++, sector += JUNO_FLASH_SEC_SIZE) {
122 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x04);
126 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x08);
131 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x30 + offs);
139 reg = readl(sector + JUNO_FLASH_SEC_SIZE - 0x10);
140 imginfo = sector + JUNO_FLASH_SEC_SIZE - 0x30 - reg;
/u-boot/drivers/mtd/
H A Dcfi_flash.c569 static int flash_status_check(flash_info_t *info, flash_sect_t sector, argument
588 while (flash_is_busy(info, sector)) {
591 prompt, info->start[sector],
592 flash_read_long(info, sector, 0));
593 flash_write_cmd(info, sector, 0, info->cmd_reset);
608 static int flash_full_status_check(flash_info_t *info, flash_sect_t sector, argument
613 retcode = flash_status_check(info, sector, tout, prompt);
619 !flash_isset(info, sector, 0, FLASH_STATUS_DONE)) {
622 info->start[sector]);
623 if (flash_isset(info, sector,
764 flash_sect_t sector = saved_sector; local
876 flash_sect_t sector; local
1446 cfi_protect_bugfix(flash_info_t *info, long sector, int prot) argument
1480 flash_real_protect(flash_info_t *info, long sector, int prot) argument
2103 phys_addr_t sector; local
[all...]
/u-boot/drivers/bootcount/
H A Dspi-flash.c24 u32 sector = offset - sector_offset; local
27 /* code only supports updating a single sector */
35 err = spi_flash_read_dm(dev, sector, sector_size, buffer);
41 err = spi_flash_erase_dm(dev, sector, sector_size);
45 err = spi_flash_write_dm(dev, sector, sector_size, buffer);
/u-boot/fs/ext4/
H A Ddev.c50 int ext4fs_devread(lbaint_t sector, int byte_offset, int byte_len, argument
53 return fs_devread(get_fs()->dev_desc, part_info, sector, byte_offset,
/u-boot/drivers/mmc/
H A Dfsl_esdhc_spl.c74 u32 sector; local
102 sector = 0;
109 blk_start = (sector * 512) / mmc->read_bl_len;
110 blk_off = (sector * 512) % mmc->read_bl_len;
133 * require custom BOOT signature on sector 0 and MBR/DBR signature is not required at all.
143 if (++sector < 24)
/u-boot/drivers/virtio/
H A Dvirtio_blk.h112 __virtio64 sector; member in struct:virtio_blk_outhdr
H A Dvirtio_blk.c22 static ulong virtio_blk_do_req(struct udevice *dev, u64 sector, argument
33 .sector = cpu_to_virtio64(dev, sector),
/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c21 * The flash is presented to u-boot with each region being a sector,
23 * Each sector can be hardware protected (protect on/off).
24 * Each page in a sector can be rewritten anytime.
154 int flash_real_protect (flash_info_t *info, long sector, int prot) argument
157 u32 pagenum = (info->start[sector]-ATMEL_BASE_FLASH)/pagesize;
160 debug("protect sector=%ld prot=%d\n", sector, prot);
163 if (sector < CONFIG_EFLASH_PROTSECTORS) {
165 printf("eflash: sector %lu cannot be unprotected\n",
166 sector);
[all...]

Completed in 119 milliseconds

12