Home
last modified time | relevance | path

Searched refs:startblock (Results 1 – 5 of 5) sorted by relevance

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_bbt.c457 int startblock; in create_bbt() local
469 startblock = 0; in create_bbt()
478 startblock = chip * numblocks; in create_bbt()
479 numblocks += startblock; in create_bbt()
480 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
486 for (i = startblock; i < numblocks; i++) { in create_bbt()
526 int startblock, block, dir; in search_bbt() local
533 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
536 startblock = 0; in search_bbt()
544 startblock &= bbtblocks - 1; in search_bbt()
[all …]
/openbmc/u-boot/drivers/mtd/onenand/
H A Donenand_bbt.c68 int startblock; in create_bbt() local
87 startblock = 0; in create_bbt()
95 for (i = startblock; i < numblocks;) { in create_bbt()
/openbmc/u-boot/fs/fat/
H A Dfat_write.c110 __u32 startblock = mydata->fatbufnum * FATBUFBLOCKS; in flush_dirty_fat_buffer() local
119 if (startblock + getsize > fatlength) in flush_dirty_fat_buffer()
120 getsize = fatlength - startblock; in flush_dirty_fat_buffer()
122 startblock += mydata->fat_sect; in flush_dirty_fat_buffer()
125 if (disk_write(startblock, getsize, bufptr) < 0) { in flush_dirty_fat_buffer()
132 startblock += mydata->fatlength; in flush_dirty_fat_buffer()
133 if (disk_write(startblock, getsize, bufptr) < 0) { in flush_dirty_fat_buffer()
292 __u32 startblock = bufnum * FATBUFBLOCKS; in set_fatent_value() local
295 if (startblock + getsize > fatlength) in set_fatent_value()
296 getsize = fatlength - startblock; in set_fatent_value()
[all …]
H A Dfat.c200 __u32 startblock = bufnum * FATBUFBLOCKS; in get_fatent() local
203 if (startblock + getsize > fatlength) in get_fatent()
204 getsize = fatlength - startblock; in get_fatent()
206 startblock += mydata->fat_sect; /* Offset from start of disk */ in get_fatent()
212 if (disk_read(startblock, getsize, bufptr) < 0) { in get_fatent()
/openbmc/u-boot/fs/ext4/
H A Dext4_common.c195 uint64_t startblock; in put_ext4() local
202 startblock = off >> log2blksz; in put_ext4()
203 startblock += part_offset; in put_ext4()
209 if ((startblock + (size >> log2blksz)) > in put_ext4()
218 blk_dread(fs->dev_desc, startblock, 1, sec_buf); in put_ext4()
221 blk_dwrite(fs->dev_desc, startblock, 1, sec_buf); in put_ext4()
224 blk_dwrite(fs->dev_desc, startblock, size >> log2blksz, in put_ext4()
227 blk_dread(fs->dev_desc, startblock, 1, sec_buf); in put_ext4()
230 blk_dwrite(fs->dev_desc, startblock, 1, in put_ext4()
1632 long int startblock, endblock; in read_allocated_block() local
[all …]